Firestore in Datastore mode V1 API - Class Google::Cloud::Datastore::V1::MutationResult (v0.9.0)

Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::MutationResult.

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

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::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'.

#update_time=

def update_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::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'.
Returns
  • (::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'.

#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.