# Google Cloud Database Center V1beta Client - Class BackupRunInfo (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!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 Database Center V1beta Client class BackupRunInfo.

Metadata about latest backup run state for a database resource.

Generated from protobuf message `google.cloud.databasecenter.v1beta.BackupRunInfo`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the backup operation started. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time the backup operation completed. |
| `↳ state` | `int` Output only. The state of this run. |
| `↳ error_message` | `string` Additional information about the error encountered. |
| `↳ operation_error_type` | `int` Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED. |
| `↳ sub_resource` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.SubResource` Optional. Sub resource details associated with the backup run. |

### getStartTime

The time the backup operation started.

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

### hasStartTime

### clearStartTime

### setStartTime

The time the backup operation started.

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

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

### getEndTime

The time the backup operation completed.

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

### hasEndTime

### clearEndTime

### setEndTime

The time the backup operation completed.

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

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

### getState

Output only. The state of this run.

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

### setState

Output only. The state of this run.

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

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

### getErrorMessage

Additional information about the error encountered.

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

### setErrorMessage

Additional information about the error encountered.

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

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

### getOperationErrorType

Optional. OperationErrorType to expose specific error when backup operation
of database resource failed, that is state is FAILED.

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

### setOperationErrorType

Optional. OperationErrorType to expose specific error when backup operation
of database resource failed, that is state is FAILED.

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

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

### getSubResource

Optional. Sub resource details associated with the backup run.

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

### hasSubResource

### clearSubResource

### setSubResource

Optional. Sub resource details associated with the backup run.

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

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