public static enum LightningApi.PeerEvent.EventType extends java.lang.Enum<LightningApi.PeerEvent.EventType> implements com.google.protobuf.ProtocolMessageEnum
lnrpc.PeerEvent.EventType
Enum Constant and Description |
---|
PEER_OFFLINE
PEER_OFFLINE = 1; |
PEER_ONLINE
PEER_ONLINE = 0; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
PEER_OFFLINE_VALUE
PEER_OFFLINE = 1; |
static int |
PEER_ONLINE_VALUE
PEER_ONLINE = 0; |
Modifier and Type | Method and Description |
---|---|
static LightningApi.PeerEvent.EventType |
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<LightningApi.PeerEvent.EventType> |
internalGetValueMap() |
static LightningApi.PeerEvent.EventType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LightningApi.PeerEvent.EventType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LightningApi.PeerEvent.EventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightningApi.PeerEvent.EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningApi.PeerEvent.EventType PEER_ONLINE
PEER_ONLINE = 0;
public static final LightningApi.PeerEvent.EventType PEER_OFFLINE
PEER_OFFLINE = 1;
public static final LightningApi.PeerEvent.EventType UNRECOGNIZED
public static final int PEER_ONLINE_VALUE
PEER_ONLINE = 0;
public static final int PEER_OFFLINE_VALUE
PEER_OFFLINE = 1;
public static LightningApi.PeerEvent.EventType[] values()
for (LightningApi.PeerEvent.EventType c : LightningApi.PeerEvent.EventType.values()) System.out.println(c);
public static LightningApi.PeerEvent.EventType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static LightningApi.PeerEvent.EventType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LightningApi.PeerEvent.EventType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LightningApi.PeerEvent.EventType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LightningApi.PeerEvent.EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)