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

routerrpc.FailureDetail.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

sealed abstract class FailureDetail(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = FailureDetail
  def isUnknown: _root_.scala.Boolean = false
  def isNoDetail: _root_.scala.Boolean = false
  def isOnionDecode: _root_.scala.Boolean = false
  def isLinkNotEligible: _root_.scala.Boolean = false
  def isOnChainTimeout: _root_.scala.Boolean = false
  def isHtlcExceedsMax: _root_.scala.Boolean = false
  def isInsufficientBalance: _root_.scala.Boolean = false
  def isIncompleteForward: _root_.scala.Boolean = false
  def isHtlcAddFailed: _root_.scala.Boolean = false
  def isForwardsDisabled: _root_.scala.Boolean = false
  def isInvoiceCanceled: _root_.scala.Boolean = false
  def isInvoiceUnderpaid: _root_.scala.Boolean = false
  def isInvoiceExpiryTooSoon: _root_.scala.Boolean = false
  def isInvoiceNotOpen: _root_.scala.Boolean = false
  def isMppInvoiceTimeout: _root_.scala.Boolean = false
  def isAddressMismatch: _root_.scala.Boolean = false
  def isSetTotalMismatch: _root_.scala.Boolean = false
  def isSetTotalTooLow: _root_.scala.Boolean = false
  def isSetOverpaid: _root_.scala.Boolean = false
  def isUnknownInvoice: _root_.scala.Boolean = false
  def isInvalidKeysend: _root_.scala.Boolean = false
  def isMppInProgress: _root_.scala.Boolean = false
  def isCircularRoute: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[FailureDetail] = routerrpc.FailureDetail
  final def asRecognized: _root_.scala.Option[routerrpc.FailureDetail.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[routerrpc.FailureDetail.Recognized])
}

object FailureDetail extends _root_.scalapb.GeneratedEnumCompanion[FailureDetail] {
  sealed trait Recognized extends FailureDetail
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[FailureDetail] = this
  
  @SerialVersionUID(0L)
  case object UNKNOWN extends FailureDetail(0) with FailureDetail.Recognized {
    val index = 0
    val name = "UNKNOWN"
    override def isUnknown: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object NO_DETAIL extends FailureDetail(1) with FailureDetail.Recognized {
    val index = 1
    val name = "NO_DETAIL"
    override def isNoDetail: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ONION_DECODE extends FailureDetail(2) with FailureDetail.Recognized {
    val index = 2
    val name = "ONION_DECODE"
    override def isOnionDecode: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object LINK_NOT_ELIGIBLE extends FailureDetail(3) with FailureDetail.Recognized {
    val index = 3
    val name = "LINK_NOT_ELIGIBLE"
    override def isLinkNotEligible: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ON_CHAIN_TIMEOUT extends FailureDetail(4) with FailureDetail.Recognized {
    val index = 4
    val name = "ON_CHAIN_TIMEOUT"
    override def isOnChainTimeout: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object HTLC_EXCEEDS_MAX extends FailureDetail(5) with FailureDetail.Recognized {
    val index = 5
    val name = "HTLC_EXCEEDS_MAX"
    override def isHtlcExceedsMax: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INSUFFICIENT_BALANCE extends FailureDetail(6) with FailureDetail.Recognized {
    val index = 6
    val name = "INSUFFICIENT_BALANCE"
    override def isInsufficientBalance: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INCOMPLETE_FORWARD extends FailureDetail(7) with FailureDetail.Recognized {
    val index = 7
    val name = "INCOMPLETE_FORWARD"
    override def isIncompleteForward: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object HTLC_ADD_FAILED extends FailureDetail(8) with FailureDetail.Recognized {
    val index = 8
    val name = "HTLC_ADD_FAILED"
    override def isHtlcAddFailed: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object FORWARDS_DISABLED extends FailureDetail(9) with FailureDetail.Recognized {
    val index = 9
    val name = "FORWARDS_DISABLED"
    override def isForwardsDisabled: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INVOICE_CANCELED extends FailureDetail(10) with FailureDetail.Recognized {
    val index = 10
    val name = "INVOICE_CANCELED"
    override def isInvoiceCanceled: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INVOICE_UNDERPAID extends FailureDetail(11) with FailureDetail.Recognized {
    val index = 11
    val name = "INVOICE_UNDERPAID"
    override def isInvoiceUnderpaid: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INVOICE_EXPIRY_TOO_SOON extends FailureDetail(12) with FailureDetail.Recognized {
    val index = 12
    val name = "INVOICE_EXPIRY_TOO_SOON"
    override def isInvoiceExpiryTooSoon: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INVOICE_NOT_OPEN extends FailureDetail(13) with FailureDetail.Recognized {
    val index = 13
    val name = "INVOICE_NOT_OPEN"
    override def isInvoiceNotOpen: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object MPP_INVOICE_TIMEOUT extends FailureDetail(14) with FailureDetail.Recognized {
    val index = 14
    val name = "MPP_INVOICE_TIMEOUT"
    override def isMppInvoiceTimeout: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ADDRESS_MISMATCH extends FailureDetail(15) with FailureDetail.Recognized {
    val index = 15
    val name = "ADDRESS_MISMATCH"
    override def isAddressMismatch: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object SET_TOTAL_MISMATCH extends FailureDetail(16) with FailureDetail.Recognized {
    val index = 16
    val name = "SET_TOTAL_MISMATCH"
    override def isSetTotalMismatch: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object SET_TOTAL_TOO_LOW extends FailureDetail(17) with FailureDetail.Recognized {
    val index = 17
    val name = "SET_TOTAL_TOO_LOW"
    override def isSetTotalTooLow: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object SET_OVERPAID extends FailureDetail(18) with FailureDetail.Recognized {
    val index = 18
    val name = "SET_OVERPAID"
    override def isSetOverpaid: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object UNKNOWN_INVOICE extends FailureDetail(19) with FailureDetail.Recognized {
    val index = 19
    val name = "UNKNOWN_INVOICE"
    override def isUnknownInvoice: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object INVALID_KEYSEND extends FailureDetail(20) with FailureDetail.Recognized {
    val index = 20
    val name = "INVALID_KEYSEND"
    override def isInvalidKeysend: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object MPP_IN_PROGRESS extends FailureDetail(21) with FailureDetail.Recognized {
    val index = 21
    val name = "MPP_IN_PROGRESS"
    override def isMppInProgress: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object CIRCULAR_ROUTE extends FailureDetail(22) with FailureDetail.Recognized {
    val index = 22
    val name = "CIRCULAR_ROUTE"
    override def isCircularRoute: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends FailureDetail(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values = scala.collection.immutable.Seq(UNKNOWN, NO_DETAIL, ONION_DECODE, LINK_NOT_ELIGIBLE, ON_CHAIN_TIMEOUT, HTLC_EXCEEDS_MAX, INSUFFICIENT_BALANCE, INCOMPLETE_FORWARD, HTLC_ADD_FAILED, FORWARDS_DISABLED, INVOICE_CANCELED, INVOICE_UNDERPAID, INVOICE_EXPIRY_TOO_SOON, INVOICE_NOT_OPEN, MPP_INVOICE_TIMEOUT, ADDRESS_MISMATCH, SET_TOTAL_MISMATCH, SET_TOTAL_TOO_LOW, SET_OVERPAID, UNKNOWN_INVOICE, INVALID_KEYSEND, MPP_IN_PROGRESS, CIRCULAR_ROUTE)
  def fromValue(__value: _root_.scala.Int): FailureDetail = __value match {
    case 0 => UNKNOWN
    case 1 => NO_DETAIL
    case 2 => ONION_DECODE
    case 3 => LINK_NOT_ELIGIBLE
    case 4 => ON_CHAIN_TIMEOUT
    case 5 => HTLC_EXCEEDS_MAX
    case 6 => INSUFFICIENT_BALANCE
    case 7 => INCOMPLETE_FORWARD
    case 8 => HTLC_ADD_FAILED
    case 9 => FORWARDS_DISABLED
    case 10 => INVOICE_CANCELED
    case 11 => INVOICE_UNDERPAID
    case 12 => INVOICE_EXPIRY_TOO_SOON
    case 13 => INVOICE_NOT_OPEN
    case 14 => MPP_INVOICE_TIMEOUT
    case 15 => ADDRESS_MISMATCH
    case 16 => SET_TOTAL_MISMATCH
    case 17 => SET_TOTAL_TOO_LOW
    case 18 => SET_OVERPAID
    case 19 => UNKNOWN_INVOICE
    case 20 => INVALID_KEYSEND
    case 21 => MPP_IN_PROGRESS
    case 22 => CIRCULAR_ROUTE
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = RouterProto.javaDescriptor.getEnumTypes().get(0)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = RouterProto.scalaDescriptor.enums(0)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy