Reference documentation and code samples for the Cloud Datastore V1 Client class CommitResponse.
The response for Datastore.Commit.
Generated from protobuf message google.datastore.v1.CommitResponse
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ mutation_results |
array<Google\Cloud\Datastore\V1\MutationResult>
The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request. |
↳ index_updates |
int
The number of index entries updated during the commit, or zero if none were updated. |
↳ commit_time |
Google\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.
Generated from protobuf field repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns | |
---|---|
Type | Description |
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.
Generated from protobuf field repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Datastore\V1\MutationResult>
|
Returns | |
---|---|
Type | Description |
$this |
getIndexUpdates
The number of index entries updated during the commit, or zero if none were updated.
Generated from protobuf field int32 index_updates = 4;
Returns | |
---|---|
Type | Description |
int |
setIndexUpdates
The number of index entries updated during the commit, or zero if none were updated.
Generated from protobuf field int32 index_updates = 4;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getCommitTime
The transaction commit timestamp. Not set for non-transactional commits.
Generated from protobuf field .google.protobuf.Timestamp commit_time = 8;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCommitTime
clearCommitTime
setCommitTime
The transaction commit timestamp. Not set for non-transactional commits.
Generated from protobuf field .google.protobuf.Timestamp commit_time = 8;
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |