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

scalapb.mdg.engine.proto.reports.QueryLatencyStats.scala Maven / Gradle / Ivy

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

package mdg.engine.proto.reports

@SerialVersionUID(0L)
final case class QueryLatencyStats(
    latencyCount: _root_.scala.Seq[_root_.scala.Long] = _root_.scala.Seq.empty,
    requestCount: _root_.scala.Long = 0L,
    cacheHits: _root_.scala.Long = 0L,
    persistedQueryHits: _root_.scala.Long = 0L,
    persistedQueryMisses: _root_.scala.Long = 0L,
    cacheLatencyCount: _root_.scala.Seq[_root_.scala.Long] = _root_.scala.Seq.empty,
    rootErrorStats: _root_.scala.Option[mdg.engine.proto.reports.PathErrorStats] = _root_.scala.None,
    requestsWithErrorsCount: _root_.scala.Long = 0L,
    publicCacheTtlCount: _root_.scala.Seq[_root_.scala.Long] = _root_.scala.Seq.empty,
    privateCacheTtlCount: _root_.scala.Seq[_root_.scala.Long] = _root_.scala.Seq.empty,
    registeredOperationCount: _root_.scala.Long = 0L,
    forbiddenOperationCount: _root_.scala.Long = 0L,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[QueryLatencyStats] {
    private[this] def latencyCountSerializedSize = {
      if (__latencyCountSerializedSizeField == 0) __latencyCountSerializedSizeField = {
        var __s: _root_.scala.Int = 0
        latencyCount.foreach(__i => __s += _root_.com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(__i))
        __s
      }
      __latencyCountSerializedSizeField
    }
    @transient private[this] var __latencyCountSerializedSizeField: _root_.scala.Int = 0
    private[this] def cacheLatencyCountSerializedSize = {
      if (__cacheLatencyCountSerializedSizeField == 0) __cacheLatencyCountSerializedSizeField = {
        var __s: _root_.scala.Int = 0
        cacheLatencyCount.foreach(__i => __s += _root_.com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(__i))
        __s
      }
      __cacheLatencyCountSerializedSizeField
    }
    @transient private[this] var __cacheLatencyCountSerializedSizeField: _root_.scala.Int = 0
    private[this] def publicCacheTtlCountSerializedSize = {
      if (__publicCacheTtlCountSerializedSizeField == 0) __publicCacheTtlCountSerializedSizeField = {
        var __s: _root_.scala.Int = 0
        publicCacheTtlCount.foreach(__i => __s += _root_.com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(__i))
        __s
      }
      __publicCacheTtlCountSerializedSizeField
    }
    @transient private[this] var __publicCacheTtlCountSerializedSizeField: _root_.scala.Int = 0
    private[this] def privateCacheTtlCountSerializedSize = {
      if (__privateCacheTtlCountSerializedSizeField == 0) __privateCacheTtlCountSerializedSizeField = {
        var __s: _root_.scala.Int = 0
        privateCacheTtlCount.foreach(__i => __s += _root_.com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(__i))
        __s
      }
      __privateCacheTtlCountSerializedSizeField
    }
    @transient private[this] var __privateCacheTtlCountSerializedSizeField: _root_.scala.Int = 0
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      if (latencyCount.nonEmpty) {
        val __localsize = latencyCountSerializedSize
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__localsize) + __localsize
      }
      
      {
        val __value = requestCount
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(2, __value)
        }
      };
      
      {
        val __value = cacheHits
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(3, __value)
        }
      };
      
      {
        val __value = persistedQueryHits
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(4, __value)
        }
      };
      
      {
        val __value = persistedQueryMisses
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(5, __value)
        }
      };
      if (cacheLatencyCount.nonEmpty) {
        val __localsize = cacheLatencyCountSerializedSize
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__localsize) + __localsize
      }
      if (rootErrorStats.isDefined) {
        val __value = rootErrorStats.get
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      
      {
        val __value = requestsWithErrorsCount
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(8, __value)
        }
      };
      if (publicCacheTtlCount.nonEmpty) {
        val __localsize = publicCacheTtlCountSerializedSize
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__localsize) + __localsize
      }
      if (privateCacheTtlCount.nonEmpty) {
        val __localsize = privateCacheTtlCountSerializedSize
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__localsize) + __localsize
      }
      
      {
        val __value = registeredOperationCount
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(11, __value)
        }
      };
      
      {
        val __value = forbiddenOperationCount
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(12, __value)
        }
      };
      __size += unknownFields.serializedSize
      __size
    }
    override def serializedSize: _root_.scala.Int = {
      var __size = __serializedSizeMemoized
      if (__size == 0) {
        __size = __computeSerializedSize() + 1
        __serializedSizeMemoized = __size
      }
      __size - 1
      
    }
    def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
      if (latencyCount.nonEmpty) {
        _output__.writeTag(1, 2)
        _output__.writeUInt32NoTag(latencyCountSerializedSize)
        latencyCount.foreach(_output__.writeInt64NoTag)
      };
      {
        val __v = requestCount
        if (__v != 0L) {
          _output__.writeUInt64(2, __v)
        }
      };
      {
        val __v = cacheHits
        if (__v != 0L) {
          _output__.writeUInt64(3, __v)
        }
      };
      {
        val __v = persistedQueryHits
        if (__v != 0L) {
          _output__.writeUInt64(4, __v)
        }
      };
      {
        val __v = persistedQueryMisses
        if (__v != 0L) {
          _output__.writeUInt64(5, __v)
        }
      };
      if (cacheLatencyCount.nonEmpty) {
        _output__.writeTag(6, 2)
        _output__.writeUInt32NoTag(cacheLatencyCountSerializedSize)
        cacheLatencyCount.foreach(_output__.writeInt64NoTag)
      };
      rootErrorStats.foreach { __v =>
        val __m = __v
        _output__.writeTag(7, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      {
        val __v = requestsWithErrorsCount
        if (__v != 0L) {
          _output__.writeUInt64(8, __v)
        }
      };
      if (publicCacheTtlCount.nonEmpty) {
        _output__.writeTag(9, 2)
        _output__.writeUInt32NoTag(publicCacheTtlCountSerializedSize)
        publicCacheTtlCount.foreach(_output__.writeInt64NoTag)
      };
      if (privateCacheTtlCount.nonEmpty) {
        _output__.writeTag(10, 2)
        _output__.writeUInt32NoTag(privateCacheTtlCountSerializedSize)
        privateCacheTtlCount.foreach(_output__.writeInt64NoTag)
      };
      {
        val __v = registeredOperationCount
        if (__v != 0L) {
          _output__.writeUInt64(11, __v)
        }
      };
      {
        val __v = forbiddenOperationCount
        if (__v != 0L) {
          _output__.writeUInt64(12, __v)
        }
      };
      unknownFields.writeTo(_output__)
    }
    def clearLatencyCount = copy(latencyCount = _root_.scala.Seq.empty)
    def addLatencyCount(__vs: _root_.scala.Long *): QueryLatencyStats = addAllLatencyCount(__vs)
    def addAllLatencyCount(__vs: Iterable[_root_.scala.Long]): QueryLatencyStats = copy(latencyCount = latencyCount ++ __vs)
    def withLatencyCount(__v: _root_.scala.Seq[_root_.scala.Long]): QueryLatencyStats = copy(latencyCount = __v)
    def withRequestCount(__v: _root_.scala.Long): QueryLatencyStats = copy(requestCount = __v)
    def withCacheHits(__v: _root_.scala.Long): QueryLatencyStats = copy(cacheHits = __v)
    def withPersistedQueryHits(__v: _root_.scala.Long): QueryLatencyStats = copy(persistedQueryHits = __v)
    def withPersistedQueryMisses(__v: _root_.scala.Long): QueryLatencyStats = copy(persistedQueryMisses = __v)
    def clearCacheLatencyCount = copy(cacheLatencyCount = _root_.scala.Seq.empty)
    def addCacheLatencyCount(__vs: _root_.scala.Long *): QueryLatencyStats = addAllCacheLatencyCount(__vs)
    def addAllCacheLatencyCount(__vs: Iterable[_root_.scala.Long]): QueryLatencyStats = copy(cacheLatencyCount = cacheLatencyCount ++ __vs)
    def withCacheLatencyCount(__v: _root_.scala.Seq[_root_.scala.Long]): QueryLatencyStats = copy(cacheLatencyCount = __v)
    def getRootErrorStats: mdg.engine.proto.reports.PathErrorStats = rootErrorStats.getOrElse(mdg.engine.proto.reports.PathErrorStats.defaultInstance)
    def clearRootErrorStats: QueryLatencyStats = copy(rootErrorStats = _root_.scala.None)
    def withRootErrorStats(__v: mdg.engine.proto.reports.PathErrorStats): QueryLatencyStats = copy(rootErrorStats = Option(__v))
    def withRequestsWithErrorsCount(__v: _root_.scala.Long): QueryLatencyStats = copy(requestsWithErrorsCount = __v)
    def clearPublicCacheTtlCount = copy(publicCacheTtlCount = _root_.scala.Seq.empty)
    def addPublicCacheTtlCount(__vs: _root_.scala.Long *): QueryLatencyStats = addAllPublicCacheTtlCount(__vs)
    def addAllPublicCacheTtlCount(__vs: Iterable[_root_.scala.Long]): QueryLatencyStats = copy(publicCacheTtlCount = publicCacheTtlCount ++ __vs)
    def withPublicCacheTtlCount(__v: _root_.scala.Seq[_root_.scala.Long]): QueryLatencyStats = copy(publicCacheTtlCount = __v)
    def clearPrivateCacheTtlCount = copy(privateCacheTtlCount = _root_.scala.Seq.empty)
    def addPrivateCacheTtlCount(__vs: _root_.scala.Long *): QueryLatencyStats = addAllPrivateCacheTtlCount(__vs)
    def addAllPrivateCacheTtlCount(__vs: Iterable[_root_.scala.Long]): QueryLatencyStats = copy(privateCacheTtlCount = privateCacheTtlCount ++ __vs)
    def withPrivateCacheTtlCount(__v: _root_.scala.Seq[_root_.scala.Long]): QueryLatencyStats = copy(privateCacheTtlCount = __v)
    def withRegisteredOperationCount(__v: _root_.scala.Long): QueryLatencyStats = copy(registeredOperationCount = __v)
    def withForbiddenOperationCount(__v: _root_.scala.Long): QueryLatencyStats = copy(forbiddenOperationCount = __v)
    def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
    def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
    def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
      (__fieldNumber: @_root_.scala.unchecked) match {
        case 1 => latencyCount
        case 2 => {
          val __t = requestCount
          if (__t != 0L) __t else null
        }
        case 3 => {
          val __t = cacheHits
          if (__t != 0L) __t else null
        }
        case 4 => {
          val __t = persistedQueryHits
          if (__t != 0L) __t else null
        }
        case 5 => {
          val __t = persistedQueryMisses
          if (__t != 0L) __t else null
        }
        case 6 => cacheLatencyCount
        case 7 => rootErrorStats.orNull
        case 8 => {
          val __t = requestsWithErrorsCount
          if (__t != 0L) __t else null
        }
        case 9 => publicCacheTtlCount
        case 10 => privateCacheTtlCount
        case 11 => {
          val __t = registeredOperationCount
          if (__t != 0L) __t else null
        }
        case 12 => {
          val __t = forbiddenOperationCount
          if (__t != 0L) __t else null
        }
      }
    }
    def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
      _root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
      (__field.number: @_root_.scala.unchecked) match {
        case 1 => _root_.scalapb.descriptors.PRepeated(latencyCount.iterator.map(_root_.scalapb.descriptors.PLong(_)).toVector)
        case 2 => _root_.scalapb.descriptors.PLong(requestCount)
        case 3 => _root_.scalapb.descriptors.PLong(cacheHits)
        case 4 => _root_.scalapb.descriptors.PLong(persistedQueryHits)
        case 5 => _root_.scalapb.descriptors.PLong(persistedQueryMisses)
        case 6 => _root_.scalapb.descriptors.PRepeated(cacheLatencyCount.iterator.map(_root_.scalapb.descriptors.PLong(_)).toVector)
        case 7 => rootErrorStats.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 8 => _root_.scalapb.descriptors.PLong(requestsWithErrorsCount)
        case 9 => _root_.scalapb.descriptors.PRepeated(publicCacheTtlCount.iterator.map(_root_.scalapb.descriptors.PLong(_)).toVector)
        case 10 => _root_.scalapb.descriptors.PRepeated(privateCacheTtlCount.iterator.map(_root_.scalapb.descriptors.PLong(_)).toVector)
        case 11 => _root_.scalapb.descriptors.PLong(registeredOperationCount)
        case 12 => _root_.scalapb.descriptors.PLong(forbiddenOperationCount)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: mdg.engine.proto.reports.QueryLatencyStats.type = mdg.engine.proto.reports.QueryLatencyStats
    // @@protoc_insertion_point(GeneratedMessage[mdg.engine.proto.QueryLatencyStats])
}

