Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::EntityResult.
The result of fetching an entity from Datastore.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cursor
def cursor() -> ::String
-
(::String) — A cursor that points to the position after the result entity.
Set only when the
EntityResult
is part of aQueryResultBatch
message.
#cursor=
def cursor=(value) -> ::String
-
value (::String) — A cursor that points to the position after the result entity.
Set only when the
EntityResult
is part of aQueryResultBatch
message.
-
(::String) — A cursor that points to the position after the result entity.
Set only when the
EntityResult
is part of aQueryResultBatch
message.
#entity
def entity() -> ::Google::Cloud::Datastore::V1::Entity
- (::Google::Cloud::Datastore::V1::Entity) — The resulting entity.
#entity=
def entity=(value) -> ::Google::Cloud::Datastore::V1::Entity
- value (::Google::Cloud::Datastore::V1::Entity) — The resulting entity.
- (::Google::Cloud::Datastore::V1::Entity) — The resulting entity.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — 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.
#update_time=
def update_time=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — 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.
-
(::Google::Protobuf::Timestamp) — 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.
#version
def version() -> ::Integer
-
(::Integer) — 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.
#version=
def version=(value) -> ::Integer
-
value (::Integer) — 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.
-
(::Integer) — 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.