public static enum PeersOuterClass.FeatureSet extends java.lang.Enum<PeersOuterClass.FeatureSet> implements com.google.protobuf.ProtocolMessageEnum
peersrpc.FeatureSet
Enum Constant and Description |
---|
SET_INIT
SET_INIT identifies features that should be sent in an Init message to
a remote peer.
|
SET_INVOICE
SET_INVOICE identifies features that should be advertised on invoices
generated by the daemon.
|
SET_INVOICE_AMP
SET_INVOICE_AMP identifies the features that should be advertised on
AMP invoices generated by the daemon.
|
SET_LEGACY_GLOBAL
SET_LEGACY_GLOBAL identifies features that should be set in the legacy
GlobalFeatures field of an Init message, which maintains backwards
compatibility with nodes that haven't implemented flat features.
|
SET_NODE_ANN
SET_NODE_ANN identifies features that should be advertised on node
announcements.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
SET_INIT_VALUE
SET_INIT identifies features that should be sent in an Init message to
a remote peer.
|
static int |
SET_INVOICE_AMP_VALUE
SET_INVOICE_AMP identifies the features that should be advertised on
AMP invoices generated by the daemon.
|
static int |
SET_INVOICE_VALUE
SET_INVOICE identifies features that should be advertised on invoices
generated by the daemon.
|
static int |
SET_LEGACY_GLOBAL_VALUE
SET_LEGACY_GLOBAL identifies features that should be set in the legacy
GlobalFeatures field of an Init message, which maintains backwards
compatibility with nodes that haven't implemented flat features.
|
static int |
SET_NODE_ANN_VALUE
SET_NODE_ANN identifies features that should be advertised on node
announcements.
|
Modifier and Type | Method and Description |
---|---|
static PeersOuterClass.FeatureSet |
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<PeersOuterClass.FeatureSet> |
internalGetValueMap() |
static PeersOuterClass.FeatureSet |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PeersOuterClass.FeatureSet |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PeersOuterClass.FeatureSet |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeersOuterClass.FeatureSet[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeersOuterClass.FeatureSet SET_INIT
SET_INIT identifies features that should be sent in an Init message to a remote peer.
SET_INIT = 0;
public static final PeersOuterClass.FeatureSet SET_LEGACY_GLOBAL
SET_LEGACY_GLOBAL identifies features that should be set in the legacy GlobalFeatures field of an Init message, which maintains backwards compatibility with nodes that haven't implemented flat features.
SET_LEGACY_GLOBAL = 1;
public static final PeersOuterClass.FeatureSet SET_NODE_ANN
SET_NODE_ANN identifies features that should be advertised on node announcements.
SET_NODE_ANN = 2;
public static final PeersOuterClass.FeatureSet SET_INVOICE
SET_INVOICE identifies features that should be advertised on invoices generated by the daemon.
SET_INVOICE = 3;
public static final PeersOuterClass.FeatureSet SET_INVOICE_AMP
SET_INVOICE_AMP identifies the features that should be advertised on AMP invoices generated by the daemon.
SET_INVOICE_AMP = 4;
public static final PeersOuterClass.FeatureSet UNRECOGNIZED
public static final int SET_INIT_VALUE
SET_INIT identifies features that should be sent in an Init message to a remote peer.
SET_INIT = 0;
public static final int SET_LEGACY_GLOBAL_VALUE
SET_LEGACY_GLOBAL identifies features that should be set in the legacy GlobalFeatures field of an Init message, which maintains backwards compatibility with nodes that haven't implemented flat features.
SET_LEGACY_GLOBAL = 1;
public static final int SET_NODE_ANN_VALUE
SET_NODE_ANN identifies features that should be advertised on node announcements.
SET_NODE_ANN = 2;
public static final int SET_INVOICE_VALUE
SET_INVOICE identifies features that should be advertised on invoices generated by the daemon.
SET_INVOICE = 3;
public static final int SET_INVOICE_AMP_VALUE
SET_INVOICE_AMP identifies the features that should be advertised on AMP invoices generated by the daemon.
SET_INVOICE_AMP = 4;
public static PeersOuterClass.FeatureSet[] values()
for (PeersOuterClass.FeatureSet c : PeersOuterClass.FeatureSet.values()) System.out.println(c);
public static PeersOuterClass.FeatureSet 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 PeersOuterClass.FeatureSet valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static PeersOuterClass.FeatureSet forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<PeersOuterClass.FeatureSet> 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 PeersOuterClass.FeatureSet valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)