Class: Google::Cloud::Datastore::V1::MutationResult
- Inherits:
-
Object
- Object
- Google::Cloud::Datastore::V1::MutationResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/datastore/v1/datastore.rb
Overview
The result of applying a mutation.
Instance Attribute Summary collapse
-
#conflict_detected ⇒ ::Boolean
Whether a conflict was detected for this mutation.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
The create time of the entity.
-
#key ⇒ ::Google::Cloud::Datastore::V1::Key
The automatically allocated key.
-
#transform_results ⇒ ::Array<::Google::Cloud::Datastore::V1::Value>
The results of applying each PropertyTransform, in the same order of the request.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
The update time of the entity on the server after processing the mutation.
-
#version ⇒ ::Integer
The version of the entity on the server after processing the mutation.
Instance Attribute Details
#conflict_detected ⇒ ::Boolean
Returns Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
599 600 601 602 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 599 class MutationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#create_time ⇒ ::Google::Protobuf::Timestamp
Returns The create time of the entity. This field will not be set after a 'delete'.
599 600 601 602 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 599 class MutationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#key ⇒ ::Google::Cloud::Datastore::V1::Key
Returns The automatically allocated key. Set only when the mutation allocated a key.
599 600 601 602 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 599 class MutationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#transform_results ⇒ ::Array<::Google::Cloud::Datastore::V1::Value>
Returns The results of applying each PropertyTransform, in the same order of the request.
599 600 601 602 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 599 class MutationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp
Returns 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'.
599 600 601 602 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 599 class MutationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods 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.
599 600 601 602 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 599 class MutationResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |