xyz.stratalab.indexer.services.SortOrder.scala Maven / Gradle / Ivy
The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3
package xyz.stratalab.indexer.services
/** Specify the order of data for indexes.
*/
sealed abstract class SortOrder(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = xyz.stratalab.indexer.services.SortOrder
type RecognizedType = xyz.stratalab.indexer.services.SortOrder.Recognized
def isAscending: _root_.scala.Boolean = false
def isDescending: _root_.scala.Boolean = false
def isUnsorted: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[SortOrder] = xyz.stratalab.indexer.services.SortOrder
final def asRecognized: _root_.scala.Option[xyz.stratalab.indexer.services.SortOrder.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[xyz.stratalab.indexer.services.SortOrder.Recognized])
}
object SortOrder extends _root_.scalapb.GeneratedEnumCompanion[SortOrder] {
sealed trait Recognized extends SortOrder
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[SortOrder] = this
@SerialVersionUID(0L)
case object ASCENDING extends SortOrder(0) with SortOrder.Recognized {
val index = 0
val name = "ASCENDING"
override def isAscending: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object DESCENDING extends SortOrder(1) with SortOrder.Recognized {
val index = 1
val name = "DESCENDING"
override def isDescending: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
case object UNSORTED extends SortOrder(2) with SortOrder.Recognized {
val index = 2
val name = "UNSORTED"
override def isUnsorted: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends SortOrder(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values: scala.collection.immutable.Seq[ValueType] = scala.collection.immutable.Seq(ASCENDING, DESCENDING, UNSORTED)
def fromValue(__value: _root_.scala.Int): SortOrder = __value match {
case 0 => ASCENDING
case 1 => DESCENDING
case 2 => UNSORTED
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = IndexerModelsProto.javaDescriptor.getEnumTypes().get(1)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = IndexerModelsProto.scalaDescriptor.enums(1)
}