# Google Cloud Gke Backup V1 Client - Class UpdateRestoreRequest (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 UpdateRestoreRequest.

Request message for UpdateRestore.

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

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ restore` | `Restore` Required. A new version of the Restore resource that contains updated fields. This may be sparsely populated if an `update_mask` is provided. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the `restore` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore` will be written to the target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored and are not used to update the target Restore. |

### getRestore

Required. A new version of the Restore resource that contains updated
fields. This may be sparsely populated if an `update_mask` is provided.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Restore|null` |   |

### hasRestore

### clearRestore

### setRestore

Required. A new version of the Restore resource that contains updated
fields. This may be sparsely populated if an `update_mask` is provided.

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

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

### getUpdateMask

Optional. This is used to specify the fields to be overwritten in the
Restore targeted for update. The values for each of these
updated fields will be taken from the `restore` provided
with this request. Field names are relative to the root of the resource.

If no `update_mask` is provided, all fields in `restore` will be
written to the target Restore resource.
Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
and are not used to update the target Restore.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. This is used to specify the fields to be overwritten in the
Restore targeted for update. The values for each of these
updated fields will be taken from the `restore` provided
with this request. Field names are relative to the root of the resource.

If no `update_mask` is provided, all fields in `restore` will be
written to the target Restore resource.
Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
and are not used to update the target Restore.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `restore` | `Restore` Required. A new version of the Restore resource that contains updated fields. This may be sparsely populated if an `update_mask` is provided. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the `restore` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore` will be written to the target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored and are not used to update the target Restore. |

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