# Google Cloud Gke Backup V1 Client - Class CreateRestoreChannelRequest (1.3.2)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class CreateRestoreChannelRequest.

Request message for CreateRestoreChannel.

Generated from protobuf message `google.cloud.gkebackup.v1.CreateRestoreChannelRequest`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The location within which to create the RestoreChannel. Format: `projects/*/locations/*` |
| `↳ restore_channel` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RestoreChannel` Required. The RestoreChannel resource object to create. |
| `↳ restore_channel_id` | `string` Optional. The client-provided short name for the RestoreChannel resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name. |

### getParent

Required. The location within which to create the RestoreChannel.

Format: `projects/*/locations/*`

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

### setParent

Required. The location within which to create the RestoreChannel.

Format: `projects/*/locations/*`

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

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

### getRestoreChannel

Required. The RestoreChannel resource object to create.

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

### hasRestoreChannel

### clearRestoreChannel

### setRestoreChannel

Required. The RestoreChannel resource object to create.

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

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

### getRestoreChannelId

Optional. The client-provided short name for the RestoreChannel resource.

This name must:

- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.

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

### setRestoreChannelId

Optional. The client-provided short name for the RestoreChannel resource.

This name must:

- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location within which to create the RestoreChannel. Format: `projects/*/locations/*` Please see BackupForGKEClient::locationName() for help formatting this field. |
| `restoreChannel` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RestoreChannel` Required. The RestoreChannel resource object to create. |
| `restoreChannelId` | `string` Optional. The client-provided short name for the RestoreChannel resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.CreateRestoreChannelRequest` |   |