Class ColumnSchema.Builder

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

    public static final class ColumnSchema.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
    implements ColumnSchemaOrBuilder
     Representation of a column within a schema. Columns could be nested inside
     other columns.
     
    Protobuf type google.cloud.datacatalog.v1beta1.ColumnSchema
    • 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<ColumnSchema.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public ColumnSchema.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<ColumnSchema.Builder>
      • isInitialized

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

        public ColumnSchema.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<ColumnSchema.Builder>
        Throws:
        IOException
      • getColumn

        public String getColumn()
         Required. Name of the column.
         
        string column = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getColumn in interface ColumnSchemaOrBuilder
        Returns:
        The column.
      • getColumnBytes

        public com.google.protobuf.ByteString getColumnBytes()
         Required. Name of the column.
         
        string column = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getColumnBytes in interface ColumnSchemaOrBuilder
        Returns:
        The bytes for column.
      • setColumn

        public ColumnSchema.Builder setColumn​(String value)
         Required. Name of the column.
         
        string column = 6 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The column to set.
        Returns:
        This builder for chaining.
      • clearColumn

        public ColumnSchema.Builder clearColumn()
         Required. Name of the column.
         
        string column = 6 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setColumnBytes

        public ColumnSchema.Builder setColumnBytes​(com.google.protobuf.ByteString value)
         Required. Name of the column.
         
        string column = 6 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for column to set.
        Returns:
        This builder for chaining.
      • getType

        public String getType()
         Required. Type of the column.
         
        string type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getType in interface ColumnSchemaOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Required. Type of the column.
         
        string type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeBytes in interface ColumnSchemaOrBuilder
        Returns:
        The bytes for type.
      • setType

        public ColumnSchema.Builder setType​(String value)
         Required. Type of the column.
         
        string type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public ColumnSchema.Builder clearType()
         Required. Type of the column.
         
        string type = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setTypeBytes

        public ColumnSchema.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         Required. Type of the column.
         
        string type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Optional. Description of the column. Default value is an empty string.
         
        string description = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface ColumnSchemaOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Description of the column. Default value is an empty string.
         
        string description = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface ColumnSchemaOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public ColumnSchema.Builder setDescription​(String value)
         Optional. Description of the column. Default value is an empty string.
         
        string description = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public ColumnSchema.Builder clearDescription()
         Optional. Description of the column. Default value is an empty string.
         
        string description = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public ColumnSchema.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional. Description of the column. Default value is an empty string.
         
        string description = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getMode

        public String getMode()
         Optional. A column's mode indicates whether the values in this column are
         required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
         supported. Default mode is `NULLABLE`.
         
        string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getMode in interface ColumnSchemaOrBuilder
        Returns:
        The mode.
      • getModeBytes

        public com.google.protobuf.ByteString getModeBytes()
         Optional. A column's mode indicates whether the values in this column are
         required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
         supported. Default mode is `NULLABLE`.
         
        string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getModeBytes in interface ColumnSchemaOrBuilder
        Returns:
        The bytes for mode.
      • setMode

        public ColumnSchema.Builder setMode​(String value)
         Optional. A column's mode indicates whether the values in this column are
         required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
         supported. Default mode is `NULLABLE`.
         
        string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The mode to set.
        Returns:
        This builder for chaining.
      • clearMode

        public ColumnSchema.Builder clearMode()
         Optional. A column's mode indicates whether the values in this column are
         required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
         supported. Default mode is `NULLABLE`.
         
        string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setModeBytes

        public ColumnSchema.Builder setModeBytes​(com.google.protobuf.ByteString value)
         Optional. A column's mode indicates whether the values in this column are
         required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
         supported. Default mode is `NULLABLE`.
         
        string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for mode to set.
        Returns:
        This builder for chaining.
      • getSubcolumnsList

        public List<ColumnSchema> getSubcolumnsList()
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSubcolumnsList in interface ColumnSchemaOrBuilder
      • getSubcolumnsCount

        public int getSubcolumnsCount()
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSubcolumnsCount in interface ColumnSchemaOrBuilder
      • getSubcolumns

        public ColumnSchema getSubcolumns​(int index)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSubcolumns in interface ColumnSchemaOrBuilder
      • setSubcolumns

        public ColumnSchema.Builder setSubcolumns​(int index,
                                                  ColumnSchema value)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • setSubcolumns

        public ColumnSchema.Builder setSubcolumns​(int index,
                                                  ColumnSchema.Builder builderForValue)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • addSubcolumns

        public ColumnSchema.Builder addSubcolumns​(ColumnSchema value)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • addSubcolumns

        public ColumnSchema.Builder addSubcolumns​(int index,
                                                  ColumnSchema value)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • addSubcolumns

        public ColumnSchema.Builder addSubcolumns​(ColumnSchema.Builder builderForValue)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • addSubcolumns

        public ColumnSchema.Builder addSubcolumns​(int index,
                                                  ColumnSchema.Builder builderForValue)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • addAllSubcolumns

        public ColumnSchema.Builder addAllSubcolumns​(Iterable<? extends ColumnSchema> values)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • clearSubcolumns

        public ColumnSchema.Builder clearSubcolumns()
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • removeSubcolumns

        public ColumnSchema.Builder removeSubcolumns​(int index)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getSubcolumnsBuilder

        public ColumnSchema.Builder getSubcolumnsBuilder​(int index)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getSubcolumnsOrBuilder

        public ColumnSchemaOrBuilder getSubcolumnsOrBuilder​(int index)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSubcolumnsOrBuilder in interface ColumnSchemaOrBuilder
      • getSubcolumnsOrBuilderList

        public List<? extends ColumnSchemaOrBuilder> getSubcolumnsOrBuilderList()
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSubcolumnsOrBuilderList in interface ColumnSchemaOrBuilder
      • addSubcolumnsBuilder

        public ColumnSchema.Builder addSubcolumnsBuilder()
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • addSubcolumnsBuilder

        public ColumnSchema.Builder addSubcolumnsBuilder​(int index)
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getSubcolumnsBuilderList

        public List<ColumnSchema.Builder> getSubcolumnsBuilderList()
         Optional. Schema of sub-columns. A column can have zero or more
         sub-columns.
         
        repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

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

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