Class Scorecard.SparkChartView.Builder (2.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Scorecard.SparkChartView build()
Returns
TypeDescription
Scorecard.SparkChartView

buildPartial()

public Scorecard.SparkChartView buildPartial()
Returns
TypeDescription
Scorecard.SparkChartView

clear()

public Scorecard.SparkChartView.Builder clear()
Returns
TypeDescription
Scorecard.SparkChartView.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public Scorecard.SparkChartView.Builder clone()
Returns
TypeDescription
Scorecard.SparkChartView.Builder
Overrides

getDefaultInstanceForType()

public Scorecard.SparkChartView getDefaultInstanceForType()
Returns
TypeDescription
Scorecard.SparkChartView

getDescriptorForType()

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

Whether the minAlignmentPeriod field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Scorecard.SparkChartView other)

public Scorecard.SparkChartView.Builder mergeFrom(Scorecard.SparkChartView other)
Parameter
NameDescription
otherScorecard.SparkChartView
Returns
TypeDescription
Scorecard.SparkChartView.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Scorecard.SparkChartView.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Scorecard.SparkChartView.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The sparkChartType to set.

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

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

Returns
TypeDescription
Scorecard.SparkChartView.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Scorecard.SparkChartView.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Scorecard.SparkChartView.Builder
Overrides