Class Google::Cloud::Datastore::V1::MutationResult (v0.3.5)

The result of applying a mutation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#conflict_detected

def conflict_detected() -> ::Boolean
Returns
  • (::Boolean) — Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.

#conflict_detected=

def conflict_detected=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
Returns
  • (::Boolean) — Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.

#key

def key() -> ::Google::Cloud::Datastore::V1::Key
Returns

#key=

def key=(value) -> ::Google::Cloud::Datastore::V1::Key
Parameter
Returns

#version

def version() -> ::Integer
Returns
  • (::Integer) — 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.

#version=

def version=(value) -> ::Integer
Parameter
  • value (::Integer) — 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.
Returns
  • (::Integer) — 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.