Class: Google::Datastore::V1::MutationResult
- Inherits:
-
Object
- Object
- Google::Datastore::V1::MutationResult
- Defined in:
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb
Overview
The result of applying a mutation.
Instance Attribute Summary collapse
-
#conflict_detected ⇒ true, false
Whether a conflict was detected for this mutation.
-
#key ⇒ Google::Datastore::V1::Key
The automatically allocated key.
-
#version ⇒ Integer
The version of the entity on the server after processing the mutation.
Instance Attribute Details
#conflict_detected ⇒ true, false
Returns Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
213 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 213 class MutationResult; end |
#key ⇒ Google::Datastore::V1::Key
Returns The automatically allocated key. Set only when the mutation allocated a key.
213 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 213 class MutationResult; end |
#version ⇒ Integer
Returns 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.
213 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 213 class MutationResult; end |