# Interface QueryReservationsResponseOrBuilder (0.16.0)

0.16.0 (latest) 0.14.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface QueryReservationsResponseOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getReservations(int index)

    public abstract ReservationData getReservations(int index)

The reservations data that match the request.

`repeated .google.cloud.capacityplanner.v1beta.ReservationData reservations = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.ReservationData` |   |

### getReservationsCount()

    public abstract int getReservationsCount()

The reservations data that match the request.

`repeated .google.cloud.capacityplanner.v1beta.ReservationData reservations = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getReservationsList()

    public abstract List<ReservationData> getReservationsList()

The reservations data that match the request.

`repeated .google.cloud.capacityplanner.v1beta.ReservationData reservations = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.ReservationData>` |   |

### getReservationsOrBuilder(int index)

    public abstract ReservationDataOrBuilder getReservationsOrBuilder(int index)

The reservations data that match the request.

`repeated .google.cloud.capacityplanner.v1beta.ReservationData reservations = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.ReservationDataOrBuilder` |   |

### getReservationsOrBuilderList()

    public abstract List<? extends ReservationDataOrBuilder> getReservationsOrBuilderList()

The reservations data that match the request.

`repeated .google.cloud.capacityplanner.v1beta.ReservationData reservations = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.capacityplanner.v1beta.ReservationDataOrBuilder>` |   |