public static enum LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState extends java.lang.Enum<LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState> implements com.google.protobuf.ProtocolMessageEnum
There are three resolution states for the anchor: limbo, lost and recovered. Derive the current state from the limbo and recovered balances.Protobuf enum
lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState
Enum Constant and Description |
---|
LIMBO
The recovered_balance is zero and limbo_balance is non-zero.
|
LOST
A state that is neither LIMBO nor RECOVERED.
|
RECOVERED
The recovered_balance is non-zero.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
LIMBO_VALUE
The recovered_balance is zero and limbo_balance is non-zero.
|
static int |
LOST_VALUE
A state that is neither LIMBO nor RECOVERED.
|
static int |
RECOVERED_VALUE
The recovered_balance is non-zero.
|
Modifier and Type | Method and Description |
---|---|
static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState |
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.PendingChannelsResponse.ForceClosedChannel.AnchorState> |
internalGetValueMap() |
static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState LIMBO
The recovered_balance is zero and limbo_balance is non-zero.
LIMBO = 0;
public static final LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState RECOVERED
The recovered_balance is non-zero.
RECOVERED = 1;
public static final LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState LOST
A state that is neither LIMBO nor RECOVERED.
LOST = 2;
public static final LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState UNRECOGNIZED
public static final int LIMBO_VALUE
The recovered_balance is zero and limbo_balance is non-zero.
LIMBO = 0;
public static final int RECOVERED_VALUE
The recovered_balance is non-zero.
RECOVERED = 1;
public static final int LOST_VALUE
A state that is neither LIMBO nor RECOVERED.
LOST = 2;
public static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState[] values()
for (LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState c : LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState.values()) System.out.println(c);
public static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState 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.PendingChannelsResponse.ForceClosedChannel.AnchorState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LightningApi.PendingChannelsResponse.ForceClosedChannel.AnchorState> 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.PendingChannelsResponse.ForceClosedChannel.AnchorState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)