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.GeneratedMessageV3.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.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 typegoogle.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
getDefaultInstanceForType
public AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.Condition.MetricThreshold.ForecastOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.Condition.MetricThreshold.ForecastOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
setField
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
clearField
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
clearOneof
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
setRepeatedField
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
addRepeatedField
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.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
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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.
.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.
.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.
.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.
.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.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];
-
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];
-
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.
.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.
.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getForecastHorizonOrBuilderin interfaceAlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder
-
setUnknownFields
public final AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
mergeUnknownFields
public final AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
-
-