Send feedback
Class Forecast (0.1.0)
public final class Forecast extends GeneratedMessageV3 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.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Forecast . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Forecast . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Forecast . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]