io.envoyproxy.pgv.validate.KnownRegex.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-scala-control-plane_2.13 Show documentation
Show all versions of envoy-scala-control-plane_2.13 Show documentation
ScalaPB generated bindings for Envoy
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO2
package io.envoyproxy.pgv.validate
/** WellKnownRegex contain some well-known patterns.
*/
sealed abstract class KnownRegex(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = KnownRegex
def isUnknown: _root_.scala.Boolean = false
def isHttpHeaderName: _root_.scala.Boolean = false
def isHttpHeaderValue: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[KnownRegex] = io.envoyproxy.pgv.validate.KnownRegex
final def asRecognized: _root_.scala.Option[io.envoyproxy.pgv.validate.KnownRegex.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.envoyproxy.pgv.validate.KnownRegex.Recognized])
}
object KnownRegex extends _root_.scalapb.GeneratedEnumCompanion[KnownRegex] {
sealed trait Recognized extends KnownRegex
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[KnownRegex] = this
@SerialVersionUID(0L)
case object UNKNOWN extends KnownRegex(0) with KnownRegex.Recognized {
val index = 0
val name = "UNKNOWN"
override def isUnknown: _root_.scala.Boolean = true
}
/** HTTP header name as defined by RFC 7230.
*/
@SerialVersionUID(0L)
case object HTTP_HEADER_NAME extends KnownRegex(1) with KnownRegex.Recognized {
val index = 1
val name = "HTTP_HEADER_NAME"
override def isHttpHeaderName: _root_.scala.Boolean = true
}
/** HTTP header value as defined by RFC 7230.
*/
@SerialVersionUID(0L)
case object HTTP_HEADER_VALUE extends KnownRegex(2) with KnownRegex.Recognized {
val index = 2
val name = "HTTP_HEADER_VALUE"
override def isHttpHeaderValue: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends KnownRegex(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(UNKNOWN, HTTP_HEADER_NAME, HTTP_HEADER_VALUE)
def fromValue(__value: _root_.scala.Int): KnownRegex = __value match {
case 0 => UNKNOWN
case 1 => HTTP_HEADER_NAME
case 2 => HTTP_HEADER_VALUE
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = ValidateProto.javaDescriptor.getEnumTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = ValidateProto.scalaDescriptor.enums(0)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy