All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lnrpc.GetInfoResponse.scala Maven / Gradle / Ivy

The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3

package lnrpc
import org.bitcoins.lnd.rpc.LndUtils._

/** @param version
  *   The version of the LND software that the node is running.
  * @param commitHash
  *   The SHA1 commit hash that the daemon is compiled with.
  * @param identityPubkey
  *   The identity pubkey of the current node.
  * @param alias
  *   If applicable, the alias of the current node, e.g. "bob"
  * @param color
  *   The color of the current node in hex code format
  * @param numPendingChannels
  *   Number of pending channels
  * @param numActiveChannels
  *   Number of active channels
  * @param numInactiveChannels
  *   Number of inactive channels
  * @param numPeers
  *   Number of peers
  * @param blockHeight
  *   The node's current view of the height of the best block
  * @param blockHash
  *   The node's current view of the hash of the best block
  * @param bestHeaderTimestamp
  *   Timestamp of the block best known to the wallet
  * @param syncedToChain
  *   Whether the wallet's view is synced to the main chain
  * @param syncedToGraph
  *   Whether we consider ourselves synced with the public channel graph.
  * @param testnet
  *  
  *  Whether the current node is connected to testnet. This field is
  *  deprecated and the network field should be used instead
  * @param chains
  *   A list of active chains the node is connected to
  * @param uris
  *   The URIs of the current node.
  * @param features
  *  
  *  Features that our node has advertised in our init message, node
  *  announcements and invoices.
  * @param requireHtlcInterceptor
  *  
  *  Indicates whether the HTLC interceptor API is in always-on mode.
  * @param storeFinalHtlcResolutions
  *   Indicates whether final htlc resolutions are stored on disk.
  */
