Class XyChart.DataSet.Builder

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

public static final class XyChart.DataSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<XyChart.DataSet.Builder> implements XyChart.DataSetOrBuilder
 Groups a time series query definition with charting options.
 
Protobuf type google.monitoring.dashboard.v1.XyChart.DataSet
  • 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<XyChart.DataSet.Builder>
    • clear

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

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

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

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

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

      public XyChart.DataSet.Builder mergeFrom(XyChart.DataSet other)
    • isInitialized

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

      public XyChart.DataSet.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<XyChart.DataSet.Builder>
      Throws:
      IOException
    • 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 XyChart.DataSetOrBuilder
      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 XyChart.DataSetOrBuilder
      Returns:
      The timeSeriesQuery.
    • setTimeSeriesQuery

      public XyChart.DataSet.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 XyChart.DataSet.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 XyChart.DataSet.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 XyChart.DataSet.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 XyChart.DataSetOrBuilder
    • getPlotTypeValue

      public int getPlotTypeValue()
       How this data should be plotted on the chart.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;
      Specified by:
      getPlotTypeValue in interface XyChart.DataSetOrBuilder
      Returns:
      The enum numeric value on the wire for plotType.
    • setPlotTypeValue

      public XyChart.DataSet.Builder setPlotTypeValue(int value)
       How this data should be plotted on the chart.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;
      Parameters:
      value - The enum numeric value on the wire for plotType to set.
      Returns:
      This builder for chaining.
    • getPlotType

      public XyChart.DataSet.PlotType getPlotType()
       How this data should be plotted on the chart.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;
      Specified by:
      getPlotType in interface XyChart.DataSetOrBuilder
      Returns:
      The plotType.
    • setPlotType

       How this data should be plotted on the chart.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;
      Parameters:
      value - The plotType to set.
      Returns:
      This builder for chaining.
    • clearPlotType

      public XyChart.DataSet.Builder clearPlotType()
       How this data should be plotted on the chart.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.PlotType plot_type = 2;
      Returns:
      This builder for chaining.
    • getLegendTemplate

      public String getLegendTemplate()
       A template string for naming `TimeSeries` in the resulting data set.
       This should be a string with interpolations of the form `${label_name}`,
       which will resolve to the label's value.
       
      string legend_template = 3;
      Specified by:
      getLegendTemplate in interface XyChart.DataSetOrBuilder
      Returns:
      The legendTemplate.
    • getLegendTemplateBytes

      public com.google.protobuf.ByteString getLegendTemplateBytes()
       A template string for naming `TimeSeries` in the resulting data set.
       This should be a string with interpolations of the form `${label_name}`,
       which will resolve to the label's value.
       
      string legend_template = 3;
      Specified by:
      getLegendTemplateBytes in interface XyChart.DataSetOrBuilder
      Returns:
      The bytes for legendTemplate.
    • setLegendTemplate

      public XyChart.DataSet.Builder setLegendTemplate(String value)
       A template string for naming `TimeSeries` in the resulting data set.
       This should be a string with interpolations of the form `${label_name}`,
       which will resolve to the label's value.
       
      string legend_template = 3;
      Parameters:
      value - The legendTemplate to set.
      Returns:
      This builder for chaining.
    • clearLegendTemplate

      public XyChart.DataSet.Builder clearLegendTemplate()
       A template string for naming `TimeSeries` in the resulting data set.
       This should be a string with interpolations of the form `${label_name}`,
       which will resolve to the label's value.
       
      string legend_template = 3;
      Returns:
      This builder for chaining.
    • setLegendTemplateBytes

      public XyChart.DataSet.Builder setLegendTemplateBytes(com.google.protobuf.ByteString value)
       A template string for naming `TimeSeries` in the resulting data set.
       This should be a string with interpolations of the form `${label_name}`,
       which will resolve to the label's value.
       
      string legend_template = 3;
      Parameters:
      value - The bytes for legendTemplate to set.
      Returns:
      This builder for chaining.
    • hasMinAlignmentPeriod

      public boolean hasMinAlignmentPeriod()
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMinAlignmentPeriod in interface XyChart.DataSetOrBuilder
      Returns:
      Whether the minAlignmentPeriod field is set.
    • getMinAlignmentPeriod

      public com.google.protobuf.Duration getMinAlignmentPeriod()
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinAlignmentPeriod in interface XyChart.DataSetOrBuilder
      Returns:
      The minAlignmentPeriod.
    • setMinAlignmentPeriod

      public XyChart.DataSet.Builder setMinAlignmentPeriod(com.google.protobuf.Duration value)
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setMinAlignmentPeriod

      public XyChart.DataSet.Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMinAlignmentPeriod

      public XyChart.DataSet.Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value)
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearMinAlignmentPeriod

      public XyChart.DataSet.Builder clearMinAlignmentPeriod()
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMinAlignmentPeriodBuilder

      public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder()
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMinAlignmentPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder()
       Optional. The lower bound on data point frequency for this data set,
       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,
       the `min_alignment_period` should be at least 10 minutes. It would not
       make sense to fetch and align data at one minute intervals.
       
      .google.protobuf.Duration min_alignment_period = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinAlignmentPeriodOrBuilder in interface XyChart.DataSetOrBuilder
    • getTargetAxisValue

      public int getTargetAxisValue()
       Optional. The target axis to use for plotting the metric.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetAxisValue in interface XyChart.DataSetOrBuilder
      Returns:
      The enum numeric value on the wire for targetAxis.
    • setTargetAxisValue

      public XyChart.DataSet.Builder setTargetAxisValue(int value)
       Optional. The target axis to use for plotting the metric.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for targetAxis to set.
      Returns:
      This builder for chaining.
    • getTargetAxis

      public XyChart.DataSet.TargetAxis getTargetAxis()
       Optional. The target axis to use for plotting the metric.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetAxis in interface XyChart.DataSetOrBuilder
      Returns:
      The targetAxis.
    • setTargetAxis

       Optional. The target axis to use for plotting the metric.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The targetAxis to set.
      Returns:
      This builder for chaining.
    • clearTargetAxis

      public XyChart.DataSet.Builder clearTargetAxis()
       Optional. The target axis to use for plotting the metric.
       
      .google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis target_axis = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.