# Google Cloud Notebooks V1 Client - Class CreateEnvironmentRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V1 Client class CreateEnvironmentRequest.

Request for creating a notebook environment.

Generated from protobuf message `google.cloud.notebooks.v1.CreateEnvironmentRequest`

## Namespace

Google \\ Cloud \\ Notebooks \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Format: `projects/{project_id}/locations/{location}` |
| `↳ environment_id` | `string` Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash. |
| `↳ environment` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.Environment` Required. The environment to be created. |

### getParent

Required. Format: `projects/{project_id}/locations/{location}`

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

### setParent

Required. Format: `projects/{project_id}/locations/{location}`

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

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

### getEnvironmentId

Required. User-defined unique ID of this environment. The `environment_id` must
be 1 to 63 characters long and contain only lowercase letters,
numeric characters, and dashes. The first character must be a lowercase
letter and the last character cannot be a dash.

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

### setEnvironmentId

Required. User-defined unique ID of this environment. The `environment_id` must
be 1 to 63 characters long and contain only lowercase letters,
numeric characters, and dashes. The first character must be a lowercase
letter and the last character cannot be a dash.

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

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

### getEnvironment

Required. The environment to be created.

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

### hasEnvironment

### clearEnvironment

### setEnvironment

Required. The environment to be created.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Format: `projects/{project_id}/locations/{location}` |
| `environment` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.Environment` Required. The environment to be created. |
| `environmentId` | `string` Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash. |

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