# Google Cloud Gke Backup V1 Client - Class DeleteRestoreRequest (1.3.3)

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 DeleteRestoreRequest.

Request message for DeleteRestore.

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

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Required. Full name of the Restore
Format: `projects/*/locations/*/restorePlans/*/restores/*`

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

### setName

Required. Full name of the Restore
Format: `projects/*/locations/*/restorePlans/*/restores/*`

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

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

### getEtag

Optional. If provided, this value must match the current value of the
target Restore's etag field or
the request is rejected.

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

### setEtag

Optional. If provided, this value must match the current value of the
target Restore's etag field or
the request is rejected.

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

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

### getForce

Optional. If set to true, any VolumeRestores below this restore will also
be deleted. Otherwise, the request will only succeed if the restore has no
VolumeRestores.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setForce

Optional. If set to true, any VolumeRestores below this restore will also
be deleted. Otherwise, the request will only succeed if the restore has no
VolumeRestores.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Full name of the Restore Format: `projects/*/locations/*/restorePlans/*/restores/*` Please see BackupForGKEClient::restoreName() for help formatting this field. |

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