object QueryLatencyStats extends scalapb.GeneratedMessageCompanion[mdg.engine.proto.reports.QueryLatencyStats] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[mdg.engine.proto.reports.QueryLatencyStats] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): mdg.engine.proto.reports.QueryLatencyStats = {
    val __latencyCount: _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long] = new _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long]
    var __requestCount: _root_.scala.Long = 0L
    var __cacheHits: _root_.scala.Long = 0L
    var __persistedQueryHits: _root_.scala.Long = 0L
    var __persistedQueryMisses: _root_.scala.Long = 0L
    val __cacheLatencyCount: _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long] = new _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long]
    var __rootErrorStats: _root_.scala.Option[mdg.engine.proto.reports.PathErrorStats] = _root_.scala.None
    var __requestsWithErrorsCount: _root_.scala.Long = 0L
    val __publicCacheTtlCount: _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long] = new _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long]
    val __privateCacheTtlCount: _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long] = new _root_.scala.collection.immutable.VectorBuilder[_root_.scala.Long]
    var __registeredOperationCount: _root_.scala.Long = 0L
    var __forbiddenOperationCount: _root_.scala.Long = 0L
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 8 =>
          __latencyCount += _input__.readInt64()
        case 10 => {
          val length = _input__.readRawVarint32()
          val oldLimit = _input__.pushLimit(length)
          while (_input__.getBytesUntilLimit > 0) {
            __latencyCount += _input__.readInt64()
          }
          _input__.popLimit(oldLimit)
        }
        case 16 =>
          __requestCount = _input__.readUInt64()
        case 24 =>
          __cacheHits = _input__.readUInt64()
        case 32 =>
          __persistedQueryHits = _input__.readUInt64()
        case 40 =>
          __persistedQueryMisses = _input__.readUInt64()
        case 48 =>
          __cacheLatencyCount += _input__.readInt64()
        case 50 => {
          val length = _input__.readRawVarint32()
          val oldLimit = _input__.pushLimit(length)
          while (_input__.getBytesUntilLimit > 0) {
            __cacheLatencyCount += _input__.readInt64()
          }
          _input__.popLimit(oldLimit)
        }
        case 58 =>
          __rootErrorStats = _root_.scala.Option(__rootErrorStats.fold(_root_.scalapb.LiteParser.readMessage[mdg.engine.proto.reports.PathErrorStats](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case 64 =>
          __requestsWithErrorsCount = _input__.readUInt64()
        case 72 =>
          __publicCacheTtlCount += _input__.readInt64()
        case 74 => {
          val length = _input__.readRawVarint32()
          val oldLimit = _input__.pushLimit(length)
          while (_input__.getBytesUntilLimit > 0) {
            __publicCacheTtlCount += _input__.readInt64()
          }
          _input__.popLimit(oldLimit)
        }
        case 80 =>
          __privateCacheTtlCount += _input__.readInt64()
        case 82 => {
          val length = _input__.readRawVarint32()
          val oldLimit = _input__.pushLimit(length)
          while (_input__.getBytesUntilLimit > 0) {
            __privateCacheTtlCount += _input__.readInt64()
          }
          _input__.popLimit(oldLimit)
        }
        case 88 =>
          __registeredOperationCount = _input__.readUInt64()
        case 96 =>
          __forbiddenOperationCount = _input__.readUInt64()
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    mdg.engine.proto.reports.QueryLatencyStats(
        latencyCount = __latencyCount.result(),
        requestCount = __requestCount,
        cacheHits = __cacheHits,
        persistedQueryHits = __persistedQueryHits,
        persistedQueryMisses = __persistedQueryMisses,
        cacheLatencyCount = __cacheLatencyCount.result(),
        rootErrorStats = __rootErrorStats,
        requestsWithErrorsCount = __requestsWithErrorsCount,
        publicCacheTtlCount = __publicCacheTtlCount.result(),
        privateCacheTtlCount = __privateCacheTtlCount.result(),
        registeredOperationCount = __registeredOperationCount,
        forbiddenOperationCount = __forbiddenOperationCount,
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[mdg.engine.proto.reports.QueryLatencyStats] = _root_.scalapb.descriptors.Reads{
    case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
      _root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
      mdg.engine.proto.reports.QueryLatencyStats(
        latencyCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Seq[_root_.scala.Long]]).getOrElse(_root_.scala.Seq.empty),
        requestCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        cacheHits = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        persistedQueryHits = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        persistedQueryMisses = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        cacheLatencyCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Seq[_root_.scala.Long]]).getOrElse(_root_.scala.Seq.empty),
        rootErrorStats = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).flatMap(_.as[_root_.scala.Option[mdg.engine.proto.reports.PathErrorStats]]),
        requestsWithErrorsCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        publicCacheTtlCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Seq[_root_.scala.Long]]).getOrElse(_root_.scala.Seq.empty),
        privateCacheTtlCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Seq[_root_.scala.Long]]).getOrElse(_root_.scala.Seq.empty),
        registeredOperationCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(11).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        forbiddenOperationCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(12).get).map(_.as[_root_.scala.Long]).getOrElse(0L)
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ReportsProto.javaDescriptor.getMessageTypes().get(3)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ReportsProto.scalaDescriptor.messages(3)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 7 => __out = mdg.engine.proto.reports.PathErrorStats
    }
    __out
  }
  lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
  def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
  lazy val defaultInstance = mdg.engine.proto.reports.QueryLatencyStats(
    latencyCount = _root_.scala.Seq.empty,
    requestCount = 0L,
    cacheHits = 0L,
    persistedQueryHits = 0L,
    persistedQueryMisses = 0L,
    cacheLatencyCount = _root_.scala.Seq.empty,
    rootErrorStats = _root_.scala.None,
    requestsWithErrorsCount = 0L,
    publicCacheTtlCount = _root_.scala.Seq.empty,
    privateCacheTtlCount = _root_.scala.Seq.empty,
    registeredOperationCount = 0L,
    forbiddenOperationCount = 0L
  )
  implicit class QueryLatencyStatsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, mdg.engine.proto.reports.QueryLatencyStats]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, mdg.engine.proto.reports.QueryLatencyStats](_l) {
    def latencyCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Long]] = field(_.latencyCount)((c_, f_) => c_.copy(latencyCount = f_))
    def requestCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.requestCount)((c_, f_) => c_.copy(requestCount = f_))
    def cacheHits: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.cacheHits)((c_, f_) => c_.copy(cacheHits = f_))
    def persistedQueryHits: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.persistedQueryHits)((c_, f_) => c_.copy(persistedQueryHits = f_))
    def persistedQueryMisses: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.persistedQueryMisses)((c_, f_) => c_.copy(persistedQueryMisses = f_))
    def cacheLatencyCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Long]] = field(_.cacheLatencyCount)((c_, f_) => c_.copy(cacheLatencyCount = f_))
    def rootErrorStats: _root_.scalapb.lenses.Lens[UpperPB, mdg.engine.proto.reports.PathErrorStats] = field(_.getRootErrorStats)((c_, f_) => c_.copy(rootErrorStats = _root_.scala.Option(f_)))
    def optionalRootErrorStats: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[mdg.engine.proto.reports.PathErrorStats]] = field(_.rootErrorStats)((c_, f_) => c_.copy(rootErrorStats = f_))
    def requestsWithErrorsCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.requestsWithErrorsCount)((c_, f_) => c_.copy(requestsWithErrorsCount = f_))
    def publicCacheTtlCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Long]] = field(_.publicCacheTtlCount)((c_, f_) => c_.copy(publicCacheTtlCount = f_))
    def privateCacheTtlCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Long]] = field(_.privateCacheTtlCount)((c_, f_) => c_.copy(privateCacheTtlCount = f_))
    def registeredOperationCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.registeredOperationCount)((c_, f_) => c_.copy(registeredOperationCount = f_))
    def forbiddenOperationCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.forbiddenOperationCount)((c_, f_) => c_.copy(forbiddenOperationCount = f_))
  }
  final val LATENCY_COUNT_FIELD_NUMBER = 1
  final val REQUEST_COUNT_FIELD_NUMBER = 2
  final val CACHE_HITS_FIELD_NUMBER = 3
  final val PERSISTED_QUERY_HITS_FIELD_NUMBER = 4
  final val PERSISTED_QUERY_MISSES_FIELD_NUMBER = 5
  final val CACHE_LATENCY_COUNT_FIELD_NUMBER = 6
  final val ROOT_ERROR_STATS_FIELD_NUMBER = 7
  final val REQUESTS_WITH_ERRORS_COUNT_FIELD_NUMBER = 8
  final val PUBLIC_CACHE_TTL_COUNT_FIELD_NUMBER = 9
  final val PRIVATE_CACHE_TTL_COUNT_FIELD_NUMBER = 10
  final val REGISTERED_OPERATION_COUNT_FIELD_NUMBER = 11
  final val FORBIDDEN_OPERATION_COUNT_FIELD_NUMBER = 12
  def of(
    latencyCount: _root_.scala.Seq[_root_.scala.Long],
    requestCount: _root_.scala.Long,
    cacheHits: _root_.scala.Long,
    persistedQueryHits: _root_.scala.Long,
    persistedQueryMisses: _root_.scala.Long,
    cacheLatencyCount: _root_.scala.Seq[_root_.scala.Long],
    rootErrorStats: _root_.scala.Option[mdg.engine.proto.reports.PathErrorStats],
    requestsWithErrorsCount: _root_.scala.Long,
    publicCacheTtlCount: _root_.scala.Seq[_root_.scala.Long],
    privateCacheTtlCount: _root_.scala.Seq[_root_.scala.Long],
    registeredOperationCount: _root_.scala.Long,
    forbiddenOperationCount: _root_.scala.Long
  ): _root_.mdg.engine.proto.reports.QueryLatencyStats = _root_.mdg.engine.proto.reports.QueryLatencyStats(
    latencyCount,
    requestCount,
    cacheHits,
    persistedQueryHits,
    persistedQueryMisses,
    cacheLatencyCount,
    rootErrorStats,
    requestsWithErrorsCount,
    publicCacheTtlCount,
    privateCacheTtlCount,
    registeredOperationCount,
    forbiddenOperationCount
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[mdg.engine.proto.QueryLatencyStats])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy