
io.opentelemetry.proto.metrics.v1.DataPointFlags.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: PROTO3
package io.opentelemetry.proto.metrics.v1
/** DataPointFlags is defined as a protobuf 'uint32' type and is to be used as a
* bit-field representing 32 distinct boolean flags. Each flag defined in this
* enum is a bit-mask. To test the presence of a single flag in the flags of
* a data point, for example, use an expression like:
*
* (point.flags & FLAG_NO_RECORDED_VALUE) == FLAG_NO_RECORDED_VALUE
*/
sealed abstract class DataPointFlags(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum {
type EnumType = DataPointFlags
def isFlagNone: _root_.scala.Boolean = false
def isFlagNoRecordedValue: _root_.scala.Boolean = false
def companion: _root_.scalapb.GeneratedEnumCompanion[DataPointFlags] = io.opentelemetry.proto.metrics.v1.DataPointFlags
final def asRecognized: _root_.scala.Option[io.opentelemetry.proto.metrics.v1.DataPointFlags.Recognized] = if (isUnrecognized) _root_.scala.None else _root_.scala.Some(this.asInstanceOf[io.opentelemetry.proto.metrics.v1.DataPointFlags.Recognized])
}
object DataPointFlags extends _root_.scalapb.GeneratedEnumCompanion[DataPointFlags] {
sealed trait Recognized extends DataPointFlags
implicit def enumCompanion: _root_.scalapb.GeneratedEnumCompanion[DataPointFlags] = this
@SerialVersionUID(0L)
case object FLAG_NONE extends DataPointFlags(0) with DataPointFlags.Recognized {
val index = 0
val name = "FLAG_NONE"
override def isFlagNone: _root_.scala.Boolean = true
}
/** This DataPoint is valid but has no recorded value. This value
* SHOULD be used to reflect explicitly missing data in a series, as
* for an equivalent to the Prometheus "staleness marker".
*/
@SerialVersionUID(0L)
case object FLAG_NO_RECORDED_VALUE extends DataPointFlags(1) with DataPointFlags.Recognized {
val index = 1
val name = "FLAG_NO_RECORDED_VALUE"
override def isFlagNoRecordedValue: _root_.scala.Boolean = true
}
@SerialVersionUID(0L)
final case class Unrecognized(unrecognizedValue: _root_.scala.Int) extends DataPointFlags(unrecognizedValue) with _root_.scalapb.UnrecognizedEnum
lazy val values = scala.collection.immutable.Seq(FLAG_NONE, FLAG_NO_RECORDED_VALUE)
def fromValue(__value: _root_.scala.Int): DataPointFlags = __value match {
case 0 => FLAG_NONE
case 1 => FLAG_NO_RECORDED_VALUE
case __other => Unrecognized(__other)
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.EnumDescriptor = MetricsProto.javaDescriptor.getEnumTypes().get(1)
def scalaDescriptor: _root_.scalapb.descriptors.EnumDescriptor = MetricsProto.scalaDescriptor.enums(1)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy