Class Scorecard.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Scorecard.Builder>
com.google.monitoring.dashboard.v1.Scorecard.Builder
All Implemented Interfaces:
ScorecardOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Scorecard

public static final class Scorecard.Builder extends com.google.protobuf.GeneratedMessage.Builder<Scorecard.Builder> implements ScorecardOrBuilder
 A widget showing the latest value of a metric, and how this value relates to
 one or more thresholds.
 
Protobuf type google.monitoring.dashboard.v1.Scorecard
  • 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<Scorecard.Builder>
    • clear

      public Scorecard.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<Scorecard.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<Scorecard.Builder>
    • getDefaultInstanceForType

      public Scorecard getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Scorecard build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Scorecard buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Scorecard.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<Scorecard.Builder>
    • mergeFrom

      public Scorecard.Builder mergeFrom(Scorecard other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Scorecard.Builder>
    • mergeFrom

      public Scorecard.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<Scorecard.Builder>
      Throws:
      IOException
    • getDataViewCase

      public Scorecard.DataViewCase getDataViewCase()
      Specified by:
      getDataViewCase in interface ScorecardOrBuilder
    • clearDataView

      public Scorecard.Builder clearDataView()
    • hasTimeSeriesQuery

      public boolean hasTimeSeriesQuery()
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTimeSeriesQuery in interface ScorecardOrBuilder
      Returns:
      Whether the timeSeriesQuery field is set.
    • getTimeSeriesQuery

      public TimeSeriesQuery getTimeSeriesQuery()
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesQuery in interface ScorecardOrBuilder
      Returns:
      The timeSeriesQuery.
    • setTimeSeriesQuery

      public Scorecard.Builder setTimeSeriesQuery(TimeSeriesQuery value)
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • setTimeSeriesQuery

      public Scorecard.Builder setTimeSeriesQuery(TimeSeriesQuery.Builder builderForValue)
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeTimeSeriesQuery

      public Scorecard.Builder mergeTimeSeriesQuery(TimeSeriesQuery value)
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearTimeSeriesQuery

      public Scorecard.Builder clearTimeSeriesQuery()
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesQueryBuilder

      public TimeSeriesQuery.Builder getTimeSeriesQueryBuilder()
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesQueryOrBuilder

      public TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder()
       Required. Fields for querying time series data from the
       Stackdriver metrics API.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesQueryOrBuilder in interface ScorecardOrBuilder
    • hasGaugeView

      public boolean hasGaugeView()
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
      Specified by:
      hasGaugeView in interface ScorecardOrBuilder
      Returns:
      Whether the gaugeView field is set.
    • getGaugeView

      public Scorecard.GaugeView getGaugeView()
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
      Specified by:
      getGaugeView in interface ScorecardOrBuilder
      Returns:
      The gaugeView.
    • setGaugeView

      public Scorecard.Builder setGaugeView(Scorecard.GaugeView value)
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
    • setGaugeView

      public Scorecard.Builder setGaugeView(Scorecard.GaugeView.Builder builderForValue)
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
    • mergeGaugeView

      public Scorecard.Builder mergeGaugeView(Scorecard.GaugeView value)
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
    • clearGaugeView

      public Scorecard.Builder clearGaugeView()
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
    • getGaugeViewBuilder

      public Scorecard.GaugeView.Builder getGaugeViewBuilder()
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
    • getGaugeViewOrBuilder

      public Scorecard.GaugeViewOrBuilder getGaugeViewOrBuilder()
       Will cause the scorecard to show a gauge chart.
       
      .google.monitoring.dashboard.v1.Scorecard.GaugeView gauge_view = 4;
      Specified by:
      getGaugeViewOrBuilder in interface ScorecardOrBuilder
    • hasSparkChartView

      public boolean hasSparkChartView()
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
      Specified by:
      hasSparkChartView in interface ScorecardOrBuilder
      Returns:
      Whether the sparkChartView field is set.
    • getSparkChartView

      public Scorecard.SparkChartView getSparkChartView()
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
      Specified by:
      getSparkChartView in interface ScorecardOrBuilder
      Returns:
      The sparkChartView.
    • setSparkChartView

      public Scorecard.Builder setSparkChartView(Scorecard.SparkChartView value)
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
    • setSparkChartView

      public Scorecard.Builder setSparkChartView(Scorecard.SparkChartView.Builder builderForValue)
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
    • mergeSparkChartView

      public Scorecard.Builder mergeSparkChartView(Scorecard.SparkChartView value)
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
    • clearSparkChartView

      public Scorecard.Builder clearSparkChartView()
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
    • getSparkChartViewBuilder

      public Scorecard.SparkChartView.Builder getSparkChartViewBuilder()
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
    • getSparkChartViewOrBuilder

      public Scorecard.SparkChartViewOrBuilder getSparkChartViewOrBuilder()
       Will cause the scorecard to show a spark chart.
       
      .google.monitoring.dashboard.v1.Scorecard.SparkChartView spark_chart_view = 5;
      Specified by:
      getSparkChartViewOrBuilder in interface ScorecardOrBuilder
    • hasBlankView

      public boolean hasBlankView()
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
      Specified by:
      hasBlankView in interface ScorecardOrBuilder
      Returns:
      Whether the blankView field is set.
    • getBlankView

      public com.google.protobuf.Empty getBlankView()
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
      Specified by:
      getBlankView in interface ScorecardOrBuilder
      Returns:
      The blankView.
    • setBlankView

      public Scorecard.Builder setBlankView(com.google.protobuf.Empty value)
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
    • setBlankView

      public Scorecard.Builder setBlankView(com.google.protobuf.Empty.Builder builderForValue)
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
    • mergeBlankView

      public Scorecard.Builder mergeBlankView(com.google.protobuf.Empty value)
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
    • clearBlankView

      public Scorecard.Builder clearBlankView()
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
    • getBlankViewBuilder

      public com.google.protobuf.Empty.Builder getBlankViewBuilder()
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
    • getBlankViewOrBuilder

      public com.google.protobuf.EmptyOrBuilder getBlankViewOrBuilder()
       Will cause the `Scorecard` to show only the value, with no indicator to
       its value relative to its thresholds.
       
      .google.protobuf.Empty blank_view = 7;
      Specified by:
      getBlankViewOrBuilder in interface ScorecardOrBuilder
    • getThresholdsList

      public List<Threshold> getThresholdsList()
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
      Specified by:
      getThresholdsList in interface ScorecardOrBuilder
    • getThresholdsCount

      public int getThresholdsCount()
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
      Specified by:
      getThresholdsCount in interface ScorecardOrBuilder
    • getThresholds

      public Threshold getThresholds(int index)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
      Specified by:
      getThresholds in interface ScorecardOrBuilder
    • setThresholds

      public Scorecard.Builder setThresholds(int index, Threshold value)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • setThresholds

      public Scorecard.Builder setThresholds(int index, Threshold.Builder builderForValue)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • addThresholds

      public Scorecard.Builder addThresholds(Threshold value)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • addThresholds

      public Scorecard.Builder addThresholds(int index, Threshold value)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • addThresholds

      public Scorecard.Builder addThresholds(Threshold.Builder builderForValue)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • addThresholds

      public Scorecard.Builder addThresholds(int index, Threshold.Builder builderForValue)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • addAllThresholds

      public Scorecard.Builder addAllThresholds(Iterable<? extends Threshold> values)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • clearThresholds

      public Scorecard.Builder clearThresholds()
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • removeThresholds

      public Scorecard.Builder removeThresholds(int index)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • getThresholdsBuilder

      public Threshold.Builder getThresholdsBuilder(int index)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • getThresholdsOrBuilder

      public ThresholdOrBuilder getThresholdsOrBuilder(int index)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
      Specified by:
      getThresholdsOrBuilder in interface ScorecardOrBuilder
    • getThresholdsOrBuilderList

      public List<? extends ThresholdOrBuilder> getThresholdsOrBuilderList()
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
      Specified by:
      getThresholdsOrBuilderList in interface ScorecardOrBuilder
    • addThresholdsBuilder

      public Threshold.Builder addThresholdsBuilder()
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • addThresholdsBuilder

      public Threshold.Builder addThresholdsBuilder(int index)
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;
    • getThresholdsBuilderList

      public List<Threshold.Builder> getThresholdsBuilderList()
       The thresholds used to determine the state of the scorecard given the
       time series' current value. For an actual value x, the scorecard is in a
       danger state if x is less than or equal to a danger threshold that triggers
       below, or greater than or equal to a danger threshold that triggers above.
       Similarly, if x is above/below a warning threshold that triggers
       above/below, then the scorecard is in a warning state - unless x also puts
       it in a danger state. (Danger trumps warning.)
      
       As an example, consider a scorecard with the following four thresholds:
      
       ```
       {
       value: 90,
       category: 'DANGER',
       trigger: 'ABOVE',
       },
       {
       value: 70,
       category: 'WARNING',
       trigger: 'ABOVE',
       },
       {
       value: 10,
       category: 'DANGER',
       trigger: 'BELOW',
       },
       {
       value: 20,
       category: 'WARNING',
       trigger: 'BELOW',
       }
       ```
      
       Then: values less than or equal to 10 would put the scorecard in a DANGER
       state, values greater than 10 but less than or equal to 20 a WARNING state,
       values strictly between 20 and 70 an OK state, values greater than or equal
       to 70 but less than 90 a WARNING state, and values greater than or equal to
       90 a DANGER state.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 6;