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, 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 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.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 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 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
@Deprecated public int getLastUpdate()
uint32 last_update = 3 [deprecated = true];
getLastUpdate
in interface LightningApi.ChannelEdgeOrBuilder
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 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 long getCapacity()
int64 capacity = 6;
getCapacity
in interface LightningApi.ChannelEdgeOrBuilder
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.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.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 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.ChannelEdge parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelEdge parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelEdge parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelEdge parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelEdge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelEdge parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.ChannelEdge parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelEdge parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelEdge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelEdge parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelEdge parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.ChannelEdge parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LightningApi.ChannelEdge.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LightningApi.ChannelEdge.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public LightningApi.ChannelEdge getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder