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

lnrpc.PolicyUpdateRequest.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 baseFeeMsat
  *   The base fee charged regardless of the number of milli-satoshis sent.
  * @param feeRate
  *   The effective fee rate in milli-satoshis. The precision of this value
  *   goes up to 6 decimal places, so 1e-6.
  * @param feeRatePpm
  *   The effective fee rate in micro-satoshis (parts per million).
  * @param timeLockDelta
  *   The required timelock delta for HTLCs forwarded over the channel.
  * @param maxHtlcMsat
  *   If set, the maximum HTLC size in milli-satoshis. If unset, the maximum
  *   HTLC will be unchanged.
  * @param minHtlcMsat
  *   The minimum HTLC size in milli-satoshis. Only applied if
  *   min_htlc_msat_specified is true.
  * @param minHtlcMsatSpecified
  *   If true, min_htlc_msat is applied.
  */
@SerialVersionUID(0L)
final case class PolicyUpdateRequest(
    scope: lnrpc.PolicyUpdateRequest.Scope = lnrpc.PolicyUpdateRequest.Scope.Empty,
    baseFeeMsat: _root_.scala.Long = 0L,
    feeRate: _root_.scala.Double = 0.0,
    feeRatePpm: org.bitcoins.core.number.UInt32 = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toCustom(0),
    timeLockDelta: org.bitcoins.core.number.UInt32 = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toCustom(0),
    maxHtlcMsat: org.bitcoins.core.number.UInt64 = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toCustom(0L),
    minHtlcMsat: org.bitcoins.core.number.UInt64 = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toCustom(0L),
    minHtlcMsatSpecified: _root_.scala.Boolean = false,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[PolicyUpdateRequest] {
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      if (scope.global.isDefined) {
        val __value = scope.global.get
        __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(1, __value)
      };
      if (scope.chanPoint.isDefined) {
        val __value = scope.chanPoint.get
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      
      {
        val __value = baseFeeMsat
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(3, __value)
        }
      };
      
      {
        val __value = feeRate
        if (__value != 0.0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeDoubleSize(4, __value)
        }
      };
      
      {
        val __value = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toBase(feeRatePpm)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(9, __value)
        }
      };
      
      {
        val __value = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toBase(timeLockDelta)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(5, __value)
        }
      };
      
      {
        val __value = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toBase(maxHtlcMsat)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(6, __value)
        }
      };
      
      {
        val __value = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toBase(minHtlcMsat)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(7, __value)
        }
      };
      
      {
        val __value = minHtlcMsatSpecified
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(8, __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 = {
      scope.global.foreach { __v =>
        val __m = __v
        _output__.writeBool(1, __m)
      };
      scope.chanPoint.foreach { __v =>
        val __m = __v
        _output__.writeTag(2, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      {
        val __v = baseFeeMsat
        if (__v != 0L) {
          _output__.writeInt64(3, __v)
        }
      };
      {
        val __v = feeRate
        if (__v != 0.0) {
          _output__.writeDouble(4, __v)
        }
      };
      {
        val __v = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toBase(timeLockDelta)
        if (__v != 0) {
          _output__.writeUInt32(5, __v)
        }
      };
      {
        val __v = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toBase(maxHtlcMsat)
        if (__v != 0L) {
          _output__.writeUInt64(6, __v)
        }
      };
      {
        val __v = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toBase(minHtlcMsat)
        if (__v != 0L) {
          _output__.writeUInt64(7, __v)
        }
      };
      {
        val __v = minHtlcMsatSpecified
        if (__v != false) {
          _output__.writeBool(8, __v)
        }
      };
      {
        val __v = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toBase(feeRatePpm)
        if (__v != 0) {
          _output__.writeUInt32(9, __v)
        }
      };
      unknownFields.writeTo(_output__)
    }
    def getGlobal: _root_.scala.Boolean = scope.global.getOrElse(false)
    def withGlobal(__v: _root_.scala.Boolean): PolicyUpdateRequest = copy(scope = lnrpc.PolicyUpdateRequest.Scope.Global(__v))
    def getChanPoint: lnrpc.ChannelPoint = scope.chanPoint.getOrElse(lnrpc.ChannelPoint.defaultInstance)
    def withChanPoint(__v: lnrpc.ChannelPoint): PolicyUpdateRequest = copy(scope = lnrpc.PolicyUpdateRequest.Scope.ChanPoint(__v))
    def withBaseFeeMsat(__v: _root_.scala.Long): PolicyUpdateRequest = copy(baseFeeMsat = __v)
    def withFeeRate(__v: _root_.scala.Double): PolicyUpdateRequest = copy(feeRate = __v)
    def withFeeRatePpm(__v: org.bitcoins.core.number.UInt32): PolicyUpdateRequest = copy(feeRatePpm = __v)
    def withTimeLockDelta(__v: org.bitcoins.core.number.UInt32): PolicyUpdateRequest = copy(timeLockDelta = __v)
    def withMaxHtlcMsat(__v: org.bitcoins.core.number.UInt64): PolicyUpdateRequest = copy(maxHtlcMsat = __v)
    def withMinHtlcMsat(__v: org.bitcoins.core.number.UInt64): PolicyUpdateRequest = copy(minHtlcMsat = __v)
    def withMinHtlcMsatSpecified(__v: _root_.scala.Boolean): PolicyUpdateRequest = copy(minHtlcMsatSpecified = __v)
    def clearScope: PolicyUpdateRequest = copy(scope = lnrpc.PolicyUpdateRequest.Scope.Empty)
    def withScope(__v: lnrpc.PolicyUpdateRequest.Scope): PolicyUpdateRequest = copy(scope = __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 => scope.global.orNull
        case 2 => scope.chanPoint.orNull
        case 3 => {
          val __t = baseFeeMsat
          if (__t != 0L) __t else null
        }
        case 4 => {
          val __t = feeRate
          if (__t != 0.0) __t else null
        }
        case 9 => {
          val __t = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toBase(feeRatePpm)
          if (__t != 0) __t else null
        }
        case 5 => {
          val __t = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toBase(timeLockDelta)
          if (__t != 0) __t else null
        }
        case 6 => {
          val __t = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toBase(maxHtlcMsat)
          if (__t != 0L) __t else null
        }
        case 7 => {
          val __t = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toBase(minHtlcMsat)
          if (__t != 0L) __t else null
        }
        case 8 => {
          val __t = minHtlcMsatSpecified
          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 1 => scope.global.map(_root_.scalapb.descriptors.PBoolean(_)).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 2 => scope.chanPoint.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 3 => _root_.scalapb.descriptors.PLong(baseFeeMsat)
        case 4 => _root_.scalapb.descriptors.PDouble(feeRate)
        case 9 => _root_.scalapb.descriptors.PInt(lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toBase(feeRatePpm))
        case 5 => _root_.scalapb.descriptors.PInt(lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toBase(timeLockDelta))
        case 6 => _root_.scalapb.descriptors.PLong(lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toBase(maxHtlcMsat))
        case 7 => _root_.scalapb.descriptors.PLong(lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toBase(minHtlcMsat))
        case 8 => _root_.scalapb.descriptors.PBoolean(minHtlcMsatSpecified)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: lnrpc.PolicyUpdateRequest.type = lnrpc.PolicyUpdateRequest
    // @@protoc_insertion_point(GeneratedMessage[lnrpc.PolicyUpdateRequest])
}

object PolicyUpdateRequest extends scalapb.GeneratedMessageCompanion[lnrpc.PolicyUpdateRequest] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.PolicyUpdateRequest] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.PolicyUpdateRequest = {
    var __baseFeeMsat: _root_.scala.Long = 0L
    var __feeRate: _root_.scala.Double = 0.0
    var __feeRatePpm: _root_.scala.Int = 0
    var __timeLockDelta: _root_.scala.Int = 0
    var __maxHtlcMsat: _root_.scala.Long = 0L
    var __minHtlcMsat: _root_.scala.Long = 0L
    var __minHtlcMsatSpecified: _root_.scala.Boolean = false
    var __scope: lnrpc.PolicyUpdateRequest.Scope = lnrpc.PolicyUpdateRequest.Scope.Empty
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 8 =>
          __scope = lnrpc.PolicyUpdateRequest.Scope.Global(_input__.readBool())
        case 18 =>
          __scope = lnrpc.PolicyUpdateRequest.Scope.ChanPoint(__scope.chanPoint.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.ChannelPoint](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case 24 =>
          __baseFeeMsat = _input__.readInt64()
        case 33 =>
          __feeRate = _input__.readDouble()
        case 72 =>
          __feeRatePpm = _input__.readUInt32()
        case 40 =>
          __timeLockDelta = _input__.readUInt32()
        case 48 =>
          __maxHtlcMsat = _input__.readUInt64()
        case 56 =>
          __minHtlcMsat = _input__.readUInt64()
        case 64 =>
          __minHtlcMsatSpecified = _input__.readBool()
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    lnrpc.PolicyUpdateRequest(
        baseFeeMsat = __baseFeeMsat,
        feeRate = __feeRate,
        feeRatePpm = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toCustom(__feeRatePpm),
        timeLockDelta = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toCustom(__timeLockDelta),
        maxHtlcMsat = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toCustom(__maxHtlcMsat),
        minHtlcMsat = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toCustom(__minHtlcMsat),
        minHtlcMsatSpecified = __minHtlcMsatSpecified,
        scope = __scope,
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.PolicyUpdateRequest] = _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.PolicyUpdateRequest(
        baseFeeMsat = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        feeRate = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Double]).getOrElse(0.0),
        feeRatePpm = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        timeLockDelta = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        maxHtlcMsat = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        minHtlcMsat = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        minHtlcMsatSpecified = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        scope = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[_root_.scala.Boolean]]).map(lnrpc.PolicyUpdateRequest.Scope.Global(_))
            .orElse[lnrpc.PolicyUpdateRequest.Scope](__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[lnrpc.ChannelPoint]]).map(lnrpc.PolicyUpdateRequest.Scope.ChanPoint(_)))
            .getOrElse(lnrpc.PolicyUpdateRequest.Scope.Empty)
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(154)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(154)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 2 => __out = lnrpc.ChannelPoint
    }
    __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.PolicyUpdateRequest(
    baseFeeMsat = 0L,
    feeRate = 0.0,
    feeRatePpm = lnrpc.PolicyUpdateRequest._typemapper_feeRatePpm.toCustom(0),
    timeLockDelta = lnrpc.PolicyUpdateRequest._typemapper_timeLockDelta.toCustom(0),
    maxHtlcMsat = lnrpc.PolicyUpdateRequest._typemapper_maxHtlcMsat.toCustom(0L),
    minHtlcMsat = lnrpc.PolicyUpdateRequest._typemapper_minHtlcMsat.toCustom(0L),
    minHtlcMsatSpecified = false,
    scope = lnrpc.PolicyUpdateRequest.Scope.Empty
  )
  sealed trait Scope extends _root_.scalapb.GeneratedOneof {
    def isEmpty: _root_.scala.Boolean = false
    def isDefined: _root_.scala.Boolean = true
    def isGlobal: _root_.scala.Boolean = false
    def isChanPoint: _root_.scala.Boolean = false
    def global: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None
    def chanPoint: _root_.scala.Option[lnrpc.ChannelPoint] = _root_.scala.None
  }
  object Scope {
    @SerialVersionUID(0L)
    case object Empty extends lnrpc.PolicyUpdateRequest.Scope {
      type ValueType = _root_.scala.Nothing
      override def isEmpty: _root_.scala.Boolean = true
      override def isDefined: _root_.scala.Boolean = false
      override def number: _root_.scala.Int = 0
      override def value: _root_.scala.Nothing = throw new java.util.NoSuchElementException("Empty.value")
    }
  
    @SerialVersionUID(0L)
    final case class Global(value: _root_.scala.Boolean) extends lnrpc.PolicyUpdateRequest.Scope {
      type ValueType = _root_.scala.Boolean
      override def isGlobal: _root_.scala.Boolean = true
      override def global: _root_.scala.Option[_root_.scala.Boolean] = Some(value)
      override def number: _root_.scala.Int = 1
    }
    @SerialVersionUID(0L)
    final case class ChanPoint(value: lnrpc.ChannelPoint) extends lnrpc.PolicyUpdateRequest.Scope {
      type ValueType = lnrpc.ChannelPoint
      override def isChanPoint: _root_.scala.Boolean = true
      override def chanPoint: _root_.scala.Option[lnrpc.ChannelPoint] = Some(value)
      override def number: _root_.scala.Int = 2
    }
  }
  implicit class PolicyUpdateRequestLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.PolicyUpdateRequest]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.PolicyUpdateRequest](_l) {
    def global: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getGlobal)((c_, f_) => c_.copy(scope = lnrpc.PolicyUpdateRequest.Scope.Global(f_)))
    def chanPoint: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelPoint] = field(_.getChanPoint)((c_, f_) => c_.copy(scope = lnrpc.PolicyUpdateRequest.Scope.ChanPoint(f_)))
    def baseFeeMsat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.baseFeeMsat)((c_, f_) => c_.copy(baseFeeMsat = f_))
    def feeRate: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Double] = field(_.feeRate)((c_, f_) => c_.copy(feeRate = f_))
    def feeRatePpm: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.feeRatePpm)((c_, f_) => c_.copy(feeRatePpm = f_))
    def timeLockDelta: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.timeLockDelta)((c_, f_) => c_.copy(timeLockDelta = f_))
    def maxHtlcMsat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.maxHtlcMsat)((c_, f_) => c_.copy(maxHtlcMsat = f_))
    def minHtlcMsat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.minHtlcMsat)((c_, f_) => c_.copy(minHtlcMsat = f_))
    def minHtlcMsatSpecified: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.minHtlcMsatSpecified)((c_, f_) => c_.copy(minHtlcMsatSpecified = f_))
    def scope: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.PolicyUpdateRequest.Scope] = field(_.scope)((c_, f_) => c_.copy(scope = f_))
  }
  final val GLOBAL_FIELD_NUMBER = 1
  final val CHAN_POINT_FIELD_NUMBER = 2
  final val BASE_FEE_MSAT_FIELD_NUMBER = 3
  final val FEE_RATE_FIELD_NUMBER = 4
  final val FEE_RATE_PPM_FIELD_NUMBER = 9
  final val TIME_LOCK_DELTA_FIELD_NUMBER = 5
  final val MAX_HTLC_MSAT_FIELD_NUMBER = 6
  final val MIN_HTLC_MSAT_FIELD_NUMBER = 7
  final val MIN_HTLC_MSAT_SPECIFIED_FIELD_NUMBER = 8
  @transient
  private[lnrpc] val _typemapper_feeRatePpm: _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_timeLockDelta: _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_maxHtlcMsat: _root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64]]
  @transient
  private[lnrpc] val _typemapper_minHtlcMsat: _root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64]]
  def of(
    scope: lnrpc.PolicyUpdateRequest.Scope,
    baseFeeMsat: _root_.scala.Long,
    feeRate: _root_.scala.Double,
    feeRatePpm: org.bitcoins.core.number.UInt32,
    timeLockDelta: org.bitcoins.core.number.UInt32,
    maxHtlcMsat: org.bitcoins.core.number.UInt64,
    minHtlcMsat: org.bitcoins.core.number.UInt64,
    minHtlcMsatSpecified: _root_.scala.Boolean
  ): _root_.lnrpc.PolicyUpdateRequest = _root_.lnrpc.PolicyUpdateRequest(
    scope,
    baseFeeMsat,
    feeRate,
    feeRatePpm,
    timeLockDelta,
    maxHtlcMsat,
    minHtlcMsat,
    minHtlcMsatSpecified
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.PolicyUpdateRequest])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy