# Google Cloud Migration Center V1 Client - Class AggregationResult (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class AggregationResult.

Message describing a result of an aggregation.

Generated from protobuf message `google.cloud.migrationcenter.v1.AggregationResult`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ field` | `string` |
| `↳ count` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Count` |
| `↳ sum` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Sum` |
| `↳ histogram` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Histogram` |
| `↳ frequency` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Frequency` |

### getField

Generated from protobuf field `string field = 1;`

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

### setField

Generated from protobuf field `string field = 1;`

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

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

### getCount

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Count count = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Count|null` |   |

### hasCount

### setCount

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Count count = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Count` |

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

### getSum

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Sum sum = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Sum|null` |   |

### hasSum

### setSum

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Sum sum = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Sum` |

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

### getHistogram

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Histogram histogram = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Histogram|null` |   |

### hasHistogram

### setHistogram

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Histogram histogram = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Histogram` |

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

### getFrequency

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Frequency frequency = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Frequency|null` |   |

### hasFrequency

### setFrequency

Generated from protobuf field `.google.cloud.migrationcenter.v1.AggregationResult.Frequency frequency = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.AggregationResult.Frequency` |

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

### getResult

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