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

org.plasmalabs.proto.node.EpochData.scala Maven / Gradle / Ivy

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

package org.plasmalabs.proto.node

/** Epoch data Contains, The "current" epoch is updated as node blocks are adopted over time
  *
  * @param epoch
  *   epoch
  * @param eon
  *   eon
  * @param era
  *   era
  * @param isComplete
  *   Flag indicating if the epoch has been completed
  * @param startHeight
  *   The height of the first block in the epoch
  * @param endHeight
  *   The height of the last/latest block in the epoch
  * @param startSlot
  *   The first slot of the epoch
  * @param endSlot
  *   The final slot of the epoch
  * @param startTimestamp
  *   The timestamp of the epoch start
  * @param endTimestamp
  *   The timestamp of the epoch end
  * @param transactionCount
  *   The total number of transactions in this epoch
  * @param totalTransactionReward
  *   The sum of all transaction rewards in the epoch
  * @param activeStake
  *   The sum of all stake that is registered for the epoch
  * @param inactiveStake
  *   The sum of all stake that is not registered for the epoch
  * @param dataBytes
  *   The sum total number of bytes of headers and transactions for the epoch
  */
@SerialVersionUID(0L)
final case class EpochData(
    epoch: _root_.scala.Long = 0L,
    eon: _root_.scala.Long = 0L,
    era: _root_.scala.Long = 0L,
    isComplete: _root_.scala.Boolean = false,
    startHeight: _root_.scala.Long = 0L,
    endHeight: _root_.scala.Long = 0L,
    startSlot: _root_.scala.Long = 0L,
    endSlot: _root_.scala.Long = 0L,
    startTimestamp: _root_.scala.Long = 0L,
    endTimestamp: _root_.scala.Long = 0L,
    transactionCount: _root_.scala.Long = 0L,
    totalTransactionReward: quivr.models.Int128,
    activeStake: quivr.models.Int128,
    inactiveStake: quivr.models.Int128,
    dataBytes: _root_.scala.Long = 0L,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EpochData] {
    @transient
    private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
    private[this] def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      
      {
        val __value = epoch
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(1, __value)
        }
      };
      
      {
        val __value = eon
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(2, __value)
        }
      };
      
      {
        val __value = era
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(3, __value)
        }
      };
      
      {
        val __value = isComplete
        if (__value != false) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(4, __value)
        }
      };
      
      {
        val __value = startHeight
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(5, __value)
        }
      };
      
      {
        val __value = endHeight
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(6, __value)
        }
      };
      
      {
        val __value = startSlot
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(7, __value)
        }
      };
      
      {
        val __value = endSlot
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(8, __value)
        }
      };
      
      {
        val __value = startTimestamp
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(9, __value)
        }
      };
      
      {
        val __value = endTimestamp
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(10, __value)
        }
      };
      
      {
        val __value = transactionCount
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(11, __value)
        }
      };
      
      {
        val __value = totalTransactionReward
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      
      {
        val __value = activeStake
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      
      {
        val __value = inactiveStake
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      
      {
        val __value = dataBytes
        if (__value != 0L) {
          __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(15, __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 = {
      {
        val __v = epoch
        if (__v != 0L) {
          _output__.writeUInt64(1, __v)
        }
      };
      {
        val __v = eon
        if (__v != 0L) {
          _output__.writeUInt64(2, __v)
        }
      };
      {
        val __v = era
        if (__v != 0L) {
          _output__.writeUInt64(3, __v)
        }
      };
      {
        val __v = isComplete
        if (__v != false) {
          _output__.writeBool(4, __v)
        }
      };
      {
        val __v = startHeight
        if (__v != 0L) {
          _output__.writeUInt64(5, __v)
        }
      };
      {
        val __v = endHeight
        if (__v != 0L) {
          _output__.writeUInt64(6, __v)
        }
      };
      {
        val __v = startSlot
        if (__v != 0L) {
          _output__.writeUInt64(7, __v)
        }
      };
      {
        val __v = endSlot
        if (__v != 0L) {
          _output__.writeUInt64(8, __v)
        }
      };
      {
        val __v = startTimestamp
        if (__v != 0L) {
          _output__.writeUInt64(9, __v)
        }
      };
      {
        val __v = endTimestamp
        if (__v != 0L) {
          _output__.writeUInt64(10, __v)
        }
      };
      {
        val __v = transactionCount
        if (__v != 0L) {
          _output__.writeUInt64(11, __v)
        }
      };
      
      {
        val __v = totalTransactionReward
        _output__.writeTag(12, 2)
        _output__.writeUInt32NoTag(__v.serializedSize)
        __v.writeTo(_output__)
      };
      
      {
        val __v = activeStake
        _output__.writeTag(13, 2)
        _output__.writeUInt32NoTag(__v.serializedSize)
        __v.writeTo(_output__)
      };
      
      {
        val __v = inactiveStake
        _output__.writeTag(14, 2)
        _output__.writeUInt32NoTag(__v.serializedSize)
        __v.writeTo(_output__)
      };
      {
        val __v = dataBytes
        if (__v != 0L) {
          _output__.writeUInt64(15, __v)
        }
      };
      unknownFields.writeTo(_output__)
    }
    def withEpoch(__v: _root_.scala.Long): EpochData = copy(epoch = __v)
    def withEon(__v: _root_.scala.Long): EpochData = copy(eon = __v)
    def withEra(__v: _root_.scala.Long): EpochData = copy(era = __v)
    def withIsComplete(__v: _root_.scala.Boolean): EpochData = copy(isComplete = __v)
    def withStartHeight(__v: _root_.scala.Long): EpochData = copy(startHeight = __v)
    def withEndHeight(__v: _root_.scala.Long): EpochData = copy(endHeight = __v)
    def withStartSlot(__v: _root_.scala.Long): EpochData = copy(startSlot = __v)
    def withEndSlot(__v: _root_.scala.Long): EpochData = copy(endSlot = __v)
    def withStartTimestamp(__v: _root_.scala.Long): EpochData = copy(startTimestamp = __v)
    def withEndTimestamp(__v: _root_.scala.Long): EpochData = copy(endTimestamp = __v)
    def withTransactionCount(__v: _root_.scala.Long): EpochData = copy(transactionCount = __v)
    def withTotalTransactionReward(__v: quivr.models.Int128): EpochData = copy(totalTransactionReward = __v)
    def withActiveStake(__v: quivr.models.Int128): EpochData = copy(activeStake = __v)
    def withInactiveStake(__v: quivr.models.Int128): EpochData = copy(inactiveStake = __v)
    def withDataBytes(__v: _root_.scala.Long): EpochData = copy(dataBytes = __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 => {
          val __t = epoch
          if (__t != 0L) __t else null
        }
        case 2 => {
          val __t = eon
          if (__t != 0L) __t else null
        }
        case 3 => {
          val __t = era
          if (__t != 0L) __t else null
        }
        case 4 => {
          val __t = isComplete
          if (__t != false) __t else null
        }
        case 5 => {
          val __t = startHeight
          if (__t != 0L) __t else null
        }
        case 6 => {
          val __t = endHeight
          if (__t != 0L) __t else null
        }
        case 7 => {
          val __t = startSlot
          if (__t != 0L) __t else null
        }
        case 8 => {
          val __t = endSlot
          if (__t != 0L) __t else null
        }
        case 9 => {
          val __t = startTimestamp
          if (__t != 0L) __t else null
        }
        case 10 => {
          val __t = endTimestamp
          if (__t != 0L) __t else null
        }
        case 11 => {
          val __t = transactionCount
          if (__t != 0L) __t else null
        }
        case 12 => totalTransactionReward
        case 13 => activeStake
        case 14 => inactiveStake
        case 15 => {
          val __t = dataBytes
          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.PLong(epoch)
        case 2 => _root_.scalapb.descriptors.PLong(eon)
        case 3 => _root_.scalapb.descriptors.PLong(era)
        case 4 => _root_.scalapb.descriptors.PBoolean(isComplete)
        case 5 => _root_.scalapb.descriptors.PLong(startHeight)
        case 6 => _root_.scalapb.descriptors.PLong(endHeight)
        case 7 => _root_.scalapb.descriptors.PLong(startSlot)
        case 8 => _root_.scalapb.descriptors.PLong(endSlot)
        case 9 => _root_.scalapb.descriptors.PLong(startTimestamp)
        case 10 => _root_.scalapb.descriptors.PLong(endTimestamp)
        case 11 => _root_.scalapb.descriptors.PLong(transactionCount)
        case 12 => totalTransactionReward.toPMessage
        case 13 => activeStake.toPMessage
        case 14 => inactiveStake.toPMessage
        case 15 => _root_.scalapb.descriptors.PLong(dataBytes)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: org.plasmalabs.proto.node.EpochData.type = org.plasmalabs.proto.node.EpochData
    _root_.scalapb.validate.Validator.assertValid(this)(org.plasmalabs.proto.node.EpochDataValidator)
    // @@protoc_insertion_point(GeneratedMessage[org.plasmalabs.proto.node.EpochData])
}

object EpochData extends scalapb.GeneratedMessageCompanion[org.plasmalabs.proto.node.EpochData] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[org.plasmalabs.proto.node.EpochData] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): org.plasmalabs.proto.node.EpochData = {
    var __requiredFields0: _root_.scala.Long = 0x7L
    var __epoch: _root_.scala.Long = 0L
    var __eon: _root_.scala.Long = 0L
    var __era: _root_.scala.Long = 0L
    var __isComplete: _root_.scala.Boolean = false
    var __startHeight: _root_.scala.Long = 0L
    var __endHeight: _root_.scala.Long = 0L
    var __startSlot: _root_.scala.Long = 0L
    var __endSlot: _root_.scala.Long = 0L
    var __startTimestamp: _root_.scala.Long = 0L
    var __endTimestamp: _root_.scala.Long = 0L
    var __transactionCount: _root_.scala.Long = 0L
    var __totalTransactionReward: _root_.scala.Option[quivr.models.Int128] = _root_.scala.None
    var __activeStake: _root_.scala.Option[quivr.models.Int128] = _root_.scala.None
    var __inactiveStake: _root_.scala.Option[quivr.models.Int128] = _root_.scala.None
    var __dataBytes: _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 =>
          __epoch = _input__.readUInt64()
        case 16 =>
          __eon = _input__.readUInt64()
        case 24 =>
          __era = _input__.readUInt64()
        case 32 =>
          __isComplete = _input__.readBool()
        case 40 =>
          __startHeight = _input__.readUInt64()
        case 48 =>
          __endHeight = _input__.readUInt64()
        case 56 =>
          __startSlot = _input__.readUInt64()
        case 64 =>
          __endSlot = _input__.readUInt64()
        case 72 =>
          __startTimestamp = _input__.readUInt64()
        case 80 =>
          __endTimestamp = _input__.readUInt64()
        case 88 =>
          __transactionCount = _input__.readUInt64()
        case 98 =>
          __totalTransactionReward = _root_.scala.Some(__totalTransactionReward.fold(_root_.scalapb.LiteParser.readMessage[quivr.models.Int128](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
          __requiredFields0 &= 0xfffffffffffffffeL
        case 106 =>
          __activeStake = _root_.scala.Some(__activeStake.fold(_root_.scalapb.LiteParser.readMessage[quivr.models.Int128](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
          __requiredFields0 &= 0xfffffffffffffffdL
        case 114 =>
          __inactiveStake = _root_.scala.Some(__inactiveStake.fold(_root_.scalapb.LiteParser.readMessage[quivr.models.Int128](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
          __requiredFields0 &= 0xfffffffffffffffbL
        case 120 =>
          __dataBytes = _input__.readUInt64()
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    if (__requiredFields0 != 0L) { throw new _root_.com.google.protobuf.InvalidProtocolBufferException("Message missing required fields.") } 
    org.plasmalabs.proto.node.EpochData(
        epoch = __epoch,
        eon = __eon,
        era = __era,
        isComplete = __isComplete,
        startHeight = __startHeight,
        endHeight = __endHeight,
        startSlot = __startSlot,
        endSlot = __endSlot,
        startTimestamp = __startTimestamp,
        endTimestamp = __endTimestamp,
        transactionCount = __transactionCount,
        totalTransactionReward = __totalTransactionReward.getOrElse(quivr.models.Int128.defaultInstance),
        activeStake = __activeStake.getOrElse(quivr.models.Int128.defaultInstance),
        inactiveStake = __inactiveStake.getOrElse(quivr.models.Int128.defaultInstance),
        dataBytes = __dataBytes,
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[org.plasmalabs.proto.node.EpochData] = _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.")
      org.plasmalabs.proto.node.EpochData(
        epoch = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        eon = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        era = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        isComplete = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Boolean]).getOrElse(false),
        startHeight = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        endHeight = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        startSlot = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        endSlot = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        startTimestamp = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        endTimestamp = __fieldsMap.get(scalaDescriptor.findFieldByNumber(10).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        transactionCount = __fieldsMap.get(scalaDescriptor.findFieldByNumber(11).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
        totalTransactionReward = __fieldsMap.get(scalaDescriptor.findFieldByNumber(12).get).get.as[quivr.models.Int128],
        activeStake = __fieldsMap.get(scalaDescriptor.findFieldByNumber(13).get).get.as[quivr.models.Int128],
        inactiveStake = __fieldsMap.get(scalaDescriptor.findFieldByNumber(14).get).get.as[quivr.models.Int128],
        dataBytes = __fieldsMap.get(scalaDescriptor.findFieldByNumber(15).get).map(_.as[_root_.scala.Long]).getOrElse(0L)
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = NodeEpochDataProto.javaDescriptor.getMessageTypes().get(0)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = NodeEpochDataProto.scalaDescriptor.messages(0)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
    (__number: @_root_.scala.unchecked) match {
      case 12 => __out = quivr.models.Int128
      case 13 => __out = quivr.models.Int128
      case 14 => __out = quivr.models.Int128
    }
    __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 = org.plasmalabs.proto.node.EpochData(
    epoch = 0L,
    eon = 0L,
    era = 0L,
    isComplete = false,
    startHeight = 0L,
    endHeight = 0L,
    startSlot = 0L,
    endSlot = 0L,
    startTimestamp = 0L,
    endTimestamp = 0L,
    transactionCount = 0L,
    totalTransactionReward = quivr.models.Int128.defaultInstance,
    activeStake = quivr.models.Int128.defaultInstance,
    inactiveStake = quivr.models.Int128.defaultInstance,
    dataBytes = 0L
  )
  implicit class EpochDataLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.proto.node.EpochData]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, org.plasmalabs.proto.node.EpochData](_l) {
    def epoch: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.epoch)((c_, f_) => c_.copy(epoch = f_))
    def eon: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.eon)((c_, f_) => c_.copy(eon = f_))
    def era: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.era)((c_, f_) => c_.copy(era = f_))
    def isComplete: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.isComplete)((c_, f_) => c_.copy(isComplete = f_))
    def startHeight: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.startHeight)((c_, f_) => c_.copy(startHeight = f_))
    def endHeight: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.endHeight)((c_, f_) => c_.copy(endHeight = f_))
    def startSlot: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.startSlot)((c_, f_) => c_.copy(startSlot = f_))
    def endSlot: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.endSlot)((c_, f_) => c_.copy(endSlot = f_))
    def startTimestamp: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.startTimestamp)((c_, f_) => c_.copy(startTimestamp = f_))
    def endTimestamp: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.endTimestamp)((c_, f_) => c_.copy(endTimestamp = f_))
    def transactionCount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.transactionCount)((c_, f_) => c_.copy(transactionCount = f_))
    def totalTransactionReward: _root_.scalapb.lenses.Lens[UpperPB, quivr.models.Int128] = field(_.totalTransactionReward)((c_, f_) => c_.copy(totalTransactionReward = f_))
    def activeStake: _root_.scalapb.lenses.Lens[UpperPB, quivr.models.Int128] = field(_.activeStake)((c_, f_) => c_.copy(activeStake = f_))
    def inactiveStake: _root_.scalapb.lenses.Lens[UpperPB, quivr.models.Int128] = field(_.inactiveStake)((c_, f_) => c_.copy(inactiveStake = f_))
    def dataBytes: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.dataBytes)((c_, f_) => c_.copy(dataBytes = f_))
  }
  final val EPOCH_FIELD_NUMBER = 1
  final val EON_FIELD_NUMBER = 2
  final val ERA_FIELD_NUMBER = 3
  final val ISCOMPLETE_FIELD_NUMBER = 4
  final val STARTHEIGHT_FIELD_NUMBER = 5
  final val ENDHEIGHT_FIELD_NUMBER = 6
  final val STARTSLOT_FIELD_NUMBER = 7
  final val ENDSLOT_FIELD_NUMBER = 8
  final val STARTTIMESTAMP_FIELD_NUMBER = 9
  final val ENDTIMESTAMP_FIELD_NUMBER = 10
  final val TRANSACTIONCOUNT_FIELD_NUMBER = 11
  final val TOTALTRANSACTIONREWARD_FIELD_NUMBER = 12
  final val ACTIVESTAKE_FIELD_NUMBER = 13
  final val INACTIVESTAKE_FIELD_NUMBER = 14
  final val DATABYTES_FIELD_NUMBER = 15
  def of(
    epoch: _root_.scala.Long,
    eon: _root_.scala.Long,
    era: _root_.scala.Long,
    isComplete: _root_.scala.Boolean,
    startHeight: _root_.scala.Long,
    endHeight: _root_.scala.Long,
    startSlot: _root_.scala.Long,
    endSlot: _root_.scala.Long,
    startTimestamp: _root_.scala.Long,
    endTimestamp: _root_.scala.Long,
    transactionCount: _root_.scala.Long,
    totalTransactionReward: quivr.models.Int128,
    activeStake: quivr.models.Int128,
    inactiveStake: quivr.models.Int128,
    dataBytes: _root_.scala.Long
  ): _root_.org.plasmalabs.proto.node.EpochData = _root_.org.plasmalabs.proto.node.EpochData(
    epoch,
    eon,
    era,
    isComplete,
    startHeight,
    endHeight,
    startSlot,
    endSlot,
    startTimestamp,
    endTimestamp,
    transactionCount,
    totalTransactionReward,
    activeStake,
    inactiveStake,
    dataBytes
  )
  implicit def validator: scalapb.validate.Validator[org.plasmalabs.proto.node.EpochData] = org.plasmalabs.proto.node.EpochDataValidator
  // @@protoc_insertion_point(GeneratedMessageCompanion[org.plasmalabs.proto.node.EpochData])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy