# Google Cloud Maintenance Api V1 Client - Class Aggregate (0.4.0)

0.4.0 (latest) 0.3.2 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Maintenance Api V1 Client class Aggregate.

Aggregate is a \<group, count\> pair.

Generated from protobuf message `google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate`

## Namespace

Google \\ Cloud \\ Maintenance \\ Api \\ V1 \\ MaintenanceSummary

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ group` | `string` Specifies what specific value of the group_by the count represents. For example if group_by is `"state"` its corresponding group could be `"SCHEDULED"`. |
| `↳ count` | `int|string` The count of the group. |

### getGroup

Specifies what specific value of the group_by the count represents. For
example if group_by is `"state"` its corresponding group could be
`"SCHEDULED"`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setGroup

Specifies what specific value of the group_by the count represents. For
example if group_by is `"state"` its corresponding group could be
`"SCHEDULED"`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCount

The count of the group.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setCount

The count of the group.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |