# Google Cloud Migration Center V1 Client - Class AggregateAssetsValuesRequest (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 AggregateAssetsValuesRequest.

A request to aggregate one or more values.

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

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent value for `AggregateAssetsValuesRequest`. |
| `↳ aggregations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.Aggregation>` Array of aggregations to perform. Up to 25 aggregations can be defined. |
| `↳ filter` | `string` The aggregation will be performed on assets that match the provided filter. |

### getParent

Required. Parent value for `AggregateAssetsValuesRequest`.

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

### setParent

Required. Parent value for `AggregateAssetsValuesRequest`.

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

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

### getAggregations

Array of aggregations to perform.

Up to 25 aggregations can be defined.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.Aggregation>` |   |

### setAggregations

Array of aggregations to perform.

Up to 25 aggregations can be defined.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.Aggregation>` |

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

### getFilter

The aggregation will be performed on assets that match the provided filter.

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

### setFilter

The aggregation will be performed on assets that match the provided filter.

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

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