Class BatchPartition.Builder (6.62.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchPartition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchPartition.Builder
Overrides

build()

public BatchPartition build()
Returns
TypeDescription
BatchPartition

buildPartial()

public BatchPartition buildPartial()
Returns
TypeDescription
BatchPartition

clear()

public BatchPartition.Builder clear()
Returns
TypeDescription
BatchPartition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchPartition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchPartition.Builder
Overrides

clearIndex()

public BatchPartition.Builder clearIndex()

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

optional string index = 4;

Returns
TypeDescription
BatchPartition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchPartition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchPartition.Builder
Overrides

clearPartition()

public BatchPartition.Builder clearPartition()

Serialized Partition instance.

bytes partition = 1;

Returns
TypeDescription
BatchPartition.Builder

This builder for chaining.

clearPartitionToken()

public BatchPartition.Builder clearPartitionToken()

The partition token decrypted from partition.

bytes partition_token = 2;

Returns
TypeDescription
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
TypeDescription
BatchPartition.Builder

This builder for chaining.

clone()

public BatchPartition.Builder clone()
Returns
TypeDescription
BatchPartition.Builder
Overrides

getDefaultInstanceForType()

public BatchPartition getDefaultInstanceForType()
Returns
TypeDescription
BatchPartition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

public String getIndex()

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

optional string index = 4;

Returns
TypeDescription
String

The index.

getIndexBytes()

public ByteString getIndexBytes()

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

optional string index = 4;

Returns
TypeDescription
ByteString

The bytes for index.

getPartition()

public ByteString getPartition()

Serialized Partition instance.

bytes partition = 1;

Returns
TypeDescription
ByteString

The partition.

getPartitionToken()

public ByteString getPartitionToken()

The partition token decrypted from partition.

bytes partition_token = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the table field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchPartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchPartition.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchPartition.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchPartition.Builder
Overrides

mergeFrom(BatchPartition other)

public BatchPartition.Builder mergeFrom(BatchPartition other)
Parameter
NameDescription
otherBatchPartition
Returns
TypeDescription
BatchPartition.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchPartition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchPartition.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BatchPartition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The index to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for index to set.

Returns
TypeDescription
BatchPartition.Builder

This builder for chaining.

setPartition(ByteString value)

public BatchPartition.Builder setPartition(ByteString value)

Serialized Partition instance.

bytes partition = 1;

Parameter
NameDescription
valueByteString

The partition to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The partitionToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The table to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for table to set.

Returns
TypeDescription
BatchPartition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchPartition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchPartition.Builder
Overrides