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 \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ indexes
int[]
The mutation groups applied in this batch. The values index into the mutation_groups
field in the corresponding BatchWriteRequest
.
↳ status
↳ commit_timestamp
Google\Protobuf\Timestamp
The commit timestamp of the transaction that applied this batch. Present if status is OK and the mutation groups were applied, absent otherwise. For mutation groups with conditions, a status=OK and missing commit_timestamp means that the mutation groups were not applied due to the condition not being satisfied after evaluation.
getIndexes
The mutation groups applied in this batch. The values index into the mutation_groups
field in the corresponding BatchWriteRequest
.
setIndexes
The mutation groups applied in this batch. The values index into the mutation_groups
field in the corresponding BatchWriteRequest
.
var
int[]
$this
getStatus
An OK
status indicates success. Any other status indicates a failure.
hasStatus
clearStatus
setStatus
An OK
status indicates success. Any other status indicates a failure.
$this
getCommitTimestamp
The commit timestamp of the transaction that applied this batch.
Present if status is OK and the mutation groups were applied, absent otherwise. For mutation groups with conditions, a status=OK and missing commit_timestamp means that the mutation groups were not applied due to the condition not being satisfied after evaluation.
hasCommitTimestamp
clearCommitTimestamp
setCommitTimestamp
The commit timestamp of the transaction that applied this batch.
Present if status is OK and the mutation groups were applied, absent otherwise. For mutation groups with conditions, a status=OK and missing commit_timestamp means that the mutation groups were not applied due to the condition not being satisfied after evaluation.
$this

