Class: Google::Datastore::V1::Entity
- Inherits:
-
Object
- Object
- Google::Datastore::V1::Entity
- Defined in:
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb
Overview
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.
Instance Attribute Summary collapse
-
#key ⇒ Google::Datastore::V1::Key
The entity's key.
-
#properties ⇒ Hash{String => Google::Datastore::V1::Value}
The entity's properties.
Instance Attribute Details
#key ⇒ Google::Datastore::V1::Key
Returns 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.
184 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 184 class Entity; end |
#properties ⇒ Hash{String => Google::Datastore::V1::Value}
Returns 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 name must not contain more than 500 characters. The name cannot be +""+.
184 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 184 class Entity; end |