Class LnrpcPeer

java.lang.Object
net.osslabz.lnd.dto.LnrpcPeer

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-07T12:03:34.958542131Z[Etc/UTC]") public class LnrpcPeer extends Object
LnrpcPeer
  • Field Details

  • Constructor Details

    • LnrpcPeer

      public LnrpcPeer()
  • Method Details

    • pubKey

      public LnrpcPeer pubKey(String pubKey)
    • getPubKey

      @Nullable public String getPubKey()
      Get pubKey
      Returns:
      pubKey
    • setPubKey

      public void setPubKey(String pubKey)
    • address

      public LnrpcPeer address(String address)
    • getAddress

      @Nullable public String getAddress()
      Get address
      Returns:
      address
    • setAddress

      public void setAddress(String address)
    • bytesSent

      public LnrpcPeer bytesSent(String bytesSent)
    • getBytesSent

      @Nullable public String getBytesSent()
      Get bytesSent
      Returns:
      bytesSent
    • setBytesSent

      public void setBytesSent(String bytesSent)
    • bytesRecv

      public LnrpcPeer bytesRecv(String bytesRecv)
    • getBytesRecv

      @Nullable public String getBytesRecv()
      Get bytesRecv
      Returns:
      bytesRecv
    • setBytesRecv

      public void setBytesRecv(String bytesRecv)
    • satSent

      public LnrpcPeer satSent(String satSent)
    • getSatSent

      @Nullable public String getSatSent()
      Get satSent
      Returns:
      satSent
    • setSatSent

      public void setSatSent(String satSent)
    • satRecv

      public LnrpcPeer satRecv(String satRecv)
    • getSatRecv

      @Nullable public String getSatRecv()
      Get satRecv
      Returns:
      satRecv
    • setSatRecv

      public void setSatRecv(String satRecv)
    • inbound

      public LnrpcPeer inbound(Boolean inbound)
    • getInbound

      @Nullable public Boolean getInbound()
      Get inbound
      Returns:
      inbound
    • setInbound

      public void setInbound(Boolean inbound)
    • pingTime

      public LnrpcPeer pingTime(String pingTime)
    • getPingTime

      @Nullable public String getPingTime()
      Get pingTime
      Returns:
      pingTime
    • setPingTime

      public void setPingTime(String pingTime)
    • syncType

      public LnrpcPeer syncType(PeerSyncType syncType)
    • getSyncType

      @Nullable public PeerSyncType getSyncType()
      Get syncType
      Returns:
      syncType
    • setSyncType

      public void setSyncType(PeerSyncType syncType)
    • features

      public LnrpcPeer features(Map<String,LnrpcFeature> features)
    • putFeaturesItem

      public LnrpcPeer putFeaturesItem(String key, LnrpcFeature featuresItem)
    • getFeatures

      @Nullable public Map<String,LnrpcFeature> getFeatures()
      Features advertised by the remote peer in their init message.
      Returns:
      features
    • setFeatures

      public void setFeatures(Map<String,LnrpcFeature> features)
    • errors

      public LnrpcPeer errors(List<LnrpcTimestampedError> errors)
    • addErrorsItem

      public LnrpcPeer addErrorsItem(LnrpcTimestampedError errorsItem)
    • getErrors

      @Nullable public List<LnrpcTimestampedError> getErrors()
      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.
      Returns:
      errors
    • setErrors

      public void setErrors(List<LnrpcTimestampedError> errors)
    • flapCount

      public LnrpcPeer flapCount(Integer flapCount)
    • getFlapCount

      @Nullable public Integer 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.
      Returns:
      flapCount
    • setFlapCount

      public void setFlapCount(Integer flapCount)
    • lastFlapNs

      public LnrpcPeer lastFlapNs(String lastFlapNs)
    • getLastFlapNs

      @Nullable public String 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.
      Returns:
      lastFlapNs
    • setLastFlapNs

      public void setLastFlapNs(String lastFlapNs)
    • lastPingPayload

      public LnrpcPeer lastPingPayload(byte[] lastPingPayload)
    • getLastPingPayload

      @Nullable public byte[] getLastPingPayload()
      The last ping payload the peer has sent to us.
      Returns:
      lastPingPayload
    • setLastPingPayload

      public void setLastPingPayload(byte[] lastPingPayload)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object