Class XyChart.Builder

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

public static final class XyChart.Builder extends com.google.protobuf.GeneratedMessage.Builder<XyChart.Builder> implements XyChartOrBuilder
 A chart that displays data on a 2D (X and Y axes) plane.
 
Protobuf type google.monitoring.dashboard.v1.XyChart
  • 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.Builder>
    • clear

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

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

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

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

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

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

      public XyChart.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.Builder>
      Throws:
      IOException
    • getDataSetsList

      public List<XyChart.DataSet> getDataSetsList()
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsList in interface XyChartOrBuilder
    • getDataSetsCount

      public int getDataSetsCount()
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsCount in interface XyChartOrBuilder
    • getDataSets

      public XyChart.DataSet getDataSets(int index)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSets in interface XyChartOrBuilder
    • setDataSets

      public XyChart.Builder setDataSets(int index, XyChart.DataSet value)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDataSets

      public XyChart.Builder setDataSets(int index, XyChart.DataSet.Builder builderForValue)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public XyChart.Builder addDataSets(XyChart.DataSet value)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public XyChart.Builder addDataSets(int index, XyChart.DataSet value)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public XyChart.Builder addDataSets(XyChart.DataSet.Builder builderForValue)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public XyChart.Builder addDataSets(int index, XyChart.DataSet.Builder builderForValue)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllDataSets

      public XyChart.Builder addAllDataSets(Iterable<? extends XyChart.DataSet> values)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDataSets

      public XyChart.Builder clearDataSets()
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeDataSets

      public XyChart.Builder removeDataSets(int index)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataSetsBuilder

      public XyChart.DataSet.Builder getDataSetsBuilder(int index)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataSetsOrBuilder

      public XyChart.DataSetOrBuilder getDataSetsOrBuilder(int index)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsOrBuilder in interface XyChartOrBuilder
    • getDataSetsOrBuilderList

      public List<? extends XyChart.DataSetOrBuilder> getDataSetsOrBuilderList()
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsOrBuilderList in interface XyChartOrBuilder
    • addDataSetsBuilder

      public XyChart.DataSet.Builder addDataSetsBuilder()
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSetsBuilder

      public XyChart.DataSet.Builder addDataSetsBuilder(int index)
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataSetsBuilderList

      public List<XyChart.DataSet.Builder> getDataSetsBuilderList()
       Required. The data displayed in this chart.
       
      repeated .google.monitoring.dashboard.v1.XyChart.DataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • hasTimeshiftDuration

      public boolean hasTimeshiftDuration()
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
      Specified by:
      hasTimeshiftDuration in interface XyChartOrBuilder
      Returns:
      Whether the timeshiftDuration field is set.
    • getTimeshiftDuration

      public com.google.protobuf.Duration getTimeshiftDuration()
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
      Specified by:
      getTimeshiftDuration in interface XyChartOrBuilder
      Returns:
      The timeshiftDuration.
    • setTimeshiftDuration

      public XyChart.Builder setTimeshiftDuration(com.google.protobuf.Duration value)
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
    • setTimeshiftDuration

      public XyChart.Builder setTimeshiftDuration(com.google.protobuf.Duration.Builder builderForValue)
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
    • mergeTimeshiftDuration

      public XyChart.Builder mergeTimeshiftDuration(com.google.protobuf.Duration value)
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
    • clearTimeshiftDuration

      public XyChart.Builder clearTimeshiftDuration()
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
    • getTimeshiftDurationBuilder

      public com.google.protobuf.Duration.Builder getTimeshiftDurationBuilder()
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
    • getTimeshiftDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeshiftDurationOrBuilder()
       The duration used to display a comparison chart. A comparison chart
       simultaneously shows values from two similar-length time periods
       (e.g., week-over-week metrics).
       The duration must be positive, and it can only be applied to charts with
       data sets of LINE plot type.
       
      .google.protobuf.Duration timeshift_duration = 4;
      Specified by:
      getTimeshiftDurationOrBuilder in interface XyChartOrBuilder
    • getThresholdsList

      public List<Threshold> getThresholdsList()
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
      Specified by:
      getThresholdsList in interface XyChartOrBuilder
    • getThresholdsCount

      public int getThresholdsCount()
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
      Specified by:
      getThresholdsCount in interface XyChartOrBuilder
    • getThresholds

      public Threshold getThresholds(int index)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
      Specified by:
      getThresholds in interface XyChartOrBuilder
    • setThresholds

      public XyChart.Builder setThresholds(int index, Threshold value)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • setThresholds

      public XyChart.Builder setThresholds(int index, Threshold.Builder builderForValue)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • addThresholds

      public XyChart.Builder addThresholds(Threshold value)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • addThresholds

      public XyChart.Builder addThresholds(int index, Threshold value)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • addThresholds

      public XyChart.Builder addThresholds(Threshold.Builder builderForValue)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • addThresholds

      public XyChart.Builder addThresholds(int index, Threshold.Builder builderForValue)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • addAllThresholds

      public XyChart.Builder addAllThresholds(Iterable<? extends Threshold> values)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • clearThresholds

      public XyChart.Builder clearThresholds()
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • removeThresholds

      public XyChart.Builder removeThresholds(int index)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • getThresholdsBuilder

      public Threshold.Builder getThresholdsBuilder(int index)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • getThresholdsOrBuilder

      public ThresholdOrBuilder getThresholdsOrBuilder(int index)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
      Specified by:
      getThresholdsOrBuilder in interface XyChartOrBuilder
    • getThresholdsOrBuilderList

      public List<? extends ThresholdOrBuilder> getThresholdsOrBuilderList()
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
      Specified by:
      getThresholdsOrBuilderList in interface XyChartOrBuilder
    • addThresholdsBuilder

      public Threshold.Builder addThresholdsBuilder()
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • addThresholdsBuilder

      public Threshold.Builder addThresholdsBuilder(int index)
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • getThresholdsBuilderList

      public List<Threshold.Builder> getThresholdsBuilderList()
       Threshold lines drawn horizontally across the chart.
       
      repeated .google.monitoring.dashboard.v1.Threshold thresholds = 5;
    • hasXAxis

      public boolean hasXAxis()
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
      Specified by:
      hasXAxis in interface XyChartOrBuilder
      Returns:
      Whether the xAxis field is set.
    • getXAxis

      public XyChart.Axis getXAxis()
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
      Specified by:
      getXAxis in interface XyChartOrBuilder
      Returns:
      The xAxis.
    • setXAxis

      public XyChart.Builder setXAxis(XyChart.Axis value)
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
    • setXAxis

      public XyChart.Builder setXAxis(XyChart.Axis.Builder builderForValue)
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
    • mergeXAxis

      public XyChart.Builder mergeXAxis(XyChart.Axis value)
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
    • clearXAxis

      public XyChart.Builder clearXAxis()
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
    • getXAxisBuilder

      public XyChart.Axis.Builder getXAxisBuilder()
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
    • getXAxisOrBuilder

      public XyChart.AxisOrBuilder getXAxisOrBuilder()
       The properties applied to the x-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis x_axis = 6;
      Specified by:
      getXAxisOrBuilder in interface XyChartOrBuilder
    • hasYAxis

      public boolean hasYAxis()
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
      Specified by:
      hasYAxis in interface XyChartOrBuilder
      Returns:
      Whether the yAxis field is set.
    • getYAxis

      public XyChart.Axis getYAxis()
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
      Specified by:
      getYAxis in interface XyChartOrBuilder
      Returns:
      The yAxis.
    • setYAxis

      public XyChart.Builder setYAxis(XyChart.Axis value)
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
    • setYAxis

      public XyChart.Builder setYAxis(XyChart.Axis.Builder builderForValue)
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
    • mergeYAxis

      public XyChart.Builder mergeYAxis(XyChart.Axis value)
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
    • clearYAxis

      public XyChart.Builder clearYAxis()
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
    • getYAxisBuilder

      public XyChart.Axis.Builder getYAxisBuilder()
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
    • getYAxisOrBuilder

      public XyChart.AxisOrBuilder getYAxisOrBuilder()
       The properties applied to the y-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y_axis = 7;
      Specified by:
      getYAxisOrBuilder in interface XyChartOrBuilder
    • hasY2Axis

      public boolean hasY2Axis()
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
      Specified by:
      hasY2Axis in interface XyChartOrBuilder
      Returns:
      Whether the y2Axis field is set.
    • getY2Axis

      public XyChart.Axis getY2Axis()
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
      Specified by:
      getY2Axis in interface XyChartOrBuilder
      Returns:
      The y2Axis.
    • setY2Axis

      public XyChart.Builder setY2Axis(XyChart.Axis value)
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
    • setY2Axis

      public XyChart.Builder setY2Axis(XyChart.Axis.Builder builderForValue)
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
    • mergeY2Axis

      public XyChart.Builder mergeY2Axis(XyChart.Axis value)
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
    • clearY2Axis

      public XyChart.Builder clearY2Axis()
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
    • getY2AxisBuilder

      public XyChart.Axis.Builder getY2AxisBuilder()
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
    • getY2AxisOrBuilder

      public XyChart.AxisOrBuilder getY2AxisOrBuilder()
       The properties applied to the y2-axis.
       
      .google.monitoring.dashboard.v1.XyChart.Axis y2_axis = 9;
      Specified by:
      getY2AxisOrBuilder in interface XyChartOrBuilder
    • hasChartOptions

      public boolean hasChartOptions()
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
      Specified by:
      hasChartOptions in interface XyChartOrBuilder
      Returns:
      Whether the chartOptions field is set.
    • getChartOptions

      public ChartOptions getChartOptions()
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
      Specified by:
      getChartOptions in interface XyChartOrBuilder
      Returns:
      The chartOptions.
    • setChartOptions

      public XyChart.Builder setChartOptions(ChartOptions value)
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
    • setChartOptions

      public XyChart.Builder setChartOptions(ChartOptions.Builder builderForValue)
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
    • mergeChartOptions

      public XyChart.Builder mergeChartOptions(ChartOptions value)
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
    • clearChartOptions

      public XyChart.Builder clearChartOptions()
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
    • getChartOptionsBuilder

      public ChartOptions.Builder getChartOptionsBuilder()
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
    • getChartOptionsOrBuilder

      public ChartOptionsOrBuilder getChartOptionsOrBuilder()
       Display options for the chart.
       
      .google.monitoring.dashboard.v1.ChartOptions chart_options = 8;
      Specified by:
      getChartOptionsOrBuilder in interface XyChartOrBuilder