Class Scorecard.SparkChartView (2.43.0)

public static final class Scorecard.SparkChartView extends GeneratedMessageV3 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 Fields

MIN_ALIGNMENT_PERIOD_FIELD_NUMBER

public static final int MIN_ALIGNMENT_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

SPARK_CHART_TYPE_FIELD_NUMBER

public static final int SPARK_CHART_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Scorecard.SparkChartView getDefaultInstance()
Returns
TypeDescription
Scorecard.SparkChartView

getDescriptor()

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

newBuilder()

public static Scorecard.SparkChartView.Builder newBuilder()
Returns
TypeDescription
Scorecard.SparkChartView.Builder

newBuilder(Scorecard.SparkChartView prototype)

public static Scorecard.SparkChartView.Builder newBuilder(Scorecard.SparkChartView prototype)
Parameter
NameDescription
prototypeScorecard.SparkChartView
Returns
TypeDescription
Scorecard.SparkChartView.Builder

parseDelimitedFrom(InputStream input)

public static Scorecard.SparkChartView parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Scorecard.SparkChartView
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Scorecard.SparkChartView parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Scorecard.SparkChartView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Scorecard.SparkChartView parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Scorecard.SparkChartView
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Scorecard.SparkChartView parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Scorecard.SparkChartView
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Scorecard.SparkChartView parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Scorecard.SparkChartView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Scorecard.SparkChartView> parser()
Returns
TypeDescription
Parser<SparkChartView>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

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.

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

getParserForType()

public Parser<Scorecard.SparkChartView> getParserForType()
Returns
TypeDescription
Parser<SparkChartView>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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 Scorecard.SparkChartView.Builder newBuilderForType()
Returns
TypeDescription
Scorecard.SparkChartView.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Scorecard.SparkChartView.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Scorecard.SparkChartView.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Scorecard.SparkChartView.Builder toBuilder()
Returns
TypeDescription
Scorecard.SparkChartView.Builder

writeTo(CodedOutputStream output)

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