Class Partition.Builder (0.76.0)

public static final class Partition.Builder extends GeneratedMessage.Builder<Partition.Builder> implements PartitionOrBuilder

Information about a Hive partition.

Protobuf type google.cloud.biglake.hive.v1beta.Partition

Implements

PartitionOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllFields(Iterable<? extends FieldSchema> values)

public Partition.Builder addAllFields(Iterable<? extends FieldSchema> values)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.biglake.hive.v1beta.FieldSchema>
Returns
Type Description
Partition.Builder

addAllValues(Iterable<String> values)

public Partition.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
Partition.Builder

This builder for chaining.

addFields(FieldSchema value)

public Partition.Builder addFields(FieldSchema value)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldSchema
Returns
Type Description
Partition.Builder

addFields(FieldSchema.Builder builderForValue)

public Partition.Builder addFields(FieldSchema.Builder builderForValue)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

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

addFields(int index, FieldSchema value)

public Partition.Builder addFields(int index, FieldSchema value)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

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

addFields(int index, FieldSchema.Builder builderForValue)

public Partition.Builder addFields(int index, FieldSchema.Builder builderForValue)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

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

addFieldsBuilder()

public FieldSchema.Builder addFieldsBuilder()

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.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.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FieldSchema.Builder

addValues(String value)

public Partition.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
Partition.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public Partition.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
Partition.Builder

This builder for chaining.

build()

public Partition build()
Returns
Type Description
Partition

buildPartial()

public Partition buildPartial()
Returns
Type Description
Partition

clear()

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

clearCreateTime()

public Partition.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
Partition.Builder

clearFields()

public Partition.Builder clearFields()

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partition.Builder

clearParameters()

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

clearStorageDescriptor()

public Partition.Builder clearStorageDescriptor()

Optional. Contains information about the physical storage of the data in the partition.

.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partition.Builder

clearValues()

public Partition.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
Partition.Builder

This builder for chaining.

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 Partition getDefaultInstanceForType()
Returns
Type Description
Partition

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.biglake.hive.v1beta.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.biglake.hive.v1beta.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.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getFieldsCount()

public int getFieldsCount()

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFieldsList()

public List<FieldSchema> getFieldsList()

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.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.biglake.hive.v1beta.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.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.biglake.hive.v1beta.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.biglake.hive.v1beta.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.biglake.hive.v1beta.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.biglake.hive.v1beta.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.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the storageDescriptor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Partition.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
Partition.Builder

mergeFrom(Partition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStorageDescriptor(StorageDescriptor value)

public Partition.Builder mergeStorageDescriptor(StorageDescriptor value)

Optional. Contains information about the physical storage of the data in the partition.

.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StorageDescriptor
Returns
Type Description
Partition.Builder

putAllParameters(Map<String,String> values)

public Partition.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
Partition.Builder

putParameters(String key, String value)

public Partition.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
Partition.Builder

removeFields(int index)

public Partition.Builder removeFields(int index)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Partition.Builder

removeParameters(String key)

public Partition.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
Partition.Builder

setCreateTime(Timestamp value)

public Partition.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
Partition.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Partition.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
Partition.Builder

setFields(int index, FieldSchema value)

public Partition.Builder setFields(int index, FieldSchema value)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

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

setFields(int index, FieldSchema.Builder builderForValue)

public Partition.Builder setFields(int index, FieldSchema.Builder builderForValue)

Optional. List of columns.

repeated .google.cloud.biglake.hive.v1beta.FieldSchema fields = 5 [(.google.api.field_behavior) = OPTIONAL];

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

setStorageDescriptor(StorageDescriptor value)

public Partition.Builder setStorageDescriptor(StorageDescriptor value)

Optional. Contains information about the physical storage of the data in the partition.

.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StorageDescriptor
Returns
Type Description
Partition.Builder

setStorageDescriptor(StorageDescriptor.Builder builderForValue)

public Partition.Builder setStorageDescriptor(StorageDescriptor.Builder builderForValue)

Optional. Contains information about the physical storage of the data in the partition.

.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setValues(int index, String value)

public Partition.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
Partition.Builder

This builder for chaining.