Reference documentation and code samples for the Cloud Datastore V1 Client class MutationResult.
The result of applying a mutation.
Generated from protobuf message google.datastore.v1.MutationResult
Namespace
Google \ Cloud \ Datastore \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ key
↳ version
int|string
The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
↳ create_time
Google\Protobuf\Timestamp
The create time of the entity. This field will not be set after a 'delete'.
↳ update_time
Google\Protobuf\Timestamp
The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
↳ conflict_detected
bool
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
↳ transform_results
getKey
The automatically allocated key.
Set only when the mutation allocated a key.
hasKey
clearKey
setKey
The automatically allocated key.
Set only when the mutation allocated a key.
$this
getVersion
The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int|string
setVersion
The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
var
int|string
$this
getCreateTime
The create time of the entity. This field will not be set after a 'delete'.
hasCreateTime
clearCreateTime
setCreateTime
The create time of the entity. This field will not be set after a 'delete'.
$this
getUpdateTime
The update time of the entity on the server after processing the mutation.
If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
hasUpdateTime
clearUpdateTime
setUpdateTime
The update time of the entity on the server after processing the mutation.
If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
$this
getConflictDetected
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool
setConflictDetected
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
var
bool
$this
getTransformResults
The results of applying each PropertyTransform , in the same order of the request.
setTransformResults
The results of applying each PropertyTransform , in the same order of the request.
$this