routerrpc.ForwardHtlcInterceptRequest.scala Maven / Gradle / Ivy
The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package routerrpc
/** @param incomingCircuitKey
*
* The key of this forwarded htlc. It defines the incoming channel id and
* the index in this channel.
* @param incomingAmountMsat
* The incoming htlc amount.
* @param incomingExpiry
* The incoming htlc expiry.
* @param paymentHash
*
* The htlc payment hash. This value is not guaranteed to be unique per
* request.
* @param outgoingRequestedChanId
* The requested outgoing channel id for this forwarded htlc. Because of
* non-strict forwarding, this isn't necessarily the channel over which the
* packet will be forwarded eventually. A different channel to the same peer
* may be selected as well.
* @param outgoingAmountMsat
* The outgoing htlc amount.
* @param outgoingExpiry
* The outgoing htlc expiry.
* @param customRecords
* Any custom records that were present in the payload.
* @param onionBlob
* The onion blob for the next hop
* @param autoFailHeight
* The block height at which this htlc will be auto-failed to prevent the
* channel from force-closing.
*/
@SerialVersionUID(0L)
final case class ForwardHtlcInterceptRequest(
incomingCircuitKey: _root_.scala.Option[routerrpc.CircuitKey] = _root_.scala.None,
incomingAmountMsat: _root_.scala.Long = 0L,
incomingExpiry: _root_.scala.Int = 0,
paymentHash: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
outgoingRequestedChanId: _root_.scala.Long = 0L,
outgoingAmountMsat: _root_.scala.Long = 0L,
outgoingExpiry: _root_.scala.Int = 0,
customRecords: _root_.scala.collection.immutable.Map[_root_.scala.Long, _root_.com.google.protobuf.ByteString] = _root_.scala.collection.immutable.Map.empty,
onionBlob: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
autoFailHeight: _root_.scala.Int = 0,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ForwardHtlcInterceptRequest] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
if (incomingCircuitKey.isDefined) {
val __value = incomingCircuitKey.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
{
val __value = incomingAmountMsat
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(5, __value)
}
};
{
val __value = incomingExpiry
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(6, __value)
}
};
{
val __value = paymentHash
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(2, __value)
}
};
{
val __value = outgoingRequestedChanId
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(7, __value)
}
};
{
val __value = outgoingAmountMsat
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(3, __value)
}
};
{
val __value = outgoingExpiry
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(4, __value)
}
};
customRecords.foreach { __item =>
val __value = routerrpc.ForwardHtlcInterceptRequest._typemapper_customRecords.toBase(__item)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = onionBlob
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(9, __value)
}
};
{
val __value = autoFailHeight
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeInt32Size(10, __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 = {
incomingCircuitKey.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = paymentHash
if (!__v.isEmpty) {
_output__.writeBytes(2, __v)
}
};
{
val __v = outgoingAmountMsat
if (__v != 0L) {
_output__.writeUInt64(3, __v)
}
};
{
val __v = outgoingExpiry
if (__v != 0) {
_output__.writeUInt32(4, __v)
}
};
{
val __v = incomingAmountMsat
if (__v != 0L) {
_output__.writeUInt64(5, __v)
}
};
{
val __v = incomingExpiry
if (__v != 0) {
_output__.writeUInt32(6, __v)
}
};
{
val __v = outgoingRequestedChanId
if (__v != 0L) {
_output__.writeUInt64(7, __v)
}
};
customRecords.foreach { __v =>
val __m = routerrpc.ForwardHtlcInterceptRequest._typemapper_customRecords.toBase(__v)
_output__.writeTag(8, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = onionBlob
if (!__v.isEmpty) {
_output__.writeBytes(9, __v)
}
};
{
val __v = autoFailHeight
if (__v != 0) {
_output__.writeInt32(10, __v)
}
};
unknownFields.writeTo(_output__)
}
def getIncomingCircuitKey: routerrpc.CircuitKey = incomingCircuitKey.getOrElse(routerrpc.CircuitKey.defaultInstance)
def clearIncomingCircuitKey: ForwardHtlcInterceptRequest = copy(incomingCircuitKey = _root_.scala.None)
def withIncomingCircuitKey(__v: routerrpc.CircuitKey): ForwardHtlcInterceptRequest = copy(incomingCircuitKey = Option(__v))
def withIncomingAmountMsat(__v: _root_.scala.Long): ForwardHtlcInterceptRequest = copy(incomingAmountMsat = __v)
def withIncomingExpiry(__v: _root_.scala.Int): ForwardHtlcInterceptRequest = copy(incomingExpiry = __v)
def withPaymentHash(__v: _root_.com.google.protobuf.ByteString): ForwardHtlcInterceptRequest = copy(paymentHash = __v)
def withOutgoingRequestedChanId(__v: _root_.scala.Long): ForwardHtlcInterceptRequest = copy(outgoingRequestedChanId = __v)
def withOutgoingAmountMsat(__v: _root_.scala.Long): ForwardHtlcInterceptRequest = copy(outgoingAmountMsat = __v)
def withOutgoingExpiry(__v: _root_.scala.Int): ForwardHtlcInterceptRequest = copy(outgoingExpiry = __v)
def clearCustomRecords = copy(customRecords = _root_.scala.collection.immutable.Map.empty)
def addCustomRecords(__vs: (_root_.scala.Long, _root_.com.google.protobuf.ByteString) *): ForwardHtlcInterceptRequest = addAllCustomRecords(__vs)
def addAllCustomRecords(__vs: Iterable[(_root_.scala.Long, _root_.com.google.protobuf.ByteString)]): ForwardHtlcInterceptRequest = copy(customRecords = customRecords ++ __vs)
def withCustomRecords(__v: _root_.scala.collection.immutable.Map[_root_.scala.Long, _root_.com.google.protobuf.ByteString]): ForwardHtlcInterceptRequest = copy(customRecords = __v)
def withOnionBlob(__v: _root_.com.google.protobuf.ByteString): ForwardHtlcInterceptRequest = copy(onionBlob = __v)
def withAutoFailHeight(__v: _root_.scala.Int): ForwardHtlcInterceptRequest = copy(autoFailHeight = __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 => incomingCircuitKey.orNull
case 5 => {
val __t = incomingAmountMsat
if (__t != 0L) __t else null
}
case 6 => {
val __t = incomingExpiry
if (__t != 0) __t else null
}
case 2 => {
val __t = paymentHash
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 7 => {
val __t = outgoingRequestedChanId
if (__t != 0L) __t else null
}
case 3 => {
val __t = outgoingAmountMsat
if (__t != 0L) __t else null
}
case 4 => {
val __t = outgoingExpiry
if (__t != 0) __t else null
}
case 8 => customRecords.iterator.map(routerrpc.ForwardHtlcInterceptRequest._typemapper_customRecords.toBase(_)).toSeq
case 9 => {
val __t = onionBlob
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 10 => {
val __t = autoFailHeight
if (__t != 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 => incomingCircuitKey.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 5 => _root_.scalapb.descriptors.PLong(incomingAmountMsat)
case 6 => _root_.scalapb.descriptors.PInt(incomingExpiry)
case 2 => _root_.scalapb.descriptors.PByteString(paymentHash)
case 7 => _root_.scalapb.descriptors.PLong(outgoingRequestedChanId)
case 3 => _root_.scalapb.descriptors.PLong(outgoingAmountMsat)
case 4 => _root_.scalapb.descriptors.PInt(outgoingExpiry)
case 8 => _root_.scalapb.descriptors.PRepeated(customRecords.iterator.map(routerrpc.ForwardHtlcInterceptRequest._typemapper_customRecords.toBase(_).toPMessage).toVector)
case 9 => _root_.scalapb.descriptors.PByteString(onionBlob)
case 10 => _root_.scalapb.descriptors.PInt(autoFailHeight)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: routerrpc.ForwardHtlcInterceptRequest.type = routerrpc.ForwardHtlcInterceptRequest
// @@protoc_insertion_point(GeneratedMessage[routerrpc.ForwardHtlcInterceptRequest])
}
object ForwardHtlcInterceptRequest extends scalapb.GeneratedMessageCompanion[routerrpc.ForwardHtlcInterceptRequest] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[routerrpc.ForwardHtlcInterceptRequest] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): routerrpc.ForwardHtlcInterceptRequest = {
var __incomingCircuitKey: _root_.scala.Option[routerrpc.CircuitKey] = _root_.scala.None
var __incomingAmountMsat: _root_.scala.Long = 0L
var __incomingExpiry: _root_.scala.Int = 0
var __paymentHash: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var __outgoingRequestedChanId: _root_.scala.Long = 0L
var __outgoingAmountMsat: _root_.scala.Long = 0L
var __outgoingExpiry: _root_.scala.Int = 0
val __customRecords: _root_.scala.collection.mutable.Builder[(_root_.scala.Long, _root_.com.google.protobuf.ByteString), _root_.scala.collection.immutable.Map[_root_.scala.Long, _root_.com.google.protobuf.ByteString]] = _root_.scala.collection.immutable.Map.newBuilder[_root_.scala.Long, _root_.com.google.protobuf.ByteString]
var __onionBlob: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var __autoFailHeight: _root_.scala.Int = 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 =>
__incomingCircuitKey = Option(__incomingCircuitKey.fold(_root_.scalapb.LiteParser.readMessage[routerrpc.CircuitKey](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 40 =>
__incomingAmountMsat = _input__.readUInt64()
case 48 =>
__incomingExpiry = _input__.readUInt32()
case 18 =>
__paymentHash = _input__.readBytes()
case 56 =>
__outgoingRequestedChanId = _input__.readUInt64()
case 24 =>
__outgoingAmountMsat = _input__.readUInt64()
case 32 =>
__outgoingExpiry = _input__.readUInt32()
case 66 =>
__customRecords += routerrpc.ForwardHtlcInterceptRequest._typemapper_customRecords.toCustom(_root_.scalapb.LiteParser.readMessage[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry](_input__))
case 74 =>
__onionBlob = _input__.readBytes()
case 80 =>
__autoFailHeight = _input__.readInt32()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
routerrpc.ForwardHtlcInterceptRequest(
incomingCircuitKey = __incomingCircuitKey,
incomingAmountMsat = __incomingAmountMsat,
incomingExpiry = __incomingExpiry,
paymentHash = __paymentHash,
outgoingRequestedChanId = __outgoingRequestedChanId,
outgoingAmountMsat = __outgoingAmountMsat,
outgoingExpiry = __outgoingExpiry,
customRecords = __customRecords.result(),
onionBlob = __onionBlob,
autoFailHeight = __autoFailHeight,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[routerrpc.ForwardHtlcInterceptRequest] = _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.")
routerrpc.ForwardHtlcInterceptRequest(
incomingCircuitKey = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[routerrpc.CircuitKey]]),
incomingAmountMsat = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
incomingExpiry = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Int]).getOrElse(0),
paymentHash = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
outgoingRequestedChanId = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
outgoingAmountMsat = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
outgoingExpiry = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Int]).getOrElse(0),
customRecords = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Seq[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(routerrpc.ForwardHtlcInterceptRequest._typemapper_customRecords.toCustom(_)).toMap,
onionBlob = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
autoFailHeight = __fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Int]).getOrElse(0)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = RouterProto.javaDescriptor.getMessageTypes().get(37)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = RouterProto.scalaDescriptor.messages(37)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = routerrpc.CircuitKey
case 8 => __out = routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = routerrpc.ForwardHtlcInterceptRequest(
incomingCircuitKey = _root_.scala.None,
incomingAmountMsat = 0L,
incomingExpiry = 0,
paymentHash = _root_.com.google.protobuf.ByteString.EMPTY,
outgoingRequestedChanId = 0L,
outgoingAmountMsat = 0L,
outgoingExpiry = 0,
customRecords = _root_.scala.collection.immutable.Map.empty,
onionBlob = _root_.com.google.protobuf.ByteString.EMPTY,
autoFailHeight = 0
)
@SerialVersionUID(0L)
final case class CustomRecordsEntry(
key: _root_.scala.Long = 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[CustomRecordsEntry] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = 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 = key
if (__v != 0L) {
_output__.writeUInt64(1, __v)
}
};
{
val __v = value
if (!__v.isEmpty) {
_output__.writeBytes(2, __v)
}
};
unknownFields.writeTo(_output__)
}
def withKey(__v: _root_.scala.Long): CustomRecordsEntry = copy(key = __v)
def withValue(__v: _root_.com.google.protobuf.ByteString): CustomRecordsEntry = 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 = 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(key)
case 2 => _root_.scalapb.descriptors.PByteString(value)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry.type = routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry
// @@protoc_insertion_point(GeneratedMessage[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry])
}
object CustomRecordsEntry extends scalapb.GeneratedMessageCompanion[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry = {
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__)
}
}
routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry(
key = __key,
value = __value,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry] = _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.")
routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry(
key = __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 = routerrpc.ForwardHtlcInterceptRequest.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = routerrpc.ForwardHtlcInterceptRequest.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 = routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry(
key = 0L,
value = _root_.com.google.protobuf.ByteString.EMPTY
)
implicit class CustomRecordsEntryLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry](_l) {
def key: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = 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
implicit val keyValueMapper: _root_.scalapb.TypeMapper[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry, (_root_.scala.Long, _root_.com.google.protobuf.ByteString)] =
_root_.scalapb.TypeMapper[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry, (_root_.scala.Long, _root_.com.google.protobuf.ByteString)](__m => (__m.key, __m.value))(__p => routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry(__p._1, __p._2))
def of(
key: _root_.scala.Long,
value: _root_.com.google.protobuf.ByteString
): _root_.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry = _root_.routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry(
key,
value
)
// @@protoc_insertion_point(GeneratedMessageCompanion[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry])
}
implicit class ForwardHtlcInterceptRequestLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, routerrpc.ForwardHtlcInterceptRequest]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, routerrpc.ForwardHtlcInterceptRequest](_l) {
def incomingCircuitKey: _root_.scalapb.lenses.Lens[UpperPB, routerrpc.CircuitKey] = field(_.getIncomingCircuitKey)((c_, f_) => c_.copy(incomingCircuitKey = Option(f_)))
def optionalIncomingCircuitKey: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[routerrpc.CircuitKey]] = field(_.incomingCircuitKey)((c_, f_) => c_.copy(incomingCircuitKey = f_))
def incomingAmountMsat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.incomingAmountMsat)((c_, f_) => c_.copy(incomingAmountMsat = f_))
def incomingExpiry: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.incomingExpiry)((c_, f_) => c_.copy(incomingExpiry = f_))
def paymentHash: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.paymentHash)((c_, f_) => c_.copy(paymentHash = f_))
def outgoingRequestedChanId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.outgoingRequestedChanId)((c_, f_) => c_.copy(outgoingRequestedChanId = f_))
def outgoingAmountMsat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.outgoingAmountMsat)((c_, f_) => c_.copy(outgoingAmountMsat = f_))
def outgoingExpiry: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.outgoingExpiry)((c_, f_) => c_.copy(outgoingExpiry = f_))
def customRecords: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.immutable.Map[_root_.scala.Long, _root_.com.google.protobuf.ByteString]] = field(_.customRecords)((c_, f_) => c_.copy(customRecords = f_))
def onionBlob: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.ByteString] = field(_.onionBlob)((c_, f_) => c_.copy(onionBlob = f_))
def autoFailHeight: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.autoFailHeight)((c_, f_) => c_.copy(autoFailHeight = f_))
}
final val INCOMING_CIRCUIT_KEY_FIELD_NUMBER = 1
final val INCOMING_AMOUNT_MSAT_FIELD_NUMBER = 5
final val INCOMING_EXPIRY_FIELD_NUMBER = 6
final val PAYMENT_HASH_FIELD_NUMBER = 2
final val OUTGOING_REQUESTED_CHAN_ID_FIELD_NUMBER = 7
final val OUTGOING_AMOUNT_MSAT_FIELD_NUMBER = 3
final val OUTGOING_EXPIRY_FIELD_NUMBER = 4
final val CUSTOM_RECORDS_FIELD_NUMBER = 8
final val ONION_BLOB_FIELD_NUMBER = 9
final val AUTO_FAIL_HEIGHT_FIELD_NUMBER = 10
@transient
private[routerrpc] val _typemapper_customRecords: _root_.scalapb.TypeMapper[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry, (_root_.scala.Long, _root_.com.google.protobuf.ByteString)] = implicitly[_root_.scalapb.TypeMapper[routerrpc.ForwardHtlcInterceptRequest.CustomRecordsEntry, (_root_.scala.Long, _root_.com.google.protobuf.ByteString)]]
def of(
incomingCircuitKey: _root_.scala.Option[routerrpc.CircuitKey],
incomingAmountMsat: _root_.scala.Long,
incomingExpiry: _root_.scala.Int,
paymentHash: _root_.com.google.protobuf.ByteString,
outgoingRequestedChanId: _root_.scala.Long,
outgoingAmountMsat: _root_.scala.Long,
outgoingExpiry: _root_.scala.Int,
customRecords: _root_.scala.collection.immutable.Map[_root_.scala.Long, _root_.com.google.protobuf.ByteString],
onionBlob: _root_.com.google.protobuf.ByteString,
autoFailHeight: _root_.scala.Int
): _root_.routerrpc.ForwardHtlcInterceptRequest = _root_.routerrpc.ForwardHtlcInterceptRequest(
incomingCircuitKey,
incomingAmountMsat,
incomingExpiry,
paymentHash,
outgoingRequestedChanId,
outgoingAmountMsat,
outgoingExpiry,
customRecords,
onionBlob,
autoFailHeight
)
// @@protoc_insertion_point(GeneratedMessageCompanion[routerrpc.ForwardHtlcInterceptRequest])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy