public static final class UsageHistory.Builder extends GeneratedMessage.Builder<UsageHistory.Builder> implements UsageHistoryOrBuilderA collection of data points that describes the historical time-varying values of a resource.
Protobuf type google.cloud.capacityplanner.v1beta.UsageHistory
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UsageHistory.BuilderImplements
UsageHistoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public UsageHistory build()| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
buildPartial()
public UsageHistory buildPartial()| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
clear()
public UsageHistory.Builder clear()| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
clearAggregationMethod()
public UsageHistory.Builder clearAggregationMethod()Method used to convert sampled usage data to time series values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 2;
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
This builder for chaining. |
clearTimeSeries()
public UsageHistory.Builder clearTimeSeries()The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
getAggregationMethod()
public 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 |
UsageHistory.AggregationMethod |
The aggregationMethod. |
getAggregationMethodValue()
public 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 |
int |
The enum numeric value on the wire for aggregationMethod. |
getDefaultInstanceForType()
public UsageHistory getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTimeSeries()
public TimeSeries getTimeSeries()The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Returns | |
|---|---|
| Type | Description |
TimeSeries |
The timeSeries. |
getTimeSeriesBuilder()
public TimeSeries.Builder getTimeSeriesBuilder()The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
getTimeSeriesOrBuilder()
public TimeSeriesOrBuilder getTimeSeriesOrBuilder()The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Returns | |
|---|---|
| Type | Description |
TimeSeriesOrBuilder |
|
hasTimeSeries()
public boolean hasTimeSeries()The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeSeries field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(UsageHistory other)
public UsageHistory.Builder mergeFrom(UsageHistory other)| Parameter | |
|---|---|
| Name | Description |
other |
UsageHistory |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UsageHistory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UsageHistory.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
mergeTimeSeries(TimeSeries value)
public UsageHistory.Builder mergeTimeSeries(TimeSeries value)The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
TimeSeries |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
setAggregationMethod(UsageHistory.AggregationMethod value)
public UsageHistory.Builder setAggregationMethod(UsageHistory.AggregationMethod value)Method used to convert sampled usage data to time series values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
UsageHistory.AggregationMethodThe aggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
This builder for chaining. |
setAggregationMethodValue(int value)
public UsageHistory.Builder setAggregationMethodValue(int value)Method used to convert sampled usage data to time series values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for aggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
This builder for chaining. |
setTimeSeries(TimeSeries value)
public UsageHistory.Builder setTimeSeries(TimeSeries value)The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
TimeSeries |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
setTimeSeries(TimeSeries.Builder builderForValue)
public UsageHistory.Builder setTimeSeries(TimeSeries.Builder builderForValue)The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TimeSeries.Builder |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|