Class Google::Cloud::Datastore::V1::EntityResult (v0.3.5)

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

#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.