invoicesrpc.LookupModifier.scala Maven / Gradle / Ivy
The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package invoicesrpc
sealed abstract class LookupModifier(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = LookupModifier
def isDefault: _root_.scala.Boolean = false
def isHtlcSetOnly: _root_.scala.Boolean = false
def isHtlcSetBlank: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[LookupModifier] = invoicesrpc.LookupModifier
final def asRecognized: _root_.scala.Option[invoicesrpc.LookupModifier.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[invoicesrpc.LookupModifier.Recognized])
}
object LookupModifier extends _root_.scalapb.GeneratedEnumCompanion[LookupModifier] {
sealed trait Recognized extends LookupModifier
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[LookupModifier] = this
/** The default look up modifier, no look up behavior is changed.
*/
@SerialVersionUID(0L)
case object DEFAULT extends LookupModifier(0) with LookupModifier.Recognized {
val index = 0
val name = "DEFAULT"
override def isDefault: _root_.scala.Boolean = true
}
/**
* Indicates that when a look up is done based on a set_id, then only that set
* of HTLCs related to that set ID should be returned.
*/
@SerialVersionUID(0L)
case object HTLC_SET_ONLY extends LookupModifier(1) with LookupModifier.Recognized {
val index = 1
val name = "HTLC_SET_ONLY"
override def isHtlcSetOnly: _root_.scala.Boolean = true
}
/**
* Indicates that when a look up is done using a payment_addr, then no HTLCs
* related to the payment_addr should be returned. This is useful when one
* wants to be able to obtain the set of associated setIDs with a given
* invoice, then look up the sub-invoices "projected" by that set ID.
*/
@SerialVersionUID(0L)
case object HTLC_SET_BLANK extends LookupModifier(2) with LookupModifier.Recognized {
val index = 2
val name = "HTLC_SET_BLANK"
override def isHtlcSetBlank: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends LookupModifier(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(DEFAULT, HTLC_SET_ONLY, HTLC_SET_BLANK)
def fromValue(__value: _root_.scala.Int): LookupModifier = __value match {
case 0 => DEFAULT
case 1 => HTLC_SET_ONLY
case 2 => HTLC_SET_BLANK
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = InvoicesProto.javaDescriptor.getEnumTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = InvoicesProto.scalaDescriptor.enums(0)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy