/** * * * <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 Builder addFields( int index, com.google.spanner.v1.StructType.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The type of the field. * </pre> * * <code>.google.spanner.v1.Type type = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.spanner.v1.Type, com.google.spanner.v1.Type.Builder, com.google.spanner.v1.TypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; }
/** * * * <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(); } /**
/** * * * <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 Builder setFields( int index, com.google.spanner.v1.StructType.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <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 Builder addFields(com.google.spanner.v1.StructType.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.spanner.v1.StructType.Field parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.spanner.v1.StructType.Field) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public static Builder newBuilder(com.google.spanner.v1.StructType.Field prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
private Builder() { maybeForceBuilderInitialization(); }
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; }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.spanner.v1.StructType.Field) { return mergeFrom((com.google.spanner.v1.StructType.Field) other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@java.lang.Override public com.google.spanner.v1.StructType.Field build() { com.google.spanner.v1.StructType.Field result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }