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.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — The create time of the entity. This field will not be set after a 'delete'.
#create_time=
def create_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — The create time of the entity. This field will not be set after a 'delete'.
Returns
- (::Google::Protobuf::Timestamp) — The create time of the entity. This field will not be set after a 'delete'.
#key
def key() -> ::Google::Cloud::Datastore::V1::Key
Returns
- (::Google::Cloud::Datastore::V1::Key) — The automatically allocated key. Set only when the mutation allocated a key.
#key=
def key=(value) -> ::Google::Cloud::Datastore::V1::Key
Parameter
- value (::Google::Cloud::Datastore::V1::Key) — The automatically allocated key. Set only when the mutation allocated a key.
Returns
- (::Google::Cloud::Datastore::V1::Key) — The automatically allocated key. Set only when the mutation allocated a key.
#transform_results
def transform_results() -> ::Array<::Google::Cloud::Datastore::V1::Value>
Returns
- (::Array<::Google::Cloud::Datastore::V1::Value>) — The results of applying each PropertyTransform, in the same order of the request.
#transform_results=
def transform_results=(value) -> ::Array<::Google::Cloud::Datastore::V1::Value>
Parameter
- value (::Array<::Google::Cloud::Datastore::V1::Value>) — The results of applying each PropertyTransform, in the same order of the request.
Returns
- (::Array<::Google::Cloud::Datastore::V1::Value>) — The results of applying each PropertyTransform, in the same order of the request.
#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.