Firestore in Datastore mode V1 API - Class Google::Cloud::Datastore::V1::EntityResult (v0.8.0)

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
Returns
  • (::String) — A cursor that points to the position after the result entity. Set only when the EntityResult is part of a QueryResultBatch message.

#cursor=

def cursor=(value) -> ::String
Parameter
  • value (::String) — A cursor that points to the position after the result entity. Set only when the EntityResult is part of a QueryResultBatch message.
Returns
  • (::String) — A cursor that points to the position after the result entity. Set only when the EntityResult is part of a QueryResultBatch message.

#entity

def entity() -> ::Google::Cloud::Datastore::V1::Entity
Returns

#entity=

def entity=(value) -> ::Google::Cloud::Datastore::V1::Entity
Parameter
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

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