Class: Google::Cloud::Datastore::V1::Mutation

Inherits:
Object
  • Object
show all
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

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.

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.



399
400
401
402
# File 'proto_docs/google/datastore/v1/datastore.rb', line 399

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.

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.



399
400
401
402
# File 'proto_docs/google/datastore/v1/datastore.rb', line 399

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.

Returns:



399
400
401
402
# File 'proto_docs/google/datastore/v1/datastore.rb', line 399

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.

Returns:



399
400
401
402
# File 'proto_docs/google/datastore/v1/datastore.rb', line 399

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.

Returns:

  • (::Google::Protobuf::Timestamp)

    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.



399
400
401
402
# File 'proto_docs/google/datastore/v1/datastore.rb', line 399

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.

Returns:



399
400
401
402
# File 'proto_docs/google/datastore/v1/datastore.rb', line 399

class Mutation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end