public final class UsageHistory extends GeneratedMessage implements UsageHistoryOrBuilderA collection of data points that describes the historical time-varying values of a resource.
Protobuf type google.cloud.capacityplanner.v1beta.UsageHistory
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > UsageHistoryImplements
UsageHistoryOrBuilderStatic Fields
AGGREGATION_METHOD_FIELD_NUMBER
public static final int AGGREGATION_METHOD_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TIME_SERIES_FIELD_NUMBER
public static final int TIME_SERIES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static UsageHistory getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static UsageHistory.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
newBuilder(UsageHistory prototype)
public static UsageHistory.Builder newBuilder(UsageHistory prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
UsageHistory |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
parseDelimitedFrom(InputStream input)
public static UsageHistory parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UsageHistory parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static UsageHistory parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UsageHistory parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static UsageHistory parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageHistory parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static UsageHistory parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UsageHistory parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static UsageHistory parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UsageHistory parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static UsageHistory parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UsageHistory parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UsageHistory |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<UsageHistory> parser()| Returns | |
|---|---|
| Type | Description |
Parser<UsageHistory> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
getParserForType()
public Parser<UsageHistory> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<UsageHistory> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public UsageHistory.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected UsageHistory.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
toBuilder()
public UsageHistory.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
UsageHistory.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|