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

Message for creating a space.

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

## 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 in which to create a space. |
| `↳ space_id` | `string` Required. The ID of the space to create. |
| `↳ space` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.Space` Required. The space to create. |

### getParent

Required. The parent in which to create a space.

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

### setParent

Required. The parent in which to create a space.

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

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

### getSpaceId

Required. The ID of the space to create.

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

### setSpaceId

Required. The ID of the space to create.

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

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

### getSpace

Required. The space to create.

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

### hasSpace

### clearSpace

### setSpace

Required. The space to create.

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

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

### static::build

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

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