Class: Google::Apis::DatastoreV1beta3::EntityResult
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::EntityResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb
Overview
The result of fetching an entity from Datastore.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The time at which the entity was created.
-
#cursor ⇒ String
A cursor that points to the position after the result entity.
-
#entity ⇒ Google::Apis::DatastoreV1beta3::Entity
A Datastore data object.
-
#update_time ⇒ String
The time at which the entity was last changed.
-
#version ⇒ Fixnum
The version of the entity, a strictly positive number that monotonically increases with changes to the entity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityResult
constructor
A new instance of EntityResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EntityResult
Returns a new instance of EntityResult.
436 437 438 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time at which the entity was created. This field is set for FULL entity
results. If this entity is missing, this field will not be set.
Corresponds to the JSON property createTime
405 406 407 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 405 def create_time @create_time end |
#cursor ⇒ String
A cursor that points to the position after the result entity. Set only when
the EntityResult is part of a QueryResultBatch message.
Corresponds to the JSON property cursor
NOTE: Values are automatically base64 encoded/decoded in the client library.
412 413 414 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 412 def cursor @cursor end |
#entity ⇒ Google::Apis::DatastoreV1beta3::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.
Corresponds to the JSON property entity
419 420 421 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 419 def entity @entity end |
#update_time ⇒ String
The time at which the entity was last changed. This field is set for FULL
entity results. If this entity is missing, this field will not be set.
Corresponds to the JSON property updateTime
425 426 427 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 425 def update_time @update_time end |
#version ⇒ Fixnum
The version of the entity, a strictly positive number that monotonically
increases with changes to the entity. This field is set for FULL entity
results. For missing entities in LookupResponse, this is the version of the
snapshot that was used to look up the entity, and it is always set except for
eventually consistent reads.
Corresponds to the JSON property version
434 435 436 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 434 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
441 442 443 444 445 446 447 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 441 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @cursor = args[:cursor] if args.key?(:cursor) @entity = args[:entity] if args.key?(:entity) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) end |