public static final class LightningApi.LightningNode.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder> 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 | Method and Description |
|---|---|
LightningApi.LightningNode.Builder |
addAddresses(int index,
LightningApi.NodeAddress.Builder builderForValue)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
addAddresses(int index,
LightningApi.NodeAddress value)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
addAddresses(LightningApi.NodeAddress.Builder builderForValue)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
addAddresses(LightningApi.NodeAddress value)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.NodeAddress.Builder |
addAddressesBuilder()
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.NodeAddress.Builder |
addAddressesBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
addAllAddresses(java.lang.Iterable<? extends LightningApi.NodeAddress> values)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode |
build() |
LightningApi.LightningNode |
buildPartial() |
LightningApi.LightningNode.Builder |
clear() |
LightningApi.LightningNode.Builder |
clearAddresses()
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
clearAlias()
string alias = 3; |
LightningApi.LightningNode.Builder |
clearColor()
string color = 5; |
LightningApi.LightningNode.Builder |
clearCustomRecords() |
LightningApi.LightningNode.Builder |
clearFeatures() |
LightningApi.LightningNode.Builder |
clearLastUpdate()
uint32 last_update = 1; |
LightningApi.LightningNode.Builder |
clearPubKey()
string pub_key = 2; |
boolean |
containsCustomRecords(long key)
Custom node announcement tlv records.
|
boolean |
containsFeatures(int key)
map<uint32, .lnrpc.Feature> features = 6; |
LightningApi.NodeAddress |
getAddresses(int index)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.NodeAddress.Builder |
getAddressesBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4; |
java.util.List<LightningApi.NodeAddress.Builder> |
getAddressesBuilderList()
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.
|
LightningApi.LightningNode |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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; |
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getMutableCustomRecords()
Deprecated.
|
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getMutableFeatures()
Deprecated.
|
java.lang.String |
getPubKey()
string pub_key = 2; |
com.google.protobuf.ByteString |
getPubKeyBytes()
string pub_key = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
LightningApi.LightningNode.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.LightningNode.Builder |
mergeFrom(LightningApi.LightningNode other) |
LightningApi.LightningNode.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.LightningNode.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.LightningNode.Builder |
putAllCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
Custom node announcement tlv records.
|
LightningApi.LightningNode.Builder |
putAllFeatures(java.util.Map<java.lang.Integer,LightningApi.Feature> values)
map<uint32, .lnrpc.Feature> features = 6; |
LightningApi.LightningNode.Builder |
putCustomRecords(long key,
com.google.protobuf.ByteString value)
Custom node announcement tlv records.
|
LightningApi.LightningNode.Builder |
putFeatures(int key,
LightningApi.Feature value)
map<uint32, .lnrpc.Feature> features = 6; |
LightningApi.LightningNode.Builder |
removeAddresses(int index)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
removeCustomRecords(long key)
Custom node announcement tlv records.
|
LightningApi.LightningNode.Builder |
removeFeatures(int key)
map<uint32, .lnrpc.Feature> features = 6; |
LightningApi.LightningNode.Builder |
setAddresses(int index,
LightningApi.NodeAddress.Builder builderForValue)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
setAddresses(int index,
LightningApi.NodeAddress value)
repeated .lnrpc.NodeAddress addresses = 4; |
LightningApi.LightningNode.Builder |
setAlias(java.lang.String value)
string alias = 3; |
LightningApi.LightningNode.Builder |
setAliasBytes(com.google.protobuf.ByteString value)
string alias = 3; |
LightningApi.LightningNode.Builder |
setColor(java.lang.String value)
string color = 5; |
LightningApi.LightningNode.Builder |
setColorBytes(com.google.protobuf.ByteString value)
string color = 5; |
LightningApi.LightningNode.Builder |
setLastUpdate(int value)
uint32 last_update = 1; |
LightningApi.LightningNode.Builder |
setPubKey(java.lang.String value)
string pub_key = 2; |
LightningApi.LightningNode.Builder |
setPubKeyBytes(com.google.protobuf.ByteString value)
string pub_key = 2; |
LightningApi.LightningNode.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>public LightningApi.LightningNode.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>public LightningApi.LightningNode getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.LightningNode build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.LightningNode buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.LightningNode.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.LightningNode.Builder>public LightningApi.LightningNode.Builder mergeFrom(LightningApi.LightningNode other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>public LightningApi.LightningNode.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.LightningNode.Builder>java.io.IOExceptionpublic int getLastUpdate()
uint32 last_update = 1;getLastUpdate in interface LightningApi.LightningNodeOrBuilderpublic LightningApi.LightningNode.Builder setLastUpdate(int value)
uint32 last_update = 1;value - The lastUpdate to set.public LightningApi.LightningNode.Builder clearLastUpdate()
uint32 last_update = 1;public 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 LightningApi.LightningNode.Builder setPubKey(java.lang.String value)
string pub_key = 2;value - The pubKey to set.public LightningApi.LightningNode.Builder clearPubKey()
string pub_key = 2;public LightningApi.LightningNode.Builder setPubKeyBytes(com.google.protobuf.ByteString value)
string pub_key = 2;value - The bytes for pubKey to set.public 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 LightningApi.LightningNode.Builder setAlias(java.lang.String value)
string alias = 3;value - The alias to set.public LightningApi.LightningNode.Builder clearAlias()
string alias = 3;public LightningApi.LightningNode.Builder setAliasBytes(com.google.protobuf.ByteString value)
string alias = 3;value - The bytes for alias to set.public java.util.List<LightningApi.NodeAddress> getAddressesList()
repeated .lnrpc.NodeAddress addresses = 4;getAddressesList 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.LightningNode.Builder setAddresses(int index, LightningApi.NodeAddress value)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder setAddresses(int index, LightningApi.NodeAddress.Builder builderForValue)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder addAddresses(LightningApi.NodeAddress value)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder addAddresses(int index, LightningApi.NodeAddress value)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder addAddresses(LightningApi.NodeAddress.Builder builderForValue)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder addAddresses(int index, LightningApi.NodeAddress.Builder builderForValue)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder addAllAddresses(java.lang.Iterable<? extends LightningApi.NodeAddress> values)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder clearAddresses()
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.LightningNode.Builder removeAddresses(int index)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.NodeAddress.Builder getAddressesBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.NodeAddressOrBuilder getAddressesOrBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4;getAddressesOrBuilder in interface LightningApi.LightningNodeOrBuilderpublic java.util.List<? extends LightningApi.NodeAddressOrBuilder> getAddressesOrBuilderList()
repeated .lnrpc.NodeAddress addresses = 4;getAddressesOrBuilderList in interface LightningApi.LightningNodeOrBuilderpublic LightningApi.NodeAddress.Builder addAddressesBuilder()
repeated .lnrpc.NodeAddress addresses = 4;public LightningApi.NodeAddress.Builder addAddressesBuilder(int index)
repeated .lnrpc.NodeAddress addresses = 4;public java.util.List<LightningApi.NodeAddress.Builder> getAddressesBuilderList()
repeated .lnrpc.NodeAddress addresses = 4;public 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 LightningApi.LightningNode.Builder setColor(java.lang.String value)
string color = 5;value - The color to set.public LightningApi.LightningNode.Builder clearColor()
string color = 5;public LightningApi.LightningNode.Builder setColorBytes(com.google.protobuf.ByteString value)
string color = 5;value - The bytes for color to set.public 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 LightningApi.LightningNode.Builder clearFeatures()
public LightningApi.LightningNode.Builder removeFeatures(int key)
map<uint32, .lnrpc.Feature> features = 6;@Deprecated public java.util.Map<java.lang.Integer,LightningApi.Feature> getMutableFeatures()
public LightningApi.LightningNode.Builder putFeatures(int key, LightningApi.Feature value)
map<uint32, .lnrpc.Feature> features = 6;public LightningApi.LightningNode.Builder putAllFeatures(java.util.Map<java.lang.Integer,LightningApi.Feature> values)
map<uint32, .lnrpc.Feature> features = 6;public 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 LightningApi.LightningNode.Builder clearCustomRecords()
public LightningApi.LightningNode.Builder removeCustomRecords(long key)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getMutableCustomRecords()
public LightningApi.LightningNode.Builder putCustomRecords(long key, com.google.protobuf.ByteString value)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;public LightningApi.LightningNode.Builder putAllCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
Custom node announcement tlv records.
map<uint64, bytes> custom_records = 7;public final LightningApi.LightningNode.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>public final LightningApi.LightningNode.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.LightningNode.Builder>