# Interface MaintenanceSummary.StatsOrBuilder (0.27.0)

0.27.0 (latest) 0.25.0 0.22.0 0.21.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.4.0 0.2.0 0.1.0

    public static interface MaintenanceSummary.StatsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAggregates(int index)

    public abstract MaintenanceSummary.Aggregate getAggregates(int index)

Aggregates is a list \<group, count\> pairs. For example, if the
group_by is `"state"` a possible tuple in the aggregates list could be
"SCHEDULED" : `11`,

`
repeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;
`

| **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-maintenance/latest/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate` |   |

### getAggregatesCount()

    public abstract int getAggregatesCount()

Aggregates is a list \<group, count\> pairs. For example, if the
group_by is `"state"` a possible tuple in the aggregates list could be
"SCHEDULED" : `11`,

`
repeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;
`

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

### getAggregatesList()

    public abstract List<MaintenanceSummary.Aggregate> getAggregatesList()

Aggregates is a list \<group, count\> pairs. For example, if the
group_by is `"state"` a possible tuple in the aggregates list could be
"SCHEDULED" : `11`,

`
repeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;
`

| **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-maintenance/latest/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate>` |   |

### getAggregatesOrBuilder(int index)

    public abstract MaintenanceSummary.AggregateOrBuilder getAggregatesOrBuilder(int index)

Aggregates is a list \<group, count\> pairs. For example, if the
group_by is `"state"` a possible tuple in the aggregates list could be
"SCHEDULED" : `11`,

`
repeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;
`

| **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-maintenance/latest/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.AggregateOrBuilder` |   |

### getAggregatesOrBuilderList()

    public abstract List<? extends MaintenanceSummary.AggregateOrBuilder> getAggregatesOrBuilderList()

Aggregates is a list \<group, count\> pairs. For example, if the
group_by is `"state"` a possible tuple in the aggregates list could be
"SCHEDULED" : `11`,

`
repeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.AggregateOrBuilder>` |   |

### getGroupBy()

    public abstract String getGroupBy()

groupBy specifies the type of aggregate.
For example a group_by might be `"state"`

`string group_by = 1;`

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

### getGroupByBytes()

    public abstract ByteString getGroupByBytes()

groupBy specifies the type of aggregate.
For example a group_by might be `"state"`

`string group_by = 1;`

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