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 FailoverReservationRequest.

The request for ReservationService.FailoverReservation.

Generated from protobuf message `google.cloud.bigquery.reservation.v1.FailoverReservationRequest`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Resource name of the reservation to failover. E.g., `projects/myproject/locations/US/reservations/team1-prod` |
| `↳ failover_mode` | `int` Optional. A parameter that determines how writes that are pending replication are handled after a failover is initiated. If not specified, HARD failover mode is used by default. |

### getName

Required. Resource name of the reservation to failover. E.g.,
`projects/myproject/locations/US/reservations/team1-prod`

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

### setName

Required. Resource name of the reservation to failover. E.g.,
`projects/myproject/locations/US/reservations/team1-prod`

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

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

### getFailoverMode

Optional. A parameter that determines how writes that are pending
replication are handled after a failover is initiated. If not specified,
HARD failover mode is used by default.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FailoverMode](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.FailoverMode). |

### setFailoverMode

Optional. A parameter that determines how writes that are pending
replication are handled after a failover is initiated. If not specified,
HARD failover mode is used by default.

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

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