Class Partition.Builder (6.69.0)

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

Information returned for each partition returned in a PartitionResponse.

Protobuf type google.spanner.v1.Partition

Implements

PartitionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionToken()

public Partition.Builder clearPartitionToken()

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

bytes partition_token = 1;

Returns
Type Description
Partition.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Partition getDefaultInstanceForType()
Returns
Type Description
Partition

getDescriptorForType()

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

getPartitionToken()

public ByteString getPartitionToken()

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

bytes partition_token = 1;

Returns
Type Description
ByteString

The partitionToken.

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

mergeFrom(Partition other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPartitionToken(ByteString value)

public Partition.Builder setPartitionToken(ByteString value)

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

bytes partition_token = 1;

Parameter
Name Description
value ByteString

The partitionToken to set.

Returns
Type Description
Partition.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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