# Google Cloud Backup Dr V1 Client - Class RestoreBackupRequest (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class RestoreBackupRequest.

Request message for restoring from a Backup.

Generated from protobuf message `google.cloud.backupdr.v1.RestoreBackupRequest`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

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

### getName

Required. The resource name of the Backup instance, in the format
'projects/*/locations/* /backupVaults/*/dataSources/*/backups/'.

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

### setName

Required. The resource name of the Backup instance, in the format
'projects/*/locations/* /backupVaults/*/dataSources/*/backups/'.

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

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

### getRequestId

Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).

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

### setRequestId

Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).

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

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

### getComputeInstanceTargetEnvironment

Compute Engine target environment to be used during restore.

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

### hasComputeInstanceTargetEnvironment

### setComputeInstanceTargetEnvironment

Compute Engine target environment to be used during restore.

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

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

### getDiskTargetEnvironment

Disk target environment to be used during restore.

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

### hasDiskTargetEnvironment

### setDiskTargetEnvironment

Disk target environment to be used during restore.

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

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

### getRegionDiskTargetEnvironment

Region disk target environment to be used during restore.

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

### hasRegionDiskTargetEnvironment

### setRegionDiskTargetEnvironment

Region disk target environment to be used during restore.

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

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

### getComputeInstanceRestoreProperties

Compute Engine instance properties to be overridden during restore.

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

### hasComputeInstanceRestoreProperties

### setComputeInstanceRestoreProperties

Compute Engine instance properties to be overridden during restore.

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

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

### getDiskRestoreProperties

Disk properties to be overridden during restore.

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

### hasDiskRestoreProperties

### setDiskRestoreProperties

Disk properties to be overridden during restore.

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

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

### getClearOverridesFieldMask

Optional. A field mask used to clear server-side default values
for fields within the `instance_properties` oneof.

When a field in this mask is cleared, the server will not apply its
default logic (like inheriting a value from the source) for that field.
The most common current use case is clearing default encryption keys.
Examples of field mask paths:

- Compute Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key`
- Single Disk: `disk_restore_properties.disk_encryption_key`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasClearOverridesFieldMask

### clearClearOverridesFieldMask

### setClearOverridesFieldMask

Optional. A field mask used to clear server-side default values
for fields within the `instance_properties` oneof.

When a field in this mask is cleared, the server will not apply its
default logic (like inheriting a value from the source) for that field.
The most common current use case is clearing default encryption keys.
Examples of field mask paths:

- Compute Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key`
- Single Disk: `disk_restore_properties.disk_encryption_key`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### getTargetEnvironment

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

### getInstanceProperties

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the Backup instance, in the format 'projects/*/locations/* /backupVaults/*/dataSources/* /backups/'. Please see BackupDRClient::backupName() for help formatting this field. |

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