Cloud Spanner V1 Client - Class BatchWriteResponse (1.66.0)

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

The result of applying a batch of mutations.

Generated from protobuf message google.spanner.v1.BatchWriteResponse

Namespace

Google \ Cloud \ Spanner \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ indexes array

The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

↳ status Google\Rpc\Status

An OK status indicates success. Any other status indicates a failure.

↳ commit_timestamp Google\Protobuf\Timestamp

The commit timestamp of the transaction that applied this batch. Present if status is OK, absent otherwise.

getIndexes

The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIndexes

The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getStatus

An OK status indicates success. Any other status indicates a failure.

Returns
TypeDescription
Google\Rpc\Status|null

hasStatus

clearStatus

setStatus

An OK status indicates success. Any other status indicates a failure.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getCommitTimestamp

The commit timestamp of the transaction that applied this batch.

Present if status is OK, absent otherwise.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCommitTimestamp

clearCommitTimestamp

setCommitTimestamp

The commit timestamp of the transaction that applied this batch.

Present if status is OK, absent otherwise.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this