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

lnrpc.OpenChannelRequest.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 satPerVbyte
  *   A manual fee rate set in sat/vbyte that should be used when crafting the
  *   funding transaction.
  * @param nodePubkey
  *  
  *  The pubkey of the node to open a channel with. When using REST, this field
  *  must be encoded as base64.
  * @param nodePubkeyString
  *  
  *  The hex encoded pubkey of the node to open a channel with. Deprecated now
  *  that the REST gateway supports base64 encoding of bytes fields.
  * @param localFundingAmount
  *   The number of satoshis the wallet should commit to the channel
  * @param pushSat
  *   The number of satoshis to push to the remote side as part of the initial
  *   commitment state
  * @param targetConf
  *   The target number of blocks that the funding transaction should be
  *   confirmed by.
  * @param satPerByte
  *   Deprecated, use sat_per_vbyte.
  *   A manual fee rate set in sat/vbyte that should be used when crafting the
  *   funding transaction.
  * @param private
  *   Whether this channel should be private, not announced to the greater
  *   network.
  * @param minHtlcMsat
  *   The minimum value in millisatoshi we will require for incoming HTLCs on
  *   the channel.
  * @param remoteCsvDelay
  *   The delay we require on the remote's commitment transaction. If this is
  *   not set, it will be scaled automatically with the channel size.
  * @param minConfs
  *   The minimum number of confirmations each one of your outputs used for
  *   the funding transaction must satisfy.
  * @param spendUnconfirmed
  *   Whether unconfirmed outputs should be used as inputs for the funding
  *   transaction.
  * @param closeAddress
  *  
  *  Close address is an optional address which specifies the address to which
  *  funds should be paid out to upon cooperative close. This field may only be
  *  set if the peer supports the option upfront feature bit (call listpeers
  *  to check). The remote peer will only accept cooperative closes to this
  *  address if it is set.
  *  
  *  Note: If this value is set on channel creation, you will *not* be able to
  *  cooperatively close out to a different address.
  * @param fundingShim
  *  
  *  Funding shims are an optional argument that allow the caller to intercept
  *  certain funding functionality. For example, a shim can be provided to use a
  *  particular key for the commitment key (ideally cold) rather than use one
  *  that is generated by the wallet as normal, or signal that signing will be
  *  carried out in an interactive manner (PSBT based).
  * @param remoteMaxValueInFlightMsat
  *  
  *  The maximum amount of coins in millisatoshi that can be pending within
  *  the channel. It only applies to the remote party.
  * @param remoteMaxHtlcs
  *  
  *  The maximum number of concurrent HTLCs we will allow the remote party to add
  *  to the commitment transaction.
  * @param maxLocalCsv
  *  
  *  Max local csv is the maximum csv delay we will allow for our own commitment
  *  transaction.
  * @param commitmentType
  *  
  *  The explicit commitment type to use. Note this field will only be used if
  *  the remote peer supports explicit channel negotiation.
  * @param zeroConf
  *  
  *  If this is true, then a zero-conf channel open will be attempted.
  * @param scidAlias
  *  
  *  If this is true, then an option-scid-alias channel-type open will be
  *  attempted.
  * @param baseFee
  *  
  *  The base fee charged regardless of the number of milli-satoshis sent.
  * @param feeRate
  *  
  *  The fee rate in ppm (parts per million) that will be charged in
  *  proportion of the value of each forwarded HTLC.
  * @param useBaseFee
  *  
  *  If use_base_fee is true the open channel announcement will update the
  *  channel base fee with the value specified in base_fee. In the case of
  *  a base_fee of 0 use_base_fee is needed downstream to distinguish whether
  *  to use the default base fee value specified in the config or 0.
  * @param useFeeRate
  *  
  *  If use_fee_rate is true the open channel announcement will update the
  *  channel fee rate with the value specified in fee_rate. In the case of
  *  a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether
  *  to use the default fee rate value specified in the config or 0.
  * @param remoteChanReserveSat
  *  
  *  The number of satoshis we require the remote peer to reserve. This value,
  *  if specified, must be above the dust limit and below 20% of the channel
  *  capacity.
  * @param fundMax
  *  
  *  If set, then lnd will attempt to commit all the coins under control of the
  *  internal wallet to open the channel, and the LocalFundingAmount field must
  *  be zero and is ignored.
  * @param memo
  *  
  *  An optional note-to-self to go along with the channel containing some
  *  useful information. This is only ever stored locally and in no way impacts
  *  the channel's operation.
  * @param outpoints
  *  
  *  A list of selected outpoints that are allocated for channel funding.
  */
