public interface EntityResultOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
ByteString |
getCursor()
A cursor that points to the position after the result entity.
|
Entity |
getEntity()
The resulting entity.
|
EntityOrBuilder |
getEntityOrBuilder()
The resulting entity.
|
long |
getVersion()
The version of the entity, a strictly positive number that monotonically
increases with changes to the entity.
|
boolean |
hasEntity()
The resulting entity.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
boolean hasEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
Entity getEntity()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
EntityOrBuilder getEntityOrBuilder()
The resulting entity.
.google.datastore.v1.Entity entity = 1;
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`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. For [missing][google.datastore.v1.LookupResponse.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;
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;