@SerialVersionUID(0L)
final case class GetInfoResponse(
    version: _root_.scala.Predef.String = "",
    commitHash: _root_.scala.Predef.String = "",
    identityPubkey: _root_.scala.Predef.String = "",
    alias: _root_.scala.Predef.String = "",
    color: _root_.scala.Predef.String = "",
    numPendingChannels: org.bitcoins.core.number.UInt32 = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toCustom(0),
    numActiveChannels: org.bitcoins.core.number.UInt32 = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toCustom(0),
    numInactiveChannels: org.bitcoins.core.number.UInt32 = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toCustom(0),
    numPeers: org.bitcoins.core.number.UInt32 = lnrpc.GetInfoResponse._typemapper_numPeers.toCustom(0),
    blockHeight: org.bitcoins.core.number.UInt32 = lnrpc.GetInfoResponse._typemapper_blockHeight.toCustom(0),
    blockHash: _root_.scala.Predef.String = "",
    bestHeaderTimestamp: _root_.scala.Long = 0L,
    syncedToChain: _root_.scala.Boolean = false,
    syncedToGraph: _root_.scala.Boolean = false,
    @scala.deprecated(message="Marked as deprecated in proto file", "") testnet: _root_.scala.Boolean = false,
    chains: _root_.scala.Seq[lnrpc.Chain] = _root_.scala.Seq.empty,
    uris: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty,
    features: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature] = _root_.scala.collection.immutable.Map.empty,
    requireHtlcInterceptor: _root_.scala.Boolean = false,
    storeFinalHtlcResolutions: _root_.scala.Boolean = false,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[GetInfoResponse] {
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      
      {
        val __value = version
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(14, __value)
        }
      };
      
      {
        val __value = commitHash
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(20, __value)
        }
      };
      
      {
        val __value = identityPubkey
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
        }
      };
      
      {
        val __value = alias
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, __value)
        }
      };
      
      {
        val __value = color
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(17, __value)
        }
      };
      
      {
        val __value = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toBase(numPendingChannels)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(3, __value)
        }
      };
      
      {
        val __value = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toBase(numActiveChannels)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(4, __value)
        }
      };
      
      {
        val __value = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toBase(numInactiveChannels)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(15, __value)
        }
      };
      
      {
        val __value = lnrpc.GetInfoResponse._typemapper_numPeers.toBase(numPeers)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(5, __value)
        }
      };
      
      {
        val __value = lnrpc.GetInfoResponse._typemapper_blockHeight.toBase(blockHeight)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(6, __value)
        }
      };
      
      {
        val __value = blockHash
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(8, __value)
        }
      };
      
      {
        val __value = bestHeaderTimestamp
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(13, __value)
        }
      };
      
      {
        val __value = syncedToChain
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(9, __value)
        }
      };
      
      {
        val __value = syncedToGraph
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(18, __value)
        }
      };
      
      {
        val __value = testnet
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(10, __value)
        }
      };
      chains.foreach { __item =>
        val __value = __item
        __size += 2 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      }
      uris.foreach { __item =>
        val __value = __item
        __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(12, __value)
      }
      features.foreach { __item =>
        val __value = lnrpc.GetInfoResponse._typemapper_features.toBase(__item)
        __size += 2 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      }
      
      {
        val __value = requireHtlcInterceptor
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(21, __value)
        }
      };
      
      {
        val __value = storeFinalHtlcResolutions
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(22, __value)
        }
      };
      __size += unknownFields.serializedSize
      __size
    }
    override def serializedSize: _root_.scala.Int = {
      var __size = __serializedSizeMemoized
      if (__size == 0) {
        __size = __computeSerializedSize() + 1
        __serializedSizeMemoized = __size
      }
      __size - 1
      
    }
    def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
      {
        val __v = identityPubkey
        if (!__v.isEmpty) {
          _output__.writeString(1, __v)
        }
      };
      {
        val __v = alias
        if (!__v.isEmpty) {
          _output__.writeString(2, __v)
        }
      };
      {
        val __v = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toBase(numPendingChannels)
        if (__v != 0) {
          _output__.writeUInt32(3, __v)
        }
      };
      {
        val __v = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toBase(numActiveChannels)
        if (__v != 0) {
          _output__.writeUInt32(4, __v)
        }
      };
      {
        val __v = lnrpc.GetInfoResponse._typemapper_numPeers.toBase(numPeers)
        if (__v != 0) {
          _output__.writeUInt32(5, __v)
        }
      };
      {
        val __v = lnrpc.GetInfoResponse._typemapper_blockHeight.toBase(blockHeight)
        if (__v != 0) {
          _output__.writeUInt32(6, __v)
        }
      };
      {
        val __v = blockHash
        if (!__v.isEmpty) {
          _output__.writeString(8, __v)
        }
      };
      {
        val __v = syncedToChain
        if (__v != false) {
          _output__.writeBool(9, __v)
        }
      };
      {
        val __v = testnet
        if (__v != false) {
          _output__.writeBool(10, __v)
        }
      };
      uris.foreach { __v =>
        val __m = __v
        _output__.writeString(12, __m)
      };
      {
        val __v = bestHeaderTimestamp
        if (__v != 0L) {
          _output__.writeInt64(13, __v)
        }
      };
      {
        val __v = version
        if (!__v.isEmpty) {
          _output__.writeString(14, __v)
        }
      };
      {
        val __v = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toBase(numInactiveChannels)
        if (__v != 0) {
          _output__.writeUInt32(15, __v)
        }
      };
      chains.foreach { __v =>
        val __m = __v
        _output__.writeTag(16, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      {
        val __v = color
        if (!__v.isEmpty) {
          _output__.writeString(17, __v)
        }
      };
      {
        val __v = syncedToGraph
        if (__v != false) {
          _output__.writeBool(18, __v)
        }
      };
      features.foreach { __v =>
        val __m = lnrpc.GetInfoResponse._typemapper_features.toBase(__v)
        _output__.writeTag(19, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      {
        val __v = commitHash
        if (!__v.isEmpty) {
          _output__.writeString(20, __v)
        }
      };
      {
        val __v = requireHtlcInterceptor
        if (__v != false) {
          _output__.writeBool(21, __v)
        }
      };
      {
        val __v = storeFinalHtlcResolutions
        if (__v != false) {
          _output__.writeBool(22, __v)
        }
      };
      unknownFields.writeTo(_output__)
    }
    def withVersion(__v: _root_.scala.Predef.String): GetInfoResponse = copy(version = __v)
    def withCommitHash(__v: _root_.scala.Predef.String): GetInfoResponse = copy(commitHash = __v)
    def withIdentityPubkey(__v: _root_.scala.Predef.String): GetInfoResponse = copy(identityPubkey = __v)
    def withAlias(__v: _root_.scala.Predef.String): GetInfoResponse = copy(alias = __v)
    def withColor(__v: _root_.scala.Predef.String): GetInfoResponse = copy(color = __v)
    def withNumPendingChannels(__v: org.bitcoins.core.number.UInt32): GetInfoResponse = copy(numPendingChannels = __v)
    def withNumActiveChannels(__v: org.bitcoins.core.number.UInt32): GetInfoResponse = copy(numActiveChannels = __v)
    def withNumInactiveChannels(__v: org.bitcoins.core.number.UInt32): GetInfoResponse = copy(numInactiveChannels = __v)
    def withNumPeers(__v: org.bitcoins.core.number.UInt32): GetInfoResponse = copy(numPeers = __v)
    def withBlockHeight(__v: org.bitcoins.core.number.UInt32): GetInfoResponse = copy(blockHeight = __v)
    def withBlockHash(__v: _root_.scala.Predef.String): GetInfoResponse = copy(blockHash = __v)
    def withBestHeaderTimestamp(__v: _root_.scala.Long): GetInfoResponse = copy(bestHeaderTimestamp = __v)
    def withSyncedToChain(__v: _root_.scala.Boolean): GetInfoResponse = copy(syncedToChain = __v)
    def withSyncedToGraph(__v: _root_.scala.Boolean): GetInfoResponse = copy(syncedToGraph = __v)
    def withTestnet(__v: _root_.scala.Boolean): GetInfoResponse = copy(testnet = __v)
    def clearChains = copy(chains = _root_.scala.Seq.empty)
    def addChains(__vs: lnrpc.Chain *): GetInfoResponse = addAllChains(__vs)
    def addAllChains(__vs: Iterable[lnrpc.Chain]): GetInfoResponse = copy(chains = chains ++ __vs)
    def withChains(__v: _root_.scala.Seq[lnrpc.Chain]): GetInfoResponse = copy(chains = __v)
    def clearUris = copy(uris = _root_.scala.Seq.empty)
    def addUris(__vs: _root_.scala.Predef.String *): GetInfoResponse = addAllUris(__vs)
    def addAllUris(__vs: Iterable[_root_.scala.Predef.String]): GetInfoResponse = copy(uris = uris ++ __vs)
    def withUris(__v: _root_.scala.Seq[_root_.scala.Predef.String]): GetInfoResponse = copy(uris = __v)
    def clearFeatures = copy(features = _root_.scala.collection.immutable.Map.empty)
    def addFeatures(__vs: (org.bitcoins.core.number.UInt32, lnrpc.Feature) *): GetInfoResponse = addAllFeatures(__vs)
    def addAllFeatures(__vs: Iterable[(org.bitcoins.core.number.UInt32, lnrpc.Feature)]): GetInfoResponse = copy(features = features ++ __vs)
    def withFeatures(__v: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]): GetInfoResponse = copy(features = __v)
    def withRequireHtlcInterceptor(__v: _root_.scala.Boolean): GetInfoResponse = copy(requireHtlcInterceptor = __v)
    def withStoreFinalHtlcResolutions(__v: _root_.scala.Boolean): GetInfoResponse = copy(storeFinalHtlcResolutions = __v)
    def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
    def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
    def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
      (__fieldNumber: @_root_.scala.unchecked) match {
        case 14 => {
          val __t = version
          if (__t != "") __t else null
        }
        case 20 => {
          val __t = commitHash
          if (__t != "") __t else null
        }
        case 1 => {
          val __t = identityPubkey
          if (__t != "") __t else null
        }
        case 2 => {
          val __t = alias
          if (__t != "") __t else null
        }
        case 17 => {
          val __t = color
          if (__t != "") __t else null
        }
        case 3 => {
          val __t = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toBase(numPendingChannels)
          if (__t != 0) __t else null
        }
        case 4 => {
          val __t = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toBase(numActiveChannels)
          if (__t != 0) __t else null
        }
        case 15 => {
          val __t = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toBase(numInactiveChannels)
          if (__t != 0) __t else null
        }
        case 5 => {
          val __t = lnrpc.GetInfoResponse._typemapper_numPeers.toBase(numPeers)
          if (__t != 0) __t else null
        }
        case 6 => {
          val __t = lnrpc.GetInfoResponse._typemapper_blockHeight.toBase(blockHeight)
          if (__t != 0) __t else null
        }
        case 8 => {
          val __t = blockHash
          if (__t != "") __t else null
        }
        case 13 => {
          val __t = bestHeaderTimestamp
          if (__t != 0L) __t else null
        }
        case 9 => {
          val __t = syncedToChain
          if (__t != false) __t else null
        }
        case 18 => {
          val __t = syncedToGraph
          if (__t != false) __t else null
        }
        case 10 => {
          val __t = testnet
          if (__t != false) __t else null
        }
        case 16 => chains
        case 12 => uris
        case 19 => features.iterator.map(lnrpc.GetInfoResponse._typemapper_features.toBase(_)).toSeq
        case 21 => {
          val __t = requireHtlcInterceptor
          if (__t != false) __t else null
        }
        case 22 => {
          val __t = storeFinalHtlcResolutions
          if (__t != false) __t else null
        }
      }
    }
    def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
      _root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
      (__field.number: @_root_.scala.unchecked) match {
        case 14 => _root_.scalapb.descriptors.PString(version)
        case 20 => _root_.scalapb.descriptors.PString(commitHash)
        case 1 => _root_.scalapb.descriptors.PString(identityPubkey)
        case 2 => _root_.scalapb.descriptors.PString(alias)
        case 17 => _root_.scalapb.descriptors.PString(color)
        case 3 => _root_.scalapb.descriptors.PInt(lnrpc.GetInfoResponse._typemapper_numPendingChannels.toBase(numPendingChannels))
        case 4 => _root_.scalapb.descriptors.PInt(lnrpc.GetInfoResponse._typemapper_numActiveChannels.toBase(numActiveChannels))
        case 15 => _root_.scalapb.descriptors.PInt(lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toBase(numInactiveChannels))
        case 5 => _root_.scalapb.descriptors.PInt(lnrpc.GetInfoResponse._typemapper_numPeers.toBase(numPeers))
        case 6 => _root_.scalapb.descriptors.PInt(lnrpc.GetInfoResponse._typemapper_blockHeight.toBase(blockHeight))
        case 8 => _root_.scalapb.descriptors.PString(blockHash)
        case 13 => _root_.scalapb.descriptors.PLong(bestHeaderTimestamp)
        case 9 => _root_.scalapb.descriptors.PBoolean(syncedToChain)
        case 18 => _root_.scalapb.descriptors.PBoolean(syncedToGraph)
        case 10 => _root_.scalapb.descriptors.PBoolean(testnet)
        case 16 => _root_.scalapb.descriptors.PRepeated(chains.iterator.map(_.toPMessage).toVector)
        case 12 => _root_.scalapb.descriptors.PRepeated(uris.iterator.map(_root_.scalapb.descriptors.PString(_)).toVector)
        case 19 => _root_.scalapb.descriptors.PRepeated(features.iterator.map(lnrpc.GetInfoResponse._typemapper_features.toBase(_).toPMessage).toVector)
        case 21 => _root_.scalapb.descriptors.PBoolean(requireHtlcInterceptor)
        case 22 => _root_.scalapb.descriptors.PBoolean(storeFinalHtlcResolutions)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: lnrpc.GetInfoResponse.type = lnrpc.GetInfoResponse
    // @@protoc_insertion_point(GeneratedMessage[lnrpc.GetInfoResponse])
}

object GetInfoResponse extends scalapb.GeneratedMessageCompanion[lnrpc.GetInfoResponse] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.GetInfoResponse] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.GetInfoResponse = {
    var __version: _root_.scala.Predef.String = ""
    var __commitHash: _root_.scala.Predef.String = ""
    var __identityPubkey: _root_.scala.Predef.String = ""
    var __alias: _root_.scala.Predef.String = ""
    var __color: _root_.scala.Predef.String = ""
    var __numPendingChannels: _root_.scala.Int = 0
    var __numActiveChannels: _root_.scala.Int = 0
    var __numInactiveChannels: _root_.scala.Int = 0
    var __numPeers: _root_.scala.Int = 0
    var __blockHeight: _root_.scala.Int = 0
    var __blockHash: _root_.scala.Predef.String = ""
    var __bestHeaderTimestamp: _root_.scala.Long = 0L
    var __syncedToChain: _root_.scala.Boolean = false
    var __syncedToGraph: _root_.scala.Boolean = false
    var __testnet: _root_.scala.Boolean = false
    val __chains: _root_.scala.collection.immutable.VectorBuilder[lnrpc.Chain] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.Chain]
    val __uris: _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Predef.String] = new _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Predef.String]
    val __features: _root_.scala.collection.mutable.Builder[(org.bitcoins.core.number.UInt32, lnrpc.Feature), _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]] = _root_.scala.collection.immutable.Map.newBuilder[org.bitcoins.core.number.UInt32, lnrpc.Feature]
    var __requireHtlcInterceptor: _root_.scala.Boolean = false
    var __storeFinalHtlcResolutions: _root_.scala.Boolean = false
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 114 =>
          __version = _input__.readStringRequireUtf8()
        case 162 =>
          __commitHash = _input__.readStringRequireUtf8()
        case 10 =>
          __identityPubkey = _input__.readStringRequireUtf8()
        case 18 =>
          __alias = _input__.readStringRequireUtf8()
        case 138 =>
          __color = _input__.readStringRequireUtf8()
        case 24 =>
          __numPendingChannels = _input__.readUInt32()
        case 32 =>
          __numActiveChannels = _input__.readUInt32()
        case 120 =>
          __numInactiveChannels = _input__.readUInt32()
        case 40 =>
          __numPeers = _input__.readUInt32()
        case 48 =>
          __blockHeight = _input__.readUInt32()
        case 66 =>
          __blockHash = _input__.readStringRequireUtf8()
        case 104 =>
          __bestHeaderTimestamp = _input__.readInt64()
        case 72 =>
          __syncedToChain = _input__.readBool()
        case 144 =>
          __syncedToGraph = _input__.readBool()
        case 80 =>
          __testnet = _input__.readBool()
        case 130 =>
          __chains += _root_.scalapb.LiteParser.readMessage[lnrpc.Chain](_input__)
        case 98 =>
          __uris += _input__.readStringRequireUtf8()
        case 154 =>
          __features += lnrpc.GetInfoResponse._typemapper_features.toCustom(_root_.scalapb.LiteParser.readMessage[lnrpc.GetInfoResponse.FeaturesEntry](_input__))
        case 168 =>
          __requireHtlcInterceptor = _input__.readBool()
        case 176 =>
          __storeFinalHtlcResolutions = _input__.readBool()
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    lnrpc.GetInfoResponse(
        version = __version,
        commitHash = __commitHash,
        identityPubkey = __identityPubkey,
        alias = __alias,
        color = __color,
        numPendingChannels = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toCustom(__numPendingChannels),
        numActiveChannels = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toCustom(__numActiveChannels),
        numInactiveChannels = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toCustom(__numInactiveChannels),
        numPeers = lnrpc.GetInfoResponse._typemapper_numPeers.toCustom(__numPeers),
        blockHeight = lnrpc.GetInfoResponse._typemapper_blockHeight.toCustom(__blockHeight),
        blockHash = __blockHash,
        bestHeaderTimestamp = __bestHeaderTimestamp,
        syncedToChain = __syncedToChain,
        syncedToGraph = __syncedToGraph,
        testnet = __testnet,
        chains = __chains.result(),
        uris = __uris.result(),
        features = __features.result(),
        requireHtlcInterceptor = __requireHtlcInterceptor,
        storeFinalHtlcResolutions = __storeFinalHtlcResolutions,
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.GetInfoResponse] = _root_.scalapb.descriptors.Reads{
    case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
      _root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
      lnrpc.GetInfoResponse(
        version = __fieldsMap.get(scalaDescriptor.findFieldByNumber(14).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        commitHash = __fieldsMap.get(scalaDescriptor.findFieldByNumber(20).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        identityPubkey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        alias = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        color = __fieldsMap.get(scalaDescriptor.findFieldByNumber(17).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        numPendingChannels = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        numActiveChannels = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        numInactiveChannels = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(15).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        numPeers = lnrpc.GetInfoResponse._typemapper_numPeers.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        blockHeight = lnrpc.GetInfoResponse._typemapper_blockHeight.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        blockHash = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        bestHeaderTimestamp = __fieldsMap.get(scalaDescriptor.findFieldByNumber(13).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        syncedToChain = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        syncedToGraph = __fieldsMap.get(scalaDescriptor.findFieldByNumber(18).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        testnet = __fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        chains = __fieldsMap.get(scalaDescriptor.findFieldByNumber(16).get).map(_.as[_root_.scala.Seq[lnrpc.Chain]]).getOrElse(_root_.scala.Seq.empty),
        uris = __fieldsMap.get(scalaDescriptor.findFieldByNumber(12).get).map(_.as[_root_.scala.Seq[_root_.scala.Predef.String]]).getOrElse(_root_.scala.Seq.empty),
        features = __fieldsMap.get(scalaDescriptor.findFieldByNumber(19).get).map(_.as[_root_.scala.Seq[lnrpc.GetInfoResponse.FeaturesEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(lnrpc.GetInfoResponse._typemapper_features.toCustom(_)).toMap,
        requireHtlcInterceptor = __fieldsMap.get(scalaDescriptor.findFieldByNumber(21).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        storeFinalHtlcResolutions = __fieldsMap.get(scalaDescriptor.findFieldByNumber(22).get).map(_.as[_root_.scala.Boolean]).getOrElse(false)
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(58)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(58)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 16 => __out = lnrpc.Chain
      case 19 => __out = lnrpc.GetInfoResponse.FeaturesEntry
    }
    __out
  }
  lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
    Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
      _root_.lnrpc.GetInfoResponse.FeaturesEntry
    )
  def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
  lazy val defaultInstance = lnrpc.GetInfoResponse(
    version = "",
    commitHash = "",
    identityPubkey = "",
    alias = "",
    color = "",
    numPendingChannels = lnrpc.GetInfoResponse._typemapper_numPendingChannels.toCustom(0),
    numActiveChannels = lnrpc.GetInfoResponse._typemapper_numActiveChannels.toCustom(0),
    numInactiveChannels = lnrpc.GetInfoResponse._typemapper_numInactiveChannels.toCustom(0),
    numPeers = lnrpc.GetInfoResponse._typemapper_numPeers.toCustom(0),
    blockHeight = lnrpc.GetInfoResponse._typemapper_blockHeight.toCustom(0),
    blockHash = "",
    bestHeaderTimestamp = 0L,
    syncedToChain = false,
    syncedToGraph = false,
    testnet = false,
    chains = _root_.scala.Seq.empty,
    uris = _root_.scala.Seq.empty,
    features = _root_.scala.collection.immutable.Map.empty,
    requireHtlcInterceptor = false,
    storeFinalHtlcResolutions = false
  )
  @SerialVersionUID(0L)
  final case class FeaturesEntry(
      key: org.bitcoins.core.number.UInt32 = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toCustom(0),
      value: _root_.scala.Option[lnrpc.Feature] = _root_.scala.None,
      unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
      ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FeaturesEntry] {
      @transient
      private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
      private[this] def __computeSerializedSize(): _root_.scala.Int = {
        var __size = 0
        
        {
          val __value = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toBase(key)
          if (__value != 0) {
            __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(1, __value)
          }
        };
        if (value.isDefined) {
          val __value = value.get
          __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
        };
        __size += unknownFields.serializedSize
        __size
      }
      override def serializedSize: _root_.scala.Int = {
        var __size = __serializedSizeMemoized
        if (__size == 0) {
          __size = __computeSerializedSize() + 1
          __serializedSizeMemoized = __size
        }
        __size - 1
        
      }
      def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
        {
          val __v = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toBase(key)
          if (__v != 0) {
            _output__.writeUInt32(1, __v)
          }
        };
        value.foreach { __v =>
          val __m = __v
          _output__.writeTag(2, 2)
          _output__.writeUInt32NoTag(__m.serializedSize)
          __m.writeTo(_output__)
        };
        unknownFields.writeTo(_output__)
      }
      def withKey(__v: org.bitcoins.core.number.UInt32): FeaturesEntry = copy(key = __v)
      def getValue: lnrpc.Feature = value.getOrElse(lnrpc.Feature.defaultInstance)
      def clearValue: FeaturesEntry = copy(value = _root_.scala.None)
      def withValue(__v: lnrpc.Feature): FeaturesEntry = copy(value = Option(__v))
      def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
      def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
      def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
        (__fieldNumber: @_root_.scala.unchecked) match {
          case 1 => {
            val __t = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toBase(key)
            if (__t != 0) __t else null
          }
          case 2 => value.orNull
        }
      }
      def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
        _root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
        (__field.number: @_root_.scala.unchecked) match {
          case 1 => _root_.scalapb.descriptors.PInt(lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toBase(key))
          case 2 => value.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        }
      }
      def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
      def companion: lnrpc.GetInfoResponse.FeaturesEntry.type = lnrpc.GetInfoResponse.FeaturesEntry
      // @@protoc_insertion_point(GeneratedMessage[lnrpc.GetInfoResponse.FeaturesEntry])
  }
  
  object FeaturesEntry extends scalapb.GeneratedMessageCompanion[lnrpc.GetInfoResponse.FeaturesEntry] {
    implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.GetInfoResponse.FeaturesEntry] = this
    def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.GetInfoResponse.FeaturesEntry = {
      var __key: _root_.scala.Int = 0
      var __value: _root_.scala.Option[lnrpc.Feature] = _root_.scala.None
      var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
      var _done__ = false
      while (!_done__) {
        val _tag__ = _input__.readTag()
        _tag__ match {
          case 0 => _done__ = true
          case 8 =>
            __key = _input__.readUInt32()
          case 18 =>
            __value = Option(__value.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.Feature](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
          case tag =>
            if (_unknownFields__ == null) {
              _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
            }
            _unknownFields__.parseField(tag, _input__)
        }
      }
      lnrpc.GetInfoResponse.FeaturesEntry(
          key = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toCustom(__key),
          value = __value,
          unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
      )
    }
    implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.GetInfoResponse.FeaturesEntry] = _root_.scalapb.descriptors.Reads{
      case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
        _root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
        lnrpc.GetInfoResponse.FeaturesEntry(
          key = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
          value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[lnrpc.Feature]])
        )
      case _ => throw new RuntimeException("Expected PMessage")
    }
    def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = lnrpc.GetInfoResponse.javaDescriptor.getNestedTypes().get(0)
    def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = lnrpc.GetInfoResponse.scalaDescriptor.nestedMessages(0)
    def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
      var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
      (__number: @_root_.scala.unchecked) match {
        case 2 => __out = lnrpc.Feature
      }
      __out
    }
    lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
    def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
    lazy val defaultInstance = lnrpc.GetInfoResponse.FeaturesEntry(
      key = lnrpc.GetInfoResponse.FeaturesEntry._typemapper_key.toCustom(0),
      value = _root_.scala.None
    )
    implicit class FeaturesEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.GetInfoResponse.FeaturesEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.GetInfoResponse.FeaturesEntry](_l) {
      def key: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.key)((c_, f_) => c_.copy(key = f_))
      def value: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.Feature] = field(_.getValue)((c_, f_) => c_.copy(value = Option(f_)))
      def optionalValue: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[lnrpc.Feature]] = field(_.value)((c_, f_) => c_.copy(value = f_))
    }
    final val KEY_FIELD_NUMBER = 1
    final val VALUE_FIELD_NUMBER = 2
    @transient
    private[lnrpc] val _typemapper_key: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
    @transient
    implicit val keyValueMapper: _root_.scalapb.TypeMapper[lnrpc.GetInfoResponse.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)] =
      _root_.scalapb.TypeMapper[lnrpc.GetInfoResponse.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)](__m => (__m.key, __m.getValue))(__p => lnrpc.GetInfoResponse.FeaturesEntry(__p._1, Some(__p._2)))
    def of(
      key: org.bitcoins.core.number.UInt32,
      value: _root_.scala.Option[lnrpc.Feature]
    ): _root_.lnrpc.GetInfoResponse.FeaturesEntry = _root_.lnrpc.GetInfoResponse.FeaturesEntry(
      key,
      value
    )
    // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.GetInfoResponse.FeaturesEntry])
  }
  
  implicit class GetInfoResponseLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.GetInfoResponse]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.GetInfoResponse](_l) {
    def version: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.version)((c_, f_) => c_.copy(version = f_))
    def commitHash: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.commitHash)((c_, f_) => c_.copy(commitHash = f_))
    def identityPubkey: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.identityPubkey)((c_, f_) => c_.copy(identityPubkey = f_))
    def alias: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.alias)((c_, f_) => c_.copy(alias = f_))
    def color: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.color)((c_, f_) => c_.copy(color = f_))
    def numPendingChannels: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.numPendingChannels)((c_, f_) => c_.copy(numPendingChannels = f_))
    def numActiveChannels: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.numActiveChannels)((c_, f_) => c_.copy(numActiveChannels = f_))
    def numInactiveChannels: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.numInactiveChannels)((c_, f_) => c_.copy(numInactiveChannels = f_))
    def numPeers: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.numPeers)((c_, f_) => c_.copy(numPeers = f_))
    def blockHeight: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.blockHeight)((c_, f_) => c_.copy(blockHeight = f_))
    def blockHash: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.blockHash)((c_, f_) => c_.copy(blockHash = f_))
    def bestHeaderTimestamp: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.bestHeaderTimestamp)((c_, f_) => c_.copy(bestHeaderTimestamp = f_))
    def syncedToChain: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.syncedToChain)((c_, f_) => c_.copy(syncedToChain = f_))
    def syncedToGraph: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.syncedToGraph)((c_, f_) => c_.copy(syncedToGraph = f_))
    def testnet: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.testnet)((c_, f_) => c_.copy(testnet = f_))
    def chains: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.Chain]] = field(_.chains)((c_, f_) => c_.copy(chains = f_))
    def uris: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.uris)((c_, f_) => c_.copy(uris = f_))
    def features: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature]] = field(_.features)((c_, f_) => c_.copy(features = f_))
    def requireHtlcInterceptor: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.requireHtlcInterceptor)((c_, f_) => c_.copy(requireHtlcInterceptor = f_))
    def storeFinalHtlcResolutions: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.storeFinalHtlcResolutions)((c_, f_) => c_.copy(storeFinalHtlcResolutions = f_))
  }
  final val VERSION_FIELD_NUMBER = 14
  final val COMMIT_HASH_FIELD_NUMBER = 20
  final val IDENTITY_PUBKEY_FIELD_NUMBER = 1
  final val ALIAS_FIELD_NUMBER = 2
  final val COLOR_FIELD_NUMBER = 17
  final val NUM_PENDING_CHANNELS_FIELD_NUMBER = 3
  final val NUM_ACTIVE_CHANNELS_FIELD_NUMBER = 4
  final val NUM_INACTIVE_CHANNELS_FIELD_NUMBER = 15
  final val NUM_PEERS_FIELD_NUMBER = 5
  final val BLOCK_HEIGHT_FIELD_NUMBER = 6
  final val BLOCK_HASH_FIELD_NUMBER = 8
  final val BEST_HEADER_TIMESTAMP_FIELD_NUMBER = 13
  final val SYNCED_TO_CHAIN_FIELD_NUMBER = 9
  final val SYNCED_TO_GRAPH_FIELD_NUMBER = 18
  final val TESTNET_FIELD_NUMBER = 10
  final val CHAINS_FIELD_NUMBER = 16
  final val URIS_FIELD_NUMBER = 12
  final val FEATURES_FIELD_NUMBER = 19
  final val REQUIRE_HTLC_INTERCEPTOR_FIELD_NUMBER = 21
  final val STORE_FINAL_HTLC_RESOLUTIONS_FIELD_NUMBER = 22
  @transient
  private[lnrpc] val _typemapper_numPendingChannels: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
  @transient
  private[lnrpc] val _typemapper_numActiveChannels: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
  @transient
  private[lnrpc] val _typemapper_numInactiveChannels: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
  @transient
  private[lnrpc] val _typemapper_numPeers: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
  @transient
  private[lnrpc] val _typemapper_blockHeight: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
  @transient
  private[lnrpc] val _typemapper_features: _root_.scalapb.TypeMapper[lnrpc.GetInfoResponse.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)] = implicitly[_root_.scalapb.TypeMapper[lnrpc.GetInfoResponse.FeaturesEntry, (org.bitcoins.core.number.UInt32, lnrpc.Feature)]]
  def of(
    version: _root_.scala.Predef.String,
    commitHash: _root_.scala.Predef.String,
    identityPubkey: _root_.scala.Predef.String,
    alias: _root_.scala.Predef.String,
    color: _root_.scala.Predef.String,
    numPendingChannels: org.bitcoins.core.number.UInt32,
    numActiveChannels: org.bitcoins.core.number.UInt32,
    numInactiveChannels: org.bitcoins.core.number.UInt32,
    numPeers: org.bitcoins.core.number.UInt32,
    blockHeight: org.bitcoins.core.number.UInt32,
    blockHash: _root_.scala.Predef.String,
    bestHeaderTimestamp: _root_.scala.Long,
    syncedToChain: _root_.scala.Boolean,
    syncedToGraph: _root_.scala.Boolean,
    testnet: _root_.scala.Boolean,
    chains: _root_.scala.Seq[lnrpc.Chain],
    uris: _root_.scala.Seq[_root_.scala.Predef.String],
    features: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt32, lnrpc.Feature],
    requireHtlcInterceptor: _root_.scala.Boolean,
    storeFinalHtlcResolutions: _root_.scala.Boolean
  ): _root_.lnrpc.GetInfoResponse = _root_.lnrpc.GetInfoResponse(
    version,
    commitHash,
    identityPubkey,
    alias,
    color,
    numPendingChannels,
    numActiveChannels,
    numInactiveChannels,
    numPeers,
    blockHeight,
    blockHash,
    bestHeaderTimestamp,
    syncedToChain,
    syncedToGraph,
    testnet,
    chains,
    uris,
    features,
    requireHtlcInterceptor,
    storeFinalHtlcResolutions
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.GetInfoResponse])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy