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

lnrpc.WalletBalanceResponse.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 totalBalance
  *   The balance of the wallet
  * @param confirmedBalance
  *   The confirmed balance of a wallet(with >= 1 confirmations)
  * @param unconfirmedBalance
  *   The unconfirmed balance of a wallet(with 0 confirmations)
  * @param lockedBalance
  *   The total amount of wallet UTXOs held in outputs that are locked for
  *   other usage.
  * @param reservedBalanceAnchorChan
  *   The amount of reserve required.
  * @param accountBalance
  *   A mapping of each wallet account's name to its balance.
  */
@SerialVersionUID(0L)
final case class WalletBalanceResponse(
    totalBalance: _root_.scala.Long = 0L,
    confirmedBalance: _root_.scala.Long = 0L,
    unconfirmedBalance: _root_.scala.Long = 0L,
    lockedBalance: _root_.scala.Long = 0L,
    reservedBalanceAnchorChan: _root_.scala.Long = 0L,
    accountBalance: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, lnrpc.WalletAccountBalance] = _root_.scala.collection.immutable.Map.empty,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[WalletBalanceResponse] {
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      
      {
        val __value = totalBalance
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(1, __value)
        }
      };
      
      {
        val __value = confirmedBalance
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(2, __value)
        }
      };
      
      {
        val __value = unconfirmedBalance
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(3, __value)
        }
      };
      
      {
        val __value = lockedBalance
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(5, __value)
        }
      };
      
      {
        val __value = reservedBalanceAnchorChan
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(6, __value)
        }
      };
      accountBalance.foreach { __item =>
        val __value = lnrpc.WalletBalanceResponse._typemapper_accountBalance.toBase(__item)
        __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 = totalBalance
        if (__v != 0L) {
          _output__.writeInt64(1, __v)
        }
      };
      {
        val __v = confirmedBalance
        if (__v != 0L) {
          _output__.writeInt64(2, __v)
        }
      };
      {
        val __v = unconfirmedBalance
        if (__v != 0L) {
          _output__.writeInt64(3, __v)
        }
      };
      accountBalance.foreach { __v =>
        val __m = lnrpc.WalletBalanceResponse._typemapper_accountBalance.toBase(__v)
        _output__.writeTag(4, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      {
        val __v = lockedBalance
        if (__v != 0L) {
          _output__.writeInt64(5, __v)
        }
      };
      {
        val __v = reservedBalanceAnchorChan
        if (__v != 0L) {
          _output__.writeInt64(6, __v)
        }
      };
      unknownFields.writeTo(_output__)
    }
    def withTotalBalance(__v: _root_.scala.Long): WalletBalanceResponse = copy(totalBalance = __v)
    def withConfirmedBalance(__v: _root_.scala.Long): WalletBalanceResponse = copy(confirmedBalance = __v)
    def withUnconfirmedBalance(__v: _root_.scala.Long): WalletBalanceResponse = copy(unconfirmedBalance = __v)
    def withLockedBalance(__v: _root_.scala.Long): WalletBalanceResponse = copy(lockedBalance = __v)
    def withReservedBalanceAnchorChan(__v: _root_.scala.Long): WalletBalanceResponse = copy(reservedBalanceAnchorChan = __v)
    def clearAccountBalance = copy(accountBalance = _root_.scala.collection.immutable.Map.empty)
    def addAccountBalance(__vs: (_root_.scala.Predef.String, lnrpc.WalletAccountBalance) *): WalletBalanceResponse = addAllAccountBalance(__vs)
    def addAllAccountBalance(__vs: Iterable[(_root_.scala.Predef.String, lnrpc.WalletAccountBalance)]): WalletBalanceResponse = copy(accountBalance = accountBalance ++ __vs)
    def withAccountBalance(__v: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, lnrpc.WalletAccountBalance]): WalletBalanceResponse = copy(accountBalance = __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 = totalBalance
          if (__t != 0L) __t else null
        }
        case 2 => {
          val __t = confirmedBalance
          if (__t != 0L) __t else null
        }
        case 3 => {
          val __t = unconfirmedBalance
          if (__t != 0L) __t else null
        }
        case 5 => {
          val __t = lockedBalance
          if (__t != 0L) __t else null
        }
        case 6 => {
          val __t = reservedBalanceAnchorChan
          if (__t != 0L) __t else null
        }
        case 4 => accountBalance.iterator.map(lnrpc.WalletBalanceResponse._typemapper_accountBalance.toBase(_)).toSeq
      }
    }
    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.PLong(totalBalance)
        case 2 => _root_.scalapb.descriptors.PLong(confirmedBalance)
        case 3 => _root_.scalapb.descriptors.PLong(unconfirmedBalance)
        case 5 => _root_.scalapb.descriptors.PLong(lockedBalance)
        case 6 => _root_.scalapb.descriptors.PLong(reservedBalanceAnchorChan)
        case 4 => _root_.scalapb.descriptors.PRepeated(accountBalance.iterator.map(lnrpc.WalletBalanceResponse._typemapper_accountBalance.toBase(_).toPMessage).toVector)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: lnrpc.WalletBalanceResponse.type = lnrpc.WalletBalanceResponse
    // @@protoc_insertion_point(GeneratedMessage[lnrpc.WalletBalanceResponse])
}

