Class Scorecard.SparkChartView.Builder (2.57.0)

public static final class Scorecard.SparkChartView.Builder extends GeneratedMessageV3.Builder<Scorecard.SparkChartView.Builder> implements Scorecard.SparkChartViewOrBuilder

A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard's timeseries.

Protobuf type google.monitoring.dashboard.v1.Scorecard.SparkChartView

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Scorecard.SparkChartView build()
Returns
Type Description
Scorecard.SparkChartView

buildPartial()

public Scorecard.SparkChartView buildPartial()
Returns
Type Description
Scorecard.SparkChartView

clear()

public Scorecard.SparkChartView.Builder clear()
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Scorecard.SparkChartView.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides

clearMinAlignmentPeriod()

public Scorecard.SparkChartView.Builder clearMinAlignmentPeriod()

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Returns
Type Description
Scorecard.SparkChartView.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Scorecard.SparkChartView.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides

clearSparkChartType()

public Scorecard.SparkChartView.Builder clearSparkChartType()

Required. The type of sparkchart to show in this chartView.

.google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Scorecard.SparkChartView.Builder

This builder for chaining.

clone()

public Scorecard.SparkChartView.Builder clone()
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides

getDefaultInstanceForType()

public Scorecard.SparkChartView getDefaultInstanceForType()
Returns
Type Description
Scorecard.SparkChartView

getDescriptorForType()

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

getMinAlignmentPeriod()

public Duration getMinAlignmentPeriod()

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Returns
Type Description
Duration

The minAlignmentPeriod.

getMinAlignmentPeriodBuilder()

public Duration.Builder getMinAlignmentPeriodBuilder()

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Returns
Type Description
Builder

getMinAlignmentPeriodOrBuilder()

public DurationOrBuilder getMinAlignmentPeriodOrBuilder()

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Returns
Type Description
DurationOrBuilder

getSparkChartType()

public SparkChartType getSparkChartType()

Required. The type of sparkchart to show in this chartView.

.google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SparkChartType

The sparkChartType.

getSparkChartTypeValue()

public int getSparkChartTypeValue()

Required. The type of sparkchart to show in this chartView.

.google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for sparkChartType.

hasMinAlignmentPeriod()

public boolean hasMinAlignmentPeriod()

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Returns
Type Description
boolean

Whether the minAlignmentPeriod field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Scorecard.SparkChartView other)

public Scorecard.SparkChartView.Builder mergeFrom(Scorecard.SparkChartView other)
Parameter
Name Description
other Scorecard.SparkChartView
Returns
Type Description
Scorecard.SparkChartView.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Scorecard.SparkChartView.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides

mergeMinAlignmentPeriod(Duration value)

public Scorecard.SparkChartView.Builder mergeMinAlignmentPeriod(Duration value)

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Parameter
Name Description
value Duration
Returns
Type Description
Scorecard.SparkChartView.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Scorecard.SparkChartView.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinAlignmentPeriod(Duration value)

public Scorecard.SparkChartView.Builder setMinAlignmentPeriod(Duration value)

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Parameter
Name Description
value Duration
Returns
Type Description
Scorecard.SparkChartView.Builder

setMinAlignmentPeriod(Duration.Builder builderForValue)

public Scorecard.SparkChartView.Builder setMinAlignmentPeriod(Duration.Builder builderForValue)

The lower bound on data point frequency in the chart 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 it would not make sense to fetch and align data at one minute intervals. This field is optional and exists only as a hint.

.google.protobuf.Duration min_alignment_period = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Scorecard.SparkChartView.Builder

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

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

setSparkChartType(SparkChartType value)

public Scorecard.SparkChartView.Builder setSparkChartType(SparkChartType value)

Required. The type of sparkchart to show in this chartView.

.google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SparkChartType

The sparkChartType to set.

Returns
Type Description
Scorecard.SparkChartView.Builder

This builder for chaining.

setSparkChartTypeValue(int value)

public Scorecard.SparkChartView.Builder setSparkChartTypeValue(int value)

Required. The type of sparkchart to show in this chartView.

.google.monitoring.dashboard.v1.SparkChartType spark_chart_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for sparkChartType to set.

Returns
Type Description
Scorecard.SparkChartView.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Scorecard.SparkChartView.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scorecard.SparkChartView.Builder
Overrides