Reference documentation and code samples for the Cloud Datastore V1 Client class EntityResult.
The result of fetching an entity from Datastore.
Generated from protobuf message google.datastore.v1.EntityResult
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ entity
↳ version
int|string
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.
↳ update_time
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.
↳ cursor
string
A cursor that points to the position after the result entity. Set only when the EntityResult
is part of a QueryResultBatch
message.
getEntity
The resulting entity.
hasEntity
clearEntity
setEntity
The resulting entity.
$this
getVersion
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.
int|string
setVersion
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.
var
int|string
$this
getUpdateTime
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.
hasUpdateTime
clearUpdateTime
setUpdateTime
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.
$this
getCursor
A cursor that points to the position after the result entity.
Set only when the EntityResult
is part of a QueryResultBatch
message.
string
setCursor
A cursor that points to the position after the result entity.
Set only when the EntityResult
is part of a QueryResultBatch
message.
var
string
$this