public static final class LightningApi.LightningNode extends com.google.protobuf.GeneratedMessageV3 implements LightningApi.LightningNodeOrBuilder
An individual vertex/node within the channel graph. A node is connected to other nodes by one or more channel edges emanating from it. As the graph is directed, a node will also have an incoming edge attached to it for each outgoing edge.Protobuf type
lnrpc.LightningNode| Modifier and Type | Class and Description |
|---|---|
static class |
LightningApi.LightningNode.Builder
An individual vertex/node within the channel graph.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESSES_FIELD_NUMBER |
static int |
ALIAS_FIELD_NUMBER |
static int |
COLOR_FIELD_NUMBER |
static int |
CUSTOM_RECORDS_FIELD_NUMBER |
static int |
FEATURES_FIELD_NUMBER |
static int |
LAST_UPDATE_FIELD_NUMBER |
static int |
PUB_KEY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCustomRecords(long key)
Custom node announcement tlv records.
|
boolean |
containsFeatures(int key)
map<uint32, .lnrpc.Feature> features = 6; |
boolean |
equals(java.lang.Object obj) |
LightningApi.NodeAddress |
getAddresses(int index)
repeated .lnrpc.NodeAddress addresses = 4; |
int |
getAddressesCount()
repeated .lnrpc.NodeAddress addresses = 4; |
java.util.List<LightningApi.NodeAddress> |
getAddressesList()
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.NodeAddressOrBuilder |
getAddressesOrBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4; |
java.util.List<? extends LightningApi.NodeAddressOrBuilder> |
getAddressesOrBuilderList()
repeated .lnrpc.NodeAddress addresses = 4; |
java.lang.String |
getAlias()
string alias = 3; |
com.google.protobuf.ByteString |
getAliasBytes()
string alias = 3; |
java.lang.String |
getColor()
string color = 5; |
com.google.protobuf.ByteString |
getColorBytes()
string color = 5; |
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getCustomRecords()
Deprecated.
|
int |
getCustomRecordsCount()
Custom node announcement tlv records.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getCustomRecordsMap()
Custom node announcement tlv records.
|
com.google.protobuf.ByteString |
getCustomRecordsOrDefault(long key,
com.google.protobuf.ByteString defaultValue)
Custom node announcement tlv records.
|
com.google.protobuf.ByteString |
getCustomRecordsOrThrow(long key)
Custom node announcement tlv records.
|
static LightningApi.LightningNode |
getDefaultInstance() |
LightningApi.LightningNode |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeatures()
Deprecated.
|
int |
getFeaturesCount()
map<uint32, .lnrpc.Feature> features = 6; |
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeaturesMap()
map<uint32, .lnrpc.Feature> features = 6; |
LightningApi.Feature |
getFeaturesOrDefault(int key,
LightningApi.Feature defaultValue)
map<uint32, .lnrpc.Feature> features = 6; |
LightningApi.Feature |
getFeaturesOrThrow(int key)
map<uint32, .lnrpc.Feature> features = 6; |
int |
getLastUpdate()
uint32 last_update = 1; |
com.google.protobuf.Parser<LightningApi.LightningNode> |
getParserForType() |
java.lang.String |
getPubKey()
string pub_key = 2; |
com.google.protobuf.ByteString |
getPubKeyBytes()
string pub_key = 2; |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static LightningApi.LightningNode.Builder |
newBuilder() |
static LightningApi.LightningNode.Builder |
newBuilder(LightningApi.LightningNode prototype) |
LightningApi.LightningNode.Builder |
newBuilderForType() |
protected LightningApi.LightningNode.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.LightningNode |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.LightningNode |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.LightningNode |
parseFrom(byte[] data) |
static LightningApi.LightningNode |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.LightningNode |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.LightningNode |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.LightningNode |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.LightningNode |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.LightningNode |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.LightningNode |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.LightningNode |
parseFrom(java.io.InputStream input) |
static LightningApi.LightningNode |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.LightningNode> |
parser() |
LightningApi.LightningNode.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LAST_UPDATE_FIELD_NUMBER
public static final int PUB_KEY_FIELD_NUMBER
public static final int ALIAS_FIELD_NUMBER
public static final int ADDRESSES_FIELD_NUMBER
public static final int COLOR_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
public static final int CUSTOM_RECORDS_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getLastUpdate()
uint32 last_update = 1;getLastUpdate in interface LightningApi.LightningNodeOrBuilderpublic java.lang.String getPubKey()
string pub_key = 2;getPubKey in interface LightningApi.LightningNodeOrBuilderpublic com.google.protobuf.ByteString getPubKeyBytes()
string pub_key = 2;getPubKeyBytes in interface LightningApi.LightningNodeOrBuilderpublic java.lang.String getAlias()
string alias = 3;getAlias in interface LightningApi.LightningNodeOrBuilderpublic com.google.protobuf.ByteString getAliasBytes()
string alias = 3;getAliasBytes in interface LightningApi.LightningNodeOrBuilderpublic java.util.List<LightningApi.NodeAddress> getAddressesList()
repeated .lnrpc.NodeAddress addresses = 4;getAddressesList in interface LightningApi.LightningNodeOrBuilderpublic java.util.List<? extends LightningApi.NodeAddressOrBuilder> getAddressesOrBuilderList()
repeated .lnrpc.NodeAddress addresses = 4;getAddressesOrBuilderList in interface LightningApi.LightningNodeOrBuilderpublic int getAddressesCount()
repeated .lnrpc.NodeAddress addresses = 4;getAddressesCount in interface LightningApi.LightningNodeOrBuilderpublic LightningApi.NodeAddress getAddresses(int index)
repeated .lnrpc.NodeAddress addresses = 4;getAddresses in interface LightningApi.LightningNodeOrBuilderpublic LightningApi.NodeAddressOrBuilder getAddressesOrBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4;getAddressesOrBuilder in interface LightningApi.LightningNodeOrBuilderpublic java.lang.String getColor()
string color = 5;getColor in interface LightningApi.LightningNodeOrBuilderpublic com.google.protobuf.ByteString getColorBytes()
string color = 5;getColorBytes in interface LightningApi.LightningNodeOrBuilderpublic int getFeaturesCount()
LightningApi.LightningNodeOrBuildermap<uint32, .lnrpc.Feature> features = 6;getFeaturesCount in interface LightningApi.LightningNodeOrBuilderpublic boolean containsFeatures(int key)
map<uint32, .lnrpc.Feature> features = 6;containsFeatures in interface LightningApi.LightningNodeOrBuilder@Deprecated public java.util.Map<java.lang.Integer,LightningApi.Feature> getFeatures()
getFeaturesMap() instead.getFeatures in interface LightningApi.LightningNodeOrBuilderpublic java.util.Map<java.lang.Integer,LightningApi.Feature> getFeaturesMap()
map<uint32, .lnrpc.Feature> features = 6;getFeaturesMap in interface LightningApi.LightningNodeOrBuilderpublic LightningApi.Feature getFeaturesOrDefault(int key, LightningApi.Feature defaultValue)
map<uint32, .lnrpc.Feature> features = 6;getFeaturesOrDefault in interface LightningApi.LightningNodeOrBuilderpublic LightningApi.Feature getFeaturesOrThrow(int key)
map<uint32, .lnrpc.Feature> features = 6;getFeaturesOrThrow in interface LightningApi.LightningNodeOrBuilderpublic int getCustomRecordsCount()
LightningApi.LightningNodeOrBuilderCustom node announcement tlv records.
map<uint64, bytes> custom_records = 7;getCustomRecordsCount in interface LightningApi.LightningNodeOrBuilderpublic boolean containsCustomRecords(long key)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;containsCustomRecords in interface LightningApi.LightningNodeOrBuilder@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getCustomRecords()
getCustomRecordsMap() instead.getCustomRecords in interface LightningApi.LightningNodeOrBuilderpublic java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getCustomRecordsMap()
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;getCustomRecordsMap in interface LightningApi.LightningNodeOrBuilderpublic com.google.protobuf.ByteString getCustomRecordsOrDefault(long key,
com.google.protobuf.ByteString defaultValue)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;getCustomRecordsOrDefault in interface LightningApi.LightningNodeOrBuilderpublic com.google.protobuf.ByteString getCustomRecordsOrThrow(long key)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;getCustomRecordsOrThrow in interface LightningApi.LightningNodeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LightningApi.LightningNode parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.LightningNode parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.LightningNode parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.LightningNode parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.LightningNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.LightningNode parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.LightningNode parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.LightningNode parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.LightningNode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.LightningNode parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.LightningNode parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.LightningNode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LightningApi.LightningNode.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LightningApi.LightningNode.Builder newBuilder()
public static LightningApi.LightningNode.Builder newBuilder(LightningApi.LightningNode prototype)
public LightningApi.LightningNode.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LightningApi.LightningNode.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LightningApi.LightningNode getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.LightningNode> parser()
public com.google.protobuf.Parser<LightningApi.LightningNode> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LightningApi.LightningNode getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder