Class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder (3.28.0)

public static final class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder> implements AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder

Options used when forecasting the time series and testing the predicted value against the threshold.

Protobuf type google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

build()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions build()
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions

buildPartial()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions buildPartial()
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions

clear()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clear()
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

clearForecastHorizon()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearForecastHorizon()

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

clone()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clone()
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

getDefaultInstanceForType()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType()
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForecastHorizon()

public Duration getForecastHorizon()

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Duration

The forecastHorizon.

getForecastHorizonBuilder()

public Duration.Builder getForecastHorizonBuilder()

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getForecastHorizonOrBuilder()

public DurationOrBuilder getForecastHorizonOrBuilder()

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DurationOrBuilder

hasForecastHorizon()

public boolean hasForecastHorizon()

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the forecastHorizon field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeForecastHorizon(Duration value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeForecastHorizon(Duration value)

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)
Parameter
NameDescription
otherAlertPolicy.Condition.MetricThreshold.ForecastOptions
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

setForecastHorizon(Duration value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setForecastHorizon(Duration value)

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

setForecastHorizon(Duration.Builder builderForValue)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setForecastHorizon(Duration.Builder builderForValue)

Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured duration, then the time series is considered to be failing.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides