public static enum Transport.PeerDownPacket.ReasonCase extends Enum<Transport.PeerDownPacket.ReasonCase> implements com.google.protobuf.Internal.EnumLite
Enum Constant and Description |
---|
LOCAL_BGP_NOTIFICATION |
LOCAL_NO_NOTIFICATION |
REASON_NOT_SET |
REMOTE_BGP_NOTIFICATION |
REMOTE_NO_NOTIFICATION |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Transport.PeerDownPacket.ReasonCase |
forNumber(int value) |
int |
getNumber() |
static Transport.PeerDownPacket.ReasonCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Transport.PeerDownPacket.ReasonCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transport.PeerDownPacket.ReasonCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transport.PeerDownPacket.ReasonCase LOCAL_BGP_NOTIFICATION
public static final Transport.PeerDownPacket.ReasonCase LOCAL_NO_NOTIFICATION
public static final Transport.PeerDownPacket.ReasonCase REMOTE_BGP_NOTIFICATION
public static final Transport.PeerDownPacket.ReasonCase REMOTE_NO_NOTIFICATION
public static final Transport.PeerDownPacket.ReasonCase UNKNOWN
public static final Transport.PeerDownPacket.ReasonCase REASON_NOT_SET
public static Transport.PeerDownPacket.ReasonCase[] values()
for (Transport.PeerDownPacket.ReasonCase c : Transport.PeerDownPacket.ReasonCase.values()) System.out.println(c);
public static Transport.PeerDownPacket.ReasonCase valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Deprecated public static Transport.PeerDownPacket.ReasonCase valueOf(int value)
forNumber(int)
instead.value
- The number of the enum to look for.public static Transport.PeerDownPacket.ReasonCase forNumber(int value)
public int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
Copyright © 2020. All rights reserved.