Class MetastorePartition.Builder (3.9.1)

public static final class MetastorePartition.Builder extends GeneratedMessageV3.Builder<MetastorePartition.Builder> implements MetastorePartitionOrBuilder

Information about a Hive partition.

Protobuf type google.cloud.bigquery.storage.v1alpha.MetastorePartition

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFields(Iterable<? extends FieldSchema> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.storage.v1alpha.FieldSchema>
Returns
Type Description
MetastorePartition.Builder

addAllValues(Iterable<String> values)

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];

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
MetastorePartition.Builder

This builder for chaining.

addFields(FieldSchema value)

public MetastorePartition.Builder addFields(FieldSchema value)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldSchema
Returns
Type Description
MetastorePartition.Builder

addFields(FieldSchema.Builder builderForValue)

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];

Parameter
Name Description
builderForValue FieldSchema.Builder
Returns
Type Description
MetastorePartition.Builder

addFields(int index, FieldSchema value)

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];

Parameters
Name Description
index int
value FieldSchema
Returns
Type Description
MetastorePartition.Builder

addFields(int index, FieldSchema.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue FieldSchema.Builder
Returns
Type Description
MetastorePartition.Builder

addFieldsBuilder()

public FieldSchema.Builder addFieldsBuilder()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldSchema.Builder

addFieldsBuilder(int index)

public FieldSchema.Builder addFieldsBuilder(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchema.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetastorePartition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetastorePartition.Builder
Overrides

addValues(String value)

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];

Parameter
Name Description
value String

The values to add.

Returns
Type Description
MetastorePartition.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public MetastorePartition.Builder addValuesBytes(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];

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
MetastorePartition.Builder

This builder for chaining.

build()

public MetastorePartition build()
Returns
Type Description
MetastorePartition

buildPartial()

public MetastorePartition buildPartial()
Returns
Type Description
MetastorePartition

clear()

public MetastorePartition.Builder clear()
Returns
Type Description
MetastorePartition.Builder
Overrides

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];

Returns
Type Description
MetastorePartition.Builder

clearField(Descriptors.FieldDescriptor field)

public MetastorePartition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MetastorePartition.Builder
Overrides

clearFields()

public MetastorePartition.Builder clearFields()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MetastorePartition.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MetastorePartition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MetastorePartition.Builder
Overrides

clearParameters()

public MetastorePartition.Builder clearParameters()
Returns
Type Description
MetastorePartition.Builder

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];

Returns
Type Description
MetastorePartition.Builder

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
Type Description
MetastorePartition.Builder

This builder for chaining.

clone()

public MetastorePartition.Builder clone()
Returns
Type Description
MetastorePartition.Builder
Overrides

containsParameters(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MetastorePartition getDefaultInstanceForType()
Returns
Type Description
MetastorePartition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFields(int index)

public FieldSchema getFields(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchema

getFieldsBuilder(int index)

public FieldSchema.Builder getFieldsBuilder(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchema.Builder

getFieldsBuilderList()

public List<FieldSchema.Builder> getFieldsBuilderList()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getFieldsCount()

public int getFieldsCount()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFieldsList()

public List<FieldSchema> getFieldsList()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<FieldSchema>

getFieldsOrBuilder(int index)

public FieldSchemaOrBuilder getFieldsOrBuilder(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchemaOrBuilder

getFieldsOrBuilderList()

public List<? extends FieldSchemaOrBuilder> getFieldsOrBuilderList()

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.bigquery.storage.v1alpha.FieldSchemaOrBuilder>

getMutableParameters() (deprecated)

public Map<String,String> getMutableParameters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getParameters() (deprecated)

public Map<String,String> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,String>

getParametersCount()

public int getParametersCount()

Optional. Additional parameters or metadata associated with the partition. Maximum size 10 KiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

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];

Returns
Type Description
Map<String,String>

getParametersOrDefault(String key, String defaultValue)

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];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getParametersOrThrow(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
String

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];

Returns
Type Description
StorageDescriptor

The storageDescriptor.

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];

Returns
Type Description
StorageDescriptor.Builder

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];

Returns
Type Description
StorageDescriptorOrBuilder

getValues(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

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];

Returns
Type Description
int

The count of values.

getValuesList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the values.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

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];

Returns
Type Description
boolean

Whether the storageDescriptor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MetastorePartition.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetastorePartition.Builder

mergeFrom(MetastorePartition other)

public MetastorePartition.Builder mergeFrom(MetastorePartition other)
Parameter
Name Description
other MetastorePartition
Returns
Type Description
MetastorePartition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetastorePartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MetastorePartition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MetastorePartition.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MetastorePartition.Builder
Overrides

mergeStorageDescriptor(StorageDescriptor value)

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];

Parameter
Name Description
value StorageDescriptor
Returns
Type Description
MetastorePartition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetastorePartition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetastorePartition.Builder
Overrides

putAllParameters(Map<String,String> values)

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];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
MetastorePartition.Builder

putParameters(String key, String value)

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];

Parameters
Name Description
key String
value String
Returns
Type Description
MetastorePartition.Builder

removeFields(int index)

public MetastorePartition.Builder removeFields(int index)

Optional. List of columns.

repeated .google.cloud.bigquery.storage.v1alpha.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MetastorePartition.Builder

removeParameters(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
MetastorePartition.Builder

setCreateTime(Timestamp value)

public MetastorePartition.Builder setCreateTime(Timestamp value)

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MetastorePartition.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MetastorePartition.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the partition.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MetastorePartition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MetastorePartition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MetastorePartition.Builder
Overrides

setFields(int index, FieldSchema value)

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];

Parameters
Name Description
index int
value FieldSchema
Returns
Type Description
MetastorePartition.Builder

setFields(int index, FieldSchema.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue FieldSchema.Builder
Returns
Type Description
MetastorePartition.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MetastorePartition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MetastorePartition.Builder
Overrides

setStorageDescriptor(StorageDescriptor value)

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];

Parameter
Name Description
value StorageDescriptor
Returns
Type Description
MetastorePartition.Builder

setStorageDescriptor(StorageDescriptor.Builder builderForValue)

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];

Parameter
Name Description
builderForValue StorageDescriptor.Builder
Returns
Type Description
MetastorePartition.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MetastorePartition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MetastorePartition.Builder
Overrides

setValues(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The values to set.

Returns
Type Description
MetastorePartition.Builder

This builder for chaining.