Class PieChart.Builder (2.55.0)

public static final class PieChart.Builder extends GeneratedMessageV3.Builder<PieChart.Builder> implements PieChartOrBuilder

A widget that displays timeseries data as a pie or a donut.

Protobuf type google.monitoring.dashboard.v1.PieChart

Implements

PieChartOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDataSets(Iterable<? extends PieChart.PieChartDataSet> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet>
Returns
Type Description
PieChart.Builder

addDataSets(PieChart.PieChartDataSet value)

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];

Parameter
Name Description
value PieChart.PieChartDataSet
Returns
Type Description
PieChart.Builder

addDataSets(PieChart.PieChartDataSet.Builder builderForValue)

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];

Parameter
Name Description
builderForValue PieChart.PieChartDataSet.Builder
Returns
Type Description
PieChart.Builder

addDataSets(int index, PieChart.PieChartDataSet value)

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];

Parameters
Name Description
index int
value PieChart.PieChartDataSet
Returns
Type Description
PieChart.Builder

addDataSets(int index, PieChart.PieChartDataSet.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue PieChart.PieChartDataSet.Builder
Returns
Type Description
PieChart.Builder

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];

Returns
Type Description
PieChart.PieChartDataSet.Builder

addDataSetsBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
PieChart.PieChartDataSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PieChart.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PieChart.Builder
Overrides

build()

public PieChart build()
Returns
Type Description
PieChart

buildPartial()

public PieChart buildPartial()
Returns
Type Description
PieChart

clear()

public PieChart.Builder clear()
Returns
Type Description
PieChart.Builder
Overrides

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
Type Description
PieChart.Builder

This builder for chaining.

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];

Returns
Type Description
PieChart.Builder

clearField(Descriptors.FieldDescriptor field)

public PieChart.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PieChart.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PieChart.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PieChart.Builder
Overrides

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
Type Description
PieChart.Builder

This builder for chaining.

clone()

public PieChart.Builder clone()
Returns
Type Description
PieChart.Builder
Overrides

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];

Returns
Type Description
PieChart.PieChartType

The chartType.

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];

Returns
Type Description
int

The enum numeric value on the wire for chartType.

getDataSets(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
PieChart.PieChartDataSet

getDataSetsBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
PieChart.PieChartDataSet.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

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];

Returns
Type Description
List<PieChartDataSet>

getDataSetsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
PieChart.PieChartDataSetOrBuilder

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];

Returns
Type Description
List<? extends com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder>

getDefaultInstanceForType()

public PieChart getDefaultInstanceForType()
Returns
Type Description
PieChart

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
boolean

The showLabels.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PieChart other)

public PieChart.Builder mergeFrom(PieChart other)
Parameter
Name Description
other PieChart
Returns
Type Description
PieChart.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PieChart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PieChart.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PieChart.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PieChart.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PieChart.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PieChart.Builder
Overrides

removeDataSets(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
PieChart.Builder

setChartType(PieChart.PieChartType value)

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];

Parameter
Name Description
value PieChart.PieChartType

The chartType to set.

Returns
Type Description
PieChart.Builder

This builder for chaining.

setChartTypeValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for chartType to set.

Returns
Type Description
PieChart.Builder

This builder for chaining.

setDataSets(int index, PieChart.PieChartDataSet value)

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];

Parameters
Name Description
index int
value PieChart.PieChartDataSet
Returns
Type Description
PieChart.Builder

setDataSets(int index, PieChart.PieChartDataSet.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue PieChart.PieChartDataSet.Builder
Returns
Type Description
PieChart.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PieChart.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PieChart.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PieChart.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PieChart.Builder
Overrides

setShowLabels(boolean value)

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];

Parameter
Name Description
value boolean

The showLabels to set.

Returns
Type Description
PieChart.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PieChart.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PieChart.Builder
Overrides