Enum SparkChartType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SparkChartType>
@Generated
public enum SparkChartType
extends Enum<SparkChartType>
implements com.google.protobuf.ProtocolMessageEnum
Defines the possible types of spark chart supported by the `Scorecard`.Protobuf enum
google.monitoring.dashboard.v1.SparkChartType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe sparkbar will be rendered as a small bar chart.Not allowed in well-formed requests.The sparkline will be rendered as a small line chart. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe sparkbar will be rendered as a small bar chart.static final intNot allowed in well-formed requests.static final intThe sparkline will be rendered as a small line chart. -
Method Summary
Modifier and TypeMethodDescriptionstatic SparkChartTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SparkChartType>static SparkChartTypevalueOf(int value) Deprecated.static SparkChartTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SparkChartTypeReturns the enum constant of this type with the specified name.static SparkChartType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPARK_CHART_TYPE_UNSPECIFIED
Not allowed in well-formed requests.
SPARK_CHART_TYPE_UNSPECIFIED = 0; -
SPARK_LINE
The sparkline will be rendered as a small line chart.
SPARK_LINE = 1; -
SPARK_BAR
The sparkbar will be rendered as a small bar chart.
SPARK_BAR = 2; -
UNRECOGNIZED
-
-
Field Details
-
SPARK_CHART_TYPE_UNSPECIFIED_VALUE
public static final int SPARK_CHART_TYPE_UNSPECIFIED_VALUENot allowed in well-formed requests.
SPARK_CHART_TYPE_UNSPECIFIED = 0;- See Also:
-
SPARK_LINE_VALUE
public static final int SPARK_LINE_VALUEThe sparkline will be rendered as a small line chart.
SPARK_LINE = 1;- See Also:
-
SPARK_BAR_VALUE
public static final int SPARK_BAR_VALUEThe sparkbar will be rendered as a small bar chart.
SPARK_BAR = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-