Class PieChart.Builder (2.39.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.dashboard.v1.PieChart.PieChartDataSet>
Returns
TypeDescription
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
NameDescription
valuePieChart.PieChartDataSet
Returns
TypeDescription
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
NameDescription
builderForValuePieChart.PieChartDataSet.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePieChart.PieChartDataSet
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePieChart.PieChartDataSet.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PieChart.PieChartDataSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PieChart.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PieChart.Builder
Overrides

build()

public PieChart build()
Returns
TypeDescription
PieChart

buildPartial()

public PieChart buildPartial()
Returns
TypeDescription
PieChart

clear()

public PieChart.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PieChart.Builder

clearField(Descriptors.FieldDescriptor field)

public PieChart.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PieChart.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PieChart.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PieChart.Builder

This builder for chaining.

clone()

public PieChart.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.monitoring.dashboard.v1.PieChart.PieChartDataSetOrBuilder>

getDefaultInstanceForType()

public PieChart getDefaultInstanceForType()
Returns
TypeDescription
PieChart

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The showLabels.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PieChart other)

public PieChart.Builder mergeFrom(PieChart other)
Parameter
NameDescription
otherPieChart
Returns
TypeDescription
PieChart.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PieChart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PieChart.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PieChart.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PieChart.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuePieChart.PieChartType

The chartType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valuePieChart.PieChartDataSet
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePieChart.PieChartDataSet.Builder
Returns
TypeDescription
PieChart.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PieChart.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PieChart.Builder
Overrides

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

public PieChart.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The showLabels to set.

Returns
TypeDescription
PieChart.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PieChart.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PieChart.Builder
Overrides