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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public int getLastUpdate()
uint32 last_update = 1;
getLastUpdate
in interface LightningApi.LightningNodeOrBuilder
public java.lang.String getPubKey()
string pub_key = 2;
getPubKey
in interface LightningApi.LightningNodeOrBuilder
public com.google.protobuf.ByteString getPubKeyBytes()
string pub_key = 2;
getPubKeyBytes
in interface LightningApi.LightningNodeOrBuilder
public java.lang.String getAlias()
string alias = 3;
getAlias
in interface LightningApi.LightningNodeOrBuilder
public com.google.protobuf.ByteString getAliasBytes()
string alias = 3;
getAliasBytes
in interface LightningApi.LightningNodeOrBuilder
public java.util.List<LightningApi.NodeAddress> getAddressesList()
repeated .lnrpc.NodeAddress addresses = 4;
getAddressesList
in interface LightningApi.LightningNodeOrBuilder
public java.util.List<? extends LightningApi.NodeAddressOrBuilder> getAddressesOrBuilderList()
repeated .lnrpc.NodeAddress addresses = 4;
getAddressesOrBuilderList
in interface LightningApi.LightningNodeOrBuilder
public int getAddressesCount()
repeated .lnrpc.NodeAddress addresses = 4;
getAddressesCount
in interface LightningApi.LightningNodeOrBuilder
public LightningApi.NodeAddress getAddresses(int index)
repeated .lnrpc.NodeAddress addresses = 4;
getAddresses
in interface LightningApi.LightningNodeOrBuilder
public LightningApi.NodeAddressOrBuilder getAddressesOrBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4;
getAddressesOrBuilder
in interface LightningApi.LightningNodeOrBuilder
public java.lang.String getColor()
string color = 5;
getColor
in interface LightningApi.LightningNodeOrBuilder
public com.google.protobuf.ByteString getColorBytes()
string color = 5;
getColorBytes
in interface LightningApi.LightningNodeOrBuilder
public int getFeaturesCount()
LightningApi.LightningNodeOrBuilder
map<uint32, .lnrpc.Feature> features = 6;
getFeaturesCount
in interface LightningApi.LightningNodeOrBuilder
public 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.LightningNodeOrBuilder
public java.util.Map<java.lang.Integer,LightningApi.Feature> getFeaturesMap()
map<uint32, .lnrpc.Feature> features = 6;
getFeaturesMap
in interface LightningApi.LightningNodeOrBuilder
public LightningApi.Feature getFeaturesOrDefault(int key, LightningApi.Feature defaultValue)
map<uint32, .lnrpc.Feature> features = 6;
getFeaturesOrDefault
in interface LightningApi.LightningNodeOrBuilder
public LightningApi.Feature getFeaturesOrThrow(int key)
map<uint32, .lnrpc.Feature> features = 6;
getFeaturesOrThrow
in interface LightningApi.LightningNodeOrBuilder
public int getCustomRecordsCount()
LightningApi.LightningNodeOrBuilder
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;
getCustomRecordsCount
in interface LightningApi.LightningNodeOrBuilder
public 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.LightningNodeOrBuilder
public 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.LightningNodeOrBuilder
public 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.LightningNodeOrBuilder
public com.google.protobuf.ByteString getCustomRecordsOrThrow(long key)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;
getCustomRecordsOrThrow
in interface LightningApi.LightningNodeOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static LightningApi.LightningNode parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.LightningNode parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.LightningNode parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.LightningNode parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.LightningNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.LightningNode parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.LightningNode parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.LightningNode parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.LightningNode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.LightningNode parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.LightningNode parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.LightningNode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LightningApi.LightningNode.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LightningApi.LightningNode.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public LightningApi.LightningNode getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder