Class: Google::Cloud::Datastore::V1::Entity
- Inherits:
-
Object
- Object
- Google::Cloud::Datastore::V1::Entity
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/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.
Defined Under Namespace
Classes: PropertiesEntry
Instance Attribute Summary collapse
-
#key ⇒ ::Google::Cloud::Datastore::V1::Key
The entity's key.
-
#properties ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}
The entity's properties.
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.
220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'proto_docs/google/datastore/v1/entity.rb', line 220 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 name must not contain more than 500 characters.
The name cannot be ""
.
220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'proto_docs/google/datastore/v1/entity.rb', line 220 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 |