Class PieChart.PieChartDataSet.Builder (2.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public PieChart.PieChartDataSet.Builder clear()
Returns
TypeDescription
PieChart.PieChartDataSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PieChart.PieChartDataSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PieChart.PieChartDataSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PieChart.PieChartDataSet.Builder clone()
Returns
TypeDescription
PieChart.PieChartDataSet.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PieChart.PieChartDataSet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PieChart.PieChartDataSet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
valueTimeSeriesQuery
Returns
TypeDescription
PieChart.PieChartDataSet.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public PieChart.PieChartDataSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PieChart.PieChartDataSet.Builder

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

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

The sliceNameTemplate to set.

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

The bytes for sliceNameTemplate to set.

Returns
TypeDescription
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
NameDescription
valueTimeSeriesQuery
Returns
TypeDescription
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
NameDescription
builderForValueTimeSeriesQuery.Builder
Returns
TypeDescription
PieChart.PieChartDataSet.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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