Reference documentation and code samples for the Google Cloud Design Center V1 Client class CreateComponentRequest.

Message for creating a component.

Generated from protobuf message `google.cloud.designcenter.v1.CreateComponentRequest`

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource in which to create the component. |
| `↳ component_id` | `string` Required. The ID of the component to create. |
| `↳ component` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Component` Required. The component to create. |

### getParent

Required. The parent resource in which to create the component.

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

### setParent

Required. The parent resource in which to create the component.

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

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

### getComponentId

Required. The ID of the component to create.

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

### setComponentId

Required. The ID of the component to create.

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

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

### getComponent

Required. The component to create.

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

### hasComponent

### clearComponent

### setComponent

Required. The component to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource in which to create the component. Please see DesignCenterClient::applicationTemplateName() for help formatting this field. |
| `component` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Component` Required. The component to create. |
| `componentId` | `string` Required. The ID of the component to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.CreateComponentRequest` |   |