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

Represents a BI Reservation.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the singleton BI reservation. Reservation names have the form `projects/{project_id}/locations/{location_id}/biReservation`. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The last update timestamp of a reservation. |
| `↳ size` | `int|string` Optional. Size of a reservation, in bytes. |
| `↳ preferred_tables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.TableReference>` Optional. Preferred tables to use BI capacity for. |

### getName

Identifier. The resource name of the singleton BI reservation.

Reservation names have the form
`projects/{project_id}/locations/{location_id}/biReservation`.

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

### setName

Identifier. The resource name of the singleton BI reservation.

Reservation names have the form
`projects/{project_id}/locations/{location_id}/biReservation`.

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

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

### getUpdateTime

Output only. The last update timestamp of a reservation.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The last update timestamp of a reservation.

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

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

### getSize

Optional. Size of a reservation, in bytes.

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

### setSize

Optional. Size of a reservation, in bytes.

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

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

### getPreferredTables

Optional. Preferred tables to use BI capacity for.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.TableReference>` |   |

### setPreferredTables

Optional. Preferred tables to use BI capacity for.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.TableReference>` |

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