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

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

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us` |
| `↳ capacity_commitment_ids` | `string[]` Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc |
| `↳ capacity_commitment_id` | `string` Optional. The optional resulting capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. |

### getParent

Parent resource that identifies admin project and location e.g.,
`projects/myproject/locations/us`

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

### setParent

Parent resource that identifies admin project and location e.g.,
`projects/myproject/locations/us`

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

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

### getCapacityCommitmentIds

Ids of capacity commitments to merge.

These capacity commitments must exist under admin project and location
specified in the parent.
ID is the last portion of capacity commitment name e.g., 'abc' for
projects/myproject/locations/US/capacityCommitments/abc

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setCapacityCommitmentIds

Ids of capacity commitments to merge.

These capacity commitments must exist under admin project and location
specified in the parent.
ID is the last portion of capacity commitment name e.g., 'abc' for
projects/myproject/locations/US/capacityCommitments/abc

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

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

### getCapacityCommitmentId

Optional. The optional resulting capacity commitment ID. Capacity
commitment name will be generated automatically if this field is empty.

This field must only contain lower case alphanumeric characters or dashes.
The first and last character cannot be a dash. Max length is 64 characters.

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

### setCapacityCommitmentId

Optional. The optional resulting capacity commitment ID. Capacity
commitment name will be generated automatically if this field is empty.

This field must only contain lower case alphanumeric characters or dashes.
The first and last character cannot be a dash. Max length is 64 characters.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us` |
| `capacityCommitmentIds` | `string[]` Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc |

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