Class BatchPartition.Builder (6.77.0)

public static final class BatchPartition.Builder extends GeneratedMessageV3.Builder<BatchPartition.Builder> implements BatchPartitionOrBuilder

Identifies a database partition generated for a particular read or query. To read rows from the partition, use ExecutePartitionAction.

Protobuf type google.spanner.executor.v1.BatchPartition

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchPartition build()
Returns
Type Description
BatchPartition

buildPartial()

public BatchPartition buildPartial()
Returns
Type Description
BatchPartition

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIndex()

public BatchPartition.Builder clearIndex()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartition()

public BatchPartition.Builder clearPartition()

Serialized Partition instance.

bytes partition = 1;

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

clearPartitionToken()

public BatchPartition.Builder clearPartitionToken()

The partition token decrypted from partition.

bytes partition_token = 2;

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

clearTable()

public BatchPartition.Builder clearTable()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchPartition getDefaultInstanceForType()
Returns
Type Description
BatchPartition

getDescriptorForType()

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

getIndex()

public String getIndex()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
String

The index.

getIndexBytes()

public ByteString getIndexBytes()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
ByteString

The bytes for index.

getPartition()

public ByteString getPartition()

Serialized Partition instance.

bytes partition = 1;

Returns
Type Description
ByteString

The partition.

getPartitionToken()

public ByteString getPartitionToken()

The partition token decrypted from partition.

bytes partition_token = 2;

Returns
Type Description
ByteString

The partitionToken.

getTable()

public String getTable()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
ByteString

The bytes for table.

hasIndex()

public boolean hasIndex()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
boolean

Whether the index field is set.

hasTable()

public boolean hasTable()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
boolean

Whether the table field is set.

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 BatchPartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(BatchPartition other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndex(String value)

public BatchPartition.Builder setIndex(String value)

Index name if the partition was generated for an index read.

optional string index = 4;

Parameter
Name Description
value String

The index to set.

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

setIndexBytes(ByteString value)

public BatchPartition.Builder setIndexBytes(ByteString value)

Index name if the partition was generated for an index read.

optional string index = 4;

Parameter
Name Description
value ByteString

The bytes for index to set.

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

setPartition(ByteString value)

public BatchPartition.Builder setPartition(ByteString value)

Serialized Partition instance.

bytes partition = 1;

Parameter
Name Description
value ByteString

The partition to set.

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

setPartitionToken(ByteString value)

public BatchPartition.Builder setPartitionToken(ByteString value)

The partition token decrypted from partition.

bytes partition_token = 2;

Parameter
Name Description
value ByteString

The partitionToken to set.

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

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

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

setTable(String value)

public BatchPartition.Builder setTable(String value)

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Parameter
Name Description
value String

The table to set.

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

setTableBytes(ByteString value)

public BatchPartition.Builder setTableBytes(ByteString value)

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
BatchPartition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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