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

com.wavesplatform.protobuf.snapshot.TransactionStatus.scala Maven / Gradle / Ivy

The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3

package com.wavesplatform.protobuf.snapshot

sealed abstract class TransactionStatus(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
  type EnumType = com.wavesplatform.protobuf.snapshot.TransactionStatus
  type RecognizedType = com.wavesplatform.protobuf.snapshot.TransactionStatus.Recognized
  def isSucceeded: _root_.scala.Boolean = false
  def isFailed: _root_.scala.Boolean = false
  def isElided: _root_.scala.Boolean = false
  def companion: _root_.scalapb.GeneratedEnumCompanion[TransactionStatus] = com.wavesplatform.protobuf.snapshot.TransactionStatus
  final def asRecognized: _root_.scala.Option[com.wavesplatform.protobuf.snapshot.TransactionStatus.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[com.wavesplatform.protobuf.snapshot.TransactionStatus.Recognized])
}

object TransactionStatus extends _root_.scalapb.GeneratedEnumCompanion[TransactionStatus] {
  sealed trait Recognized extends TransactionStatus
  implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[TransactionStatus] = this
  
  @SerialVersionUID(0L)
  case object SUCCEEDED extends TransactionStatus(0) with TransactionStatus.Recognized {
    val index = 0
    val name = "SUCCEEDED"
    override def isSucceeded: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object FAILED extends TransactionStatus(1) with TransactionStatus.Recognized {
    val index = 1
    val name = "FAILED"
    override def isFailed: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  case object ELIDED extends TransactionStatus(2) with TransactionStatus.Recognized {
    val index = 2
    val name = "ELIDED"
    override def isElided: _root_.scala.Boolean = true
  }
  
  @SerialVersionUID(0L)
  final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends TransactionStatus(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
  lazy val values: scala.collection.immutable.Seq[ValueType] = scala.collection.immutable.Seq(SUCCEEDED, FAILED, ELIDED)
  def fromValue(__value: _root_.scala.Int): TransactionStatus = __value match {
    case 0 => SUCCEEDED
    case 1 => FAILED
    case 2 => ELIDED
    case __other => Unrecognized(__other)
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = TransactionStateSnapshotProto.javaDescriptor.getEnumTypes().get(0)
  def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = TransactionStateSnapshotProto.scalaDescriptor.enums(0)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy