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

Request for registering a notebook instance.

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

## 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}` |
| `↳ instance_id` | `string` Required. User defined unique ID of this instance. The `instance_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. |

### 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` |   |

### getInstanceId

Required. User defined unique ID of this instance. The `instance_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` |   |

### setInstanceId

Required. User defined unique ID of this instance. The `instance_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` |   |