@SerialVersionUID(0L)
final case class OpenChannelRequest(
    satPerVbyte: org.bitcoins.core.number.UInt64 = lnrpc.OpenChannelRequest._typemapper_satPerVbyte.toCustom(0L),
    nodePubkey: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
    @scala.deprecated(message="Marked as deprecated in proto file", "") nodePubkeyString: _root_.scala.Predef.String = "",
    localFundingAmount: _root_.scala.Long = 0L,
    pushSat: _root_.scala.Long = 0L,
    targetConf: _root_.scala.Int = 0,
    @scala.deprecated(message="Marked as deprecated in proto file", "") satPerByte: _root_.scala.Long = 0L,
    `private`: _root_.scala.Boolean = false,
    minHtlcMsat: _root_.scala.Long = 0L,
    remoteCsvDelay: org.bitcoins.core.number.UInt32 = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toCustom(0),
    minConfs: _root_.scala.Int = 0,
    spendUnconfirmed: _root_.scala.Boolean = false,
    closeAddress: _root_.scala.Predef.String = "",
    fundingShim: _root_.scala.Option[lnrpc.FundingShim] = _root_.scala.None,
    remoteMaxValueInFlightMsat: org.bitcoins.core.number.UInt64 = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toCustom(0L),
    remoteMaxHtlcs: org.bitcoins.core.number.UInt32 = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toCustom(0),
    maxLocalCsv: org.bitcoins.core.number.UInt32 = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toCustom(0),
    commitmentType: lnrpc.CommitmentType = lnrpc.CommitmentType.UNKNOWN_COMMITMENT_TYPE,
    zeroConf: _root_.scala.Boolean = false,
    scidAlias: _root_.scala.Boolean = false,
    baseFee: org.bitcoins.core.number.UInt64 = lnrpc.OpenChannelRequest._typemapper_baseFee.toCustom(0L),
    feeRate: org.bitcoins.core.number.UInt64 = lnrpc.OpenChannelRequest._typemapper_feeRate.toCustom(0L),
    useBaseFee: _root_.scala.Boolean = false,
    useFeeRate: _root_.scala.Boolean = false,
    remoteChanReserveSat: org.bitcoins.core.number.UInt64 = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toCustom(0L),
    fundMax: _root_.scala.Boolean = false,
    memo: _root_.scala.Predef.String = "",
    outpoints: _root_.scala.Seq[lnrpc.OutPoint] = _root_.scala.Seq.empty,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[OpenChannelRequest] {
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_satPerVbyte.toBase(satPerVbyte)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(1, __value)
        }
      };
      
      {
        val __value = nodePubkey
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(2, __value)
        }
      };
      
      {
        val __value = nodePubkeyString
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, __value)
        }
      };
      
      {
        val __value = localFundingAmount
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(4, __value)
        }
      };
      
      {
        val __value = pushSat
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(5, __value)
        }
      };
      
      {
        val __value = targetConf
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt32Size(6, __value)
        }
      };
      
      {
        val __value = satPerByte
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(7, __value)
        }
      };
      
      {
        val __value = `private`
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(8, __value)
        }
      };
      
      {
        val __value = minHtlcMsat
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(9, __value)
        }
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toBase(remoteCsvDelay)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(10, __value)
        }
      };
      
      {
        val __value = minConfs
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeInt32Size(11, __value)
        }
      };
      
      {
        val __value = spendUnconfirmed
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(12, __value)
        }
      };
      
      {
        val __value = closeAddress
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(13, __value)
        }
      };
      if (fundingShim.isDefined) {
        val __value = fundingShim.get
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toBase(remoteMaxValueInFlightMsat)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(15, __value)
        }
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toBase(remoteMaxHtlcs)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(16, __value)
        }
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toBase(maxLocalCsv)
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(17, __value)
        }
      };
      
      {
        val __value = commitmentType.value
        if (__value != 0) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(18, __value)
        }
      };
      
      {
        val __value = zeroConf
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(19, __value)
        }
      };
      
      {
        val __value = scidAlias
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(20, __value)
        }
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_baseFee.toBase(baseFee)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(21, __value)
        }
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_feeRate.toBase(feeRate)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(22, __value)
        }
      };
      
      {
        val __value = useBaseFee
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(23, __value)
        }
      };
      
      {
        val __value = useFeeRate
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(24, __value)
        }
      };
      
      {
        val __value = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toBase(remoteChanReserveSat)
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(25, __value)
        }
      };
      
      {
        val __value = fundMax
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(26, __value)
        }
      };
      
      {
        val __value = memo
        if (!__value.isEmpty) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(27, __value)
        }
      };
      outpoints.foreach { __item =>
        val __value = __item
        __size += 2 + _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.OpenChannelRequest._typemapper_satPerVbyte.toBase(satPerVbyte)
        if (__v != 0L) {
          _output__.writeUInt64(1, __v)
        }
      };
      {
        val __v = nodePubkey
        if (!__v.isEmpty) {
          _output__.writeBytes(2, __v)
        }
      };
      {
        val __v = nodePubkeyString
        if (!__v.isEmpty) {
          _output__.writeString(3, __v)
        }
      };
      {
        val __v = localFundingAmount
        if (__v != 0L) {
          _output__.writeInt64(4, __v)
        }
      };
      {
        val __v = pushSat
        if (__v != 0L) {
          _output__.writeInt64(5, __v)
        }
      };
      {
        val __v = targetConf
        if (__v != 0) {
          _output__.writeInt32(6, __v)
        }
      };
      {
        val __v = satPerByte
        if (__v != 0L) {
          _output__.writeInt64(7, __v)
        }
      };
      {
        val __v = `private`
        if (__v != false) {
          _output__.writeBool(8, __v)
        }
      };
      {
        val __v = minHtlcMsat
        if (__v != 0L) {
          _output__.writeInt64(9, __v)
        }
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toBase(remoteCsvDelay)
        if (__v != 0) {
          _output__.writeUInt32(10, __v)
        }
      };
      {
        val __v = minConfs
        if (__v != 0) {
          _output__.writeInt32(11, __v)
        }
      };
      {
        val __v = spendUnconfirmed
        if (__v != false) {
          _output__.writeBool(12, __v)
        }
      };
      {
        val __v = closeAddress
        if (!__v.isEmpty) {
          _output__.writeString(13, __v)
        }
      };
      fundingShim.foreach { __v =>
        val __m = __v
        _output__.writeTag(14, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toBase(remoteMaxValueInFlightMsat)
        if (__v != 0L) {
          _output__.writeUInt64(15, __v)
        }
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toBase(remoteMaxHtlcs)
        if (__v != 0) {
          _output__.writeUInt32(16, __v)
        }
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toBase(maxLocalCsv)
        if (__v != 0) {
          _output__.writeUInt32(17, __v)
        }
      };
      {
        val __v = commitmentType.value
        if (__v != 0) {
          _output__.writeEnum(18, __v)
        }
      };
      {
        val __v = zeroConf
        if (__v != false) {
          _output__.writeBool(19, __v)
        }
      };
      {
        val __v = scidAlias
        if (__v != false) {
          _output__.writeBool(20, __v)
        }
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_baseFee.toBase(baseFee)
        if (__v != 0L) {
          _output__.writeUInt64(21, __v)
        }
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_feeRate.toBase(feeRate)
        if (__v != 0L) {
          _output__.writeUInt64(22, __v)
        }
      };
      {
        val __v = useBaseFee
        if (__v != false) {
          _output__.writeBool(23, __v)
        }
      };
      {
        val __v = useFeeRate
        if (__v != false) {
          _output__.writeBool(24, __v)
        }
      };
      {
        val __v = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toBase(remoteChanReserveSat)
        if (__v != 0L) {
          _output__.writeUInt64(25, __v)
        }
      };
      {
        val __v = fundMax
        if (__v != false) {
          _output__.writeBool(26, __v)
        }
      };
      {
        val __v = memo
        if (!__v.isEmpty) {
          _output__.writeString(27, __v)
        }
      };
      outpoints.foreach { __v =>
        val __m = __v
        _output__.writeTag(28, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      unknownFields.writeTo(_output__)
    }
    def withSatPerVbyte(__v: org.bitcoins.core.number.UInt64): OpenChannelRequest = copy(satPerVbyte = __v)
    def withNodePubkey(__v: _root_.com.google.protobuf.ByteString): OpenChannelRequest = copy(nodePubkey = __v)
    def withNodePubkeyString(__v: _root_.scala.Predef.String): OpenChannelRequest = copy(nodePubkeyString = __v)
    def withLocalFundingAmount(__v: _root_.scala.Long): OpenChannelRequest = copy(localFundingAmount = __v)
    def withPushSat(__v: _root_.scala.Long): OpenChannelRequest = copy(pushSat = __v)
    def withTargetConf(__v: _root_.scala.Int): OpenChannelRequest = copy(targetConf = __v)
    def withSatPerByte(__v: _root_.scala.Long): OpenChannelRequest = copy(satPerByte = __v)
    def withPrivate(__v: _root_.scala.Boolean): OpenChannelRequest = copy(`private` = __v)
    def withMinHtlcMsat(__v: _root_.scala.Long): OpenChannelRequest = copy(minHtlcMsat = __v)
    def withRemoteCsvDelay(__v: org.bitcoins.core.number.UInt32): OpenChannelRequest = copy(remoteCsvDelay = __v)
    def withMinConfs(__v: _root_.scala.Int): OpenChannelRequest = copy(minConfs = __v)
    def withSpendUnconfirmed(__v: _root_.scala.Boolean): OpenChannelRequest = copy(spendUnconfirmed = __v)
    def withCloseAddress(__v: _root_.scala.Predef.String): OpenChannelRequest = copy(closeAddress = __v)
    def getFundingShim: lnrpc.FundingShim = fundingShim.getOrElse(lnrpc.FundingShim.defaultInstance)
    def clearFundingShim: OpenChannelRequest = copy(fundingShim = _root_.scala.None)
    def withFundingShim(__v: lnrpc.FundingShim): OpenChannelRequest = copy(fundingShim = Option(__v))
    def withRemoteMaxValueInFlightMsat(__v: org.bitcoins.core.number.UInt64): OpenChannelRequest = copy(remoteMaxValueInFlightMsat = __v)
    def withRemoteMaxHtlcs(__v: org.bitcoins.core.number.UInt32): OpenChannelRequest = copy(remoteMaxHtlcs = __v)
    def withMaxLocalCsv(__v: org.bitcoins.core.number.UInt32): OpenChannelRequest = copy(maxLocalCsv = __v)
    def withCommitmentType(__v: lnrpc.CommitmentType): OpenChannelRequest = copy(commitmentType = __v)
    def withZeroConf(__v: _root_.scala.Boolean): OpenChannelRequest = copy(zeroConf = __v)
    def withScidAlias(__v: _root_.scala.Boolean): OpenChannelRequest = copy(scidAlias = __v)
    def withBaseFee(__v: org.bitcoins.core.number.UInt64): OpenChannelRequest = copy(baseFee = __v)
    def withFeeRate(__v: org.bitcoins.core.number.UInt64): OpenChannelRequest = copy(feeRate = __v)
    def withUseBaseFee(__v: _root_.scala.Boolean): OpenChannelRequest = copy(useBaseFee = __v)
    def withUseFeeRate(__v: _root_.scala.Boolean): OpenChannelRequest = copy(useFeeRate = __v)
    def withRemoteChanReserveSat(__v: org.bitcoins.core.number.UInt64): OpenChannelRequest = copy(remoteChanReserveSat = __v)
    def withFundMax(__v: _root_.scala.Boolean): OpenChannelRequest = copy(fundMax = __v)
    def withMemo(__v: _root_.scala.Predef.String): OpenChannelRequest = copy(memo = __v)
    def clearOutpoints = copy(outpoints = _root_.scala.Seq.empty)
    def addOutpoints(__vs: lnrpc.OutPoint *): OpenChannelRequest = addAllOutpoints(__vs)
    def addAllOutpoints(__vs: Iterable[lnrpc.OutPoint]): OpenChannelRequest = copy(outpoints = outpoints ++ __vs)
    def withOutpoints(__v: _root_.scala.Seq[lnrpc.OutPoint]): OpenChannelRequest = copy(outpoints = __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.OpenChannelRequest._typemapper_satPerVbyte.toBase(satPerVbyte)
          if (__t != 0L) __t else null
        }
        case 2 => {
          val __t = nodePubkey
          if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
        }
        case 3 => {
          val __t = nodePubkeyString
          if (__t != "") __t else null
        }
        case 4 => {
          val __t = localFundingAmount
          if (__t != 0L) __t else null
        }
        case 5 => {
          val __t = pushSat
          if (__t != 0L) __t else null
        }
        case 6 => {
          val __t = targetConf
          if (__t != 0) __t else null
        }
        case 7 => {
          val __t = satPerByte
          if (__t != 0L) __t else null
        }
        case 8 => {
          val __t = `private`
          if (__t != false) __t else null
        }
        case 9 => {
          val __t = minHtlcMsat
          if (__t != 0L) __t else null
        }
        case 10 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toBase(remoteCsvDelay)
          if (__t != 0) __t else null
        }
        case 11 => {
          val __t = minConfs
          if (__t != 0) __t else null
        }
        case 12 => {
          val __t = spendUnconfirmed
          if (__t != false) __t else null
        }
        case 13 => {
          val __t = closeAddress
          if (__t != "") __t else null
        }
        case 14 => fundingShim.orNull
        case 15 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toBase(remoteMaxValueInFlightMsat)
          if (__t != 0L) __t else null
        }
        case 16 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toBase(remoteMaxHtlcs)
          if (__t != 0) __t else null
        }
        case 17 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toBase(maxLocalCsv)
          if (__t != 0) __t else null
        }
        case 18 => {
          val __t = commitmentType.javaValueDescriptor
          if (__t.getNumber() != 0) __t else null
        }
        case 19 => {
          val __t = zeroConf
          if (__t != false) __t else null
        }
        case 20 => {
          val __t = scidAlias
          if (__t != false) __t else null
        }
        case 21 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_baseFee.toBase(baseFee)
          if (__t != 0L) __t else null
        }
        case 22 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_feeRate.toBase(feeRate)
          if (__t != 0L) __t else null
        }
        case 23 => {
          val __t = useBaseFee
          if (__t != false) __t else null
        }
        case 24 => {
          val __t = useFeeRate
          if (__t != false) __t else null
        }
        case 25 => {
          val __t = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toBase(remoteChanReserveSat)
          if (__t != 0L) __t else null
        }
        case 26 => {
          val __t = fundMax
          if (__t != false) __t else null
        }
        case 27 => {
          val __t = memo
          if (__t != "") __t else null
        }
        case 28 => outpoints
      }
    }
    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(lnrpc.OpenChannelRequest._typemapper_satPerVbyte.toBase(satPerVbyte))
        case 2 => _root_.scalapb.descriptors.PByteString(nodePubkey)
        case 3 => _root_.scalapb.descriptors.PString(nodePubkeyString)
        case 4 => _root_.scalapb.descriptors.PLong(localFundingAmount)
        case 5 => _root_.scalapb.descriptors.PLong(pushSat)
        case 6 => _root_.scalapb.descriptors.PInt(targetConf)
        case 7 => _root_.scalapb.descriptors.PLong(satPerByte)
        case 8 => _root_.scalapb.descriptors.PBoolean(`private`)
        case 9 => _root_.scalapb.descriptors.PLong(minHtlcMsat)
        case 10 => _root_.scalapb.descriptors.PInt(lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toBase(remoteCsvDelay))
        case 11 => _root_.scalapb.descriptors.PInt(minConfs)
        case 12 => _root_.scalapb.descriptors.PBoolean(spendUnconfirmed)
        case 13 => _root_.scalapb.descriptors.PString(closeAddress)
        case 14 => fundingShim.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 15 => _root_.scalapb.descriptors.PLong(lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toBase(remoteMaxValueInFlightMsat))
        case 16 => _root_.scalapb.descriptors.PInt(lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toBase(remoteMaxHtlcs))
        case 17 => _root_.scalapb.descriptors.PInt(lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toBase(maxLocalCsv))
        case 18 => _root_.scalapb.descriptors.PEnum(commitmentType.scalaValueDescriptor)
        case 19 => _root_.scalapb.descriptors.PBoolean(zeroConf)
        case 20 => _root_.scalapb.descriptors.PBoolean(scidAlias)
        case 21 => _root_.scalapb.descriptors.PLong(lnrpc.OpenChannelRequest._typemapper_baseFee.toBase(baseFee))
        case 22 => _root_.scalapb.descriptors.PLong(lnrpc.OpenChannelRequest._typemapper_feeRate.toBase(feeRate))
        case 23 => _root_.scalapb.descriptors.PBoolean(useBaseFee)
        case 24 => _root_.scalapb.descriptors.PBoolean(useFeeRate)
        case 25 => _root_.scalapb.descriptors.PLong(lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toBase(remoteChanReserveSat))
        case 26 => _root_.scalapb.descriptors.PBoolean(fundMax)
        case 27 => _root_.scalapb.descriptors.PString(memo)
        case 28 => _root_.scalapb.descriptors.PRepeated(outpoints.iterator.map(_.toPMessage).toVector)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: lnrpc.OpenChannelRequest.type = lnrpc.OpenChannelRequest
    // @@protoc_insertion_point(GeneratedMessage[lnrpc.OpenChannelRequest])
}

object OpenChannelRequest extends scalapb.GeneratedMessageCompanion[lnrpc.OpenChannelRequest] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.OpenChannelRequest] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.OpenChannelRequest = {
    var __satPerVbyte: _root_.scala.Long = 0L
    var __nodePubkey: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
    var __nodePubkeyString: _root_.scala.Predef.String = ""
    var __localFundingAmount: _root_.scala.Long = 0L
    var __pushSat: _root_.scala.Long = 0L
    var __targetConf: _root_.scala.Int = 0
    var __satPerByte: _root_.scala.Long = 0L
    var __private: _root_.scala.Boolean = false
    var __minHtlcMsat: _root_.scala.Long = 0L
    var __remoteCsvDelay: _root_.scala.Int = 0
    var __minConfs: _root_.scala.Int = 0
    var __spendUnconfirmed: _root_.scala.Boolean = false
    var __closeAddress: _root_.scala.Predef.String = ""
    var __fundingShim: _root_.scala.Option[lnrpc.FundingShim] = _root_.scala.None
    var __remoteMaxValueInFlightMsat: _root_.scala.Long = 0L
    var __remoteMaxHtlcs: _root_.scala.Int = 0
    var __maxLocalCsv: _root_.scala.Int = 0
    var __commitmentType: lnrpc.CommitmentType = lnrpc.CommitmentType.UNKNOWN_COMMITMENT_TYPE
    var __zeroConf: _root_.scala.Boolean = false
    var __scidAlias: _root_.scala.Boolean = false
    var __baseFee: _root_.scala.Long = 0L
    var __feeRate: _root_.scala.Long = 0L
    var __useBaseFee: _root_.scala.Boolean = false
    var __useFeeRate: _root_.scala.Boolean = false
    var __remoteChanReserveSat: _root_.scala.Long = 0L
    var __fundMax: _root_.scala.Boolean = false
    var __memo: _root_.scala.Predef.String = ""
    val __outpoints: _root_.scala.collection.immutable.VectorBuilder[lnrpc.OutPoint] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.OutPoint]
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 8 =>
          __satPerVbyte = _input__.readUInt64()
        case 18 =>
          __nodePubkey = _input__.readBytes()
        case 26 =>
          __nodePubkeyString = _input__.readStringRequireUtf8()
        case 32 =>
          __localFundingAmount = _input__.readInt64()
        case 40 =>
          __pushSat = _input__.readInt64()
        case 48 =>
          __targetConf = _input__.readInt32()
        case 56 =>
          __satPerByte = _input__.readInt64()
        case 64 =>
          __private = _input__.readBool()
        case 72 =>
          __minHtlcMsat = _input__.readInt64()
        case 80 =>
          __remoteCsvDelay = _input__.readUInt32()
        case 88 =>
          __minConfs = _input__.readInt32()
        case 96 =>
          __spendUnconfirmed = _input__.readBool()
        case 106 =>
          __closeAddress = _input__.readStringRequireUtf8()
        case 114 =>
          __fundingShim = Option(__fundingShim.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.FundingShim](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case 120 =>
          __remoteMaxValueInFlightMsat = _input__.readUInt64()
        case 128 =>
          __remoteMaxHtlcs = _input__.readUInt32()
        case 136 =>
          __maxLocalCsv = _input__.readUInt32()
        case 144 =>
          __commitmentType = lnrpc.CommitmentType.fromValue(_input__.readEnum())
        case 152 =>
          __zeroConf = _input__.readBool()
        case 160 =>
          __scidAlias = _input__.readBool()
        case 168 =>
          __baseFee = _input__.readUInt64()
        case 176 =>
          __feeRate = _input__.readUInt64()
        case 184 =>
          __useBaseFee = _input__.readBool()
        case 192 =>
          __useFeeRate = _input__.readBool()
        case 200 =>
          __remoteChanReserveSat = _input__.readUInt64()
        case 208 =>
          __fundMax = _input__.readBool()
        case 218 =>
          __memo = _input__.readStringRequireUtf8()
        case 226 =>
          __outpoints += _root_.scalapb.LiteParser.readMessage[lnrpc.OutPoint](_input__)
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    lnrpc.OpenChannelRequest(
        satPerVbyte = lnrpc.OpenChannelRequest._typemapper_satPerVbyte.toCustom(__satPerVbyte),
        nodePubkey = __nodePubkey,
        nodePubkeyString = __nodePubkeyString,
        localFundingAmount = __localFundingAmount,
        pushSat = __pushSat,
        targetConf = __targetConf,
        satPerByte = __satPerByte,
        `private` = __private,
        minHtlcMsat = __minHtlcMsat,
        remoteCsvDelay = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toCustom(__remoteCsvDelay),
        minConfs = __minConfs,
        spendUnconfirmed = __spendUnconfirmed,
        closeAddress = __closeAddress,
        fundingShim = __fundingShim,
        remoteMaxValueInFlightMsat = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toCustom(__remoteMaxValueInFlightMsat),
        remoteMaxHtlcs = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toCustom(__remoteMaxHtlcs),
        maxLocalCsv = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toCustom(__maxLocalCsv),
        commitmentType = __commitmentType,
        zeroConf = __zeroConf,
        scidAlias = __scidAlias,
        baseFee = lnrpc.OpenChannelRequest._typemapper_baseFee.toCustom(__baseFee),
        feeRate = lnrpc.OpenChannelRequest._typemapper_feeRate.toCustom(__feeRate),
        useBaseFee = __useBaseFee,
        useFeeRate = __useFeeRate,
        remoteChanReserveSat = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toCustom(__remoteChanReserveSat),
        fundMax = __fundMax,
        memo = __memo,
        outpoints = __outpoints.result(),
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.OpenChannelRequest] = _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.OpenChannelRequest(
        satPerVbyte = lnrpc.OpenChannelRequest._typemapper_satPerVbyte.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        nodePubkey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
        nodePubkeyString = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        localFundingAmount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        pushSat = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        targetConf = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Int]).getOrElse(0),
        satPerByte = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        `private` = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        minHtlcMsat = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        remoteCsvDelay = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        minConfs = __fieldsMap.get(scalaDescriptor.findFieldByNumber(11).get).map(_.as[_root_.scala.Int]).getOrElse(0),
        spendUnconfirmed = __fieldsMap.get(scalaDescriptor.findFieldByNumber(12).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        closeAddress = __fieldsMap.get(scalaDescriptor.findFieldByNumber(13).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        fundingShim = __fieldsMap.get(scalaDescriptor.findFieldByNumber(14).get).flatMap(_.as[_root_.scala.Option[lnrpc.FundingShim]]),
        remoteMaxValueInFlightMsat = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(15).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        remoteMaxHtlcs = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(16).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        maxLocalCsv = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(17).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
        commitmentType = lnrpc.CommitmentType.fromValue(__fieldsMap.get(scalaDescriptor.findFieldByNumber(18).get).map(_.as[_root_.scalapb.descriptors.EnumValueDescriptor]).getOrElse(lnrpc.CommitmentType.UNKNOWN_COMMITMENT_TYPE.scalaValueDescriptor).number),
        zeroConf = __fieldsMap.get(scalaDescriptor.findFieldByNumber(19).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        scidAlias = __fieldsMap.get(scalaDescriptor.findFieldByNumber(20).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        baseFee = lnrpc.OpenChannelRequest._typemapper_baseFee.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(21).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        feeRate = lnrpc.OpenChannelRequest._typemapper_feeRate.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(22).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        useBaseFee = __fieldsMap.get(scalaDescriptor.findFieldByNumber(23).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        useFeeRate = __fieldsMap.get(scalaDescriptor.findFieldByNumber(24).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        remoteChanReserveSat = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(25).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
        fundMax = __fieldsMap.get(scalaDescriptor.findFieldByNumber(26).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        memo = __fieldsMap.get(scalaDescriptor.findFieldByNumber(27).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
        outpoints = __fieldsMap.get(scalaDescriptor.findFieldByNumber(28).get).map(_.as[_root_.scala.Seq[lnrpc.OutPoint]]).getOrElse(_root_.scala.Seq.empty)
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(72)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(72)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 14 => __out = lnrpc.FundingShim
      case 28 => __out = lnrpc.OutPoint
    }
    __out
  }
  lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
  def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
    (__fieldNumber: @_root_.scala.unchecked) match {
      case 18 => lnrpc.CommitmentType
    }
  }
  lazy val defaultInstance = lnrpc.OpenChannelRequest(
    satPerVbyte = lnrpc.OpenChannelRequest._typemapper_satPerVbyte.toCustom(0L),
    nodePubkey = _root_.com.google.protobuf.ByteString.EMPTY,
    nodePubkeyString = "",
    localFundingAmount = 0L,
    pushSat = 0L,
    targetConf = 0,
    satPerByte = 0L,
    `private` = false,
    minHtlcMsat = 0L,
    remoteCsvDelay = lnrpc.OpenChannelRequest._typemapper_remoteCsvDelay.toCustom(0),
    minConfs = 0,
    spendUnconfirmed = false,
    closeAddress = "",
    fundingShim = _root_.scala.None,
    remoteMaxValueInFlightMsat = lnrpc.OpenChannelRequest._typemapper_remoteMaxValueInFlightMsat.toCustom(0L),
    remoteMaxHtlcs = lnrpc.OpenChannelRequest._typemapper_remoteMaxHtlcs.toCustom(0),
    maxLocalCsv = lnrpc.OpenChannelRequest._typemapper_maxLocalCsv.toCustom(0),
    commitmentType = lnrpc.CommitmentType.UNKNOWN_COMMITMENT_TYPE,
    zeroConf = false,
    scidAlias = false,
    baseFee = lnrpc.OpenChannelRequest._typemapper_baseFee.toCustom(0L),
    feeRate = lnrpc.OpenChannelRequest._typemapper_feeRate.toCustom(0L),
    useBaseFee = false,
    useFeeRate = false,
    remoteChanReserveSat = lnrpc.OpenChannelRequest._typemapper_remoteChanReserveSat.toCustom(0L),
    fundMax = false,
    memo = "",
    outpoints = _root_.scala.Seq.empty
  )
  implicit class OpenChannelRequestLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.OpenChannelRequest]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.OpenChannelRequest](_l) {
    def satPerVbyte: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.satPerVbyte)((c_, f_) => c_.copy(satPerVbyte = f_))
    def nodePubkey: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.nodePubkey)((c_, f_) => c_.copy(nodePubkey = f_))
    def nodePubkeyString: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.nodePubkeyString)((c_, f_) => c_.copy(nodePubkeyString = f_))
    def localFundingAmount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.localFundingAmount)((c_, f_) => c_.copy(localFundingAmount = f_))
    def pushSat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.pushSat)((c_, f_) => c_.copy(pushSat = f_))
    def targetConf: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.targetConf)((c_, f_) => c_.copy(targetConf = f_))
    def satPerByte: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.satPerByte)((c_, f_) => c_.copy(satPerByte = f_))
    def `private`: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.`private`)((c_, f_) => c_.copy(`private` = f_))
    def minHtlcMsat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.minHtlcMsat)((c_, f_) => c_.copy(minHtlcMsat = f_))
    def remoteCsvDelay: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.remoteCsvDelay)((c_, f_) => c_.copy(remoteCsvDelay = f_))
    def minConfs: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.minConfs)((c_, f_) => c_.copy(minConfs = f_))
    def spendUnconfirmed: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.spendUnconfirmed)((c_, f_) => c_.copy(spendUnconfirmed = f_))
    def closeAddress: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.closeAddress)((c_, f_) => c_.copy(closeAddress = f_))
    def fundingShim: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.FundingShim] = field(_.getFundingShim)((c_, f_) => c_.copy(fundingShim = Option(f_)))
    def optionalFundingShim: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[lnrpc.FundingShim]] = field(_.fundingShim)((c_, f_) => c_.copy(fundingShim = f_))
    def remoteMaxValueInFlightMsat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.remoteMaxValueInFlightMsat)((c_, f_) => c_.copy(remoteMaxValueInFlightMsat = f_))
    def remoteMaxHtlcs: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.remoteMaxHtlcs)((c_, f_) => c_.copy(remoteMaxHtlcs = f_))
    def maxLocalCsv: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.maxLocalCsv)((c_, f_) => c_.copy(maxLocalCsv = f_))
    def commitmentType: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.CommitmentType] = field(_.commitmentType)((c_, f_) => c_.copy(commitmentType = f_))
    def zeroConf: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.zeroConf)((c_, f_) => c_.copy(zeroConf = f_))
    def scidAlias: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.scidAlias)((c_, f_) => c_.copy(scidAlias = f_))
    def baseFee: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.baseFee)((c_, f_) => c_.copy(baseFee = f_))
    def feeRate: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.feeRate)((c_, f_) => c_.copy(feeRate = f_))
    def useBaseFee: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.useBaseFee)((c_, f_) => c_.copy(useBaseFee = f_))
    def useFeeRate: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.useFeeRate)((c_, f_) => c_.copy(useFeeRate = f_))
    def remoteChanReserveSat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.remoteChanReserveSat)((c_, f_) => c_.copy(remoteChanReserveSat = f_))
    def fundMax: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.fundMax)((c_, f_) => c_.copy(fundMax = f_))
    def memo: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.memo)((c_, f_) => c_.copy(memo = f_))
    def outpoints: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.OutPoint]] = field(_.outpoints)((c_, f_) => c_.copy(outpoints = f_))
  }
  final val SAT_PER_VBYTE_FIELD_NUMBER = 1
  final val NODE_PUBKEY_FIELD_NUMBER = 2
  final val NODE_PUBKEY_STRING_FIELD_NUMBER = 3
  final val LOCAL_FUNDING_AMOUNT_FIELD_NUMBER = 4
  final val PUSH_SAT_FIELD_NUMBER = 5
  final val TARGET_CONF_FIELD_NUMBER = 6
  final val SAT_PER_BYTE_FIELD_NUMBER = 7
  final val PRIVATE_FIELD_NUMBER = 8
  final val MIN_HTLC_MSAT_FIELD_NUMBER = 9
  final val REMOTE_CSV_DELAY_FIELD_NUMBER = 10
  final val MIN_CONFS_FIELD_NUMBER = 11
  final val SPEND_UNCONFIRMED_FIELD_NUMBER = 12
  final val CLOSE_ADDRESS_FIELD_NUMBER = 13
  final val FUNDING_SHIM_FIELD_NUMBER = 14
  final val REMOTE_MAX_VALUE_IN_FLIGHT_MSAT_FIELD_NUMBER = 15
  final val REMOTE_MAX_HTLCS_FIELD_NUMBER = 16
  final val MAX_LOCAL_CSV_FIELD_NUMBER = 17
  final val COMMITMENT_TYPE_FIELD_NUMBER = 18
  final val ZERO_CONF_FIELD_NUMBER = 19
  final val SCID_ALIAS_FIELD_NUMBER = 20
  final val BASE_FEE_FIELD_NUMBER = 21
  final val FEE_RATE_FIELD_NUMBER = 22
  final val USE_BASE_FEE_FIELD_NUMBER = 23
  final val USE_FEE_RATE_FIELD_NUMBER = 24
  final val REMOTE_CHAN_RESERVE_SAT_FIELD_NUMBER = 25
  final val FUND_MAX_FIELD_NUMBER = 26
  final val MEMO_FIELD_NUMBER = 27
  final val OUTPOINTS_FIELD_NUMBER = 28
  @transient
  private[lnrpc] val _typemapper_satPerVbyte: _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_remoteCsvDelay: _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_remoteMaxValueInFlightMsat: _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_remoteMaxHtlcs: _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_maxLocalCsv: _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_baseFee: _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_feeRate: _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_remoteChanReserveSat: _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(
    satPerVbyte: org.bitcoins.core.number.UInt64,
    nodePubkey: _root_.com.google.protobuf.ByteString,
    nodePubkeyString: _root_.scala.Predef.String,
    localFundingAmount: _root_.scala.Long,
    pushSat: _root_.scala.Long,
    targetConf: _root_.scala.Int,
    satPerByte: _root_.scala.Long,
    `private`: _root_.scala.Boolean,
    minHtlcMsat: _root_.scala.Long,
    remoteCsvDelay: org.bitcoins.core.number.UInt32,
    minConfs: _root_.scala.Int,
    spendUnconfirmed: _root_.scala.Boolean,
    closeAddress: _root_.scala.Predef.String,
    fundingShim: _root_.scala.Option[lnrpc.FundingShim],
    remoteMaxValueInFlightMsat: org.bitcoins.core.number.UInt64,
    remoteMaxHtlcs: org.bitcoins.core.number.UInt32,
    maxLocalCsv: org.bitcoins.core.number.UInt32,
    commitmentType: lnrpc.CommitmentType,
    zeroConf: _root_.scala.Boolean,
    scidAlias: _root_.scala.Boolean,
    baseFee: org.bitcoins.core.number.UInt64,
    feeRate: org.bitcoins.core.number.UInt64,
    useBaseFee: _root_.scala.Boolean,
    useFeeRate: _root_.scala.Boolean,
    remoteChanReserveSat: org.bitcoins.core.number.UInt64,
    fundMax: _root_.scala.Boolean,
    memo: _root_.scala.Predef.String,
    outpoints: _root_.scala.Seq[lnrpc.OutPoint]
  ): _root_.lnrpc.OpenChannelRequest = _root_.lnrpc.OpenChannelRequest(
    satPerVbyte,
    nodePubkey,
    nodePubkeyString,
    localFundingAmount,
    pushSat,
    targetConf,
    satPerByte,
    `private`,
    minHtlcMsat,
    remoteCsvDelay,
    minConfs,
    spendUnconfirmed,
    closeAddress,
    fundingShim,
    remoteMaxValueInFlightMsat,
    remoteMaxHtlcs,
    maxLocalCsv,
    commitmentType,
    zeroConf,
    scidAlias,
    baseFee,
    feeRate,
    useBaseFee,
    useFeeRate,
    remoteChanReserveSat,
    fundMax,
    memo,
    outpoints
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.OpenChannelRequest])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy