Package prometheus
Enum Class Types.Histogram.ResetHint
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Types.Histogram.ResetHint>,Constable
- Enclosing class:
- Types.Histogram
public static enum Types.Histogram.ResetHint
extends Enum<Types.Histogram.ResetHint>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
prometheus.Histogram.ResetHint-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is a gauge histogram where counter resets don't happen.There was no counter reset between this and the previous Histogram.Need to test for a counter reset explicitly.This is the 1st histogram after a counter reset. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis is a gauge histogram where counter resets don't happen.static final intThere was no counter reset between this and the previous Histogram.static final intNeed to test for a counter reset explicitly.static final intThis is the 1st histogram after a counter reset. -
Method Summary
Modifier and TypeMethodDescriptionstatic Types.Histogram.ResetHintforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Types.Histogram.ResetHint>static Types.Histogram.ResetHintvalueOf(int value) Deprecated.static Types.Histogram.ResetHintvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Types.Histogram.ResetHintReturns the enum constant of this class with the specified name.static Types.Histogram.ResetHint[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Need to test for a counter reset explicitly.
UNKNOWN = 0; -
YES
This is the 1st histogram after a counter reset.
YES = 1; -
NO
There was no counter reset between this and the previous Histogram.
NO = 2; -
GAUGE
This is a gauge histogram where counter resets don't happen.
GAUGE = 3; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUENeed to test for a counter reset explicitly.
UNKNOWN = 0;- See Also:
-
YES_VALUE
public static final int YES_VALUEThis is the 1st histogram after a counter reset.
YES = 1;- See Also:
-
NO_VALUE
public static final int NO_VALUEThere was no counter reset between this and the previous Histogram.
NO = 2;- See Also:
-
GAUGE_VALUE
public static final int GAUGE_VALUEThis is a gauge histogram where counter resets don't happen.
GAUGE = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
public static com.google.protobuf.Internal.EnumLiteMap<Types.Histogram.ResetHint> 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
public static Types.Histogram.ResetHint valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-