Class PieChart.PieChartDataSet.Builder

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

public static final class PieChart.PieChartDataSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<PieChart.PieChartDataSet.Builder> implements PieChart.PieChartDataSetOrBuilder
 Groups a time series query definition.
 
Protobuf type google.monitoring.dashboard.v1.PieChart.PieChartDataSet
  • 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<PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PieChart.PieChartDataSet.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<PieChart.PieChartDataSet.Builder>
      Throws:
      IOException
    • hasTimeSeriesQuery

      public boolean hasTimeSeriesQuery()
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTimeSeriesQuery in interface PieChart.PieChartDataSetOrBuilder
      Returns:
      Whether the timeSeriesQuery field is set.
    • getTimeSeriesQuery

      public TimeSeriesQuery getTimeSeriesQuery()
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesQuery in interface PieChart.PieChartDataSetOrBuilder
      Returns:
      The timeSeriesQuery.
    • setTimeSeriesQuery

      public PieChart.PieChartDataSet.Builder setTimeSeriesQuery(TimeSeriesQuery value)
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • setTimeSeriesQuery

      public PieChart.PieChartDataSet.Builder setTimeSeriesQuery(TimeSeriesQuery.Builder builderForValue)
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeTimeSeriesQuery

      public PieChart.PieChartDataSet.Builder mergeTimeSeriesQuery(TimeSeriesQuery value)
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearTimeSeriesQuery

      public PieChart.PieChartDataSet.Builder clearTimeSeriesQuery()
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesQueryBuilder

      public TimeSeriesQuery.Builder getTimeSeriesQueryBuilder()
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
    • getTimeSeriesQueryOrBuilder

      public TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder()
       Required. The query for the PieChart. See,
       `google.monitoring.dashboard.v1.TimeSeriesQuery`.
       
      .google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeSeriesQueryOrBuilder in interface PieChart.PieChartDataSetOrBuilder
    • getSliceNameTemplate

      public String getSliceNameTemplate()
       Optional. A template for the name of the slice. This name will be
       displayed in the legend and the tooltip of the pie chart. It replaces the
       auto-generated names for the slices. For example, if the template is set
       to
       `${resource.labels.zone}`, the zone's value will be used for the name
       instead of the default name.
       
      string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSliceNameTemplate in interface PieChart.PieChartDataSetOrBuilder
      Returns:
      The sliceNameTemplate.
    • getSliceNameTemplateBytes

      public com.google.protobuf.ByteString getSliceNameTemplateBytes()
       Optional. A template for the name of the slice. This name will be
       displayed in the legend and the tooltip of the pie chart. It replaces the
       auto-generated names for the slices. For example, if the template is set
       to
       `${resource.labels.zone}`, the zone's value will be used for the name
       instead of the default name.
       
      string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSliceNameTemplateBytes in interface PieChart.PieChartDataSetOrBuilder
      Returns:
      The bytes for sliceNameTemplate.
    • setSliceNameTemplate

      public PieChart.PieChartDataSet.Builder setSliceNameTemplate(String value)
       Optional. A template for the name of the slice. This name will be
       displayed in the legend and the tooltip of the pie chart. It replaces the
       auto-generated names for the slices. For example, if the template is set
       to
       `${resource.labels.zone}`, the zone's value will be used for the name
       instead of the default name.
       
      string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sliceNameTemplate to set.
      Returns:
      This builder for chaining.
    • clearSliceNameTemplate

      public PieChart.PieChartDataSet.Builder clearSliceNameTemplate()
       Optional. A template for the name of the slice. This name will be
       displayed in the legend and the tooltip of the pie chart. It replaces the
       auto-generated names for the slices. For example, if the template is set
       to
       `${resource.labels.zone}`, the zone's value will be used for the name
       instead of the default name.
       
      string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSliceNameTemplateBytes

      public PieChart.PieChartDataSet.Builder setSliceNameTemplateBytes(com.google.protobuf.ByteString value)
       Optional. A template for the name of the slice. This name will be
       displayed in the legend and the tooltip of the pie chart. It replaces the
       auto-generated names for the slices. For example, if the template is set
       to
       `${resource.labels.zone}`, the zone's value will be used for the name
       instead of the default name.
       
      string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for sliceNameTemplate 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMinAlignmentPeriod in interface PieChart.PieChartDataSetOrBuilder
      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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinAlignmentPeriod in interface PieChart.PieChartDataSetOrBuilder
      Returns:
      The minAlignmentPeriod.
    • setMinAlignmentPeriod

      public PieChart.PieChartDataSet.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setMinAlignmentPeriod

      public PieChart.PieChartDataSet.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMinAlignmentPeriod

      public PieChart.PieChartDataSet.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearMinAlignmentPeriod

      public PieChart.PieChartDataSet.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 = 3 [(.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 = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinAlignmentPeriodOrBuilder in interface PieChart.PieChartDataSetOrBuilder