Class PieChart.PieChartDataSet.Builder (2.56.0)

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

Groups a time series query definition.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PieChart.PieChartDataSet build()
Returns
Type Description
PieChart.PieChartDataSet

buildPartial()

public PieChart.PieChartDataSet buildPartial()
Returns
Type Description
PieChart.PieChartDataSet

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMinAlignmentPeriod()

public PieChart.PieChartDataSet.Builder clearMinAlignmentPeriod()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSliceNameTemplate()

public PieChart.PieChartDataSet.Builder clearSliceNameTemplate()

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

This builder for chaining.

clearTimeSeriesQuery()

public PieChart.PieChartDataSet.Builder clearTimeSeriesQuery()

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

clone()

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

getDefaultInstanceForType()

public PieChart.PieChartDataSet getDefaultInstanceForType()
Returns
Type Description
PieChart.PieChartDataSet

getDescriptorForType()

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

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
Type Description
Duration

The minAlignmentPeriod.

getMinAlignmentPeriodBuilder()

public Duration.Builder getMinAlignmentPeriodBuilder()

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

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
Type Description
DurationOrBuilder

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
Type Description
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
Type Description
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
Type Description
TimeSeriesQuery

The timeSeriesQuery.

getTimeSeriesQueryBuilder()

public TimeSeriesQuery.Builder getTimeSeriesQueryBuilder()

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

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
Type Description
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
Type Description
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
Type Description
boolean

Whether the timeSeriesQuery field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PieChart.PieChartDataSet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMinAlignmentPeriod(Duration value)

public PieChart.PieChartDataSet.Builder mergeMinAlignmentPeriod(Duration value)

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

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

mergeTimeSeriesQuery(TimeSeriesQuery value)

public PieChart.PieChartDataSet.Builder mergeTimeSeriesQuery(TimeSeriesQuery value)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinAlignmentPeriod(Duration value)

public PieChart.PieChartDataSet.Builder setMinAlignmentPeriod(Duration value)

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

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

setMinAlignmentPeriod(Duration.Builder builderForValue)

public PieChart.PieChartDataSet.Builder setMinAlignmentPeriod(Duration.Builder builderForValue)

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

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

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

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

setSliceNameTemplate(String value)

public PieChart.PieChartDataSet.Builder setSliceNameTemplate(String value)

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

Parameter
Name Description
value String

The sliceNameTemplate to set.

Returns
Type Description
PieChart.PieChartDataSet.Builder

This builder for chaining.

setSliceNameTemplateBytes(ByteString value)

public PieChart.PieChartDataSet.Builder setSliceNameTemplateBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for sliceNameTemplate to set.

Returns
Type Description
PieChart.PieChartDataSet.Builder

This builder for chaining.

setTimeSeriesQuery(TimeSeriesQuery value)

public PieChart.PieChartDataSet.Builder setTimeSeriesQuery(TimeSeriesQuery value)

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

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

setTimeSeriesQuery(TimeSeriesQuery.Builder builderForValue)

public PieChart.PieChartDataSet.Builder setTimeSeriesQuery(TimeSeriesQuery.Builder builderForValue)

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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