# Google Cloud Capacity Planner V1beta Client - Class QueryReservationsResponse (0.1.2)

0.1.2 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class QueryReservationsResponse.

The `QueryReservations` response.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.QueryReservationsResponse`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ reservations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.ReservationData>` The reservations data that match the request. |

### getReservations

The reservations data that match the request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.ReservationData>` |   |

### setReservations

The reservations data that match the request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.ReservationData>` |

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