Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::Entity.
A Datastore data object.
An entity is limited to 1 megabyte when stored. That roughly corresponds to a limit of 1 megabyte for the serialized form of this message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#key
def key() -> ::Google::Cloud::Datastore::V1::Key
-
(::Google::Cloud::Datastore::V1::Key) — The entity's key.
An entity must have a key, unless otherwise documented (for example, an entity in
Value.entity_value
may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
#key=
def key=(value) -> ::Google::Cloud::Datastore::V1::Key
-
value (::Google::Cloud::Datastore::V1::Key) — The entity's key.
An entity must have a key, unless otherwise documented (for example, an entity in
Value.entity_value
may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
-
(::Google::Cloud::Datastore::V1::Key) — The entity's key.
An entity must have a key, unless otherwise documented (for example, an entity in
Value.entity_value
may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
#properties
def properties() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}) — The entity's properties.
The map's keys are property names.
A property name matching regex
__.*__
is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
#properties=
def properties=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}
-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}) — The entity's properties.
The map's keys are property names.
A property name matching regex
__.*__
is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}) — The entity's properties.
The map's keys are property names.
A property name matching regex
__.*__
is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.