/** * * * <pre> * The type of the field. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ public Builder setType(com.google.spanner.v1.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The name of the field. For reads, this is the column name. For * SQL queries, it is the column alias (e.g., `"Word"` in the * query `"SELECT 'hello' AS Word"`), or the column name (e.g., * `"ColName"` in the query `"SELECT ColName FROM Table"`). Some * columns might have an empty name (e.g., !"SELECT * UPPER(ColName)"`). Note that a query result can contain * multiple fields with the same name. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the field. For reads, this is the column name. For * SQL queries, it is the column alias (e.g., `"Word"` in the * query `"SELECT 'hello' AS Word"`), or the column name (e.g., * `"ColName"` in the query `"SELECT ColName FROM Table"`). Some * columns might have an empty name (e.g., !"SELECT * UPPER(ColName)"`). Note that a query result can contain * multiple fields with the same name. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * The type of the field. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ public Builder mergeType(com.google.spanner.v1.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.google.spanner.v1.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The name of the field. For reads, this is the column name. For * SQL queries, it is the column alias (e.g., `"Word"` in the * query `"SELECT 'hello' AS Word"`), or the column name (e.g., * `"ColName"` in the query `"SELECT ColName FROM Table"`). Some * columns might have an empty name (e.g., !"SELECT * UPPER(ColName)"`). Note that a query result can contain * multiple fields with the same name. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The type of the field. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /**
/** * * * <pre> * The type of the field. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The type of the field. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ public com.google.spanner.v1.Type.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.spanner.v1.StructType.Field other) { if (other == com.google.spanner.v1.StructType.Field.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasType()) { mergeType(other.getType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }