public static final class LightningApi.NodeInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.NodeInfo.Builder> implements LightningApi.NodeInfoOrBuilder
lnrpc.NodeInfo| Modifier and Type | Method and Description |
|---|---|
LightningApi.NodeInfo.Builder |
addAllChannels(java.lang.Iterable<? extends LightningApi.ChannelEdge> values)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
addChannels(int index,
LightningApi.ChannelEdge.Builder builderForValue)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
addChannels(int index,
LightningApi.ChannelEdge value)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
addChannels(LightningApi.ChannelEdge.Builder builderForValue)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
addChannels(LightningApi.ChannelEdge value)
A list of all public channels for the node.
|
LightningApi.ChannelEdge.Builder |
addChannelsBuilder()
A list of all public channels for the node.
|
LightningApi.ChannelEdge.Builder |
addChannelsBuilder(int index)
A list of all public channels for the node.
|
LightningApi.NodeInfo |
build() |
LightningApi.NodeInfo |
buildPartial() |
LightningApi.NodeInfo.Builder |
clear() |
LightningApi.NodeInfo.Builder |
clearChannels()
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
clearNode()
An individual vertex/node within the channel graph.
|
LightningApi.NodeInfo.Builder |
clearNumChannels()
The total number of channels for the node.
|
LightningApi.NodeInfo.Builder |
clearTotalCapacity()
The sum of all channels capacity for the node, denominated in satoshis.
|
LightningApi.ChannelEdge |
getChannels(int index)
A list of all public channels for the node.
|
LightningApi.ChannelEdge.Builder |
getChannelsBuilder(int index)
A list of all public channels for the node.
|
java.util.List<LightningApi.ChannelEdge.Builder> |
getChannelsBuilderList()
A list of all public channels for the node.
|
int |
getChannelsCount()
A list of all public channels for the node.
|
java.util.List<LightningApi.ChannelEdge> |
getChannelsList()
A list of all public channels for the node.
|
LightningApi.ChannelEdgeOrBuilder |
getChannelsOrBuilder(int index)
A list of all public channels for the node.
|
java.util.List<? extends LightningApi.ChannelEdgeOrBuilder> |
getChannelsOrBuilderList()
A list of all public channels for the node.
|
LightningApi.NodeInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LightningApi.LightningNode |
getNode()
An individual vertex/node within the channel graph.
|
LightningApi.LightningNode.Builder |
getNodeBuilder()
An individual vertex/node within the channel graph.
|
LightningApi.LightningNodeOrBuilder |
getNodeOrBuilder()
An individual vertex/node within the channel graph.
|
int |
getNumChannels()
The total number of channels for the node.
|
long |
getTotalCapacity()
The sum of all channels capacity for the node, denominated in satoshis.
|
boolean |
hasNode()
An individual vertex/node within the channel graph.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LightningApi.NodeInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.NodeInfo.Builder |
mergeFrom(LightningApi.NodeInfo other) |
LightningApi.NodeInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.NodeInfo.Builder |
mergeNode(LightningApi.LightningNode value)
An individual vertex/node within the channel graph.
|
LightningApi.NodeInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.NodeInfo.Builder |
removeChannels(int index)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
setChannels(int index,
LightningApi.ChannelEdge.Builder builderForValue)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
setChannels(int index,
LightningApi.ChannelEdge value)
A list of all public channels for the node.
|
LightningApi.NodeInfo.Builder |
setNode(LightningApi.LightningNode.Builder builderForValue)
An individual vertex/node within the channel graph.
|
LightningApi.NodeInfo.Builder |
setNode(LightningApi.LightningNode value)
An individual vertex/node within the channel graph.
|
LightningApi.NodeInfo.Builder |
setNumChannels(int value)
The total number of channels for the node.
|
LightningApi.NodeInfo.Builder |
setTotalCapacity(long value)
The sum of all channels capacity for the node, denominated in satoshis.
|
LightningApi.NodeInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.NodeInfo.Builder>public LightningApi.NodeInfo.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.NodeInfo.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.NodeInfo.Builder>public LightningApi.NodeInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LightningApi.NodeInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.NodeInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LightningApi.NodeInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LightningApi.NodeInfo.Builder>public LightningApi.NodeInfo.Builder mergeFrom(LightningApi.NodeInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.NodeInfo.Builder>public LightningApi.NodeInfo.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.NodeInfo.Builder>java.io.IOExceptionpublic boolean hasNode()
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.
.lnrpc.LightningNode node = 1;hasNode in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.LightningNode getNode()
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.
.lnrpc.LightningNode node = 1;getNode in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.NodeInfo.Builder setNode(LightningApi.LightningNode value)
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.
.lnrpc.LightningNode node = 1;public LightningApi.NodeInfo.Builder setNode(LightningApi.LightningNode.Builder builderForValue)
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.
.lnrpc.LightningNode node = 1;public LightningApi.NodeInfo.Builder mergeNode(LightningApi.LightningNode value)
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.
.lnrpc.LightningNode node = 1;public LightningApi.NodeInfo.Builder clearNode()
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.
.lnrpc.LightningNode node = 1;public LightningApi.LightningNode.Builder getNodeBuilder()
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.
.lnrpc.LightningNode node = 1;public LightningApi.LightningNodeOrBuilder getNodeOrBuilder()
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.
.lnrpc.LightningNode node = 1;getNodeOrBuilder in interface LightningApi.NodeInfoOrBuilderpublic int getNumChannels()
The total number of channels for the node.
uint32 num_channels = 2;getNumChannels in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.NodeInfo.Builder setNumChannels(int value)
The total number of channels for the node.
uint32 num_channels = 2;value - The numChannels to set.public LightningApi.NodeInfo.Builder clearNumChannels()
The total number of channels for the node.
uint32 num_channels = 2;public long getTotalCapacity()
The sum of all channels capacity for the node, denominated in satoshis.
int64 total_capacity = 3;getTotalCapacity in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.NodeInfo.Builder setTotalCapacity(long value)
The sum of all channels capacity for the node, denominated in satoshis.
int64 total_capacity = 3;value - The totalCapacity to set.public LightningApi.NodeInfo.Builder clearTotalCapacity()
The sum of all channels capacity for the node, denominated in satoshis.
int64 total_capacity = 3;public java.util.List<LightningApi.ChannelEdge> getChannelsList()
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;getChannelsList in interface LightningApi.NodeInfoOrBuilderpublic int getChannelsCount()
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;getChannelsCount in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.ChannelEdge getChannels(int index)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;getChannels in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.NodeInfo.Builder setChannels(int index, LightningApi.ChannelEdge value)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder setChannels(int index, LightningApi.ChannelEdge.Builder builderForValue)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder addChannels(LightningApi.ChannelEdge value)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder addChannels(int index, LightningApi.ChannelEdge value)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder addChannels(LightningApi.ChannelEdge.Builder builderForValue)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder addChannels(int index, LightningApi.ChannelEdge.Builder builderForValue)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder addAllChannels(java.lang.Iterable<? extends LightningApi.ChannelEdge> values)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder clearChannels()
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.NodeInfo.Builder removeChannels(int index)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.ChannelEdge.Builder getChannelsBuilder(int index)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.ChannelEdgeOrBuilder getChannelsOrBuilder(int index)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;getChannelsOrBuilder in interface LightningApi.NodeInfoOrBuilderpublic java.util.List<? extends LightningApi.ChannelEdgeOrBuilder> getChannelsOrBuilderList()
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;getChannelsOrBuilderList in interface LightningApi.NodeInfoOrBuilderpublic LightningApi.ChannelEdge.Builder addChannelsBuilder()
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public LightningApi.ChannelEdge.Builder addChannelsBuilder(int index)
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public java.util.List<LightningApi.ChannelEdge.Builder> getChannelsBuilderList()
A list of all public channels for the node.
repeated .lnrpc.ChannelEdge channels = 4;public final LightningApi.NodeInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.NodeInfo.Builder>public final LightningApi.NodeInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.NodeInfo.Builder>