public static final class LightningApi.Peer extends com.google.protobuf.GeneratedMessageV3 implements LightningApi.PeerOrBuilder
lnrpc.Peer| Modifier and Type | Class and Description |
|---|---|
static class |
LightningApi.Peer.Builder
Protobuf type
lnrpc.Peer |
static class |
LightningApi.Peer.SyncType
Protobuf enum
lnrpc.Peer.SyncType |
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 |
ADDRESS_FIELD_NUMBER |
static int |
BYTES_RECV_FIELD_NUMBER |
static int |
BYTES_SENT_FIELD_NUMBER |
static int |
ERRORS_FIELD_NUMBER |
static int |
FEATURES_FIELD_NUMBER |
static int |
FLAP_COUNT_FIELD_NUMBER |
static int |
INBOUND_FIELD_NUMBER |
static int |
LAST_FLAP_NS_FIELD_NUMBER |
static int |
LAST_PING_PAYLOAD_FIELD_NUMBER |
static int |
PING_TIME_FIELD_NUMBER |
static int |
PUB_KEY_FIELD_NUMBER |
static int |
SAT_RECV_FIELD_NUMBER |
static int |
SAT_SENT_FIELD_NUMBER |
static int |
SYNC_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFeatures(int key)
Features advertised by the remote peer in their init message.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
Network address of the peer; eg `127.0.0.1:10011`
|
com.google.protobuf.ByteString |
getAddressBytes()
Network address of the peer; eg `127.0.0.1:10011`
|
long |
getBytesRecv()
Bytes of data transmitted from this peer
|
long |
getBytesSent()
Bytes of data transmitted to this peer
|
static LightningApi.Peer |
getDefaultInstance() |
LightningApi.Peer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LightningApi.TimestampedError |
getErrors(int index)
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
int |
getErrorsCount()
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
java.util.List<LightningApi.TimestampedError> |
getErrorsList()
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
LightningApi.TimestampedErrorOrBuilder |
getErrorsOrBuilder(int index)
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
java.util.List<? extends LightningApi.TimestampedErrorOrBuilder> |
getErrorsOrBuilderList()
The latest errors received from our peer with timestamps, limited to the 10
most recent errors.
|
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeatures()
Deprecated.
|
int |
getFeaturesCount()
Features advertised by the remote peer in their init message.
|
java.util.Map<java.lang.Integer,LightningApi.Feature> |
getFeaturesMap()
Features advertised by the remote peer in their init message.
|
LightningApi.Feature |
getFeaturesOrDefault(int key,
LightningApi.Feature defaultValue)
Features advertised by the remote peer in their init message.
|
LightningApi.Feature |
getFeaturesOrThrow(int key)
Features advertised by the remote peer in their init message.
|
int |
getFlapCount()
The number of times we have recorded this peer going offline or coming
online, recorded across restarts.
|
boolean |
getInbound()
A channel is inbound if the counterparty initiated the channel
|
long |
getLastFlapNs()
The timestamp of the last flap we observed for this peer.
|
com.google.protobuf.ByteString |
getLastPingPayload()
The last ping payload the peer has sent to us.
|
com.google.protobuf.Parser<LightningApi.Peer> |
getParserForType() |
long |
getPingTime()
Ping time to this peer
|
java.lang.String |
getPubKey()
The identity pubkey of the peer
|
com.google.protobuf.ByteString |
getPubKeyBytes()
The identity pubkey of the peer
|
long |
getSatRecv()
Satoshis received from this peer
|
long |
getSatSent()
Satoshis sent to this peer
|
int |
getSerializedSize() |
LightningApi.Peer.SyncType |
getSyncType()
The type of sync we are currently performing with this peer.
|
int |
getSyncTypeValue()
The type of sync we are currently performing with this peer.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static LightningApi.Peer.Builder |
newBuilder() |
static LightningApi.Peer.Builder |
newBuilder(LightningApi.Peer prototype) |
LightningApi.Peer.Builder |
newBuilderForType() |
protected LightningApi.Peer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LightningApi.Peer |
parseDelimitedFrom(java.io.InputStream input) |
static LightningApi.Peer |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Peer |
parseFrom(byte[] data) |
static LightningApi.Peer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Peer |
parseFrom(java.nio.ByteBuffer data) |
static LightningApi.Peer |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Peer |
parseFrom(com.google.protobuf.ByteString data) |
static LightningApi.Peer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Peer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LightningApi.Peer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LightningApi.Peer |
parseFrom(java.io.InputStream input) |
static LightningApi.Peer |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LightningApi.Peer> |
parser() |
LightningApi.Peer.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 PUB_KEY_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
public static final int BYTES_SENT_FIELD_NUMBER
public static final int BYTES_RECV_FIELD_NUMBER
public static final int SAT_SENT_FIELD_NUMBER
public static final int SAT_RECV_FIELD_NUMBER
public static final int INBOUND_FIELD_NUMBER
public static final int PING_TIME_FIELD_NUMBER
public static final int SYNC_TYPE_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
public static final int FLAP_COUNT_FIELD_NUMBER
public static final int LAST_FLAP_NS_FIELD_NUMBER
public static final int LAST_PING_PAYLOAD_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 java.lang.String getPubKey()
The identity pubkey of the peer
string pub_key = 1;getPubKey in interface LightningApi.PeerOrBuilderpublic com.google.protobuf.ByteString getPubKeyBytes()
The identity pubkey of the peer
string pub_key = 1;getPubKeyBytes in interface LightningApi.PeerOrBuilderpublic java.lang.String getAddress()
Network address of the peer; eg `127.0.0.1:10011`
string address = 3;getAddress in interface LightningApi.PeerOrBuilderpublic com.google.protobuf.ByteString getAddressBytes()
Network address of the peer; eg `127.0.0.1:10011`
string address = 3;getAddressBytes in interface LightningApi.PeerOrBuilderpublic long getBytesSent()
Bytes of data transmitted to this peer
uint64 bytes_sent = 4;getBytesSent in interface LightningApi.PeerOrBuilderpublic long getBytesRecv()
Bytes of data transmitted from this peer
uint64 bytes_recv = 5;getBytesRecv in interface LightningApi.PeerOrBuilderpublic long getSatSent()
Satoshis sent to this peer
int64 sat_sent = 6;getSatSent in interface LightningApi.PeerOrBuilderpublic long getSatRecv()
Satoshis received from this peer
int64 sat_recv = 7;getSatRecv in interface LightningApi.PeerOrBuilderpublic boolean getInbound()
A channel is inbound if the counterparty initiated the channel
bool inbound = 8;getInbound in interface LightningApi.PeerOrBuilderpublic long getPingTime()
Ping time to this peer
int64 ping_time = 9;getPingTime in interface LightningApi.PeerOrBuilderpublic int getSyncTypeValue()
The type of sync we are currently performing with this peer.
.lnrpc.Peer.SyncType sync_type = 10;getSyncTypeValue in interface LightningApi.PeerOrBuilderpublic LightningApi.Peer.SyncType getSyncType()
The type of sync we are currently performing with this peer.
.lnrpc.Peer.SyncType sync_type = 10;getSyncType in interface LightningApi.PeerOrBuilderpublic int getFeaturesCount()
LightningApi.PeerOrBuilderFeatures advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;getFeaturesCount in interface LightningApi.PeerOrBuilderpublic boolean containsFeatures(int key)
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;containsFeatures in interface LightningApi.PeerOrBuilder@Deprecated public java.util.Map<java.lang.Integer,LightningApi.Feature> getFeatures()
getFeaturesMap() instead.getFeatures in interface LightningApi.PeerOrBuilderpublic java.util.Map<java.lang.Integer,LightningApi.Feature> getFeaturesMap()
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;getFeaturesMap in interface LightningApi.PeerOrBuilderpublic LightningApi.Feature getFeaturesOrDefault(int key, LightningApi.Feature defaultValue)
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;getFeaturesOrDefault in interface LightningApi.PeerOrBuilderpublic LightningApi.Feature getFeaturesOrThrow(int key)
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;getFeaturesOrThrow in interface LightningApi.PeerOrBuilderpublic java.util.List<LightningApi.TimestampedError> getErrorsList()
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
repeated .lnrpc.TimestampedError errors = 12;getErrorsList in interface LightningApi.PeerOrBuilderpublic java.util.List<? extends LightningApi.TimestampedErrorOrBuilder> getErrorsOrBuilderList()
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
repeated .lnrpc.TimestampedError errors = 12;getErrorsOrBuilderList in interface LightningApi.PeerOrBuilderpublic int getErrorsCount()
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
repeated .lnrpc.TimestampedError errors = 12;getErrorsCount in interface LightningApi.PeerOrBuilderpublic LightningApi.TimestampedError getErrors(int index)
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
repeated .lnrpc.TimestampedError errors = 12;getErrors in interface LightningApi.PeerOrBuilderpublic LightningApi.TimestampedErrorOrBuilder getErrorsOrBuilder(int index)
The latest errors received from our peer with timestamps, limited to the 10 most recent errors. These errors are tracked across peer connections, but are not persisted across lnd restarts. Note that these errors are only stored for peers that we have channels open with, to prevent peers from spamming us with errors at no cost.
repeated .lnrpc.TimestampedError errors = 12;getErrorsOrBuilder in interface LightningApi.PeerOrBuilderpublic int getFlapCount()
The number of times we have recorded this peer going offline or coming online, recorded across restarts. Note that this value is decreased over time if the peer has not recently flapped, so that we can forgive peers with historically high flap counts.
int32 flap_count = 13;getFlapCount in interface LightningApi.PeerOrBuilderpublic long getLastFlapNs()
The timestamp of the last flap we observed for this peer. If this value is zero, we have not observed any flaps for this peer.
int64 last_flap_ns = 14;getLastFlapNs in interface LightningApi.PeerOrBuilderpublic com.google.protobuf.ByteString getLastPingPayload()
The last ping payload the peer has sent to us.
bytes last_ping_payload = 15;getLastPingPayload in interface LightningApi.PeerOrBuilderpublic 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.Peer parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Peer parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Peer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Peer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Peer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LightningApi.Peer parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Peer parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Peer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Peer parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Peer parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LightningApi.Peer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LightningApi.Peer.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LightningApi.Peer.Builder newBuilder()
public static LightningApi.Peer.Builder newBuilder(LightningApi.Peer prototype)
public LightningApi.Peer.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LightningApi.Peer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LightningApi.Peer getDefaultInstance()
public static com.google.protobuf.Parser<LightningApi.Peer> parser()
public com.google.protobuf.Parser<LightningApi.Peer> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LightningApi.Peer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder