public static enum LightningApi.Invoice.InvoiceState extends java.lang.Enum<LightningApi.Invoice.InvoiceState> implements com.google.protobuf.ProtocolMessageEnum
lnrpc.Invoice.InvoiceState
Enum Constant and Description |
---|
ACCEPTED
ACCEPTED = 3; |
CANCELED
CANCELED = 2; |
OPEN
OPEN = 0; |
SETTLED
SETTLED = 1; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPTED_VALUE
ACCEPTED = 3; |
static int |
CANCELED_VALUE
CANCELED = 2; |
static int |
OPEN_VALUE
OPEN = 0; |
static int |
SETTLED_VALUE
SETTLED = 1; |
Modifier and Type | Method and Description |
---|---|
static LightningApi.Invoice.InvoiceState |
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.Invoice.InvoiceState> |
internalGetValueMap() |
static LightningApi.Invoice.InvoiceState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LightningApi.Invoice.InvoiceState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LightningApi.Invoice.InvoiceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightningApi.Invoice.InvoiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningApi.Invoice.InvoiceState OPEN
OPEN = 0;
public static final LightningApi.Invoice.InvoiceState SETTLED
SETTLED = 1;
public static final LightningApi.Invoice.InvoiceState CANCELED
CANCELED = 2;
public static final LightningApi.Invoice.InvoiceState ACCEPTED
ACCEPTED = 3;
public static final LightningApi.Invoice.InvoiceState UNRECOGNIZED
public static final int OPEN_VALUE
OPEN = 0;
public static final int SETTLED_VALUE
SETTLED = 1;
public static final int CANCELED_VALUE
CANCELED = 2;
public static final int ACCEPTED_VALUE
ACCEPTED = 3;
public static LightningApi.Invoice.InvoiceState[] values()
for (LightningApi.Invoice.InvoiceState c : LightningApi.Invoice.InvoiceState.values()) System.out.println(c);
public static LightningApi.Invoice.InvoiceState 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.Invoice.InvoiceState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LightningApi.Invoice.InvoiceState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LightningApi.Invoice.InvoiceState> 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.Invoice.InvoiceState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)