Package io.grpc.channelz.v1
Enum ChannelConnectivityState.State
- java.lang.Object
-
- java.lang.Enum<ChannelConnectivityState.State>
-
- io.grpc.channelz.v1.ChannelConnectivityState.State
-
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<ChannelConnectivityState.State>
- Enclosing class:
- ChannelConnectivityState
public static enum ChannelConnectivityState.State extends Enum<ChannelConnectivityState.State> implements ProtocolMessageEnum
Protobuf enumgrpc.channelz.v1.ChannelConnectivityState.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTING
CONNECTING = 2;
IDLE
IDLE = 1;
READY
READY = 3;
SHUTDOWN
SHUTDOWN = 5;
TRANSIENT_FAILURE
TRANSIENT_FAILURE = 4;
UNKNOWN
UNKNOWN = 0;
UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECTING_VALUE
CONNECTING = 2;
static int
IDLE_VALUE
IDLE = 1;
static int
READY_VALUE
READY = 3;
static int
SHUTDOWN_VALUE
SHUTDOWN = 5;
static int
TRANSIENT_FAILURE_VALUE
TRANSIENT_FAILURE = 4;
static int
UNKNOWN_VALUE
UNKNOWN = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ChannelConnectivityState.State
forNumber(int value)
static Descriptors.EnumDescriptor
getDescriptor()
Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
Descriptors.EnumValueDescriptor
getValueDescriptor()
static Internal.EnumLiteMap<ChannelConnectivityState.State>
internalGetValueMap()
static ChannelConnectivityState.State
valueOf(int value)
Deprecated.static ChannelConnectivityState.State
valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static ChannelConnectivityState.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChannelConnectivityState.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ChannelConnectivityState.State UNKNOWN
UNKNOWN = 0;
-
IDLE
public static final ChannelConnectivityState.State IDLE
IDLE = 1;
-
CONNECTING
public static final ChannelConnectivityState.State CONNECTING
CONNECTING = 2;
-
READY
public static final ChannelConnectivityState.State READY
READY = 3;
-
TRANSIENT_FAILURE
public static final ChannelConnectivityState.State TRANSIENT_FAILURE
TRANSIENT_FAILURE = 4;
-
SHUTDOWN
public static final ChannelConnectivityState.State SHUTDOWN
SHUTDOWN = 5;
-
UNRECOGNIZED
public static final ChannelConnectivityState.State UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
UNKNOWN = 0;
- See Also:
- Constant Field Values
-
IDLE_VALUE
public static final int IDLE_VALUE
IDLE = 1;
- See Also:
- Constant Field Values
-
CONNECTING_VALUE
public static final int CONNECTING_VALUE
CONNECTING = 2;
- See Also:
- Constant Field Values
-
READY_VALUE
public static final int READY_VALUE
READY = 3;
- See Also:
- Constant Field Values
-
TRANSIENT_FAILURE_VALUE
public static final int TRANSIENT_FAILURE_VALUE
TRANSIENT_FAILURE = 4;
- See Also:
- Constant Field Values
-
SHUTDOWN_VALUE
public static final int SHUTDOWN_VALUE
SHUTDOWN = 5;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ChannelConnectivityState.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 (ChannelConnectivityState.State c : ChannelConnectivityState.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 ChannelConnectivityState.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 interfaceInternal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static ChannelConnectivityState.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 ChannelConnectivityState.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 Internal.EnumLiteMap<ChannelConnectivityState.State> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ChannelConnectivityState.State valueOf(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
-
-