A mutation to apply to an entity.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#base_version
def base_version() -> ::Integer
Returns
- (::Integer) — 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.
#base_version=
def base_version=(value) -> ::Integer
Parameter
- value (::Integer) — 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.
Returns
- (::Integer) — 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.
#delete
def delete() -> ::Google::Cloud::Datastore::V1::Key
Returns
- (::Google::Cloud::Datastore::V1::Key) — 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.
#delete=
def delete=(value) -> ::Google::Cloud::Datastore::V1::Key
Parameter
- value (::Google::Cloud::Datastore::V1::Key) — 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.
Returns
- (::Google::Cloud::Datastore::V1::Key) — 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.
#insert
def insert() -> ::Google::Cloud::Datastore::V1::Entity
Returns
- (::Google::Cloud::Datastore::V1::Entity) — The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
#insert=
def insert=(value) -> ::Google::Cloud::Datastore::V1::Entity
Parameter
- value (::Google::Cloud::Datastore::V1::Entity) — The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
Returns
- (::Google::Cloud::Datastore::V1::Entity) — The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
#update
def update() -> ::Google::Cloud::Datastore::V1::Entity
Returns
- (::Google::Cloud::Datastore::V1::Entity) — The entity to update. The entity must already exist. Must have a complete key path.
#update=
def update=(value) -> ::Google::Cloud::Datastore::V1::Entity
Parameter
- value (::Google::Cloud::Datastore::V1::Entity) — The entity to update. The entity must already exist. Must have a complete key path.
Returns
- (::Google::Cloud::Datastore::V1::Entity) — The entity to update. The entity must already exist. Must have a complete key path.
#upsert
def upsert() -> ::Google::Cloud::Datastore::V1::Entity
Returns
- (::Google::Cloud::Datastore::V1::Entity) — The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
#upsert=
def upsert=(value) -> ::Google::Cloud::Datastore::V1::Entity
Parameter
- value (::Google::Cloud::Datastore::V1::Entity) — The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
Returns
- (::Google::Cloud::Datastore::V1::Entity) — The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.