public interface EntityResultOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCursor()
public abstract ByteString getCursor()
A cursor that points to the position after the result entity.
Set only when the EntityResult
is part of a QueryResultBatch
message.
bytes cursor = 3;
Type | Description |
ByteString | The cursor. |
getEntity()
public abstract Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
Entity | The entity. |
getEntityOrBuilder()
public abstract EntityOrBuilder getEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
EntityOrBuilder |
getVersion()
public abstract long 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.
int64 version = 4;
Type | Description |
long | The version. |
hasEntity()
public abstract boolean hasEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Type | Description |
boolean | Whether the entity field is set. |