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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Dataproc Metastore V1beta Client class Backup.

The details of a backup resource.

Generated from protobuf message `google.cloud.metastore.v1beta.Backup`

## Namespace

Google \\ Cloud \\ Metastore \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Immutable. The relative resource name of the backup, in the following form: `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The time when the backup was started. |
| `↳ end_time` | `Google\Protobuf\Timestamp` Output only. The time when the backup finished creating. |
| `↳ state` | `int` Output only. The current state of the backup. |
| `↳ service_revision` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1beta.Service` Output only. The revision of the service at the time of backup. |
| `↳ description` | `string` The description of the backup. |
| `↳ restoring_services` | `string[]` Output only. Services that are restoring from the backup. |

### getName

Immutable. The relative resource name of the backup, in the following form:
`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`

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

### setName

Immutable. The relative resource name of the backup, in the following form:
`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`

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

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

### getCreateTime

Output only. The time when the backup was started.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the backup was started.

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

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

### getEndTime

Output only. The time when the backup finished creating.

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

### hasEndTime

### clearEndTime

### setEndTime

Output only. The time when the backup finished creating.

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

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

### getState

Output only. The current state of the backup.

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

### setState

Output only. The current state of the backup.

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

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

### getServiceRevision

Output only. The revision of the service at the time of backup.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1beta.Service|null` |   |

### hasServiceRevision

### clearServiceRevision

### setServiceRevision

Output only. The revision of the service at the time of backup.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc-metastore/latest/V1beta.Service` |

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

### getDescription

The description of the backup.

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

### setDescription

The description of the backup.

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

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

### getRestoringServices

Output only. Services that are restoring from the backup.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setRestoringServices

Output only. Services that are restoring from the backup.

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

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