Class ChildPartitionsRecord.ChildPartition.Builder (6.79.0)

public static final class ChildPartitionsRecord.ChildPartition.Builder extends GeneratedMessageV3.Builder<ChildPartitionsRecord.ChildPartition.Builder> implements ChildPartitionsRecord.ChildPartitionOrBuilder

A single child partition.

Protobuf type google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition

Static Methods

getDescriptor()

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

Methods

addAllParentPartitionTokens(Iterable<String> values)

public ChildPartitionsRecord.ChildPartition.Builder addAllParentPartitionTokens(Iterable<String> values)

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Parameter
Name Description
values Iterable<String>

The parentPartitionTokens to add.

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

addParentPartitionTokens(String value)

public ChildPartitionsRecord.ChildPartition.Builder addParentPartitionTokens(String value)

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Parameter
Name Description
value String

The parentPartitionTokens to add.

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

addParentPartitionTokensBytes(ByteString value)

public ChildPartitionsRecord.ChildPartition.Builder addParentPartitionTokensBytes(ByteString value)

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Parameter
Name Description
value ByteString

The bytes of the parentPartitionTokens to add.

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChildPartitionsRecord.ChildPartition build()
Returns
Type Description
ChildPartitionsRecord.ChildPartition

buildPartial()

public ChildPartitionsRecord.ChildPartition buildPartial()
Returns
Type Description
ChildPartitionsRecord.ChildPartition

clear()

public ChildPartitionsRecord.ChildPartition.Builder clear()
Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParentPartitionTokens()

public ChildPartitionsRecord.ChildPartition.Builder clearParentPartitionTokens()

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

clearToken()

public ChildPartitionsRecord.ChildPartition.Builder clearToken()

Partition token string used to identify the child partition in queries.

string token = 1;

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

clone()

public ChildPartitionsRecord.ChildPartition.Builder clone()
Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder
Overrides

getDefaultInstanceForType()

public ChildPartitionsRecord.ChildPartition getDefaultInstanceForType()
Returns
Type Description
ChildPartitionsRecord.ChildPartition

getDescriptorForType()

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

getParentPartitionTokens(int index)

public String getParentPartitionTokens(int index)

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The parentPartitionTokens at the given index.

getParentPartitionTokensBytes(int index)

public ByteString getParentPartitionTokensBytes(int index)

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the parentPartitionTokens at the given index.

getParentPartitionTokensCount()

public int getParentPartitionTokensCount()

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Returns
Type Description
int

The count of parentPartitionTokens.

getParentPartitionTokensList()

public ProtocolStringList getParentPartitionTokensList()

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Returns
Type Description
ProtocolStringList

A list containing the parentPartitionTokens.

getToken()

public String getToken()

Partition token string used to identify the child partition in queries.

string token = 1;

Returns
Type Description
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

Partition token string used to identify the child partition in queries.

string token = 1;

Returns
Type Description
ByteString

The bytes for token.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ChildPartitionsRecord.ChildPartition other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParentPartitionTokens(int index, String value)

public ChildPartitionsRecord.ChildPartition.Builder setParentPartitionTokens(int index, String value)

Parent partition tokens of this child partition.

repeated string parent_partition_tokens = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The parentPartitionTokens to set.

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

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

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

setToken(String value)

public ChildPartitionsRecord.ChildPartition.Builder setToken(String value)

Partition token string used to identify the child partition in queries.

string token = 1;

Parameter
Name Description
value String

The token to set.

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public ChildPartitionsRecord.ChildPartition.Builder setTokenBytes(ByteString value)

Partition token string used to identify the child partition in queries.

string token = 1;

Parameter
Name Description
value ByteString

The bytes for token to set.

Returns
Type Description
ChildPartitionsRecord.ChildPartition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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