public static final class LightningApi.ChannelEdge extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
LightningApi.ChannelEdge.Builder
A fully authenticated channel along with all its unique attributes.
|
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 |
CAPACITY_FIELD_NUMBER |
static int |
CHAN_POINT_FIELD_NUMBER |
static int |
CHANNEL_ID_FIELD_NUMBER |
static int |
CUSTOM_RECORDS_FIELD_NUMBER |
static int |
LAST_UPDATE_FIELD_NUMBER |
static int |
NODE1_POLICY_FIELD_NUMBER |
static int |
NODE1_PUB_FIELD_NUMBER |
static int |
NODE2_POLICY_FIELD_NUMBER |
static int |
NODE2_PUB_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCustomRecords(long key)
Custom channel announcement tlv records.
|
boolean |
equals(java.lang.Object obj) |
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.
|
static LightningApi.ChannelEdge |
getDefaultInstance() |
LightningApi.ChannelEdge |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getLastUpdate()
Deprecated.
lnrpc.ChannelEdge.last_update is deprecated.
See lightning.api.proto;l=3276
|
LightningApi.RoutingPolicy |
getNode1Policy()
.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.RoutingPolicyOrBuilder |
getNode2PolicyOrBuilder()
.lnrpc.RoutingPolicy node2_policy = 8; |
java.lang.String |
getNode2Pub()
string node2_pub = 5; |
com.google.protobuf.ByteString |
getNode2PubBytes()
string node2_pub = 5; |
com.google.protobuf.Parser<LightningApi.ChannelEdge> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
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) |
boolean |
isInitialized() |
static LightningApi.ChannelEdge.Builder |
newBuilder() |
static LightningApi.ChannelEdge.Builder |
newBuilder(LightningApi.ChannelEdge prototype) |
LightningApi.ChannelEdge.Builder |
newBuilderForType() |
protected LightningApi.ChannelEdge.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.ChannelEdge |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.ChannelEdge |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelEdge |
parseFrom(byte[] data) |
static LightningApi.ChannelEdge |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelEdge |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.ChannelEdge |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelEdge |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.ChannelEdge |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelEdge |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.ChannelEdge |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.ChannelEdge |
parseFrom(java.io.InputStream input) |
static LightningApi.ChannelEdge |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.ChannelEdge> |
parser() |
LightningApi.ChannelEdge.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 CHANNEL_ID_FIELD_NUMBER
public static final int CHAN_POINT_FIELD_NUMBER
public static final int LAST_UPDATE_FIELD_NUMBER
public static final int NODE1_PUB_FIELD_NUMBER
public static final int NODE2_PUB_FIELD_NUMBER
public static final int CAPACITY_FIELD_NUMBER
public static final int NODE1_POLICY_FIELD_NUMBER
public static final int NODE2_POLICY_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 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.ChannelEdgeOrBuilderpublic java.lang.String getChanPoint()
string chan_point = 2;getChanPoint in interface LightningApi.ChannelEdgeOrBuilderpublic com.google.protobuf.ByteString getChanPointBytes()
string chan_point = 2;getChanPointBytes in interface LightningApi.ChannelEdgeOrBuilder@Deprecated public int getLastUpdate()
uint32 last_update = 3 [deprecated = true];getLastUpdate in interface LightningApi.ChannelEdgeOrBuilderpublic java.lang.String getNode1Pub()
string node1_pub = 4;getNode1Pub in interface LightningApi.ChannelEdgeOrBuilderpublic com.google.protobuf.ByteString getNode1PubBytes()
string node1_pub = 4;getNode1PubBytes in interface LightningApi.ChannelEdgeOrBuilderpublic java.lang.String getNode2Pub()
string node2_pub = 5;getNode2Pub in interface LightningApi.ChannelEdgeOrBuilderpublic com.google.protobuf.ByteString getNode2PubBytes()
string node2_pub = 5;getNode2PubBytes in interface LightningApi.ChannelEdgeOrBuilderpublic long getCapacity()
int64 capacity = 6;getCapacity in interface LightningApi.ChannelEdgeOrBuilderpublic boolean hasNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7;hasNode1Policy in interface LightningApi.ChannelEdgeOrBuilderpublic LightningApi.RoutingPolicy getNode1Policy()
.lnrpc.RoutingPolicy node1_policy = 7;getNode1Policy in interface LightningApi.ChannelEdgeOrBuilderpublic LightningApi.RoutingPolicyOrBuilder getNode1PolicyOrBuilder()
.lnrpc.RoutingPolicy node1_policy = 7;getNode1PolicyOrBuilder in interface LightningApi.ChannelEdgeOrBuilderpublic boolean hasNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8;hasNode2Policy in interface LightningApi.ChannelEdgeOrBuilderpublic LightningApi.RoutingPolicy getNode2Policy()
.lnrpc.RoutingPolicy node2_policy = 8;getNode2Policy in interface LightningApi.ChannelEdgeOrBuilderpublic LightningApi.RoutingPolicyOrBuilder getNode2PolicyOrBuilder()
.lnrpc.RoutingPolicy node2_policy = 8;getNode2PolicyOrBuilder in interface LightningApi.ChannelEdgeOrBuilderpublic int getCustomRecordsCount()
LightningApi.ChannelEdgeOrBuilderCustom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;getCustomRecordsCount in interface LightningApi.ChannelEdgeOrBuilderpublic 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.ChannelEdgeOrBuilderpublic 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.ChannelEdgeOrBuilderpublic 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.ChannelEdgeOrBuilderpublic com.google.protobuf.ByteString getCustomRecordsOrThrow(long key)
Custom channel announcement tlv records.
map<uint64, bytes> custom_records = 9;getCustomRecordsOrThrow in interface LightningApi.ChannelEdgeOrBuilderpublic 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.ChannelEdge parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelEdge parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelEdge parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelEdge parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelEdge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelEdge parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.ChannelEdge parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelEdge parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelEdge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelEdge parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelEdge parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.ChannelEdge parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LightningApi.ChannelEdge.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LightningApi.ChannelEdge.Builder newBuilder()
public static LightningApi.ChannelEdge.Builder newBuilder(LightningApi.ChannelEdge prototype)
public LightningApi.ChannelEdge.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LightningApi.ChannelEdge.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LightningApi.ChannelEdge getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.ChannelEdge> parser()
public com.google.protobuf.Parser<LightningApi.ChannelEdge> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LightningApi.ChannelEdge getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder