# Google Cloud Notebooks V1 Client - Class CreateRuntimeRequest (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 CreateRuntimeRequest.

Request for creating a Managed Notebook Runtime.

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

## Namespace

Google \\ Cloud \\ Notebooks \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Format: `parent=projects/{project_id}/locations/{location}` |
| `↳ runtime_id` | `string` Required. User-defined unique ID of this Runtime. |
| `↳ runtime` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.Runtime` Required. The Runtime to be created. |
| `↳ request_id` | `string` Idempotent request UUID. |

### getParent

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

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

### setParent

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

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

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

### getRuntimeId

Required. User-defined unique ID of this Runtime.

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

### setRuntimeId

Required. User-defined unique ID of this Runtime.

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

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

### getRuntime

Required. The Runtime to be created.

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

### hasRuntime

### clearRuntime

### setRuntime

Required. The Runtime to be created.

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

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

### getRequestId

Idempotent request UUID.

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

### setRequestId

Idempotent request UUID.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Format: `parent=projects/{project_id}/locations/{location}` Please see ManagedNotebookServiceClient::runtimeName() for help formatting this field. |
| `runtimeId` | `string` Required. User-defined unique ID of this Runtime. |
| `runtime` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.Runtime` Required. The Runtime to be created. |

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