# Interface QueryForecastsResponseOrBuilder (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 QueryForecastsResponseOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getForecasts(int index)

    public abstract Forecast getForecasts(int index)

The forecasts that match the request.

`repeated .google.cloud.capacityplanner.v1beta.Forecast forecasts = 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.Forecast` |   |

### getForecastsCount()

    public abstract int getForecastsCount()

The forecasts that match the request.

`repeated .google.cloud.capacityplanner.v1beta.Forecast forecasts = 1;`

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

### getForecastsList()

    public abstract List<Forecast> getForecastsList()

The forecasts that match the request.

`repeated .google.cloud.capacityplanner.v1beta.Forecast forecasts = 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.Forecast>` |   |

### getForecastsOrBuilder(int index)

    public abstract ForecastOrBuilder getForecastsOrBuilder(int index)

The forecasts that match the request.

`repeated .google.cloud.capacityplanner.v1beta.Forecast forecasts = 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.ForecastOrBuilder` |   |

### getForecastsOrBuilderList()

    public abstract List<? extends ForecastOrBuilder> getForecastsOrBuilderList()

The forecasts that match the request.

`repeated .google.cloud.capacityplanner.v1beta.Forecast forecasts = 1;`

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