lnrpc.ChannelAcceptResponse.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 accept
* Whether or not the client accepts the channel.
* @param pendingChanId
* The pending channel id to which this response applies.
* @param error
*
* An optional error to send the initiating party to indicate why the channel
* was rejected. This field *should not* contain sensitive information, it will
* be sent to the initiating party. This field should only be set if accept is
* false, the channel will be rejected if an error is set with accept=true
* because the meaning of this response is ambiguous. Limited to 500
* characters.
* @param upfrontShutdown
*
* The upfront shutdown address to use if the initiating peer supports option
* upfront shutdown script (see ListPeers for the features supported). Note
* that the channel open will fail if this value is set for a peer that does
* not support this feature bit.
* @param csvDelay
*
* The csv delay (in blocks) that we require for the remote party.
* @param reserveSat
*
* The reserve amount in satoshis that we require the remote peer to adhere to.
* We require that the remote peer always have some reserve amount allocated to
* them so that there is always a disincentive to broadcast old state (if they
* hold 0 sats on their side of the channel, there is nothing to lose).
* @param inFlightMaxMsat
*
* The maximum amount of funds in millisatoshis that we allow the remote peer
* to have in outstanding htlcs.
* @param maxHtlcCount
*
* The maximum number of htlcs that the remote peer can offer us.
* @param minHtlcIn
*
* The minimum value in millisatoshis for incoming htlcs on the channel.
* @param minAcceptDepth
*
* The number of confirmations we require before we consider the channel open.
* @param zeroConf
*
* Whether the responder wants this to be a zero-conf channel. This will fail
* if either side does not have the scid-alias feature bit set. The minimum
* depth field must be zero if this is true.
*/
@SerialVersionUID(0L)
final case class ChannelAcceptResponse(
accept: _root_.scala.Boolean = false,
pendingChanId: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
error: _root_.scala.Predef.String = "",
upfrontShutdown: _root_.scala.Predef.String = "",
csvDelay: org.bitcoins.core.number.UInt32 = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toCustom(0),
reserveSat: org.bitcoins.core.number.UInt64 = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toCustom(0L),
inFlightMaxMsat: org.bitcoins.core.number.UInt64 = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toCustom(0L),
maxHtlcCount: org.bitcoins.core.number.UInt32 = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toCustom(0),
minHtlcIn: org.bitcoins.core.number.UInt64 = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toCustom(0L),
minAcceptDepth: org.bitcoins.core.number.UInt32 = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toCustom(0),
zeroConf: _root_.scala.Boolean = false,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ChannelAcceptResponse] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = accept
if (__value != false) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(1, __value)
}
};
{
val __value = pendingChanId
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(2, __value)
}
};
{
val __value = error
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, __value)
}
};
{
val __value = upfrontShutdown
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(4, __value)
}
};
{
val __value = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toBase(csvDelay)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(5, __value)
}
};
{
val __value = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toBase(reserveSat)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(6, __value)
}
};
{
val __value = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toBase(inFlightMaxMsat)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(7, __value)
}
};
{
val __value = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toBase(maxHtlcCount)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(8, __value)
}
};
{
val __value = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toBase(minHtlcIn)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(9, __value)
}
};
{
val __value = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toBase(minAcceptDepth)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(10, __value)
}
};
{
val __value = zeroConf
if (__value != false) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(11, __value)
}
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
{
val __v = accept
if (__v != false) {
_output__.writeBool(1, __v)
}
};
{
val __v = pendingChanId
if (!__v.isEmpty) {
_output__.writeBytes(2, __v)
}
};
{
val __v = error
if (!__v.isEmpty) {
_output__.writeString(3, __v)
}
};
{
val __v = upfrontShutdown
if (!__v.isEmpty) {
_output__.writeString(4, __v)
}
};
{
val __v = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toBase(csvDelay)
if (__v != 0) {
_output__.writeUInt32(5, __v)
}
};
{
val __v = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toBase(reserveSat)
if (__v != 0L) {
_output__.writeUInt64(6, __v)
}
};
{
val __v = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toBase(inFlightMaxMsat)
if (__v != 0L) {
_output__.writeUInt64(7, __v)
}
};
{
val __v = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toBase(maxHtlcCount)
if (__v != 0) {
_output__.writeUInt32(8, __v)
}
};
{
val __v = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toBase(minHtlcIn)
if (__v != 0L) {
_output__.writeUInt64(9, __v)
}
};
{
val __v = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toBase(minAcceptDepth)
if (__v != 0) {
_output__.writeUInt32(10, __v)
}
};
{
val __v = zeroConf
if (__v != false) {
_output__.writeBool(11, __v)
}
};
unknownFields.writeTo(_output__)
}
def withAccept(__v: _root_.scala.Boolean): ChannelAcceptResponse = copy(accept = __v)
def withPendingChanId(__v: _root_.com.google.protobuf.ByteString): ChannelAcceptResponse = copy(pendingChanId = __v)
def withError(__v: _root_.scala.Predef.String): ChannelAcceptResponse = copy(error = __v)
def withUpfrontShutdown(__v: _root_.scala.Predef.String): ChannelAcceptResponse = copy(upfrontShutdown = __v)
def withCsvDelay(__v: org.bitcoins.core.number.UInt32): ChannelAcceptResponse = copy(csvDelay = __v)
def withReserveSat(__v: org.bitcoins.core.number.UInt64): ChannelAcceptResponse = copy(reserveSat = __v)
def withInFlightMaxMsat(__v: org.bitcoins.core.number.UInt64): ChannelAcceptResponse = copy(inFlightMaxMsat = __v)
def withMaxHtlcCount(__v: org.bitcoins.core.number.UInt32): ChannelAcceptResponse = copy(maxHtlcCount = __v)
def withMinHtlcIn(__v: org.bitcoins.core.number.UInt64): ChannelAcceptResponse = copy(minHtlcIn = __v)
def withMinAcceptDepth(__v: org.bitcoins.core.number.UInt32): ChannelAcceptResponse = copy(minAcceptDepth = __v)
def withZeroConf(__v: _root_.scala.Boolean): ChannelAcceptResponse = copy(zeroConf = __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 = accept
if (__t != false) __t else null
}
case 2 => {
val __t = pendingChanId
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 3 => {
val __t = error
if (__t != "") __t else null
}
case 4 => {
val __t = upfrontShutdown
if (__t != "") __t else null
}
case 5 => {
val __t = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toBase(csvDelay)
if (__t != 0) __t else null
}
case 6 => {
val __t = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toBase(reserveSat)
if (__t != 0L) __t else null
}
case 7 => {
val __t = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toBase(inFlightMaxMsat)
if (__t != 0L) __t else null
}
case 8 => {
val __t = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toBase(maxHtlcCount)
if (__t != 0) __t else null
}
case 9 => {
val __t = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toBase(minHtlcIn)
if (__t != 0L) __t else null
}
case 10 => {
val __t = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toBase(minAcceptDepth)
if (__t != 0) __t else null
}
case 11 => {
val __t = zeroConf
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 => _root_.scalapb.descriptors.PBoolean(accept)
case 2 => _root_.scalapb.descriptors.PByteString(pendingChanId)
case 3 => _root_.scalapb.descriptors.PString(error)
case 4 => _root_.scalapb.descriptors.PString(upfrontShutdown)
case 5 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toBase(csvDelay))
case 6 => _root_.scalapb.descriptors.PLong(lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toBase(reserveSat))
case 7 => _root_.scalapb.descriptors.PLong(lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toBase(inFlightMaxMsat))
case 8 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toBase(maxHtlcCount))
case 9 => _root_.scalapb.descriptors.PLong(lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toBase(minHtlcIn))
case 10 => _root_.scalapb.descriptors.PInt(lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toBase(minAcceptDepth))
case 11 => _root_.scalapb.descriptors.PBoolean(zeroConf)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: lnrpc.ChannelAcceptResponse.type = lnrpc.ChannelAcceptResponse
// @@protoc_insertion_point(GeneratedMessage[lnrpc.ChannelAcceptResponse])
}
object ChannelAcceptResponse extends scalapb.GeneratedMessageCompanion[lnrpc.ChannelAcceptResponse] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.ChannelAcceptResponse] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.ChannelAcceptResponse = {
var __accept: _root_.scala.Boolean = false
var __pendingChanId: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var __error: _root_.scala.Predef.String = ""
var __upfrontShutdown: _root_.scala.Predef.String = ""
var __csvDelay: _root_.scala.Int = 0
var __reserveSat: _root_.scala.Long = 0L
var __inFlightMaxMsat: _root_.scala.Long = 0L
var __maxHtlcCount: _root_.scala.Int = 0
var __minHtlcIn: _root_.scala.Long = 0L
var __minAcceptDepth: _root_.scala.Int = 0
var __zeroConf: _root_.scala.Boolean = false
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 8 =>
__accept = _input__.readBool()
case 18 =>
__pendingChanId = _input__.readBytes()
case 26 =>
__error = _input__.readStringRequireUtf8()
case 34 =>
__upfrontShutdown = _input__.readStringRequireUtf8()
case 40 =>
__csvDelay = _input__.readUInt32()
case 48 =>
__reserveSat = _input__.readUInt64()
case 56 =>
__inFlightMaxMsat = _input__.readUInt64()
case 64 =>
__maxHtlcCount = _input__.readUInt32()
case 72 =>
__minHtlcIn = _input__.readUInt64()
case 80 =>
__minAcceptDepth = _input__.readUInt32()
case 88 =>
__zeroConf = _input__.readBool()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
lnrpc.ChannelAcceptResponse(
accept = __accept,
pendingChanId = __pendingChanId,
error = __error,
upfrontShutdown = __upfrontShutdown,
csvDelay = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toCustom(__csvDelay),
reserveSat = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toCustom(__reserveSat),
inFlightMaxMsat = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toCustom(__inFlightMaxMsat),
maxHtlcCount = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toCustom(__maxHtlcCount),
minHtlcIn = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toCustom(__minHtlcIn),
minAcceptDepth = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toCustom(__minAcceptDepth),
zeroConf = __zeroConf,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.ChannelAcceptResponse] = _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.ChannelAcceptResponse(
accept = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
pendingChanId = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
error = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
upfrontShutdown = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
csvDelay = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
reserveSat = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
inFlightMaxMsat = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
maxHtlcCount = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
minHtlcIn = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
minAcceptDepth = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
zeroConf = __fieldsMap.get(scalaDescriptor.findFieldByNumber(11).get).map(_.as[_root_.scala.Boolean]).getOrElse(false)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(16)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(16)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
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.ChannelAcceptResponse(
accept = false,
pendingChanId = _root_.com.google.protobuf.ByteString.EMPTY,
error = "",
upfrontShutdown = "",
csvDelay = lnrpc.ChannelAcceptResponse._typemapper_csvDelay.toCustom(0),
reserveSat = lnrpc.ChannelAcceptResponse._typemapper_reserveSat.toCustom(0L),
inFlightMaxMsat = lnrpc.ChannelAcceptResponse._typemapper_inFlightMaxMsat.toCustom(0L),
maxHtlcCount = lnrpc.ChannelAcceptResponse._typemapper_maxHtlcCount.toCustom(0),
minHtlcIn = lnrpc.ChannelAcceptResponse._typemapper_minHtlcIn.toCustom(0L),
minAcceptDepth = lnrpc.ChannelAcceptResponse._typemapper_minAcceptDepth.toCustom(0),
zeroConf = false
)
implicit class ChannelAcceptResponseLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.ChannelAcceptResponse]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.ChannelAcceptResponse](_l) {
def accept: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.accept)((c_, f_) => c_.copy(accept = f_))
def pendingChanId: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.pendingChanId)((c_, f_) => c_.copy(pendingChanId = f_))
def error: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.error)((c_, f_) => c_.copy(error = f_))
def upfrontShutdown: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.upfrontShutdown)((c_, f_) => c_.copy(upfrontShutdown = f_))
def csvDelay: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.csvDelay)((c_, f_) => c_.copy(csvDelay = f_))
def reserveSat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.reserveSat)((c_, f_) => c_.copy(reserveSat = f_))
def inFlightMaxMsat: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.inFlightMaxMsat)((c_, f_) => c_.copy(inFlightMaxMsat = f_))
def maxHtlcCount: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.maxHtlcCount)((c_, f_) => c_.copy(maxHtlcCount = f_))
def minHtlcIn: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.minHtlcIn)((c_, f_) => c_.copy(minHtlcIn = f_))
def minAcceptDepth: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.minAcceptDepth)((c_, f_) => c_.copy(minAcceptDepth = f_))
def zeroConf: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.zeroConf)((c_, f_) => c_.copy(zeroConf = f_))
}
final val ACCEPT_FIELD_NUMBER = 1
final val PENDING_CHAN_ID_FIELD_NUMBER = 2
final val ERROR_FIELD_NUMBER = 3
final val UPFRONT_SHUTDOWN_FIELD_NUMBER = 4
final val CSV_DELAY_FIELD_NUMBER = 5
final val RESERVE_SAT_FIELD_NUMBER = 6
final val IN_FLIGHT_MAX_MSAT_FIELD_NUMBER = 7
final val MAX_HTLC_COUNT_FIELD_NUMBER = 8
final val MIN_HTLC_IN_FIELD_NUMBER = 9
final val MIN_ACCEPT_DEPTH_FIELD_NUMBER = 10
final val ZERO_CONF_FIELD_NUMBER = 11
@transient
private[lnrpc] val _typemapper_csvDelay: _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_reserveSat: _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_inFlightMaxMsat: _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_maxHtlcCount: _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_minHtlcIn: _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_minAcceptDepth: _root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Int, org.bitcoins.core.number.UInt32]]
def of(
accept: _root_.scala.Boolean,
pendingChanId: _root_.com.google.protobuf.ByteString,
error: _root_.scala.Predef.String,
upfrontShutdown: _root_.scala.Predef.String,
csvDelay: org.bitcoins.core.number.UInt32,
reserveSat: org.bitcoins.core.number.UInt64,
inFlightMaxMsat: org.bitcoins.core.number.UInt64,
maxHtlcCount: org.bitcoins.core.number.UInt32,
minHtlcIn: org.bitcoins.core.number.UInt64,
minAcceptDepth: org.bitcoins.core.number.UInt32,
zeroConf: _root_.scala.Boolean
): _root_.lnrpc.ChannelAcceptResponse = _root_.lnrpc.ChannelAcceptResponse(
accept,
pendingChanId,
error,
upfrontShutdown,
csvDelay,
reserveSat,
inFlightMaxMsat,
maxHtlcCount,
minHtlcIn,
minAcceptDepth,
zeroConf
)
// @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.ChannelAcceptResponse])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy