lnrpc.InvoiceHTLCState.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._
sealed abstract class InvoiceHTLCState(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = InvoiceHTLCState
def isAccepted: _root_.scala.Boolean = false
def isSettled: _root_.scala.Boolean = false
def isCanceled: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[InvoiceHTLCState] = lnrpc.InvoiceHTLCState
final def asRecognized: _root_.scala.Option[lnrpc.InvoiceHTLCState.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[lnrpc.InvoiceHTLCState.Recognized])
}
object InvoiceHTLCState extends _root_.scalapb.GeneratedEnumCompanion[InvoiceHTLCState] {
sealed trait Recognized extends InvoiceHTLCState
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[InvoiceHTLCState] = this
@SerialVersionUID(0L)
case object ACCEPTED extends InvoiceHTLCState(0) with InvoiceHTLCState.Recognized {
val index = 0
val name = "ACCEPTED"
override def isAccepted: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object SETTLED extends InvoiceHTLCState(1) with InvoiceHTLCState.Recognized {
val index = 1
val name = "SETTLED"
override def isSettled: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object CANCELED extends InvoiceHTLCState(2) with InvoiceHTLCState.Recognized {
val index = 2
val name = "CANCELED"
override def isCanceled: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends InvoiceHTLCState(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(ACCEPTED, SETTLED, CANCELED)
def fromValue(__value: _root_.scala.Int): InvoiceHTLCState = __value match {
case 0 => ACCEPTED
case 1 => SETTLED
case 2 => CANCELED
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = LightningProto.javaDescriptor.getEnumTypes().get(7)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = LightningProto.scalaDescriptor.enums(7)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy