Class PartitionResponse.Builder (6.74.1)

public static final class PartitionResponse.Builder extends GeneratedMessageV3.Builder<PartitionResponse.Builder> implements PartitionResponseOrBuilder

The response for PartitionQuery or PartitionRead

Protobuf type google.spanner.v1.PartitionResponse

Static Methods

getDescriptor()

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

Methods

addAllPartitions(Iterable<? extends Partition> values)

public PartitionResponse.Builder addAllPartitions(Iterable<? extends Partition> values)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.Partition>
Returns
Type Description
PartitionResponse.Builder

addPartitions(Partition value)

public PartitionResponse.Builder addPartitions(Partition value)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
value Partition
Returns
Type Description
PartitionResponse.Builder

addPartitions(Partition.Builder builderForValue)

public PartitionResponse.Builder addPartitions(Partition.Builder builderForValue)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
builderForValue Partition.Builder
Returns
Type Description
PartitionResponse.Builder

addPartitions(int index, Partition value)

public PartitionResponse.Builder addPartitions(int index, Partition value)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameters
Name Description
index int
value Partition
Returns
Type Description
PartitionResponse.Builder

addPartitions(int index, Partition.Builder builderForValue)

public PartitionResponse.Builder addPartitions(int index, Partition.Builder builderForValue)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameters
Name Description
index int
builderForValue Partition.Builder
Returns
Type Description
PartitionResponse.Builder

addPartitionsBuilder()

public Partition.Builder addPartitionsBuilder()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
Partition.Builder

addPartitionsBuilder(int index)

public Partition.Builder addPartitionsBuilder(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
Partition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PartitionResponse build()
Returns
Type Description
PartitionResponse

buildPartial()

public PartitionResponse buildPartial()
Returns
Type Description
PartitionResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitions()

public PartitionResponse.Builder clearPartitions()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
PartitionResponse.Builder

clearTransaction()

public PartitionResponse.Builder clearTransaction()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
PartitionResponse.Builder

clone()

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

getDefaultInstanceForType()

public PartitionResponse getDefaultInstanceForType()
Returns
Type Description
PartitionResponse

getDescriptorForType()

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

getPartitions(int index)

public Partition getPartitions(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
Partition

getPartitionsBuilder(int index)

public Partition.Builder getPartitionsBuilder(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
Partition.Builder

getPartitionsBuilderList()

public List<Partition.Builder> getPartitionsBuilderList()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
List<Builder>

getPartitionsCount()

public int getPartitionsCount()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
int

getPartitionsList()

public List<Partition> getPartitionsList()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
List<Partition>

getPartitionsOrBuilder(int index)

public PartitionOrBuilder getPartitionsOrBuilder(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionOrBuilder

getPartitionsOrBuilderList()

public List<? extends PartitionOrBuilder> getPartitionsOrBuilderList()

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Returns
Type Description
List<? extends com.google.spanner.v1.PartitionOrBuilder>

getTransaction()

public Transaction getTransaction()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
Transaction

The transaction.

getTransactionBuilder()

public Transaction.Builder getTransactionBuilder()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
Transaction.Builder

getTransactionOrBuilder()

public TransactionOrBuilder getTransactionOrBuilder()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
TransactionOrBuilder

hasTransaction()

public boolean hasTransaction()

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
boolean

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

mergeFrom(Message other)

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

mergeFrom(PartitionResponse other)

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

mergeTransaction(Transaction value)

public PartitionResponse.Builder mergeTransaction(Transaction value)

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Parameter
Name Description
value Transaction
Returns
Type Description
PartitionResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePartitions(int index)

public PartitionResponse.Builder removePartitions(int index)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPartitions(int index, Partition value)

public PartitionResponse.Builder setPartitions(int index, Partition value)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameters
Name Description
index int
value Partition
Returns
Type Description
PartitionResponse.Builder

setPartitions(int index, Partition.Builder builderForValue)

public PartitionResponse.Builder setPartitions(int index, Partition.Builder builderForValue)

Partitions created by this request.

repeated .google.spanner.v1.Partition partitions = 1;

Parameters
Name Description
index int
builderForValue Partition.Builder
Returns
Type Description
PartitionResponse.Builder

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

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

setTransaction(Transaction value)

public PartitionResponse.Builder setTransaction(Transaction value)

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Parameter
Name Description
value Transaction
Returns
Type Description
PartitionResponse.Builder

setTransaction(Transaction.Builder builderForValue)

public PartitionResponse.Builder setTransaction(Transaction.Builder builderForValue)

Transaction created by this request.

.google.spanner.v1.Transaction transaction = 2;

Parameter
Name Description
builderForValue Transaction.Builder
Returns
Type Description
PartitionResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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