Class StructType.Field.Builder

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

    public static final class StructType.Field.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StructType.Field.Builder>
    implements StructType.FieldOrBuilder
     Message representing a single field of a struct.
     
    Protobuf type google.spanner.v1.StructType.Field
    • 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.Field.Builder>
      • clear

        public StructType.Field.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.Field.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.Field.Builder>
      • getDefaultInstanceForType

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

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

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

        public StructType.Field.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.Field.Builder>
      • setField

        public StructType.Field.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.Field.Builder>
      • clearField

        public StructType.Field.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.Field.Builder>
      • clearOneof

        public StructType.Field.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.Field.Builder>
      • setRepeatedField

        public StructType.Field.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.Field.Builder>
      • addRepeatedField

        public StructType.Field.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.Field.Builder>
      • mergeFrom

        public StructType.Field.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.Field.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.Field.Builder>
      • mergeFrom

        public StructType.Field.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.Field.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         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.
         
        string name = 1;
        Specified by:
        getName in interface StructType.FieldOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         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.
         
        string name = 1;
        Specified by:
        getNameBytes in interface StructType.FieldOrBuilder
        Returns:
        The bytes for name.
      • setName

        public StructType.Field.Builder setName​(String value)
         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.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public StructType.Field.Builder clearName()
         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.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public StructType.Field.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         The type of the field.
         
        .google.spanner.v1.Type type = 2;
        Specified by:
        hasType in interface StructType.FieldOrBuilder
        Returns:
        Whether the type field is set.
      • getTypeBuilder

        public Type.Builder getTypeBuilder()
         The type of the field.
         
        .google.spanner.v1.Type type = 2;
      • setUnknownFields

        public final StructType.Field.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.Field.Builder>
      • mergeUnknownFields

        public final StructType.Field.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.Field.Builder>