2.11.0 (latest) 2.10.3 2.7.0 2.6.2 2.5.0 2.4.0 2.3.0 2.2.1 2.1.2 2.0.2 1.3.5 1.2.3 1.1.2 1.0.3 Reference documentation and code samples for the Google BigQuery Reservation V1 Client class ReplicationStatus.

Disaster Recovery(DR) replication status of the reservation.

Generated from protobuf message `google.cloud.bigquery.reservation.v1.Reservation.ReplicationStatus`

## Namespace

Google \\ Cloud \\ BigQuery \\ Reservation \\ V1 \\ Reservation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. The last error encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since. |
| `↳ last_error_time` | `Google\Protobuf\Timestamp` Output only. The time at which the last error was encountered while trying to replicate changes from the primary to the secondary. This field is only available if the replication has not succeeded since. |
| `↳ last_replication_time` | `Google\Protobuf\Timestamp` Output only. A timestamp corresponding to the last change on the primary that was successfully replicated to the secondary. |
| `↳ soft_failover_start_time` | `Google\Protobuf\Timestamp` Output only. The time at which a soft failover for the reservation and its associated datasets was initiated. After this field is set, all subsequent changes to the reservation will be rejected unless a hard failover overrides this operation. This field will be cleared once the failover is complete. |

### getError

Output only. The last error encountered while trying to replicate changes
from the primary to the secondary. This field is only available if the
replication has not succeeded since.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

Output only. The last error encountered while trying to replicate changes
from the primary to the secondary. This field is only available if the
replication has not succeeded since.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getLastErrorTime

Output only. The time at which the last error was encountered while
trying to replicate changes from the primary to the secondary. This field
is only available if the replication has not succeeded since.

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

### hasLastErrorTime

### clearLastErrorTime

### setLastErrorTime

Output only. The time at which the last error was encountered while
trying to replicate changes from the primary to the secondary. This field
is only available if the replication has not succeeded since.

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

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

### getLastReplicationTime

Output only. A timestamp corresponding to the last change on the primary
that was successfully replicated to the secondary.

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

### hasLastReplicationTime

### clearLastReplicationTime

### setLastReplicationTime

Output only. A timestamp corresponding to the last change on the primary
that was successfully replicated to the secondary.

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

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

### getSoftFailoverStartTime

Output only. The time at which a soft failover for the reservation and
its associated datasets was initiated. After this field is set, all
subsequent changes to the reservation will be rejected unless a hard
failover overrides this operation. This field will be cleared once the
failover is complete.

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

### hasSoftFailoverStartTime

### clearSoftFailoverStartTime

### setSoftFailoverStartTime

Output only. The time at which a soft failover for the reservation and
its associated datasets was initiated. After this field is set, all
subsequent changes to the reservation will be rejected unless a hard
failover overrides this operation. This field will be cleared once the
failover is complete.

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

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