object WalletBalanceResponse extends scalapb.GeneratedMessageCompanion[lnrpc.WalletBalanceResponse] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.WalletBalanceResponse] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.WalletBalanceResponse = {
    var __totalBalance: _root_.scala.Long = 0L
    var __confirmedBalance: _root_.scala.Long = 0L
    var __unconfirmedBalance: _root_.scala.Long = 0L
    var __lockedBalance: _root_.scala.Long = 0L
    var __reservedBalanceAnchorChan: _root_.scala.Long = 0L
    val __accountBalance: _root_.scala.collection.mutable.Builder[(_root_.scala.Predef.String, lnrpc.WalletAccountBalance), _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, lnrpc.WalletAccountBalance]] = _root_.scala.collection.immutable.Map.newBuilder[_root_.scala.Predef.String, lnrpc.WalletAccountBalance]
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 8 =>
          __totalBalance = _input__.readInt64()
        case 16 =>
          __confirmedBalance = _input__.readInt64()
        case 24 =>
          __unconfirmedBalance = _input__.readInt64()
        case 40 =>
          __lockedBalance = _input__.readInt64()
        case 48 =>
          __reservedBalanceAnchorChan = _input__.readInt64()
        case 34 =>
          __accountBalance += lnrpc.WalletBalanceResponse._typemapper_accountBalance.toCustom(_root_.scalapb.LiteParser.readMessage[lnrpc.WalletBalanceResponse.AccountBalanceEntry](_input__))
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    lnrpc.WalletBalanceResponse(
        totalBalance = __totalBalance,
        confirmedBalance = __confirmedBalance,
        unconfirmedBalance = __unconfirmedBalance,
        lockedBalance = __lockedBalance,
        reservedBalanceAnchorChan = __reservedBalanceAnchorChan,
        accountBalance = __accountBalance.result(),
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.WalletBalanceResponse] = _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.WalletBalanceResponse(
        totalBalance = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        confirmedBalance = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        unconfirmedBalance = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        lockedBalance = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        reservedBalanceAnchorChan = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        accountBalance = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Seq[lnrpc.WalletBalanceResponse.AccountBalanceEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(lnrpc.WalletBalanceResponse._typemapper_accountBalance.toCustom(_)).toMap
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(91)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(91)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 4 => __out = lnrpc.WalletBalanceResponse.AccountBalanceEntry
    }
    __out
  }
  lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
    Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
      _root_.lnrpc.WalletBalanceResponse.AccountBalanceEntry
    )
  def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
  lazy val defaultInstance = lnrpc.WalletBalanceResponse(
    totalBalance = 0L,
    confirmedBalance = 0L,
    unconfirmedBalance = 0L,
    lockedBalance = 0L,
    reservedBalanceAnchorChan = 0L,
    accountBalance = _root_.scala.collection.immutable.Map.empty
  )
  @SerialVersionUID(0L)
  final case class AccountBalanceEntry(
      key: _root_.scala.Predef.String = "",
      value: _root_.scala.Option[lnrpc.WalletAccountBalance] = _root_.scala.None,
      unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
      ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[AccountBalanceEntry] {
      @transient
      private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
      private[this] def __computeSerializedSize(): _root_.scala.Int = {
        var __size = 0
        
        {
          val __value = key
          if (!__value.isEmpty) {
            __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(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 = key
          if (!__v.isEmpty) {
            _output__.writeString(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: _root_.scala.Predef.String): AccountBalanceEntry = copy(key = __v)
      def getValue: lnrpc.WalletAccountBalance = value.getOrElse(lnrpc.WalletAccountBalance.defaultInstance)
      def clearValue: AccountBalanceEntry = copy(value = _root_.scala.None)
      def withValue(__v: lnrpc.WalletAccountBalance): AccountBalanceEntry = 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 = key
            if (__t != "") __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.PString(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.WalletBalanceResponse.AccountBalanceEntry.type = lnrpc.WalletBalanceResponse.AccountBalanceEntry
      // @@protoc_insertion_point(GeneratedMessage[lnrpc.WalletBalanceResponse.AccountBalanceEntry])
  }
  
  object AccountBalanceEntry extends scalapb.GeneratedMessageCompanion[lnrpc.WalletBalanceResponse.AccountBalanceEntry] {
    implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.WalletBalanceResponse.AccountBalanceEntry] = this
    def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.WalletBalanceResponse.AccountBalanceEntry = {
      var __key: _root_.scala.Predef.String = ""
      var __value: _root_.scala.Option[lnrpc.WalletAccountBalance] = _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 10 =>
            __key = _input__.readStringRequireUtf8()
          case 18 =>
            __value = Option(__value.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.WalletAccountBalance](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
          case tag =>
            if (_unknownFields__ == null) {
              _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
            }
            _unknownFields__.parseField(tag, _input__)
        }
      }
      lnrpc.WalletBalanceResponse.AccountBalanceEntry(
          key = __key,
          value = __value,
          unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
      )
    }
    implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.WalletBalanceResponse.AccountBalanceEntry] = _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.WalletBalanceResponse.AccountBalanceEntry(
          key = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
          value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[lnrpc.WalletAccountBalance]])
        )
      case _ => throw new RuntimeException("Expected PMessage")
    }
    def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = lnrpc.WalletBalanceResponse.javaDescriptor.getNestedTypes().get(0)
    def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = lnrpc.WalletBalanceResponse.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.WalletAccountBalance
      }
      __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.WalletBalanceResponse.AccountBalanceEntry(
      key = "",
      value = _root_.scala.None
    )
    implicit class AccountBalanceEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.WalletBalanceResponse.AccountBalanceEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.WalletBalanceResponse.AccountBalanceEntry](_l) {
      def key: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.key)((c_, f_) => c_.copy(key = f_))
      def value: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.WalletAccountBalance] = field(_.getValue)((c_, f_) => c_.copy(value = Option(f_)))
      def optionalValue: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[lnrpc.WalletAccountBalance]] = field(_.value)((c_, f_) => c_.copy(value = f_))
    }
    final val KEY_FIELD_NUMBER = 1
    final val VALUE_FIELD_NUMBER = 2
    @transient
    implicit val keyValueMapper: _root_.scalapb.TypeMapper[lnrpc.WalletBalanceResponse.AccountBalanceEntry, (_root_.scala.Predef.String, lnrpc.WalletAccountBalance)] =
      _root_.scalapb.TypeMapper[lnrpc.WalletBalanceResponse.AccountBalanceEntry, (_root_.scala.Predef.String, lnrpc.WalletAccountBalance)](__m => (__m.key, __m.getValue))(__p => lnrpc.WalletBalanceResponse.AccountBalanceEntry(__p._1, Some(__p._2)))
    def of(
      key: _root_.scala.Predef.String,
      value: _root_.scala.Option[lnrpc.WalletAccountBalance]
    ): _root_.lnrpc.WalletBalanceResponse.AccountBalanceEntry = _root_.lnrpc.WalletBalanceResponse.AccountBalanceEntry(
      key,
      value
    )
    // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.WalletBalanceResponse.AccountBalanceEntry])
  }
  
  implicit class WalletBalanceResponseLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.WalletBalanceResponse]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.WalletBalanceResponse](_l) {
    def totalBalance: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.totalBalance)((c_, f_) => c_.copy(totalBalance = f_))
    def confirmedBalance: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.confirmedBalance)((c_, f_) => c_.copy(confirmedBalance = f_))
    def unconfirmedBalance: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.unconfirmedBalance)((c_, f_) => c_.copy(unconfirmedBalance = f_))
    def lockedBalance: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.lockedBalance)((c_, f_) => c_.copy(lockedBalance = f_))
    def reservedBalanceAnchorChan: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.reservedBalanceAnchorChan)((c_, f_) => c_.copy(reservedBalanceAnchorChan = f_))
    def accountBalance: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, lnrpc.WalletAccountBalance]] = field(_.accountBalance)((c_, f_) => c_.copy(accountBalance = f_))
  }
  final val TOTAL_BALANCE_FIELD_NUMBER = 1
  final val CONFIRMED_BALANCE_FIELD_NUMBER = 2
  final val UNCONFIRMED_BALANCE_FIELD_NUMBER = 3
  final val LOCKED_BALANCE_FIELD_NUMBER = 5
  final val RESERVED_BALANCE_ANCHOR_CHAN_FIELD_NUMBER = 6
  final val ACCOUNT_BALANCE_FIELD_NUMBER = 4
  @transient
  private[lnrpc] val _typemapper_accountBalance: _root_.scalapb.TypeMapper[lnrpc.WalletBalanceResponse.AccountBalanceEntry, (_root_.scala.Predef.String, lnrpc.WalletAccountBalance)] = implicitly[_root_.scalapb.TypeMapper[lnrpc.WalletBalanceResponse.AccountBalanceEntry, (_root_.scala.Predef.String, lnrpc.WalletAccountBalance)]]
  def of(
    totalBalance: _root_.scala.Long,
    confirmedBalance: _root_.scala.Long,
    unconfirmedBalance: _root_.scala.Long,
    lockedBalance: _root_.scala.Long,
    reservedBalanceAnchorChan: _root_.scala.Long,
    accountBalance: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, lnrpc.WalletAccountBalance]
  ): _root_.lnrpc.WalletBalanceResponse = _root_.lnrpc.WalletBalanceResponse(
    totalBalance,
    confirmedBalance,
    unconfirmedBalance,
    lockedBalance,
    reservedBalanceAnchorChan,
    accountBalance
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.WalletBalanceResponse])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy