Enum Threshold.Direction
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Threshold.Direction>
- Enclosing class:
- Threshold
public static enum Threshold.Direction
extends Enum<Threshold.Direction>
implements com.google.protobuf.ProtocolMessageEnum
Whether the threshold is considered crossed by an actual value above or below its threshold value.Protobuf enum
google.monitoring.dashboard.v1.Threshold.Direction-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe threshold will be considered crossed if the actual value is above the threshold value.The threshold will be considered crossed if the actual value is below the threshold value.Not allowed in well-formed requests. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe threshold will be considered crossed if the actual value is above the threshold value.static final intThe threshold will be considered crossed if the actual value is below the threshold value.static final intNot allowed in well-formed requests. -
Method Summary
Modifier and TypeMethodDescriptionstatic Threshold.DirectionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Threshold.Direction>static Threshold.DirectionvalueOf(int value) Deprecated.static Threshold.DirectionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Threshold.DirectionReturns the enum constant of this type with the specified name.static Threshold.Direction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DIRECTION_UNSPECIFIED
Not allowed in well-formed requests.
DIRECTION_UNSPECIFIED = 0; -
ABOVE
The threshold will be considered crossed if the actual value is above the threshold value.
ABOVE = 1; -
BELOW
The threshold will be considered crossed if the actual value is below the threshold value.
BELOW = 2; -
UNRECOGNIZED
-
-
Field Details
-
DIRECTION_UNSPECIFIED_VALUE
public static final int DIRECTION_UNSPECIFIED_VALUENot allowed in well-formed requests.
DIRECTION_UNSPECIFIED = 0;- See Also:
-
ABOVE_VALUE
public static final int ABOVE_VALUEThe threshold will be considered crossed if the actual value is above the threshold value.
ABOVE = 1;- See Also:
-
BELOW_VALUE
public static final int BELOW_VALUEThe threshold will be considered crossed if the actual value is below the threshold value.
BELOW = 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
-