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, 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 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.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 java.lang.String getPubKey()
The identity pubkey of the peer
string pub_key = 1;
getPubKey
in interface LightningApi.PeerOrBuilder
public com.google.protobuf.ByteString getPubKeyBytes()
The identity pubkey of the peer
string pub_key = 1;
getPubKeyBytes
in interface LightningApi.PeerOrBuilder
public java.lang.String getAddress()
Network address of the peer; eg `127.0.0.1:10011`
string address = 3;
getAddress
in interface LightningApi.PeerOrBuilder
public com.google.protobuf.ByteString getAddressBytes()
Network address of the peer; eg `127.0.0.1:10011`
string address = 3;
getAddressBytes
in interface LightningApi.PeerOrBuilder
public long getBytesSent()
Bytes of data transmitted to this peer
uint64 bytes_sent = 4;
getBytesSent
in interface LightningApi.PeerOrBuilder
public long getBytesRecv()
Bytes of data transmitted from this peer
uint64 bytes_recv = 5;
getBytesRecv
in interface LightningApi.PeerOrBuilder
public long getSatSent()
Satoshis sent to this peer
int64 sat_sent = 6;
getSatSent
in interface LightningApi.PeerOrBuilder
public long getSatRecv()
Satoshis received from this peer
int64 sat_recv = 7;
getSatRecv
in interface LightningApi.PeerOrBuilder
public boolean getInbound()
A channel is inbound if the counterparty initiated the channel
bool inbound = 8;
getInbound
in interface LightningApi.PeerOrBuilder
public long getPingTime()
Ping time to this peer
int64 ping_time = 9;
getPingTime
in interface LightningApi.PeerOrBuilder
public int getSyncTypeValue()
The type of sync we are currently performing with this peer.
.lnrpc.Peer.SyncType sync_type = 10;
getSyncTypeValue
in interface LightningApi.PeerOrBuilder
public 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.PeerOrBuilder
public int getFeaturesCount()
LightningApi.PeerOrBuilder
Features advertised by the remote peer in their init message.
map<uint32, .lnrpc.Feature> features = 11;
getFeaturesCount
in interface LightningApi.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public 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.PeerOrBuilder
public com.google.protobuf.ByteString getLastPingPayload()
The last ping payload the peer has sent to us.
bytes last_ping_payload = 15;
getLastPingPayload
in interface LightningApi.PeerOrBuilder
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.Peer parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Peer parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Peer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Peer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Peer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LightningApi.Peer parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Peer parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.Peer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Peer parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LightningApi.Peer parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LightningApi.Peer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LightningApi.Peer.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LightningApi.Peer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public LightningApi.Peer getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder