lnrpc.QueryRoutesRequest.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 pubKey
* The 33-byte hex-encoded public key for the payment destination
* @param amt
*
* The amount to send expressed in satoshis.
*
* The fields amt and amt_msat are mutually exclusive.
* @param amtMsat
*
* The amount to send expressed in millisatoshis.
*
* The fields amt and amt_msat are mutually exclusive.
* @param finalCltvDelta
*
* An optional CLTV delta from the current height that should be used for the
* timelock of the final hop. Note that unlike SendPayment, QueryRoutes does
* not add any additional block padding on top of final_ctlv_delta. This
* padding of a few blocks needs to be added manually or otherwise failures may
* happen when a block comes in while the payment is in flight.
* @param feeLimit
*
* The maximum number of satoshis that will be paid as a fee of the payment.
* This value can be represented either as a percentage of the amount being
* sent, or as a fixed amount of the maximum fee the user is willing the pay to
* send the payment. If not specified, lnd will use a default value of 100%
* fees for small amounts (<=1k sat) or 5% fees for larger amounts.
* @param ignoredNodes
*
* A list of nodes to ignore during path finding. When using REST, these fields
* must be encoded as base64.
* @param ignoredEdges
*
* Deprecated. A list of edges to ignore during path finding.
* @param sourcePubKey
*
* The source node where the request route should originated from. If empty,
* self is assumed.
* @param useMissionControl
*
* If set to true, edge probabilities from mission control will be used to get
* the optimal route.
* @param ignoredPairs
*
* A list of directed node pairs that will be ignored during path finding.
* @param cltvLimit
*
* An optional maximum total time lock for the route. If the source is empty or
* ourselves, this should not exceed lnd's `--max-cltv-expiry` setting. If
* zero, then the value of `--max-cltv-expiry` is used as the limit.
* @param destCustomRecords
*
* An optional field that can be used to pass an arbitrary set of TLV records
* to a peer which understands the new records. This can be used to pass
* application specific data during the payment attempt. If the destination
* does not support the specified records, an error will be returned.
* Record types are required to be in the custom range >= 65536. When using
* REST, the values must be encoded as base64.
* @param outgoingChanId
*
* The channel id of the channel that must be taken to the first hop. If zero,
* any channel may be used.
* @param lastHopPubkey
*
* The pubkey of the last hop of the route. If empty, any hop may be used.
* @param routeHints
*
* Optional route hints to reach the destination through private channels.
* @param destFeatures
*
* Features assumed to be supported by the final node. All transitive feature
* dependencies must also be set properly. For a given feature bit pair, either
* optional or remote may be set, but not both. If this field is nil or empty,
* the router will try to load destination features from the graph as a
* fallback.
* @param timePref
*
* The time preference for this payment. Set to -1 to optimize for fees
* only, to 1 to optimize for reliability only or a value inbetween for a mix.
*/
@SerialVersionUID(0L)
final case class QueryRoutesRequest(
pubKey: _root_.scala.Predef.String = "",
amt: _root_.scala.Long = 0L,
amtMsat: _root_.scala.Long = 0L,
finalCltvDelta: _root_.scala.Int = 0,
feeLimit: _root_.scala.Option[lnrpc.FeeLimit] = _root_.scala.None,
ignoredNodes: _root_.scala.Seq[_root_.com.google.protobuf.ByteString] = _root_.scala.Seq.empty,
@scala.deprecated(message="Marked as deprecated in proto file", "") ignoredEdges: _root_.scala.Seq[lnrpc.EdgeLocator] = _root_.scala.Seq.empty,
sourcePubKey: _root_.scala.Predef.String = "",
useMissionControl: _root_.scala.Boolean = false,
ignoredPairs: _root_.scala.Seq[lnrpc.NodePair] = _root_.scala.Seq.empty,
cltvLimit: org.bitcoins.core.number.UInt32 = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toCustom(0),
destCustomRecords: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString] = _root_.scala.collection.immutable.Map.empty,
outgoingChanId: org.bitcoins.core.number.UInt64 = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toCustom(0L),
lastHopPubkey: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
routeHints: _root_.scala.Seq[lnrpc.RouteHint] = _root_.scala.Seq.empty,
destFeatures: _root_.scala.Seq[lnrpc.FeatureBit] = _root_.scala.Seq.empty,
timePref: _root_.scala.Double = 0.0,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[QueryRoutesRequest] {
private[this] def destFeaturesSerializedSize = {
if (__destFeaturesSerializedSizeField == 0) __destFeaturesSerializedSizeField = {
var __s: _root_.scala.Int = 0
destFeatures.foreach(__i => __s += _root_.com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(__i.value))
__s
}
__destFeaturesSerializedSizeField
}
@transient private[this] var __destFeaturesSerializedSizeField: _root_.scala.Int = 0
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = pubKey
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
{
val __value = amt
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(2, __value)
}
};
{
val __value = amtMsat
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(12, __value)
}
};
{
val __value = finalCltvDelta
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeInt32Size(4, __value)
}
};
if (feeLimit.isDefined) {
val __value = feeLimit.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
ignoredNodes.foreach { __item =>
val __value = __item
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(6, __value)
}
ignoredEdges.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = sourcePubKey
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(8, __value)
}
};
{
val __value = useMissionControl
if (__value != false) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(9, __value)
}
};
ignoredPairs.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toBase(cltvLimit)
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(11, __value)
}
};
destCustomRecords.foreach { __item =>
val __value = lnrpc.QueryRoutesRequest._typemapper_destCustomRecords.toBase(__item)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toBase(outgoingChanId)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(14, __value)
}
};
{
val __value = lastHopPubkey
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(15, __value)
}
};
routeHints.foreach { __item =>
val __value = __item
__size += 2 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
if (destFeatures.nonEmpty) {
val __localsize = destFeaturesSerializedSize
__size += 2 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__localsize) + __localsize
}
{
val __value = timePref
if (__value != 0.0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeDoubleSize(18, __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 = pubKey
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
{
val __v = amt
if (__v != 0L) {
_output__.writeInt64(2, __v)
}
};
{
val __v = finalCltvDelta
if (__v != 0) {
_output__.writeInt32(4, __v)
}
};
feeLimit.foreach { __v =>
val __m = __v
_output__.writeTag(5, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
ignoredNodes.foreach { __v =>
val __m = __v
_output__.writeBytes(6, __m)
};
ignoredEdges.foreach { __v =>
val __m = __v
_output__.writeTag(7, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = sourcePubKey
if (!__v.isEmpty) {
_output__.writeString(8, __v)
}
};
{
val __v = useMissionControl
if (__v != false) {
_output__.writeBool(9, __v)
}
};
ignoredPairs.foreach { __v =>
val __m = __v
_output__.writeTag(10, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toBase(cltvLimit)
if (__v != 0) {
_output__.writeUInt32(11, __v)
}
};
{
val __v = amtMsat
if (__v != 0L) {
_output__.writeInt64(12, __v)
}
};
destCustomRecords.foreach { __v =>
val __m = lnrpc.QueryRoutesRequest._typemapper_destCustomRecords.toBase(__v)
_output__.writeTag(13, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toBase(outgoingChanId)
if (__v != 0L) {
_output__.writeUInt64(14, __v)
}
};
{
val __v = lastHopPubkey
if (!__v.isEmpty) {
_output__.writeBytes(15, __v)
}
};
routeHints.foreach { __v =>
val __m = __v
_output__.writeTag(16, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
if (destFeatures.nonEmpty) {
_output__.writeTag(17, 2)
_output__.writeUInt32NoTag(destFeaturesSerializedSize)
destFeatures.foreach((_output__.writeEnumNoTag _).compose((_: lnrpc.FeatureBit).value))
};
{
val __v = timePref
if (__v != 0.0) {
_output__.writeDouble(18, __v)
}
};
unknownFields.writeTo(_output__)
}
def withPubKey(__v: _root_.scala.Predef.String): QueryRoutesRequest = copy(pubKey = __v)
def withAmt(__v: _root_.scala.Long): QueryRoutesRequest = copy(amt = __v)
def withAmtMsat(__v: _root_.scala.Long): QueryRoutesRequest = copy(amtMsat = __v)
def withFinalCltvDelta(__v: _root_.scala.Int): QueryRoutesRequest = copy(finalCltvDelta = __v)
def getFeeLimit: lnrpc.FeeLimit = feeLimit.getOrElse(lnrpc.FeeLimit.defaultInstance)
def clearFeeLimit: QueryRoutesRequest = copy(feeLimit = _root_.scala.None)
def withFeeLimit(__v: lnrpc.FeeLimit): QueryRoutesRequest = copy(feeLimit = Option(__v))
def clearIgnoredNodes = copy(ignoredNodes = _root_.scala.Seq.empty)
def addIgnoredNodes(__vs: _root_.com.google.protobuf.ByteString *): QueryRoutesRequest = addAllIgnoredNodes(__vs)
def addAllIgnoredNodes(__vs: Iterable[_root_.com.google.protobuf.ByteString]): QueryRoutesRequest = copy(ignoredNodes = ignoredNodes ++ __vs)
def withIgnoredNodes(__v: _root_.scala.Seq[_root_.com.google.protobuf.ByteString]): QueryRoutesRequest = copy(ignoredNodes = __v)
def clearIgnoredEdges = copy(ignoredEdges = _root_.scala.Seq.empty)
def addIgnoredEdges(__vs: lnrpc.EdgeLocator *): QueryRoutesRequest = addAllIgnoredEdges(__vs)
def addAllIgnoredEdges(__vs: Iterable[lnrpc.EdgeLocator]): QueryRoutesRequest = copy(ignoredEdges = ignoredEdges ++ __vs)
def withIgnoredEdges(__v: _root_.scala.Seq[lnrpc.EdgeLocator]): QueryRoutesRequest = copy(ignoredEdges = __v)
def withSourcePubKey(__v: _root_.scala.Predef.String): QueryRoutesRequest = copy(sourcePubKey = __v)
def withUseMissionControl(__v: _root_.scala.Boolean): QueryRoutesRequest = copy(useMissionControl = __v)
def clearIgnoredPairs = copy(ignoredPairs = _root_.scala.Seq.empty)
def addIgnoredPairs(__vs: lnrpc.NodePair *): QueryRoutesRequest = addAllIgnoredPairs(__vs)
def addAllIgnoredPairs(__vs: Iterable[lnrpc.NodePair]): QueryRoutesRequest = copy(ignoredPairs = ignoredPairs ++ __vs)
def withIgnoredPairs(__v: _root_.scala.Seq[lnrpc.NodePair]): QueryRoutesRequest = copy(ignoredPairs = __v)
def withCltvLimit(__v: org.bitcoins.core.number.UInt32): QueryRoutesRequest = copy(cltvLimit = __v)
def clearDestCustomRecords = copy(destCustomRecords = _root_.scala.collection.immutable.Map.empty)
def addDestCustomRecords(__vs: (org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString) *): QueryRoutesRequest = addAllDestCustomRecords(__vs)
def addAllDestCustomRecords(__vs: Iterable[(org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString)]): QueryRoutesRequest = copy(destCustomRecords = destCustomRecords ++ __vs)
def withDestCustomRecords(__v: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString]): QueryRoutesRequest = copy(destCustomRecords = __v)
def withOutgoingChanId(__v: org.bitcoins.core.number.UInt64): QueryRoutesRequest = copy(outgoingChanId = __v)
def withLastHopPubkey(__v: _root_.com.google.protobuf.ByteString): QueryRoutesRequest = copy(lastHopPubkey = __v)
def clearRouteHints = copy(routeHints = _root_.scala.Seq.empty)
def addRouteHints(__vs: lnrpc.RouteHint *): QueryRoutesRequest = addAllRouteHints(__vs)
def addAllRouteHints(__vs: Iterable[lnrpc.RouteHint]): QueryRoutesRequest = copy(routeHints = routeHints ++ __vs)
def withRouteHints(__v: _root_.scala.Seq[lnrpc.RouteHint]): QueryRoutesRequest = copy(routeHints = __v)
def clearDestFeatures = copy(destFeatures = _root_.scala.Seq.empty)
def addDestFeatures(__vs: lnrpc.FeatureBit *): QueryRoutesRequest = addAllDestFeatures(__vs)
def addAllDestFeatures(__vs: Iterable[lnrpc.FeatureBit]): QueryRoutesRequest = copy(destFeatures = destFeatures ++ __vs)
def withDestFeatures(__v: _root_.scala.Seq[lnrpc.FeatureBit]): QueryRoutesRequest = copy(destFeatures = __v)
def withTimePref(__v: _root_.scala.Double): QueryRoutesRequest = copy(timePref = __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 = pubKey
if (__t != "") __t else null
}
case 2 => {
val __t = amt
if (__t != 0L) __t else null
}
case 12 => {
val __t = amtMsat
if (__t != 0L) __t else null
}
case 4 => {
val __t = finalCltvDelta
if (__t != 0) __t else null
}
case 5 => feeLimit.orNull
case 6 => ignoredNodes
case 7 => ignoredEdges
case 8 => {
val __t = sourcePubKey
if (__t != "") __t else null
}
case 9 => {
val __t = useMissionControl
if (__t != false) __t else null
}
case 10 => ignoredPairs
case 11 => {
val __t = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toBase(cltvLimit)
if (__t != 0) __t else null
}
case 13 => destCustomRecords.iterator.map(lnrpc.QueryRoutesRequest._typemapper_destCustomRecords.toBase(_)).toSeq
case 14 => {
val __t = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toBase(outgoingChanId)
if (__t != 0L) __t else null
}
case 15 => {
val __t = lastHopPubkey
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 16 => routeHints
case 17 => destFeatures.iterator.map(_.javaValueDescriptor).toSeq
case 18 => {
val __t = timePref
if (__t != 0.0) __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.PString(pubKey)
case 2 => _root_.scalapb.descriptors.PLong(amt)
case 12 => _root_.scalapb.descriptors.PLong(amtMsat)
case 4 => _root_.scalapb.descriptors.PInt(finalCltvDelta)
case 5 => feeLimit.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 6 => _root_.scalapb.descriptors.PRepeated(ignoredNodes.iterator.map(_root_.scalapb.descriptors.PByteString(_)).toVector)
case 7 => _root_.scalapb.descriptors.PRepeated(ignoredEdges.iterator.map(_.toPMessage).toVector)
case 8 => _root_.scalapb.descriptors.PString(sourcePubKey)
case 9 => _root_.scalapb.descriptors.PBoolean(useMissionControl)
case 10 => _root_.scalapb.descriptors.PRepeated(ignoredPairs.iterator.map(_.toPMessage).toVector)
case 11 => _root_.scalapb.descriptors.PInt(lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toBase(cltvLimit))
case 13 => _root_.scalapb.descriptors.PRepeated(destCustomRecords.iterator.map(lnrpc.QueryRoutesRequest._typemapper_destCustomRecords.toBase(_).toPMessage).toVector)
case 14 => _root_.scalapb.descriptors.PLong(lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toBase(outgoingChanId))
case 15 => _root_.scalapb.descriptors.PByteString(lastHopPubkey)
case 16 => _root_.scalapb.descriptors.PRepeated(routeHints.iterator.map(_.toPMessage).toVector)
case 17 => _root_.scalapb.descriptors.PRepeated(destFeatures.iterator.map(__e => _root_.scalapb.descriptors.PEnum(__e.scalaValueDescriptor)).toVector)
case 18 => _root_.scalapb.descriptors.PDouble(timePref)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: lnrpc.QueryRoutesRequest.type = lnrpc.QueryRoutesRequest
// @@protoc_insertion_point(GeneratedMessage[lnrpc.QueryRoutesRequest])
}
object QueryRoutesRequest extends scalapb.GeneratedMessageCompanion[lnrpc.QueryRoutesRequest] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.QueryRoutesRequest] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.QueryRoutesRequest = {
var __pubKey: _root_.scala.Predef.String = ""
var __amt: _root_.scala.Long = 0L
var __amtMsat: _root_.scala.Long = 0L
var __finalCltvDelta: _root_.scala.Int = 0
var __feeLimit: _root_.scala.Option[lnrpc.FeeLimit] = _root_.scala.None
val __ignoredNodes: _root_.scala.collection.immutable.VectorBuilder[_root_.com.google.protobuf.ByteString] = new _root_.scala.collection.immutable.VectorBuilder[_root_.com.google.protobuf.ByteString]
val __ignoredEdges: _root_.scala.collection.immutable.VectorBuilder[lnrpc.EdgeLocator] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.EdgeLocator]
var __sourcePubKey: _root_.scala.Predef.String = ""
var __useMissionControl: _root_.scala.Boolean = false
val __ignoredPairs: _root_.scala.collection.immutable.VectorBuilder[lnrpc.NodePair] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.NodePair]
var __cltvLimit: _root_.scala.Int = 0
val __destCustomRecords: _root_.scala.collection.mutable.Builder[(org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString), _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString]] = _root_.scala.collection.immutable.Map.newBuilder[org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString]
var __outgoingChanId: _root_.scala.Long = 0L
var __lastHopPubkey: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
val __routeHints: _root_.scala.collection.immutable.VectorBuilder[lnrpc.RouteHint] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.RouteHint]
val __destFeatures: _root_.scala.collection.immutable.VectorBuilder[lnrpc.FeatureBit] = new _root_.scala.collection.immutable.VectorBuilder[lnrpc.FeatureBit]
var __timePref: _root_.scala.Double = 0.0
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__pubKey = _input__.readStringRequireUtf8()
case 16 =>
__amt = _input__.readInt64()
case 96 =>
__amtMsat = _input__.readInt64()
case 32 =>
__finalCltvDelta = _input__.readInt32()
case 42 =>
__feeLimit = Option(__feeLimit.fold(_root_.scalapb.LiteParser.readMessage[lnrpc.FeeLimit](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 50 =>
__ignoredNodes += _input__.readBytes()
case 58 =>
__ignoredEdges += _root_.scalapb.LiteParser.readMessage[lnrpc.EdgeLocator](_input__)
case 66 =>
__sourcePubKey = _input__.readStringRequireUtf8()
case 72 =>
__useMissionControl = _input__.readBool()
case 82 =>
__ignoredPairs += _root_.scalapb.LiteParser.readMessage[lnrpc.NodePair](_input__)
case 88 =>
__cltvLimit = _input__.readUInt32()
case 106 =>
__destCustomRecords += lnrpc.QueryRoutesRequest._typemapper_destCustomRecords.toCustom(_root_.scalapb.LiteParser.readMessage[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry](_input__))
case 112 =>
__outgoingChanId = _input__.readUInt64()
case 122 =>
__lastHopPubkey = _input__.readBytes()
case 130 =>
__routeHints += _root_.scalapb.LiteParser.readMessage[lnrpc.RouteHint](_input__)
case 136 =>
__destFeatures += lnrpc.FeatureBit.fromValue(_input__.readEnum())
case 138 => {
val length = _input__.readRawVarint32()
val oldLimit = _input__.pushLimit(length)
while (_input__.getBytesUntilLimit > 0) {
__destFeatures += lnrpc.FeatureBit.fromValue(_input__.readEnum())
}
_input__.popLimit(oldLimit)
}
case 145 =>
__timePref = _input__.readDouble()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
lnrpc.QueryRoutesRequest(
pubKey = __pubKey,
amt = __amt,
amtMsat = __amtMsat,
finalCltvDelta = __finalCltvDelta,
feeLimit = __feeLimit,
ignoredNodes = __ignoredNodes.result(),
ignoredEdges = __ignoredEdges.result(),
sourcePubKey = __sourcePubKey,
useMissionControl = __useMissionControl,
ignoredPairs = __ignoredPairs.result(),
cltvLimit = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toCustom(__cltvLimit),
destCustomRecords = __destCustomRecords.result(),
outgoingChanId = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toCustom(__outgoingChanId),
lastHopPubkey = __lastHopPubkey,
routeHints = __routeHints.result(),
destFeatures = __destFeatures.result(),
timePref = __timePref,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.QueryRoutesRequest] = _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.QueryRoutesRequest(
pubKey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
amt = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
amtMsat = __fieldsMap.get(scalaDescriptor.findFieldByNumber(12).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
finalCltvDelta = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Int]).getOrElse(0),
feeLimit = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[_root_.scala.Option[lnrpc.FeeLimit]]),
ignoredNodes = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Seq[_root_.com.google.protobuf.ByteString]]).getOrElse(_root_.scala.Seq.empty),
ignoredEdges = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Seq[lnrpc.EdgeLocator]]).getOrElse(_root_.scala.Seq.empty),
sourcePubKey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
useMissionControl = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
ignoredPairs = __fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Seq[lnrpc.NodePair]]).getOrElse(_root_.scala.Seq.empty),
cltvLimit = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(11).get).map(_.as[_root_.scala.Int]).getOrElse(0)),
destCustomRecords = __fieldsMap.get(scalaDescriptor.findFieldByNumber(13).get).map(_.as[_root_.scala.Seq[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(lnrpc.QueryRoutesRequest._typemapper_destCustomRecords.toCustom(_)).toMap,
outgoingChanId = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(14).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
lastHopPubkey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(15).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
routeHints = __fieldsMap.get(scalaDescriptor.findFieldByNumber(16).get).map(_.as[_root_.scala.Seq[lnrpc.RouteHint]]).getOrElse(_root_.scala.Seq.empty),
destFeatures = __fieldsMap.get(scalaDescriptor.findFieldByNumber(17).get).map(_.as[_root_.scala.Seq[_root_.scalapb.descriptors.EnumValueDescriptor]]).getOrElse(_root_.scala.Seq.empty).iterator.map(__e => lnrpc.FeatureBit.fromValue(__e.number)).toSeq,
timePref = __fieldsMap.get(scalaDescriptor.findFieldByNumber(18).get).map(_.as[_root_.scala.Double]).getOrElse(0.0)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = LightningProto.javaDescriptor.getMessageTypes().get(95)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = LightningProto.scalaDescriptor.messages(95)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 5 => __out = lnrpc.FeeLimit
case 7 => __out = lnrpc.EdgeLocator
case 10 => __out = lnrpc.NodePair
case 13 => __out = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry
case 16 => __out = lnrpc.RouteHint
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.lnrpc.QueryRoutesRequest.DestCustomRecordsEntry
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 17 => lnrpc.FeatureBit
}
}
lazy val defaultInstance = lnrpc.QueryRoutesRequest(
pubKey = "",
amt = 0L,
amtMsat = 0L,
finalCltvDelta = 0,
feeLimit = _root_.scala.None,
ignoredNodes = _root_.scala.Seq.empty,
ignoredEdges = _root_.scala.Seq.empty,
sourcePubKey = "",
useMissionControl = false,
ignoredPairs = _root_.scala.Seq.empty,
cltvLimit = lnrpc.QueryRoutesRequest._typemapper_cltvLimit.toCustom(0),
destCustomRecords = _root_.scala.collection.immutable.Map.empty,
outgoingChanId = lnrpc.QueryRoutesRequest._typemapper_outgoingChanId.toCustom(0L),
lastHopPubkey = _root_.com.google.protobuf.ByteString.EMPTY,
routeHints = _root_.scala.Seq.empty,
destFeatures = _root_.scala.Seq.empty,
timePref = 0.0
)
@SerialVersionUID(0L)
final case class DestCustomRecordsEntry(
key: org.bitcoins.core.number.UInt64 = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toCustom(0L),
value: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[DestCustomRecordsEntry] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toBase(key)
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(1, __value)
}
};
{
val __value = value
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(2, __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 = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toBase(key)
if (__v != 0L) {
_output__.writeUInt64(1, __v)
}
};
{
val __v = value
if (!__v.isEmpty) {
_output__.writeBytes(2, __v)
}
};
unknownFields.writeTo(_output__)
}
def withKey(__v: org.bitcoins.core.number.UInt64): DestCustomRecordsEntry = copy(key = __v)
def withValue(__v: _root_.com.google.protobuf.ByteString): DestCustomRecordsEntry = copy(value = __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.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toBase(key)
if (__t != 0L) __t else null
}
case 2 => {
val __t = value
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __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.PLong(lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toBase(key))
case 2 => _root_.scalapb.descriptors.PByteString(value)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: lnrpc.QueryRoutesRequest.DestCustomRecordsEntry.type = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry
// @@protoc_insertion_point(GeneratedMessage[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry])
}
object DestCustomRecordsEntry extends scalapb.GeneratedMessageCompanion[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): lnrpc.QueryRoutesRequest.DestCustomRecordsEntry = {
var __key: _root_.scala.Long = 0L
var __value: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.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 =>
__key = _input__.readUInt64()
case 18 =>
__value = _input__.readBytes()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
lnrpc.QueryRoutesRequest.DestCustomRecordsEntry(
key = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toCustom(__key),
value = __value,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry] = _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.QueryRoutesRequest.DestCustomRecordsEntry(
key = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toCustom(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Long]).getOrElse(0L)),
value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = lnrpc.QueryRoutesRequest.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = lnrpc.QueryRoutesRequest.scalaDescriptor.nestedMessages(0)
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.QueryRoutesRequest.DestCustomRecordsEntry(
key = lnrpc.QueryRoutesRequest.DestCustomRecordsEntry._typemapper_key.toCustom(0L),
value = _root_.com.google.protobuf.ByteString.EMPTY
)
implicit class DestCustomRecordsEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.QueryRoutesRequest.DestCustomRecordsEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.QueryRoutesRequest.DestCustomRecordsEntry](_l) {
def key: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.key)((c_, f_) => c_.copy(key = f_))
def value: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.value)((c_, f_) => c_.copy(value = f_))
}
final val KEY_FIELD_NUMBER = 1
final val VALUE_FIELD_NUMBER = 2
@transient
private[lnrpc] val _typemapper_key: _root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64] = implicitly[_root_.scalapb.TypeMapper[_root_.scala.Long, org.bitcoins.core.number.UInt64]]
@transient
implicit val keyValueMapper: _root_.scalapb.TypeMapper[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry, (org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString)] =
_root_.scalapb.TypeMapper[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry, (org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString)](__m => (__m.key, __m.value))(__p => lnrpc.QueryRoutesRequest.DestCustomRecordsEntry(__p._1, __p._2))
def of(
key: org.bitcoins.core.number.UInt64,
value: _root_.com.google.protobuf.ByteString
): _root_.lnrpc.QueryRoutesRequest.DestCustomRecordsEntry = _root_.lnrpc.QueryRoutesRequest.DestCustomRecordsEntry(
key,
value
)
// @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry])
}
implicit class QueryRoutesRequestLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.QueryRoutesRequest]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, lnrpc.QueryRoutesRequest](_l) {
def pubKey: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.pubKey)((c_, f_) => c_.copy(pubKey = f_))
def amt: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.amt)((c_, f_) => c_.copy(amt = f_))
def amtMsat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.amtMsat)((c_, f_) => c_.copy(amtMsat = f_))
def finalCltvDelta: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.finalCltvDelta)((c_, f_) => c_.copy(finalCltvDelta = f_))
def feeLimit: _root_.scalapb.lenses.Lens[UpperPB, lnrpc.FeeLimit] = field(_.getFeeLimit)((c_, f_) => c_.copy(feeLimit = Option(f_)))
def optionalFeeLimit: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[lnrpc.FeeLimit]] = field(_.feeLimit)((c_, f_) => c_.copy(feeLimit = f_))
def ignoredNodes: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.com.google.protobuf.ByteString]] = field(_.ignoredNodes)((c_, f_) => c_.copy(ignoredNodes = f_))
def ignoredEdges: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.EdgeLocator]] = field(_.ignoredEdges)((c_, f_) => c_.copy(ignoredEdges = f_))
def sourcePubKey: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.sourcePubKey)((c_, f_) => c_.copy(sourcePubKey = f_))
def useMissionControl: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.useMissionControl)((c_, f_) => c_.copy(useMissionControl = f_))
def ignoredPairs: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.NodePair]] = field(_.ignoredPairs)((c_, f_) => c_.copy(ignoredPairs = f_))
def cltvLimit: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt32] = field(_.cltvLimit)((c_, f_) => c_.copy(cltvLimit = f_))
def destCustomRecords: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString]] = field(_.destCustomRecords)((c_, f_) => c_.copy(destCustomRecords = f_))
def outgoingChanId: _root_.scalapb.lenses.Lens[UpperPB, org.bitcoins.core.number.UInt64] = field(_.outgoingChanId)((c_, f_) => c_.copy(outgoingChanId = f_))
def lastHopPubkey: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.lastHopPubkey)((c_, f_) => c_.copy(lastHopPubkey = f_))
def routeHints: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.RouteHint]] = field(_.routeHints)((c_, f_) => c_.copy(routeHints = f_))
def destFeatures: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[lnrpc.FeatureBit]] = field(_.destFeatures)((c_, f_) => c_.copy(destFeatures = f_))
def timePref: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Double] = field(_.timePref)((c_, f_) => c_.copy(timePref = f_))
}
final val PUB_KEY_FIELD_NUMBER = 1
final val AMT_FIELD_NUMBER = 2
final val AMT_MSAT_FIELD_NUMBER = 12
final val FINAL_CLTV_DELTA_FIELD_NUMBER = 4
final val FEE_LIMIT_FIELD_NUMBER = 5
final val IGNORED_NODES_FIELD_NUMBER = 6
final val IGNORED_EDGES_FIELD_NUMBER = 7
final val SOURCE_PUB_KEY_FIELD_NUMBER = 8
final val USE_MISSION_CONTROL_FIELD_NUMBER = 9
final val IGNORED_PAIRS_FIELD_NUMBER = 10
final val CLTV_LIMIT_FIELD_NUMBER = 11
final val DEST_CUSTOM_RECORDS_FIELD_NUMBER = 13
final val OUTGOING_CHAN_ID_FIELD_NUMBER = 14
final val LAST_HOP_PUBKEY_FIELD_NUMBER = 15
final val ROUTE_HINTS_FIELD_NUMBER = 16
final val DEST_FEATURES_FIELD_NUMBER = 17
final val TIME_PREF_FIELD_NUMBER = 18
@transient
private[lnrpc] val _typemapper_cltvLimit: _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_destCustomRecords: _root_.scalapb.TypeMapper[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry, (org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString)] = implicitly[_root_.scalapb.TypeMapper[lnrpc.QueryRoutesRequest.DestCustomRecordsEntry, (org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString)]]
@transient
private[lnrpc] val _typemapper_outgoingChanId: _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(
pubKey: _root_.scala.Predef.String,
amt: _root_.scala.Long,
amtMsat: _root_.scala.Long,
finalCltvDelta: _root_.scala.Int,
feeLimit: _root_.scala.Option[lnrpc.FeeLimit],
ignoredNodes: _root_.scala.Seq[_root_.com.google.protobuf.ByteString],
ignoredEdges: _root_.scala.Seq[lnrpc.EdgeLocator],
sourcePubKey: _root_.scala.Predef.String,
useMissionControl: _root_.scala.Boolean,
ignoredPairs: _root_.scala.Seq[lnrpc.NodePair],
cltvLimit: org.bitcoins.core.number.UInt32,
destCustomRecords: _root_.scala.collection.immutable.Map[org.bitcoins.core.number.UInt64, _root_.com.google.protobuf.ByteString],
outgoingChanId: org.bitcoins.core.number.UInt64,
lastHopPubkey: _root_.com.google.protobuf.ByteString,
routeHints: _root_.scala.Seq[lnrpc.RouteHint],
destFeatures: _root_.scala.Seq[lnrpc.FeatureBit],
timePref: _root_.scala.Double
): _root_.lnrpc.QueryRoutesRequest = _root_.lnrpc.QueryRoutesRequest(
pubKey,
amt,
amtMsat,
finalCltvDelta,
feeLimit,
ignoredNodes,
ignoredEdges,
sourcePubKey,
useMissionControl,
ignoredPairs,
cltvLimit,
destCustomRecords,
outgoingChanId,
lastHopPubkey,
routeHints,
destFeatures,
timePref
)
// @@protoc_insertion_point(GeneratedMessageCompanion[lnrpc.QueryRoutesRequest])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy