Class PieChart.PieChartDataSet (2.38.0)

public static final class PieChart.PieChartDataSet extends GeneratedMessageV3 implements PieChart.PieChartDataSetOrBuilder

Groups a time series query definition.

Protobuf type google.monitoring.dashboard.v1.PieChart.PieChartDataSet

Static Fields

MIN_ALIGNMENT_PERIOD_FIELD_NUMBER

public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

SLICE_NAME_TEMPLATE_FIELD_NUMBER

public static final int SLICE_NAME_TEMPLATE_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_SERIES_QUERY_FIELD_NUMBER

public static final int TIME_SERIES_QUERY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PieChart.PieChartDataSet getDefaultInstance()
Returns
TypeDescription
PieChart.PieChartDataSet

getDescriptor()

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

newBuilder()

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

newBuilder(PieChart.PieChartDataSet prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PieChart.PieChartDataSet getDefaultInstanceForType()
Returns
TypeDescription
PieChart.PieChartDataSet

getMinAlignmentPeriod()

public Duration getMinAlignmentPeriod()

Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.

.google.protobuf.Duration min_alignment_period = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The minAlignmentPeriod.

getMinAlignmentPeriodOrBuilder()

public DurationOrBuilder getMinAlignmentPeriodOrBuilder()

Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.

.google.protobuf.Duration min_alignment_period = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSliceNameTemplate()

public String getSliceNameTemplate()

Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone's value will be used for the name instead of the default name.

string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The sliceNameTemplate.

getSliceNameTemplateBytes()

public ByteString getSliceNameTemplateBytes()

Optional. A template for the name of the slice. This name will be displayed in the legend and the tooltip of the pie chart. It replaces the auto-generated names for the slices. For example, if the template is set to ${resource.labels.zone}, the zone's value will be used for the name instead of the default name.

string slice_name_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for sliceNameTemplate.

getTimeSeriesQuery()

public TimeSeriesQuery getTimeSeriesQuery()

Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.

.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeSeriesQuery

The timeSeriesQuery.

getTimeSeriesQueryOrBuilder()

public TimeSeriesQueryOrBuilder getTimeSeriesQueryOrBuilder()

Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.

.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TimeSeriesQueryOrBuilder

hasMinAlignmentPeriod()

public boolean hasMinAlignmentPeriod()

Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query. For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.

.google.protobuf.Duration min_alignment_period = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the minAlignmentPeriod field is set.

hasTimeSeriesQuery()

public boolean hasTimeSeriesQuery()

Required. The query for the PieChart. See, google.monitoring.dashboard.v1.TimeSeriesQuery.

.google.monitoring.dashboard.v1.TimeSeriesQuery time_series_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the timeSeriesQuery field is set.

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.PieChartDataSet.Builder newBuilderForType()
Returns
TypeDescription
PieChart.PieChartDataSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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