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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PieChart.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public PieChart buildPartial()
clear()
public PieChart.Builder clear()
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];
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];
clearField(Descriptors.FieldDescriptor field)
public PieChart.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PieChart.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public PieChart.Builder clone()
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];
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
|
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
|
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];
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];
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PieChart other)
public PieChart.Builder mergeFrom(PieChart other)
public PieChart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PieChart.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PieChart.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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];
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.
|
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public PieChart.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PieChart.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final PieChart.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides