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