Reference documentation and code samples for the Cloud Firestore V1 Client class CommitRequest.
The request for Firestore.Commit .
Generated from protobuf message google.firestore.v1.CommitRequest
Namespace
Google \ Cloud \ Firestore \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ database
string
Required. The database name. In the format: projects/{project_id}/databases/{database_id}
.
↳ writes
array< Google\Cloud\Firestore\V1\Write
>
The writes to apply. Always executed atomically and in order.
↳ transaction
string
If set, applies all writes in this transaction, and commits it.
getDatabase
Required. The database name. In the format: projects/{project_id}/databases/{database_id}
.
string
setDatabase
Required. The database name. In the format: projects/{project_id}/databases/{database_id}
.
var
string
$this
getWrites
The writes to apply.
Always executed atomically and in order.
setWrites
The writes to apply.
Always executed atomically and in order.
$this
getTransaction
If set, applies all writes in this transaction, and commits it.
string
setTransaction
If set, applies all writes in this transaction, and commits it.
var
string
$this
static::build
database
string
Required. The database name. In the format: projects/{project_id}/databases/{database_id}
.
writes
array< Google\Cloud\Firestore\V1\Write
>
The writes to apply.
Always executed atomically and in order.