public static final class LightningApi.ChannelEdge.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder> implements LightningApi.ChannelEdgeOrBuilder
A fully authenticated channel along with all its unique attributes. Once an authenticated channel announcement has been processed on the network, then an instance of ChannelEdgeInfo encapsulating the channels attributes is stored. The other portions relevant to routing policy of a channel are stored within a ChannelEdgePolicy for each direction of the channel.Protobuf type
lnrpc.ChannelEdge
Modifier and Type | Method and Description |
---|---|
LightningApi.ChannelEdge |
build() |
LightningApi.ChannelEdge |
buildPartial() |
LightningApi.ChannelEdge.Builder |
clear() |
LightningApi.ChannelEdge.Builder |
clearCapacity()
int64 capacity = 6; |
LightningApi.ChannelEdge.Builder |
clearChannelId()
The unique channel ID for the channel.
|
LightningApi.ChannelEdge.Builder |
clearChanPoint()
string chan_point = 2; |
LightningApi.ChannelEdge.Builder |
clearCustomRecords() |
LightningApi.ChannelEdge.Builder |
clearLastUpdate()
Deprecated.
lnrpc.ChannelEdge.last_update is deprecated.
See lightning.api.proto;l=3276
|
LightningApi.ChannelEdge.Builder |
clearNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7; |
LightningApi.ChannelEdge.Builder |
clearNode1Pub()
string node1_pub = 4; |
LightningApi.ChannelEdge.Builder |
clearNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8; |
LightningApi.ChannelEdge.Builder |
clearNode2Pub()
string node2_pub = 5; |
boolean |
containsCustomRecords(long key)
Custom channel announcement tlv records.
|
long |
getCapacity()
int64 capacity = 6; |
long |
getChannelId()
The unique channel ID for the channel.
|
java.lang.String |
getChanPoint()
string chan_point = 2; |
com.google.protobuf.ByteString |
getChanPointBytes()
string chan_point = 2; |
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getCustomRecords()
Deprecated.
|
int |
getCustomRecordsCount()
Custom channel announcement tlv records.
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getCustomRecordsMap()
Custom channel announcement tlv records.
|
com.google.protobuf.ByteString |
getCustomRecordsOrDefault(long key,
com.google.protobuf.ByteString defaultValue)
Custom channel announcement tlv records.
|
com.google.protobuf.ByteString |
getCustomRecordsOrThrow(long key)
Custom channel announcement tlv records.
|
LightningApi.ChannelEdge |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getLastUpdate()
Deprecated.
lnrpc.ChannelEdge.last_update is deprecated.
See lightning.api.proto;l=3276
|
java.util.Map<java.lang.Long,com.google.protobuf.ByteString> |
getMutableCustomRecords()
Deprecated.
|
LightningApi.RoutingPolicy |
getNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7; |
LightningApi.RoutingPolicy.Builder |
getNode1PolicyBuilder()
.lnrpc.RoutingPolicy node1_policy = 7; |
LightningApi.RoutingPolicyOrBuilder |
getNode1PolicyOrBuilder()
.lnrpc.RoutingPolicy node1_policy = 7; |
java.lang.String |
getNode1Pub()
string node1_pub = 4; |
com.google.protobuf.ByteString |
getNode1PubBytes()
string node1_pub = 4; |
LightningApi.RoutingPolicy |
getNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8; |
LightningApi.RoutingPolicy.Builder |
getNode2PolicyBuilder()
.lnrpc.RoutingPolicy node2_policy = 8; |
LightningApi.RoutingPolicyOrBuilder |
getNode2PolicyOrBuilder()
.lnrpc.RoutingPolicy node2_policy = 8; |
java.lang.String |
getNode2Pub()
string node2_pub = 5; |
com.google.protobuf.ByteString |
getNode2PubBytes()
string node2_pub = 5; |
boolean |
hasNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7; |
boolean |
hasNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8; |
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.ChannelEdge.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LightningApi.ChannelEdge.Builder |
mergeFrom(LightningApi.ChannelEdge other) |
LightningApi.ChannelEdge.Builder |
mergeFrom(com.google.protobuf.Message other) |
LightningApi.ChannelEdge.Builder |
mergeNode1Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node1_policy = 7; |
LightningApi.ChannelEdge.Builder |
mergeNode2Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node2_policy = 8; |
LightningApi.ChannelEdge.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LightningApi.ChannelEdge.Builder |
putAllCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
Custom channel announcement tlv records.
|
LightningApi.ChannelEdge.Builder |
putCustomRecords(long key,
com.google.protobuf.ByteString value)
Custom channel announcement tlv records.
|
LightningApi.ChannelEdge.Builder |
removeCustomRecords(long key)
Custom channel announcement tlv records.
|
LightningApi.ChannelEdge.Builder |
setCapacity(long value)
int64 capacity = 6; |
LightningApi.ChannelEdge.Builder |
setChannelId(long value)
The unique channel ID for the channel.
|
LightningApi.ChannelEdge.Builder |
setChanPoint(java.lang.String value)
string chan_point = 2; |
LightningApi.ChannelEdge.Builder |
setChanPointBytes(com.google.protobuf.ByteString value)
string chan_point = 2; |
LightningApi.ChannelEdge.Builder |
setLastUpdate(int value)
Deprecated.
lnrpc.ChannelEdge.last_update is deprecated.
See lightning.api.proto;l=3276
|
LightningApi.ChannelEdge.Builder |
setNode1Policy(LightningApi.RoutingPolicy.Builder builderForValue)
.lnrpc.RoutingPolicy node1_policy = 7; |
LightningApi.ChannelEdge.Builder |
setNode1Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node1_policy = 7; |
LightningApi.ChannelEdge.Builder |
setNode1Pub(java.lang.String value)
string node1_pub = 4; |
LightningApi.ChannelEdge.Builder |
setNode1PubBytes(com.google.protobuf.ByteString value)
string node1_pub = 4; |
LightningApi.ChannelEdge.Builder |
setNode2Policy(LightningApi.RoutingPolicy.Builder builderForValue)
.lnrpc.RoutingPolicy node2_policy = 8; |
LightningApi.ChannelEdge.Builder |
setNode2Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node2_policy = 8; |
LightningApi.ChannelEdge.Builder |
setNode2Pub(java.lang.String value)
string node2_pub = 5; |
LightningApi.ChannelEdge.Builder |
setNode2PubBytes(com.google.protobuf.ByteString value)
string node2_pub = 5; |
LightningApi.ChannelEdge.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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.ChannelEdge.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>
public LightningApi.ChannelEdge.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>
public LightningApi.ChannelEdge getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public LightningApi.ChannelEdge build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ChannelEdge buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public LightningApi.ChannelEdge.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.ChannelEdge.Builder>
public LightningApi.ChannelEdge.Builder mergeFrom(LightningApi.ChannelEdge other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>
public LightningApi.ChannelEdge.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<LightningApi.ChannelEdge.Builder>
java.io.IOException
public long getChannelId()
The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.
uint64 channel_id = 1 [jstype = JS_STRING];
getChannelId
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setChannelId(long value)
The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.
uint64 channel_id = 1 [jstype = JS_STRING];
value
- The channelId to set.public LightningApi.ChannelEdge.Builder clearChannelId()
The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel.
uint64 channel_id = 1 [jstype = JS_STRING];
public java.lang.String getChanPoint()
string chan_point = 2;
getChanPoint
in interface LightningApi.ChannelEdgeOrBuilder
public com.google.protobuf.ByteString getChanPointBytes()
string chan_point = 2;
getChanPointBytes
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setChanPoint(java.lang.String value)
string chan_point = 2;
value
- The chanPoint to set.public LightningApi.ChannelEdge.Builder clearChanPoint()
string chan_point = 2;
public LightningApi.ChannelEdge.Builder setChanPointBytes(com.google.protobuf.ByteString value)
string chan_point = 2;
value
- The bytes for chanPoint to set.@Deprecated public int getLastUpdate()
uint32 last_update = 3 [deprecated = true];
getLastUpdate
in interface LightningApi.ChannelEdgeOrBuilder
@Deprecated public LightningApi.ChannelEdge.Builder setLastUpdate(int value)
uint32 last_update = 3 [deprecated = true];
value
- The lastUpdate to set.@Deprecated public LightningApi.ChannelEdge.Builder clearLastUpdate()
uint32 last_update = 3 [deprecated = true];
public java.lang.String getNode1Pub()
string node1_pub = 4;
getNode1Pub
in interface LightningApi.ChannelEdgeOrBuilder
public com.google.protobuf.ByteString getNode1PubBytes()
string node1_pub = 4;
getNode1PubBytes
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setNode1Pub(java.lang.String value)
string node1_pub = 4;
value
- The node1Pub to set.public LightningApi.ChannelEdge.Builder clearNode1Pub()
string node1_pub = 4;
public LightningApi.ChannelEdge.Builder setNode1PubBytes(com.google.protobuf.ByteString value)
string node1_pub = 4;
value
- The bytes for node1Pub to set.public java.lang.String getNode2Pub()
string node2_pub = 5;
getNode2Pub
in interface LightningApi.ChannelEdgeOrBuilder
public com.google.protobuf.ByteString getNode2PubBytes()
string node2_pub = 5;
getNode2PubBytes
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setNode2Pub(java.lang.String value)
string node2_pub = 5;
value
- The node2Pub to set.public LightningApi.ChannelEdge.Builder clearNode2Pub()
string node2_pub = 5;
public LightningApi.ChannelEdge.Builder setNode2PubBytes(com.google.protobuf.ByteString value)
string node2_pub = 5;
value
- The bytes for node2Pub to set.public long getCapacity()
int64 capacity = 6;
getCapacity
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setCapacity(long value)
int64 capacity = 6;
value
- The capacity to set.public LightningApi.ChannelEdge.Builder clearCapacity()
int64 capacity = 6;
public boolean hasNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7;
hasNode1Policy
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.RoutingPolicy getNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7;
getNode1Policy
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setNode1Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node1_policy = 7;
public LightningApi.ChannelEdge.Builder setNode1Policy(LightningApi.RoutingPolicy.Builder builderForValue)
.lnrpc.RoutingPolicy node1_policy = 7;
public LightningApi.ChannelEdge.Builder mergeNode1Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node1_policy = 7;
public LightningApi.ChannelEdge.Builder clearNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7;
public LightningApi.RoutingPolicy.Builder getNode1PolicyBuilder()
.lnrpc.RoutingPolicy node1_policy = 7;
public LightningApi.RoutingPolicyOrBuilder getNode1PolicyOrBuilder()
.lnrpc.RoutingPolicy node1_policy = 7;
getNode1PolicyOrBuilder
in interface LightningApi.ChannelEdgeOrBuilder
public boolean hasNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8;
hasNode2Policy
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.RoutingPolicy getNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8;
getNode2Policy
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder setNode2Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node2_policy = 8;
public LightningApi.ChannelEdge.Builder setNode2Policy(LightningApi.RoutingPolicy.Builder builderForValue)
.lnrpc.RoutingPolicy node2_policy = 8;
public LightningApi.ChannelEdge.Builder mergeNode2Policy(LightningApi.RoutingPolicy value)
.lnrpc.RoutingPolicy node2_policy = 8;
public LightningApi.ChannelEdge.Builder clearNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8;
public LightningApi.RoutingPolicy.Builder getNode2PolicyBuilder()
.lnrpc.RoutingPolicy node2_policy = 8;
public LightningApi.RoutingPolicyOrBuilder getNode2PolicyOrBuilder()
.lnrpc.RoutingPolicy node2_policy = 8;
getNode2PolicyOrBuilder
in interface LightningApi.ChannelEdgeOrBuilder
public int getCustomRecordsCount()
LightningApi.ChannelEdgeOrBuilder
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
getCustomRecordsCount
in interface LightningApi.ChannelEdgeOrBuilder
public boolean containsCustomRecords(long key)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
containsCustomRecords
in interface LightningApi.ChannelEdgeOrBuilder
@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getCustomRecords()
getCustomRecordsMap()
instead.getCustomRecords
in interface LightningApi.ChannelEdgeOrBuilder
public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getCustomRecordsMap()
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
getCustomRecordsMap
in interface LightningApi.ChannelEdgeOrBuilder
public com.google.protobuf.ByteString getCustomRecordsOrDefault(long key, com.google.protobuf.ByteString defaultValue)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
getCustomRecordsOrDefault
in interface LightningApi.ChannelEdgeOrBuilder
public com.google.protobuf.ByteString getCustomRecordsOrThrow(long key)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
getCustomRecordsOrThrow
in interface LightningApi.ChannelEdgeOrBuilder
public LightningApi.ChannelEdge.Builder clearCustomRecords()
public LightningApi.ChannelEdge.Builder removeCustomRecords(long key)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
@Deprecated public java.util.Map<java.lang.Long,com.google.protobuf.ByteString> getMutableCustomRecords()
public LightningApi.ChannelEdge.Builder putCustomRecords(long key, com.google.protobuf.ByteString value)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
public LightningApi.ChannelEdge.Builder putAllCustomRecords(java.util.Map<java.lang.Long,com.google.protobuf.ByteString> values)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;
public final LightningApi.ChannelEdge.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>
public final LightningApi.ChannelEdge.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<LightningApi.ChannelEdge.Builder>