The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS.
The state of the query after the current batch.
Only COUNT(*) aggregations are supported in the initial launch. Therefore,
expected result type is limited to NO_MORE_RESULTS.
The enum numeric value on the wire for moreResults.
getReadTime()
publicabstractTimestampgetReadTime()
Read timestamp this batch was returned from.
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.
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.
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.
[[["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 AggregationResultBatchOrBuilder (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.AggregationResultBatchOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.AggregationResultBatchOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.AggregationResultBatchOrBuilder) \n\n public interface AggregationResultBatchOrBuilder 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### getAggregationResults(int index)\n\n public abstract AggregationResult getAggregationResults(int index)\n\nThe aggregation results for this batch.\n\n`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`\n\n### getAggregationResultsCount()\n\n public abstract int getAggregationResultsCount()\n\nThe aggregation results for this batch.\n\n`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`\n\n### getAggregationResultsList()\n\n public abstract List\u003cAggregationResult\u003e getAggregationResultsList()\n\nThe aggregation results for this batch.\n\n`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`\n\n### getAggregationResultsOrBuilder(int index)\n\n public abstract AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)\n\nThe aggregation results for this batch.\n\n`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`\n\n### getAggregationResultsOrBuilderList()\n\n public abstract List\u003c? extends AggregationResultOrBuilder\u003e getAggregationResultsOrBuilderList()\n\nThe aggregation results for this batch.\n\n`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`\n\n### getMoreResults()\n\n public abstract QueryResultBatch.MoreResultsType getMoreResults()\n\nThe state of the query after the current batch.\nOnly COUNT(\\*) aggregations are supported in the initial launch. Therefore,\nexpected result type is limited to `NO_MORE_RESULTS`.\n\n`.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;`\n\n### getMoreResultsValue()\n\n public abstract int getMoreResultsValue()\n\nThe state of the query after the current batch.\nOnly COUNT(\\*) aggregations are supported in the initial launch. Therefore,\nexpected result type is limited to `NO_MORE_RESULTS`.\n\n`.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;`\n\n### getReadTime()\n\n public abstract Timestamp getReadTime()\n\nRead timestamp this batch was returned from.\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.\n\n`.google.protobuf.Timestamp read_time = 3;`\n\n### getReadTimeOrBuilder()\n\n public abstract TimestampOrBuilder getReadTimeOrBuilder()\n\nRead timestamp this batch was returned from.\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.\n\n`.google.protobuf.Timestamp read_time = 3;`\n\n### hasReadTime()\n\n public abstract boolean hasReadTime()\n\nRead timestamp this batch was returned from.\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.\n\n`.google.protobuf.Timestamp read_time = 3;`"]]