/** * * * <pre> * The list of fields that make up this struct. Order is * significant, because values of this struct type are represented as * lists, where the order of field values matches the order of * fields in the [StructType][google.spanner.v1.StructType]. In turn, the order of fields * matches the order of columns in a read request, or the order of * fields in the `SELECT` clause of a query. * </pre> * * <code>repeated .google.spanner.v1.StructType.Field fields = 1;</code> */ public com.google.spanner.v1.StructType.Field.Builder addFieldsBuilder(int index) { return getFieldsFieldBuilder() .addBuilder(index, com.google.spanner.v1.StructType.Field.getDefaultInstance()); } /**
/** * * * <pre> * The list of fields that make up this struct. Order is * significant, because values of this struct type are represented as * lists, where the order of field values matches the order of * fields in the [StructType][google.spanner.v1.StructType]. In turn, the order of fields * matches the order of columns in a read request, or the order of * fields in the `SELECT` clause of a query. * </pre> * * <code>repeated .google.spanner.v1.StructType.Field fields = 1;</code> */ public com.google.spanner.v1.StructType.Field.Builder addFieldsBuilder() { return getFieldsFieldBuilder() .addBuilder(com.google.spanner.v1.StructType.Field.getDefaultInstance()); } /**
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; }
/** * * * <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; } /**
@java.lang.Override public com.google.spanner.v1.StructType.Field getDefaultInstanceForType() { return com.google.spanner.v1.StructType.Field.getDefaultInstance(); }