1.2.4 (latest) 1.2.3 1.1.1 1.0.4 0.11.5 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.1 0.4.1 Reference documentation and code samples for the Google Cloud Dataproc Metastore V1 Client class Restore.

The details of a metadata restore operation.

Generated from protobuf message `google.cloud.metastore.v1.Restore`

## Namespace

Google \\ Cloud \\ Metastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `Google\Protobuf\Timestamp` Output only. The time when the restore started. |
| `↳ end_time` | `Google\Protobuf\Timestamp` Output only. The time when the restore ended. |
| `↳ state` | `int` Output only. The current state of the restore. |
| `↳ backup` | `string` Output only. The relative resource name of the metastore service backup to restore from, in the following form: `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. |
| `↳ type` | `int` Output only. The type of restore. |
| `↳ details` | `string` Output only. The restore details containing the revision of the service to be restored to, in format of JSON. |

### getStartTime

Output only. The time when the restore started.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Output only. The time when the restore started.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getEndTime

Output only. The time when the restore ended.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time when the restore ended.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getState

Output only. The current state of the restore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.Restore.State). |

### setState

Output only. The current state of the restore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.Restore.State). |

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

### getBackup

Output only. The relative resource name of the metastore service backup to
restore from, in the following form:
`projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

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

### setBackup

Output only. The relative resource name of the metastore service backup to
restore from, in the following form:
`projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`.

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

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

### getType

Output only. The type of restore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RestoreType](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.Restore.RestoreType). |

### setType

Output only. The type of restore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RestoreType](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1.Restore.RestoreType). |

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

### getDetails

Output only. The restore details containing the revision of the service to
be restored to, in format of JSON.

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

### setDetails

Output only. The restore details containing the revision of the service to
be restored to, in format of JSON.

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

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