Class PieChart (2.41.0)

public final class PieChart extends GeneratedMessageV3 implements PieChartOrBuilder

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

Protobuf type google.monitoring.dashboard.v1.PieChart

Implements

PieChartOrBuilder

Static Fields

CHART_TYPE_FIELD_NUMBER

public static final int CHART_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_SETS_FIELD_NUMBER

public static final int DATA_SETS_FIELD_NUMBER
Field Value
TypeDescription
int

SHOW_LABELS_FIELD_NUMBER

public static final int SHOW_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PieChart getDefaultInstance()
Returns
TypeDescription
PieChart

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PieChart.Builder newBuilder()
Returns
TypeDescription
PieChart.Builder

newBuilder(PieChart prototype)

public static PieChart.Builder newBuilder(PieChart prototype)
Parameter
NameDescription
prototypePieChart
Returns
TypeDescription
PieChart.Builder

parseDelimitedFrom(InputStream input)

public static PieChart parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PieChart parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PieChart parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PieChart parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PieChart parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PieChart parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PieChart parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PieChart parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PieChart parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PieChart parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PieChart parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PieChart parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PieChart
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PieChart> parser()
Returns
TypeDescription
Parser<PieChart>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getParserForType()

public Parser<PieChart> getParserForType()
Returns
TypeDescription
Parser<PieChart>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PieChart.Builder newBuilderForType()
Returns
TypeDescription
PieChart.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PieChart.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PieChart.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PieChart.Builder toBuilder()
Returns
TypeDescription
PieChart.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException