Class: Google::Datastore::V1::Entity

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

Instance Attribute Details

#keyGoogle::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.

Returns:

  • (Google::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.



184
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb', line 184

class Entity; end

#propertiesHash{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 +""+.

Returns:

  • (Hash{String => Google::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 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