Cloud Datastore V1 Client - Class CommitResponse (2.0.3)

Namespace

Google \ Cloud \ Datastore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ mutation_resultsarray<MutationResult>

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

↳ index_updatesint

The number of index entries updated during the commit, or zero if none were updated.

↳ commit_timeGoogle\Protobuf\Timestamp

The transaction commit timestamp. Not set for non-transactional commits.

getMutationResults

The result of performing the mutations.

The i-th mutation result corresponds to the i-th mutation in the request.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMutationResults

The result of performing the mutations.

The i-th mutation result corresponds to the i-th mutation in the request.

Parameter
NameDescription
vararray<MutationResult>
Returns
TypeDescription
$this

getIndexUpdates

The number of index entries updated during the commit, or zero if none wereupdated.

Returns
TypeDescription
int

setIndexUpdates

The number of index entries updated during the commit, or zero if none wereupdated.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getCommitTime

The transaction commit timestamp. Not set for non-transactional commits.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCommitTime

clearCommitTime

setCommitTime

The transaction commit timestamp. Not set for non-transactional commits.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.