Cloud Spanner V1 Client - Class PartitionResponse (1.54.2)

Reference documentation and code samples for the Cloud Spanner V1 Client class PartitionResponse.

The response for PartitionQuery or PartitionRead

Generated from protobuf message google.spanner.v1.PartitionResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ partitions array<Google\Cloud\Spanner\V1\Partition>

Partitions created by this request.

↳ transaction Google\Cloud\Spanner\V1\Transaction

Transaction created by this request.

getPartitions

Partitions created by this request.

Generated from protobuf field repeated .google.spanner.v1.Partition partitions = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPartitions

Partitions created by this request.

Generated from protobuf field repeated .google.spanner.v1.Partition partitions = 1;

Parameter
NameDescription
var array<Google\Cloud\Spanner\V1\Partition>
Returns
TypeDescription
$this

getTransaction

Transaction created by this request.

Generated from protobuf field .google.spanner.v1.Transaction transaction = 2;

Returns
TypeDescription
Google\Cloud\Spanner\V1\Transaction|null

hasTransaction

clearTransaction

setTransaction

Transaction created by this request.

Generated from protobuf field .google.spanner.v1.Transaction transaction = 2;

Parameter
NameDescription
var Google\Cloud\Spanner\V1\Transaction
Returns
TypeDescription
$this