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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
    • getDefaultInstanceForType

      public AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasForecastHorizon in interface AlertPolicy.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:
      getForecastHorizon in interface AlertPolicy.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:
      getForecastHorizonOrBuilder in interface AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder