Class PartitionResponse.Builder (6.72.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
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()