Class: Google::Cloud::Datastore::V1::Mutation
- Inherits:
-
Object
- Object
- Google::Cloud::Datastore::V1::Mutation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/datastore/v1/datastore.rb
Overview
A mutation to apply to an entity.
Instance Attribute Summary collapse
-
#base_version ⇒ ::Integer
The version of the entity that this mutation is being applied to.
-
#delete ⇒ ::Google::Cloud::Datastore::V1::Key
The key of the entity to delete.
-
#insert ⇒ ::Google::Cloud::Datastore::V1::Entity
The entity to insert.
-
#update ⇒ ::Google::Cloud::Datastore::V1::Entity
The entity to update.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
The update time of the entity that this mutation is being applied to.
-
#upsert ⇒ ::Google::Cloud::Datastore::V1::Entity
The entity to upsert.
Instance Attribute Details
#base_version ⇒ ::Integer
Returns The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.
366 367 368 369 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 366 class Mutation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#delete ⇒ ::Google::Cloud::Datastore::V1::Key
Returns The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.
366 367 368 369 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 366 class Mutation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#insert ⇒ ::Google::Cloud::Datastore::V1::Entity
Returns The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
366 367 368 369 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 366 class Mutation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update ⇒ ::Google::Cloud::Datastore::V1::Entity
Returns The entity to update. The entity must already exist. Must have a complete key path.
366 367 368 369 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 366 class Mutation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp
Returns The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.
366 367 368 369 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 366 class Mutation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#upsert ⇒ ::Google::Cloud::Datastore::V1::Entity
Returns The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
366 367 368 369 |
# File 'proto_docs/google/datastore/v1/datastore.rb', line 366 class Mutation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |