Class PartitionValues.Builder (0.76.0)

public static final class PartitionValues.Builder extends GeneratedMessage.Builder<PartitionValues.Builder> implements PartitionValuesOrBuilder

Represents the values of a partition.

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

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public PartitionValues.Builder addAllValues(Iterable<String> values)

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
PartitionValues.Builder

This builder for chaining.

addValues(String value)

public PartitionValues.Builder addValues(String value)

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The values to add.

Returns
Type Description
PartitionValues.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public PartitionValues.Builder addValuesBytes(ByteString value)

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
PartitionValues.Builder

This builder for chaining.

build()

public PartitionValues build()
Returns
Type Description
PartitionValues

buildPartial()

public PartitionValues buildPartial()
Returns
Type Description
PartitionValues

clear()

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

clearValues()

public PartitionValues.Builder clearValues()

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PartitionValues.Builder

This builder for chaining.

getDefaultInstanceForType()

public PartitionValues getDefaultInstanceForType()
Returns
Type Description
PartitionValues

getDescriptorForType()

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

getValues(int index)

public String getValues(int index)

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

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. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

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. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

repeated string values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PartitionValues other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setValues(int index, String value)

public PartitionValues.Builder setValues(int index, String value)

Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined.

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
PartitionValues.Builder

This builder for chaining.