Package com.google.cloud.compute.v1
Enum InterconnectDiagnosticsLinkOpticalPower.State
- java.lang.Object
-
- java.lang.Enum<InterconnectDiagnosticsLinkOpticalPower.State>
-
- com.google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPower.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<InterconnectDiagnosticsLinkOpticalPower.State>
- Enclosing class:
- InterconnectDiagnosticsLinkOpticalPower
public static enum InterconnectDiagnosticsLinkOpticalPower.State extends Enum<InterconnectDiagnosticsLinkOpticalPower.State> implements com.google.protobuf.ProtocolMessageEnum
The status of the current value when compared to the warning and alarm levels for the receiving or transmitting transceiver. Possible states include: - OK: The value has not crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The value has crossed above the high alarm threshold.
Protobuf enumgoogle.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPower.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIGH_ALARM
The value has crossed above the high alarm threshold.HIGH_WARNING
The value of the current optical power has crossed above the high warning threshold.LOW_ALARM
The value of the current optical power has crossed below the low alarm threshold.LOW_WARNING
The value of the current optical power has crossed below the low warning threshold.OK
The value of the current optical power has not crossed a warning threshold.UNDEFINED_STATE
A value indicating that the enum field is not set.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
HIGH_ALARM_VALUE
The value has crossed above the high alarm threshold.static int
HIGH_WARNING_VALUE
The value of the current optical power has crossed above the high warning threshold.static int
LOW_ALARM_VALUE
The value of the current optical power has crossed below the low alarm threshold.static int
LOW_WARNING_VALUE
The value of the current optical power has crossed below the low warning threshold.static int
OK_VALUE
The value of the current optical power has not crossed a warning threshold.static int
UNDEFINED_STATE_VALUE
A value indicating that the enum field is not set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static InterconnectDiagnosticsLinkOpticalPower.State
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<InterconnectDiagnosticsLinkOpticalPower.State>
internalGetValueMap()
static InterconnectDiagnosticsLinkOpticalPower.State
valueOf(int value)
Deprecated.static InterconnectDiagnosticsLinkOpticalPower.State
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static InterconnectDiagnosticsLinkOpticalPower.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static InterconnectDiagnosticsLinkOpticalPower.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED_STATE
public static final InterconnectDiagnosticsLinkOpticalPower.State UNDEFINED_STATE
A value indicating that the enum field is not set.
UNDEFINED_STATE = 0;
-
HIGH_ALARM
public static final InterconnectDiagnosticsLinkOpticalPower.State HIGH_ALARM
The value has crossed above the high alarm threshold.
HIGH_ALARM = 305363284;
-
HIGH_WARNING
public static final InterconnectDiagnosticsLinkOpticalPower.State HIGH_WARNING
The value of the current optical power has crossed above the high warning threshold.
HIGH_WARNING = 220984799;
-
LOW_ALARM
public static final InterconnectDiagnosticsLinkOpticalPower.State LOW_ALARM
The value of the current optical power has crossed below the low alarm threshold.
LOW_ALARM = 316659046;
-
LOW_WARNING
public static final InterconnectDiagnosticsLinkOpticalPower.State LOW_WARNING
The value of the current optical power has crossed below the low warning threshold.
LOW_WARNING = 338793841;
-
OK
public static final InterconnectDiagnosticsLinkOpticalPower.State OK
The value of the current optical power has not crossed a warning threshold.
OK = 2524;
-
UNRECOGNIZED
public static final InterconnectDiagnosticsLinkOpticalPower.State UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_STATE_VALUE
public static final int UNDEFINED_STATE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_STATE = 0;
- See Also:
- Constant Field Values
-
HIGH_ALARM_VALUE
public static final int HIGH_ALARM_VALUE
The value has crossed above the high alarm threshold.
HIGH_ALARM = 305363284;
- See Also:
- Constant Field Values
-
HIGH_WARNING_VALUE
public static final int HIGH_WARNING_VALUE
The value of the current optical power has crossed above the high warning threshold.
HIGH_WARNING = 220984799;
- See Also:
- Constant Field Values
-
LOW_ALARM_VALUE
public static final int LOW_ALARM_VALUE
The value of the current optical power has crossed below the low alarm threshold.
LOW_ALARM = 316659046;
- See Also:
- Constant Field Values
-
LOW_WARNING_VALUE
public static final int LOW_WARNING_VALUE
The value of the current optical power has crossed below the low warning threshold.
LOW_WARNING = 338793841;
- See Also:
- Constant Field Values
-
OK_VALUE
public static final int OK_VALUE
The value of the current optical power has not crossed a warning threshold.
OK = 2524;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static InterconnectDiagnosticsLinkOpticalPower.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InterconnectDiagnosticsLinkOpticalPower.State c : InterconnectDiagnosticsLinkOpticalPower.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InterconnectDiagnosticsLinkOpticalPower.State valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static InterconnectDiagnosticsLinkOpticalPower.State valueOf(int value)
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
public static InterconnectDiagnosticsLinkOpticalPower.State forNumber(int value)
- 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<InterconnectDiagnosticsLinkOpticalPower.State> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static InterconnectDiagnosticsLinkOpticalPower.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-