Class StructType.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StructTypeOrBuilder, Cloneable
    Enclosing class:
    StructType

    public static final class StructType.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
    implements StructTypeOrBuilder
     `StructType` defines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type.
     
    Protobuf type google.spanner.v1.StructType
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • clear

        public StructType.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • getDefaultInstanceForType

        public StructType getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public StructType build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public StructType buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public StructType.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • setField

        public StructType.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • clearField

        public StructType.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • clearOneof

        public StructType.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • setRepeatedField

        public StructType.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • addRepeatedField

        public StructType.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • mergeFrom

        public StructType.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructType.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • mergeFrom

        public StructType.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StructType.Builder>
        Throws:
        IOException
      • getFieldsList

        public List<StructType.Field> getFieldsList()
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
        Specified by:
        getFieldsList in interface StructTypeOrBuilder
      • getFieldsCount

        public int getFieldsCount()
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
        Specified by:
        getFieldsCount in interface StructTypeOrBuilder
      • getFields

        public StructType.Field getFields​(int index)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
        Specified by:
        getFields in interface StructTypeOrBuilder
      • setFields

        public StructType.Builder setFields​(int index,
                                            StructType.Field value)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • setFields

        public StructType.Builder setFields​(int index,
                                            StructType.Field.Builder builderForValue)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • addFields

        public StructType.Builder addFields​(StructType.Field value)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • addFields

        public StructType.Builder addFields​(int index,
                                            StructType.Field value)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • addFields

        public StructType.Builder addFields​(StructType.Field.Builder builderForValue)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • addFields

        public StructType.Builder addFields​(int index,
                                            StructType.Field.Builder builderForValue)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • addAllFields

        public StructType.Builder addAllFields​(Iterable<? extends StructType.Field> values)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • clearFields

        public StructType.Builder clearFields()
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • removeFields

        public StructType.Builder removeFields​(int index)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • getFieldsBuilder

        public StructType.Field.Builder getFieldsBuilder​(int index)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • getFieldsOrBuilder

        public StructType.FieldOrBuilder getFieldsOrBuilder​(int index)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
        Specified by:
        getFieldsOrBuilder in interface StructTypeOrBuilder
      • getFieldsOrBuilderList

        public List<? extends StructType.FieldOrBuilder> getFieldsOrBuilderList()
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
        Specified by:
        getFieldsOrBuilderList in interface StructTypeOrBuilder
      • addFieldsBuilder

        public StructType.Field.Builder addFieldsBuilder()
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • addFieldsBuilder

        public StructType.Field.Builder addFieldsBuilder​(int index)
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • getFieldsBuilderList

        public List<StructType.Field.Builder> getFieldsBuilderList()
         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.
         
        repeated .google.spanner.v1.StructType.Field fields = 1;
      • setUnknownFields

        public final StructType.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>
      • mergeUnknownFields

        public final StructType.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StructType.Builder>