# Google Cloud Capacity Planner V1beta Client - Class ChildResourceDemand (0.1.2)

0.1.2 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class ChildResourceDemand.

Capacity demand for a child resource such as shapes.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.ChildResourceDemand`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_id` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.ResourceIdentifier` Required. Identifier of resource. |
| `↳ demand_values` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.DemandValues` Required. The demand values associated with the child resource. |
| `↳ demand_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.DemandMetadata` Optional. The metadata associated with the child resource demand. |

### getResourceId

Required. Identifier of resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.ResourceIdentifier|null` |   |

### hasResourceId

### clearResourceId

### setResourceId

Required. Identifier of resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.ResourceIdentifier` |

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

### getDemandValues

Required. The demand values associated with the child resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.DemandValues|null` |   |

### hasDemandValues

### clearDemandValues

### setDemandValues

Required. The demand values associated with the child resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.DemandValues` |

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

### getDemandMetadata

Optional. The metadata associated with the child resource demand.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.DemandMetadata|null` |   |

### hasDemandMetadata

### clearDemandMetadata

### setDemandMetadata

Optional. The metadata associated with the child resource demand.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.DemandMetadata` |

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