Class PartitionResponse.Builder (6.56.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.v1.Partition>
Returns
TypeDescription
PartitionResponse.Builder

addPartitions(Partition value)

public PartitionResponse.Builder addPartitions(Partition value)

Partitions created by this request.

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

Parameter
NameDescription
valuePartition
Returns
TypeDescription
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
NameDescription
builderForValuePartition.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePartition
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePartition.Builder
Returns
TypeDescription
PartitionResponse.Builder

addPartitionsBuilder()

public Partition.Builder addPartitionsBuilder()

Partitions created by this request.

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

Returns
TypeDescription
Partition.Builder

addPartitionsBuilder(int index)

public Partition.Builder addPartitionsBuilder(int index)

Partitions created by this request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Partition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PartitionResponse build()
Returns
TypeDescription
PartitionResponse

buildPartial()

public PartitionResponse buildPartial()
Returns
TypeDescription
PartitionResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitions()

public PartitionResponse.Builder clearPartitions()

Partitions created by this request.

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

Returns
TypeDescription
PartitionResponse.Builder

clearTransaction()

public PartitionResponse.Builder clearTransaction()

Transaction created by this request.

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

Returns
TypeDescription
PartitionResponse.Builder

clone()

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

getDefaultInstanceForType()

public PartitionResponse getDefaultInstanceForType()
Returns
TypeDescription
PartitionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPartitions(int index)

public Partition getPartitions(int index)

Partitions created by this request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Partition

getPartitionsBuilder(int index)

public Partition.Builder getPartitionsBuilder(int index)

Partitions created by this request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Partition.Builder

getPartitionsBuilderList()

public List<Partition.Builder> getPartitionsBuilderList()

Partitions created by this request.

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

Returns
TypeDescription
List<Builder>

getPartitionsCount()

public int getPartitionsCount()

Partitions created by this request.

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

Returns
TypeDescription
int

getPartitionsList()

public List<Partition> getPartitionsList()

Partitions created by this request.

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

Returns
TypeDescription
List<Partition>

getPartitionsOrBuilder(int index)

public PartitionOrBuilder getPartitionsOrBuilder(int index)

Partitions created by this request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PartitionOrBuilder

getPartitionsOrBuilderList()

public List<? extends PartitionOrBuilder> getPartitionsOrBuilderList()

Partitions created by this request.

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

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

getTransaction()

public Transaction getTransaction()

Transaction created by this request.

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

Returns
TypeDescription
Transaction

The transaction.

getTransactionBuilder()

public Transaction.Builder getTransactionBuilder()

Transaction created by this request.

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

Returns
TypeDescription
Transaction.Builder

getTransactionOrBuilder()

public TransactionOrBuilder getTransactionOrBuilder()

Transaction created by this request.

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

Returns
TypeDescription
TransactionOrBuilder

hasTransaction()

public boolean hasTransaction()

Transaction created by this request.

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

Returns
TypeDescription
boolean

Whether the transaction 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 PartitionResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(PartitionResponse other)

public PartitionResponse.Builder mergeFrom(PartitionResponse other)
Parameter
NameDescription
otherPartitionResponse
Returns
TypeDescription
PartitionResponse.Builder

mergeTransaction(Transaction value)

public PartitionResponse.Builder mergeTransaction(Transaction value)

Transaction created by this request.

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

Parameter
NameDescription
valueTransaction
Returns
TypeDescription
PartitionResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartitionResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PartitionResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public PartitionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PartitionResponse.Builder
Overrides

setTransaction(Transaction value)

public PartitionResponse.Builder setTransaction(Transaction value)

Transaction created by this request.

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

Parameter
NameDescription
valueTransaction
Returns
TypeDescription
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
NameDescription
builderForValueTransaction.Builder
Returns
TypeDescription
PartitionResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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