Class PieChart.Builder

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

public static final class PieChart.Builder extends com.google.protobuf.GeneratedMessage.Builder<PieChart.Builder> implements PieChartOrBuilder
 A widget that displays timeseries data as a pie or a donut.
 
Protobuf type google.monitoring.dashboard.v1.PieChart
  • 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.Builder>
    • clear

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

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

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

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

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

      public PieChart.Builder mergeFrom(PieChart other)
    • isInitialized

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

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

      public List<PieChart.PieChartDataSet> getDataSetsList()
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsList in interface PieChartOrBuilder
    • getDataSetsCount

      public int getDataSetsCount()
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsCount in interface PieChartOrBuilder
    • getDataSets

      public PieChart.PieChartDataSet getDataSets(int index)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSets in interface PieChartOrBuilder
    • setDataSets

      public PieChart.Builder setDataSets(int index, PieChart.PieChartDataSet value)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDataSets

      public PieChart.Builder setDataSets(int index, PieChart.PieChartDataSet.Builder builderForValue)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public PieChart.Builder addDataSets(PieChart.PieChartDataSet value)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public PieChart.Builder addDataSets(int index, PieChart.PieChartDataSet value)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public PieChart.Builder addDataSets(PieChart.PieChartDataSet.Builder builderForValue)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSets

      public PieChart.Builder addDataSets(int index, PieChart.PieChartDataSet.Builder builderForValue)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllDataSets

      public PieChart.Builder addAllDataSets(Iterable<? extends PieChart.PieChartDataSet> values)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDataSets

      public PieChart.Builder clearDataSets()
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeDataSets

      public PieChart.Builder removeDataSets(int index)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataSetsBuilder

      public PieChart.PieChartDataSet.Builder getDataSetsBuilder(int index)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataSetsOrBuilder

      public PieChart.PieChartDataSetOrBuilder getDataSetsOrBuilder(int index)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsOrBuilder in interface PieChartOrBuilder
    • getDataSetsOrBuilderList

      public List<? extends PieChart.PieChartDataSetOrBuilder> getDataSetsOrBuilderList()
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDataSetsOrBuilderList in interface PieChartOrBuilder
    • addDataSetsBuilder

      public PieChart.PieChartDataSet.Builder addDataSetsBuilder()
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDataSetsBuilder

      public PieChart.PieChartDataSet.Builder addDataSetsBuilder(int index)
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDataSetsBuilderList

      public List<PieChart.PieChartDataSet.Builder> getDataSetsBuilderList()
       Required. The queries for the chart's data.
       
      repeated .google.monitoring.dashboard.v1.PieChart.PieChartDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED];
    • getChartTypeValue

      public int getChartTypeValue()
       Required. Indicates the visualization type for the PieChart.
       
      .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getChartTypeValue in interface PieChartOrBuilder
      Returns:
      The enum numeric value on the wire for chartType.
    • setChartTypeValue

      public PieChart.Builder setChartTypeValue(int value)
       Required. Indicates the visualization type for the PieChart.
       
      .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for chartType to set.
      Returns:
      This builder for chaining.
    • getChartType

      public PieChart.PieChartType getChartType()
       Required. Indicates the visualization type for the PieChart.
       
      .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getChartType in interface PieChartOrBuilder
      Returns:
      The chartType.
    • setChartType

      public PieChart.Builder setChartType(PieChart.PieChartType value)
       Required. Indicates the visualization type for the PieChart.
       
      .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The chartType to set.
      Returns:
      This builder for chaining.
    • clearChartType

      public PieChart.Builder clearChartType()
       Required. Indicates the visualization type for the PieChart.
       
      .google.monitoring.dashboard.v1.PieChart.PieChartType chart_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getShowLabels

      public boolean getShowLabels()
       Optional. Indicates whether or not the pie chart should show slices' labels
       
      bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getShowLabels in interface PieChartOrBuilder
      Returns:
      The showLabels.
    • setShowLabels

      public PieChart.Builder setShowLabels(boolean value)
       Optional. Indicates whether or not the pie chart should show slices' labels
       
      bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The showLabels to set.
      Returns:
      This builder for chaining.
    • clearShowLabels

      public PieChart.Builder clearShowLabels()
       Optional. Indicates whether or not the pie chart should show slices' labels
       
      bool show_labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.