Class TableFieldSchema.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder>
com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder
All Implemented Interfaces:
TableFieldSchemaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TableFieldSchema

public static final class TableFieldSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TableFieldSchema.Builder> implements TableFieldSchemaOrBuilder
 A field in TableSchema
 
Protobuf type google.cloud.bigquery.storage.v1beta2.TableFieldSchema
  • Method Details

    • 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<TableFieldSchema.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public TableFieldSchema.Builder mergeFrom(TableFieldSchema other)
    • isInitialized

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

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

      public String getName()
       Required. The field name. The name must contain only letters (a-z, A-Z),
       numbers (0-9), or underscores (_), and must start with a letter or
       underscore. The maximum length is 128 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface TableFieldSchemaOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The field name. The name must contain only letters (a-z, A-Z),
       numbers (0-9), or underscores (_), and must start with a letter or
       underscore. The maximum length is 128 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface TableFieldSchemaOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TableFieldSchema.Builder setName(String value)
       Required. The field name. The name must contain only letters (a-z, A-Z),
       numbers (0-9), or underscores (_), and must start with a letter or
       underscore. The maximum length is 128 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TableFieldSchema.Builder clearName()
       Required. The field name. The name must contain only letters (a-z, A-Z),
       numbers (0-9), or underscores (_), and must start with a letter or
       underscore. The maximum length is 128 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TableFieldSchema.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The field name. The name must contain only letters (a-z, A-Z),
       numbers (0-9), or underscores (_), and must start with a letter or
       underscore. The maximum length is 128 characters.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Required. The field data type.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface TableFieldSchemaOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public TableFieldSchema.Builder setTypeValue(int value)
       Required. The field data type.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public TableFieldSchema.Type getType()
       Required. The field data type.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface TableFieldSchemaOrBuilder
      Returns:
      The type.
    • setType

       Required. The field data type.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public TableFieldSchema.Builder clearType()
       Required. The field data type.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getModeValue

      public int getModeValue()
       Optional. The field mode. The default value is NULLABLE.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModeValue in interface TableFieldSchemaOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • setModeValue

      public TableFieldSchema.Builder setModeValue(int value)
       Optional. The field mode. The default value is NULLABLE.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for mode to set.
      Returns:
      This builder for chaining.
    • getMode

      public TableFieldSchema.Mode getMode()
       Optional. The field mode. The default value is NULLABLE.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMode in interface TableFieldSchemaOrBuilder
      Returns:
      The mode.
    • setMode

       Optional. The field mode. The default value is NULLABLE.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

      public TableFieldSchema.Builder clearMode()
       Optional. The field mode. The default value is NULLABLE.
       
      .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getFieldsList

      public List<TableFieldSchema> getFieldsList()
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsList in interface TableFieldSchemaOrBuilder
    • getFieldsCount

      public int getFieldsCount()
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsCount in interface TableFieldSchemaOrBuilder
    • getFields

      public TableFieldSchema getFields(int index)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFields in interface TableFieldSchemaOrBuilder
    • setFields

      public TableFieldSchema.Builder setFields(int index, TableFieldSchema value)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setFields

      public TableFieldSchema.Builder setFields(int index, TableFieldSchema.Builder builderForValue)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public TableFieldSchema.Builder addFields(TableFieldSchema value)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public TableFieldSchema.Builder addFields(int index, TableFieldSchema value)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public TableFieldSchema.Builder addFields(TableFieldSchema.Builder builderForValue)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public TableFieldSchema.Builder addFields(int index, TableFieldSchema.Builder builderForValue)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addAllFields

      public TableFieldSchema.Builder addAllFields(Iterable<? extends TableFieldSchema> values)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearFields

      public TableFieldSchema.Builder clearFields()
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • removeFields

      public TableFieldSchema.Builder removeFields(int index)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsBuilder

      public TableFieldSchema.Builder getFieldsBuilder(int index)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsOrBuilder

      public TableFieldSchemaOrBuilder getFieldsOrBuilder(int index)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsOrBuilder in interface TableFieldSchemaOrBuilder
    • getFieldsOrBuilderList

      public List<? extends TableFieldSchemaOrBuilder> getFieldsOrBuilderList()
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsOrBuilderList in interface TableFieldSchemaOrBuilder
    • addFieldsBuilder

      public TableFieldSchema.Builder addFieldsBuilder()
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addFieldsBuilder

      public TableFieldSchema.Builder addFieldsBuilder(int index)
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsBuilderList

      public List<TableFieldSchema.Builder> getFieldsBuilderList()
       Optional. Describes the nested schema fields if the type property is set to STRUCT.
       
      repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getDescription

      public String getDescription()
       Optional. The field description. The maximum length is 1,024 characters.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface TableFieldSchemaOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The field description. The maximum length is 1,024 characters.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface TableFieldSchemaOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TableFieldSchema.Builder setDescription(String value)
       Optional. The field description. The maximum length is 1,024 characters.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TableFieldSchema.Builder clearDescription()
       Optional. The field description. The maximum length is 1,024 characters.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TableFieldSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The field description. The maximum length is 1,024 characters.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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