Cloud Firestore V1 Client - Class BatchWriteResponse (1.34.0)

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

The response from Firestore.BatchWrite.

Generated from protobuf message google.firestore.v1.BatchWriteResponse

Namespace

Google \ Cloud \ Firestore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ write_results array<Google\Cloud\Firestore\V1\WriteResult>

The result of applying the writes. This i-th write result corresponds to the i-th write in the request.

↳ status array<Google\Rpc\Status>

The status of applying the writes. This i-th write status corresponds to the i-th write in the request.

getWriteResults

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setWriteResults

The result of applying the writes.

This i-th write result corresponds to the i-th write in the request.

Parameter
NameDescription
var array<Google\Cloud\Firestore\V1\WriteResult>
Returns
TypeDescription
$this

getStatus

The status of applying the writes.

This i-th write status corresponds to the i-th write in the request.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStatus

The status of applying the writes.

This i-th write status corresponds to the i-th write in the request.

Parameter
NameDescription
var array<Google\Rpc\Status>
Returns
TypeDescription
$this