Package com.google.monitoring.v3
Class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
com.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
- All Implemented Interfaces:
AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AlertPolicy.Condition.MetricThreshold.ForecastOptions
public static final class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeForecastHorizon(com.google.protobuf.Duration value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setForecastHorizon(com.google.protobuf.Duration value) Required.setForecastHorizon(com.google.protobuf.Duration.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
mergeFrom
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>- Throws:
IOException
-
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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasForecastHorizonin interfaceAlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder- Returns:
- Whether the forecastHorizon field is set.
-
getForecastHorizon
public com.google.protobuf.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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getForecastHorizonin interfaceAlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder- Returns:
- The forecastHorizon.
-
setForecastHorizon
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setForecastHorizon(com.google.protobuf.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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; -
setForecastHorizon
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setForecastHorizon(com.google.protobuf.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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeForecastHorizon
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeForecastHorizon(com.google.protobuf.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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; -
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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; -
getForecastHorizonBuilder
public com.google.protobuf.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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED]; -
getForecastHorizonOrBuilder
public com.google.protobuf.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. The forecast horizon can range from 1 hour to 60 hours.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getForecastHorizonOrBuilderin interfaceAlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder
-