public final class Forecast extends GeneratedMessage implements ForecastOrBuilder
A collection of data points that describes the predicted time-varying values
of a resource.
Protobuf type google.cloud.capacityplanner.v1beta.Forecast
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AGGREGATION_METHOD_FIELD_NUMBER
public static final int AGGREGATION_METHOD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BOUNDS_FIELD_NUMBER
public static final int BOUNDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FORECAST_TYPE_FIELD_NUMBER
public static final int FORECAST_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PREDICTION_INTERVAL_FIELD_NUMBER
public static final int PREDICTION_INTERVAL_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 Forecast getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Forecast.Builder newBuilder()
newBuilder(Forecast prototype)
public static Forecast.Builder newBuilder(Forecast prototype)
| Parameter |
| Name |
Description |
prototype |
Forecast
|
public static Forecast parseDelimitedFrom(InputStream input)
public static Forecast parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Forecast parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Forecast parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Forecast parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Forecast parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Forecast parseFrom(CodedInputStream input)
public static Forecast parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Forecast parseFrom(InputStream input)
public static Forecast parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Forecast parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Forecast parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Forecast> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAggregationMethod()
public UsageHistory.AggregationMethod getAggregationMethod()
Aggregation Method of the historical usage for which the forecast is
generated
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6;
getAggregationMethodValue()
public int getAggregationMethodValue()
Aggregation Method of the historical usage for which the forecast is
generated
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for aggregationMethod.
|
getBounds()
public Forecast.Bounds getBounds()
The bounds represented by this forecast time series.
.google.cloud.capacityplanner.v1beta.Forecast.Bounds bounds = 4;
getBoundsValue()
public int getBoundsValue()
The bounds represented by this forecast time series.
.google.cloud.capacityplanner.v1beta.Forecast.Bounds bounds = 4;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for bounds.
|
getDefaultInstanceForType()
public Forecast getDefaultInstanceForType()
getForecastType()
public Forecast.ForecastType getForecastType()
The type of forecast.
.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 3;
getForecastTypeValue()
public int getForecastTypeValue()
The type of forecast.
.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for forecastType.
|
getName()
The resource name of the connection in the form of:
projects/{project_id}/locations/{location_id}/forecasts/{forecast_id} or
organizations/{organization_id}/locations/{location_id}/forecasts/{forecast_id}
or folders/{folder_id}/locations/{location_id}/forecasts/{forecast_id}
string name = 1;
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the connection in the form of:
projects/{project_id}/locations/{location_id}/forecasts/{forecast_id} or
organizations/{organization_id}/locations/{location_id}/forecasts/{forecast_id}
or folders/{folder_id}/locations/{location_id}/forecasts/{forecast_id}
string name = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Forecast> getParserForType()
Overrides
getPredictionInterval()
public Forecast.PredictionInterval getPredictionInterval()
The prediction interval represented by the time series.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5;
getPredictionIntervalValue()
public int getPredictionIntervalValue()
The prediction interval represented by the time series.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for predictionInterval.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getTimeSeries()
public TimeSeries getTimeSeries()
The collection of data points that represent the predicted values. Note
that some of these values may be in the past (if, for example, the forecast
was created in the past and predicted values for the present day).
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 2;
| Returns |
| Type |
Description |
TimeSeries |
The timeSeries.
|
getTimeSeriesOrBuilder()
public TimeSeriesOrBuilder getTimeSeriesOrBuilder()
The collection of data points that represent the predicted values. Note
that some of these values may be in the past (if, for example, the forecast
was created in the past and predicted values for the present day).
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 2;
hasTimeSeries()
public boolean hasTimeSeries()
The collection of data points that represent the predicted values. Note
that some of these values may be in the past (if, for example, the forecast
was created in the past and predicted values for the present day).
.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 2;
| Returns |
| Type |
Description |
boolean |
Whether the timeSeries field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Forecast.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Forecast.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Forecast.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides