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

The request for
[ReservationService.CreateReservation](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.Client.ReservationServiceClient#_Google_Cloud_BigQuery_Reservation_V1_Client_ReservationServiceClient__createReservation__).

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Project, location. E.g., `projects/myproject/locations/US` |
| `↳ reservation_id` | `string` The reservation ID. It must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters. |
| `↳ reservation` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.Reservation` Definition of the new reservation to create. |

### getParent

Required. Project, location. E.g.,
`projects/myproject/locations/US`

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

### setParent

Required. Project, location. E.g.,
`projects/myproject/locations/US`

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

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

### getReservationId

The reservation ID. It must only contain lower case alphanumeric
characters or dashes. It must start with a letter and must not end
with a dash. Its maximum length is 64 characters.

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

### setReservationId

The reservation ID. It must only contain lower case alphanumeric
characters or dashes. It must start with a letter and must not end
with a dash. Its maximum length is 64 characters.

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

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

### getReservation

Definition of the new reservation to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.Reservation|null` |   |

### hasReservation

### clearReservation

### setReservation

Definition of the new reservation to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Project, location. E.g., `projects/myproject/locations/US` Please see ReservationServiceClient::locationName() for help formatting this field. |
| `reservation` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.Reservation` Definition of the new reservation to create. |
| `reservationId` | `string` The reservation ID. It must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.CreateReservationRequest` |   |