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

## Implements

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

## Methods

### getAggregationMethod()

    public abstract UsageHistory.AggregationMethod getAggregationMethod()

Method used to convert sampled usage data to time series values.

`
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 2;
`

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

### getAggregationMethodValue()

    public abstract int getAggregationMethodValue()

Method used to convert sampled usage data to time series values.

`
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for aggregationMethod. |

### getTimeSeries()

    public abstract TimeSeries getTimeSeries()

The collection of data points that represent the historical values.

`.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;`

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

### getTimeSeriesOrBuilder()

    public abstract TimeSeriesOrBuilder getTimeSeriesOrBuilder()

The collection of data points that represent the historical values.

`.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;`

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

### hasTimeSeries()

    public abstract boolean hasTimeSeries()

The collection of data points that represent the historical values.

`.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the timeSeries field is set. |