# Interface AggregateOrBuilder (0.23.0)

0.23.0 (latest) 0.21.0 0.18.0 0.17.0 0.15.0 0.13.0 0.12.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0

    public interface AggregateOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCount()

    public abstract int getCount()

Required. Number of records in the group.

`int32 count = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getGroup()

    public abstract String getGroup()

Required. Group by which to aggregate.

`string group = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The group. |

### getGroupBytes()

    public abstract ByteString getGroupBytes()

Required. Group by which to aggregate.

`string group = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for group. |