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

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/datastore/v1/entity.rb

Overview

A Datastore data object.

Must not exceed 1 MiB - 4 bytes.

Defined Under Namespace

Classes: PropertiesEntry

Instance Attribute Summary collapse

Instance Attribute Details

#key::Google::Cloud::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::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.



219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'proto_docs/google/datastore/v1/entity.rb', line 219

class Entity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Datastore::V1::Value]
  class PropertiesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#properties::Google::Protobuf::Map{::String => ::Google::Cloud::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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

Returns:

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



219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'proto_docs/google/datastore/v1/entity.rb', line 219

class Entity
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Datastore::V1::Value]
  class PropertiesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end