Class UsageHistory.Builder (0.1.0)
public static final class UsageHistory.Builder extends GeneratedMessageV3.Builder<UsageHistory.Builder> implements UsageHistoryOrBuilder
A collection of data points that describes the historical time-varying values
of a resource.
Protobuf type google.cloud.capacityplanner.v1beta.UsageHistory
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UsageHistory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UsageHistory build()
buildPartial()
public UsageHistory buildPartial()
clear()
public UsageHistory.Builder clear()
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public UsageHistory.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageHistory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTimeSeries()
public UsageHistory.Builder clearTimeSeries()
The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
clone()
public UsageHistory.Builder clone()
Overrides
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;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
getTimeSeriesOrBuilder()
public TimeSeriesOrBuilder getTimeSeriesOrBuilder()
The collection of data points that represent the historical values.
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 1;
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UsageHistory other)
public UsageHistory.Builder mergeFrom(UsageHistory other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UsageHistory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UsageHistory.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsageHistory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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 |
int
The enum numeric value on the wire for aggregationMethod to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public UsageHistory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageHistory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageHistory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]