Class Scorecard.SparkChartView.Builder

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

public static final class Scorecard.SparkChartView.Builder extends com.google.protobuf.GeneratedMessage.Builder<Scorecard.SparkChartView.Builder> implements Scorecard.SparkChartViewOrBuilder
 A sparkChart is a small chart suitable for inclusion in a table-cell or
 inline in text. This message contains the configuration for a sparkChart
 to show up on a Scorecard, showing recent trends of the scorecard's
 timeseries.
 
Protobuf type google.monitoring.dashboard.v1.Scorecard.SparkChartView
  • 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.SparkChartView.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.SparkChartView.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.SparkChartView.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getSparkChartTypeValue()
       Required. The type of sparkchart to show in this chartView.
       
      .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSparkChartTypeValue in interface Scorecard.SparkChartViewOrBuilder
      Returns:
      The enum numeric value on the wire for sparkChartType.
    • setSparkChartTypeValue

      public Scorecard.SparkChartView.Builder setSparkChartTypeValue(int value)
       Required. The type of sparkchart to show in this chartView.
       
      .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for sparkChartType to set.
      Returns:
      This builder for chaining.
    • getSparkChartType

      public SparkChartType getSparkChartType()
       Required. The type of sparkchart to show in this chartView.
       
      .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSparkChartType in interface Scorecard.SparkChartViewOrBuilder
      Returns:
      The sparkChartType.
    • setSparkChartType

      public Scorecard.SparkChartView.Builder setSparkChartType(SparkChartType value)
       Required. The type of sparkchart to show in this chartView.
       
      .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sparkChartType to set.
      Returns:
      This builder for chaining.
    • clearSparkChartType

      public Scorecard.SparkChartView.Builder clearSparkChartType()
       Required. The type of sparkchart to show in this chartView.
       
      .google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasMinAlignmentPeriod

      public boolean hasMinAlignmentPeriod()
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
      Specified by:
      hasMinAlignmentPeriod in interface Scorecard.SparkChartViewOrBuilder
      Returns:
      Whether the minAlignmentPeriod field is set.
    • getMinAlignmentPeriod

      public com.google.protobuf.Duration getMinAlignmentPeriod()
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
      Specified by:
      getMinAlignmentPeriod in interface Scorecard.SparkChartViewOrBuilder
      Returns:
      The minAlignmentPeriod.
    • setMinAlignmentPeriod

      public Scorecard.SparkChartView.Builder setMinAlignmentPeriod(com.google.protobuf.Duration value)
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
    • setMinAlignmentPeriod

      public Scorecard.SparkChartView.Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue)
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
    • mergeMinAlignmentPeriod

      public Scorecard.SparkChartView.Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value)
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
    • clearMinAlignmentPeriod

      public Scorecard.SparkChartView.Builder clearMinAlignmentPeriod()
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
    • getMinAlignmentPeriodBuilder

      public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder()
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
    • getMinAlignmentPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder()
       The lower bound on data point frequency in the chart implemented by
       specifying the minimum alignment period to use in a time series query.
       For example, if the data is published once every 10 minutes it would not
       make sense to fetch and align data at one minute intervals. This field is
       optional and exists only as a hint.
       
      .google.protobuf.Duration min_alignment_period = 2;
      Specified by:
      getMinAlignmentPeriodOrBuilder in interface Scorecard.SparkChartViewOrBuilder