# Interface AggregationResultBatchOrBuilder (3.1.0)

3.1.0 (latest) 2.40.0 2.37.0 2.36.0 2.34.0 2.33.3 2.32.3 2.31.4 2.30.0 2.29.1 2.28.2 2.27.1 2.26.4 2.25.2 2.24.3 2.23.0 2.22.0 2.21.3 2.20.2 2.19.2 2.18.5 2.17.6

    public interface AggregationResultBatchOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAggregationResults(int index)

    public abstract AggregationResult getAggregationResults(int index)

The aggregation results for this batch.

`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.AggregationResult` |   |

### getAggregationResultsCount()

    public abstract int getAggregationResultsCount()

The aggregation results for this batch.

`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAggregationResultsList()

    public abstract List<AggregationResult> getAggregationResultsList()

The aggregation results for this batch.

`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.AggregationResult>` |   |

### getAggregationResultsOrBuilder(int index)

    public abstract AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)

The aggregation results for this batch.

`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.AggregationResultOrBuilder` |   |

### getAggregationResultsOrBuilderList()

    public abstract List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()

The aggregation results for this batch.

`repeated .google.datastore.v1.AggregationResult aggregation_results = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.datastore.v1.AggregationResultOrBuilder>` |   |

### getMoreResults()

    public abstract QueryResultBatch.MoreResultsType getMoreResults()

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`.

`.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.QueryResultBatch.MoreResultsType` | The moreResults. |

### getMoreResultsValue()

    public abstract int getMoreResultsValue()

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`.

`.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for moreResults. |

### getReadTime()

    public abstract Timestamp getReadTime()

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.

`.google.protobuf.Timestamp read_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The readTime. |

### getReadTimeOrBuilder()

    public abstract TimestampOrBuilder getReadTimeOrBuilder()

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.

`.google.protobuf.Timestamp read_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasReadTime()

    public abstract boolean hasReadTime()

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.

`.google.protobuf.Timestamp read_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the readTime field is set. |