The enum numeric value on the wire for moreResults.
getReadTime()
publicabstractTimestampgetReadTime()
Read timestamp this batch was returned from.
This applies to the range of results from the query's start_cursor (or
the beginning of the query if no cursor was given) to this batch's
end_cursor (not the query's end_cursor).
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
This value will not be set for eventually consistent queries in Cloud
Datastore.
Read timestamp this batch was returned from.
This applies to the range of results from the query's start_cursor (or
the beginning of the query if no cursor was given) to this batch's
end_cursor (not the query's end_cursor).
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
This value will not be set for eventually consistent queries in Cloud
Datastore.
The version number of the snapshot this batch was returned from.
This applies to the range of results from the query's start_cursor (or
the beginning of the query if no cursor was given) to this batch's
end_cursor (not the query's end_cursor).
In a single transaction, subsequent query result batches for the same query
can have a greater snapshot version number. Each batch's snapshot version
is valid for all preceding batches.
The value will be zero for eventually consistent queries.
Read timestamp this batch was returned from.
This applies to the range of results from the query's start_cursor (or
the beginning of the query if no cursor was given) to this batch's
end_cursor (not the query's end_cursor).
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
This value will not be set for eventually consistent queries in Cloud
Datastore.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface QueryResultBatchOrBuilder (2.31.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.2 (latest)](/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.QueryResultBatchOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.QueryResultBatchOrBuilder) \n\n public interface QueryResultBatchOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getEndCursor()\n\n public abstract ByteString getEndCursor()\n\nA cursor that points to the position after the last result in the batch.\n\n`bytes end_cursor = 4;`\n\n### getEntityResultType()\n\n public abstract EntityResult.ResultType getEntityResultType()\n\nThe result type for every entity in `entity_results`.\n\n`.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;`\n\n### getEntityResultTypeValue()\n\n public abstract int getEntityResultTypeValue()\n\nThe result type for every entity in `entity_results`.\n\n`.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;`\n\n### getEntityResults(int index)\n\n public abstract EntityResult getEntityResults(int index)\n\nThe results for this batch.\n\n`repeated .google.datastore.v1.EntityResult entity_results = 2;`\n\n### getEntityResultsCount()\n\n public abstract int getEntityResultsCount()\n\nThe results for this batch.\n\n`repeated .google.datastore.v1.EntityResult entity_results = 2;`\n\n### getEntityResultsList()\n\n public abstract List\u003cEntityResult\u003e getEntityResultsList()\n\nThe results for this batch.\n\n`repeated .google.datastore.v1.EntityResult entity_results = 2;`\n\n### getEntityResultsOrBuilder(int index)\n\n public abstract EntityResultOrBuilder getEntityResultsOrBuilder(int index)\n\nThe results for this batch.\n\n`repeated .google.datastore.v1.EntityResult entity_results = 2;`\n\n### getEntityResultsOrBuilderList()\n\n public abstract List\u003c? extends EntityResultOrBuilder\u003e getEntityResultsOrBuilderList()\n\nThe results for this batch.\n\n`repeated .google.datastore.v1.EntityResult entity_results = 2;`\n\n### getMoreResults()\n\n public abstract QueryResultBatch.MoreResultsType getMoreResults()\n\nThe state of the query after the current batch.\n\n`.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;`\n\n### getMoreResultsValue()\n\n public abstract int getMoreResultsValue()\n\nThe state of the query after the current batch.\n\n`.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5;`\n\n### getReadTime()\n\n public abstract Timestamp getReadTime()\n\nRead timestamp this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater timestamp. Each batch's read timestamp\nis valid for all preceding batches.\nThis value will not be set for eventually consistent queries in Cloud\nDatastore.\n\n`.google.protobuf.Timestamp read_time = 8;`\n\n### getReadTimeOrBuilder()\n\n public abstract TimestampOrBuilder getReadTimeOrBuilder()\n\nRead timestamp this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater timestamp. Each batch's read timestamp\nis valid for all preceding batches.\nThis value will not be set for eventually consistent queries in Cloud\nDatastore.\n\n`.google.protobuf.Timestamp read_time = 8;`\n\n### getSkippedCursor()\n\n public abstract ByteString getSkippedCursor()\n\nA cursor that points to the position after the last skipped result.\nWill be set when `skipped_results` != 0.\n\n`bytes skipped_cursor = 3;`\n\n### getSkippedResults()\n\n public abstract int getSkippedResults()\n\nThe number of results skipped, typically because of an offset.\n\n`int32 skipped_results = 6;`\n\n### getSnapshotVersion()\n\n public abstract long getSnapshotVersion()\n\nThe version number of the snapshot this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater snapshot version number. Each batch's snapshot version\nis valid for all preceding batches.\nThe value will be zero for eventually consistent queries.\n\n`int64 snapshot_version = 7;`\n\n### hasReadTime()\n\n public abstract boolean hasReadTime()\n\nRead timestamp this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater timestamp. Each batch's read timestamp\nis valid for all preceding batches.\nThis value will not be set for eventually consistent queries in Cloud\nDatastore.\n\n`.google.protobuf.Timestamp read_time = 8;`"]]