Class PickTimeSeriesFilter.Builder

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

public static final class PickTimeSeriesFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<PickTimeSeriesFilter.Builder> implements PickTimeSeriesFilterOrBuilder
 Describes a ranking-based time series filter. Each input time series is
 ranked with an aligner. The filter will allow up to `num_time_series` time
 series to pass through it, selecting them based on the relative ranking.

 For example, if `ranking_method` is `METHOD_MEAN`,`direction` is `BOTTOM`,
 and `num_time_series` is 3, then the 3 times series with the lowest mean
 values will pass through the filter.
 
Protobuf type google.monitoring.dashboard.v1.PickTimeSeriesFilter
  • 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<PickTimeSeriesFilter.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<PickTimeSeriesFilter.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<PickTimeSeriesFilter.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PickTimeSeriesFilter.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<PickTimeSeriesFilter.Builder>
      Throws:
      IOException
    • getRankingMethodValue

      public int getRankingMethodValue()
       `ranking_method` is applied to each time series independently to produce
       the value which will be used to compare the time series to other time
       series.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;
      Specified by:
      getRankingMethodValue in interface PickTimeSeriesFilterOrBuilder
      Returns:
      The enum numeric value on the wire for rankingMethod.
    • setRankingMethodValue

      public PickTimeSeriesFilter.Builder setRankingMethodValue(int value)
       `ranking_method` is applied to each time series independently to produce
       the value which will be used to compare the time series to other time
       series.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;
      Parameters:
      value - The enum numeric value on the wire for rankingMethod to set.
      Returns:
      This builder for chaining.
    • getRankingMethod

      public PickTimeSeriesFilter.Method getRankingMethod()
       `ranking_method` is applied to each time series independently to produce
       the value which will be used to compare the time series to other time
       series.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;
      Specified by:
      getRankingMethod in interface PickTimeSeriesFilterOrBuilder
      Returns:
      The rankingMethod.
    • setRankingMethod

       `ranking_method` is applied to each time series independently to produce
       the value which will be used to compare the time series to other time
       series.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;
      Parameters:
      value - The rankingMethod to set.
      Returns:
      This builder for chaining.
    • clearRankingMethod

      public PickTimeSeriesFilter.Builder clearRankingMethod()
       `ranking_method` is applied to each time series independently to produce
       the value which will be used to compare the time series to other time
       series.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;
      Returns:
      This builder for chaining.
    • getNumTimeSeries

      public int getNumTimeSeries()
       How many time series to allow to pass through the filter.
       
      int32 num_time_series = 2;
      Specified by:
      getNumTimeSeries in interface PickTimeSeriesFilterOrBuilder
      Returns:
      The numTimeSeries.
    • setNumTimeSeries

      public PickTimeSeriesFilter.Builder setNumTimeSeries(int value)
       How many time series to allow to pass through the filter.
       
      int32 num_time_series = 2;
      Parameters:
      value - The numTimeSeries to set.
      Returns:
      This builder for chaining.
    • clearNumTimeSeries

      public PickTimeSeriesFilter.Builder clearNumTimeSeries()
       How many time series to allow to pass through the filter.
       
      int32 num_time_series = 2;
      Returns:
      This builder for chaining.
    • getDirectionValue

      public int getDirectionValue()
       How to use the ranking to select time series that pass through the filter.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;
      Specified by:
      getDirectionValue in interface PickTimeSeriesFilterOrBuilder
      Returns:
      The enum numeric value on the wire for direction.
    • setDirectionValue

      public PickTimeSeriesFilter.Builder setDirectionValue(int value)
       How to use the ranking to select time series that pass through the filter.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;
      Parameters:
      value - The enum numeric value on the wire for direction to set.
      Returns:
      This builder for chaining.
    • getDirection

      public PickTimeSeriesFilter.Direction getDirection()
       How to use the ranking to select time series that pass through the filter.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;
      Specified by:
      getDirection in interface PickTimeSeriesFilterOrBuilder
      Returns:
      The direction.
    • setDirection

       How to use the ranking to select time series that pass through the filter.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;
      Parameters:
      value - The direction to set.
      Returns:
      This builder for chaining.
    • clearDirection

      public PickTimeSeriesFilter.Builder clearDirection()
       How to use the ranking to select time series that pass through the filter.
       
      .google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;
      Returns:
      This builder for chaining.
    • hasInterval

      public boolean hasInterval()
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
      Specified by:
      hasInterval in interface PickTimeSeriesFilterOrBuilder
      Returns:
      Whether the interval field is set.
    • getInterval

      public Interval getInterval()
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
      Specified by:
      getInterval in interface PickTimeSeriesFilterOrBuilder
      Returns:
      The interval.
    • setInterval

      public PickTimeSeriesFilter.Builder setInterval(Interval value)
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
    • setInterval

      public PickTimeSeriesFilter.Builder setInterval(Interval.Builder builderForValue)
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
    • mergeInterval

      public PickTimeSeriesFilter.Builder mergeInterval(Interval value)
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
    • clearInterval

      public PickTimeSeriesFilter.Builder clearInterval()
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
    • getIntervalBuilder

      public Interval.Builder getIntervalBuilder()
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
    • getIntervalOrBuilder

      public IntervalOrBuilder getIntervalOrBuilder()
       Select the top N streams/time series within this time interval
       
      .google.type.Interval interval = 4;
      Specified by:
      getIntervalOrBuilder in interface PickTimeSeriesFilterOrBuilder