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

Usage data aggregation for a single day.

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

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Aggregation date. Day boundaries are at midnight UTC. |
| `↳ cpu` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.DailyResourceUsageAggregation.CPU` CPU usage. |
| `↳ memory` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.DailyResourceUsageAggregation.Memory` Memory usage. |
| `↳ network` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.DailyResourceUsageAggregation.Network` Network usage. |
| `↳ disk` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.DailyResourceUsageAggregation.Disk` Disk usage. |

### getDate

Aggregation date. Day boundaries are at midnight UTC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasDate

### clearDate

### setDate

Aggregation date. Day boundaries are at midnight UTC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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

### getCpu

CPU usage.

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

### hasCpu

### clearCpu

### setCpu

CPU usage.

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

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

### getMemory

Memory usage.

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

### hasMemory

### clearMemory

### setMemory

Memory usage.

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

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

### getNetwork

Network usage.

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

### hasNetwork

### clearNetwork

### setNetwork

Network usage.

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

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

### getDisk

Disk usage.

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

### hasDisk

### clearDisk

### setDisk

Disk usage.

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

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