Class MetastorePartition.Builder

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

public static final class MetastorePartition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetastorePartition.Builder> implements MetastorePartitionOrBuilder
 Information about a Hive partition.
 
Protobuf type google.cloud.bigquery.storage.v1alpha.MetastorePartition
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<MetastorePartition.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<MetastorePartition.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetastorePartition.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<MetastorePartition.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<MetastorePartition.Builder>
    • getDefaultInstanceForType

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

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

      public MetastorePartition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<MetastorePartition.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public MetastorePartition.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<MetastorePartition.Builder>
      Throws:
      IOException
    • getValuesList

      public com.google.protobuf.ProtocolStringList getValuesList()
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValuesList in interface MetastorePartitionOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValuesCount in interface MetastorePartitionOrBuilder
      Returns:
      The count of values.
    • getValues

      public String getValues(int index)
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValues in interface MetastorePartitionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • getValuesBytes

      public com.google.protobuf.ByteString getValuesBytes(int index)
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValuesBytes in interface MetastorePartitionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.
    • setValues

      public MetastorePartition.Builder setValues(int index, String value)
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The values to set.
      Returns:
      This builder for chaining.
    • addValues

      public MetastorePartition.Builder addValues(String value)
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

      public MetastorePartition.Builder addAllValues(Iterable<String> values)
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

      public MetastorePartition.Builder clearValues()
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addValuesBytes

      public MetastorePartition.Builder addValuesBytes(com.google.protobuf.ByteString value)
       Required. Represents the values of the partition keys, where each value
       corresponds to a specific partition key in the order in which the keys are
       defined. Each value is limited to 1024 characters.
       
      repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the values to add.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MetastorePartitionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MetastorePartitionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public MetastorePartition.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public MetastorePartition.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public MetastorePartition.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public MetastorePartition.Builder clearCreateTime()
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time of the partition.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MetastorePartitionOrBuilder
    • hasStorageDescriptor

      public boolean hasStorageDescriptor()
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStorageDescriptor in interface MetastorePartitionOrBuilder
      Returns:
      Whether the storageDescriptor field is set.
    • getStorageDescriptor

      public StorageDescriptor getStorageDescriptor()
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageDescriptor in interface MetastorePartitionOrBuilder
      Returns:
      The storageDescriptor.
    • setStorageDescriptor

      public MetastorePartition.Builder setStorageDescriptor(StorageDescriptor value)
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setStorageDescriptor

      public MetastorePartition.Builder setStorageDescriptor(StorageDescriptor.Builder builderForValue)
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStorageDescriptor

      public MetastorePartition.Builder mergeStorageDescriptor(StorageDescriptor value)
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearStorageDescriptor

      public MetastorePartition.Builder clearStorageDescriptor()
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getStorageDescriptorBuilder

      public StorageDescriptor.Builder getStorageDescriptorBuilder()
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getStorageDescriptorOrBuilder

      public StorageDescriptorOrBuilder getStorageDescriptorOrBuilder()
       Optional. Contains information about the physical storage of the data in
       the partition.
       
      .google.cloud.bigquery.storage.v1alpha.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageDescriptorOrBuilder in interface MetastorePartitionOrBuilder
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: MetastorePartitionOrBuilder
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersCount in interface MetastorePartitionOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsParameters in interface MetastorePartitionOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface MetastorePartitionOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersMap in interface MetastorePartitionOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrDefault in interface MetastorePartitionOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrThrow in interface MetastorePartitionOrBuilder
    • clearParameters

      public MetastorePartition.Builder clearParameters()
    • removeParameters

      public MetastorePartition.Builder removeParameters(String key)
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableParameters

      @Deprecated public Map<String,String> getMutableParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

      public MetastorePartition.Builder putParameters(String key, String value)
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllParameters

      public MetastorePartition.Builder putAllParameters(Map<String,String> values)
       Optional. Additional parameters or metadata associated with the partition.
       Maximum size 10 KiB.
       
      map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsList

      public List<FieldSchema> getFieldsList()
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsList in interface MetastorePartitionOrBuilder
    • getFieldsCount

      public int getFieldsCount()
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsCount in interface MetastorePartitionOrBuilder
    • getFields

      public FieldSchema getFields(int index)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFields in interface MetastorePartitionOrBuilder
    • setFields

      public MetastorePartition.Builder setFields(int index, FieldSchema value)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setFields

      public MetastorePartition.Builder setFields(int index, FieldSchema.Builder builderForValue)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public MetastorePartition.Builder addFields(FieldSchema value)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public MetastorePartition.Builder addFields(int index, FieldSchema value)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public MetastorePartition.Builder addFields(FieldSchema.Builder builderForValue)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addFields

      public MetastorePartition.Builder addFields(int index, FieldSchema.Builder builderForValue)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addAllFields

      public MetastorePartition.Builder addAllFields(Iterable<? extends FieldSchema> values)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearFields

      public MetastorePartition.Builder clearFields()
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • removeFields

      public MetastorePartition.Builder removeFields(int index)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsBuilder

      public FieldSchema.Builder getFieldsBuilder(int index)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsOrBuilder

      public FieldSchemaOrBuilder getFieldsOrBuilder(int index)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsOrBuilder in interface MetastorePartitionOrBuilder
    • getFieldsOrBuilderList

      public List<? extends FieldSchemaOrBuilder> getFieldsOrBuilderList()
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldsOrBuilderList in interface MetastorePartitionOrBuilder
    • addFieldsBuilder

      public FieldSchema.Builder addFieldsBuilder()
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addFieldsBuilder

      public FieldSchema.Builder addFieldsBuilder(int index)
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getFieldsBuilderList

      public List<FieldSchema.Builder> getFieldsBuilderList()
       Optional. List of columns.
       
      repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setUnknownFields

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

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