org.plasmalabs.indexer.services.AssetLabel.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.indexer.services
/** An identifier for a TAM2 asset type
*/
@SerialVersionUID(0L)
final case class AssetLabel(
labelType: org.plasmalabs.indexer.services.LabelType = org.plasmalabs.indexer.services.LabelType.EMPTY,
label: org.plasmalabs.indexer.services.AssetLabel.Label = org.plasmalabs.indexer.services.AssetLabel.Label.Empty,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[AssetLabel] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = labelType.value
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(1, __value)
}
};
if (label.empty.isDefined) {
val __value = label.empty.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (label.v1Label.isDefined) {
val __value = label.v1Label.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (label.tam2Label.isDefined) {
val __value = label.tam2Label.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
__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 = labelType.value
if (__v != 0) {
_output__.writeEnum(1, __v)
}
};
label.empty.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
label.v1Label.foreach { __v =>
val __m = __v
_output__.writeTag(3, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
label.tam2Label.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withLabelType(__v: org.plasmalabs.indexer.services.LabelType): AssetLabel = copy(labelType = __v)
def get_Empty: org.plasmalabs.indexer.services.AssetLabel.Empty = label.empty.getOrElse(org.plasmalabs.indexer.services.AssetLabel.Empty.defaultInstance)
def with_Empty(__v: org.plasmalabs.indexer.services.AssetLabel.Empty): AssetLabel = copy(label = org.plasmalabs.indexer.services.AssetLabel.Label._Empty(__v))
def getV1Label: org.plasmalabs.indexer.services.AssetLabel.V1Label = label.v1Label.getOrElse(org.plasmalabs.indexer.services.AssetLabel.V1Label.defaultInstance)
def withV1Label(__v: org.plasmalabs.indexer.services.AssetLabel.V1Label): AssetLabel = copy(label = org.plasmalabs.indexer.services.AssetLabel.Label.V1Label(__v))
def getTam2Label: org.plasmalabs.indexer.services.AssetLabel.Tam2Label = label.tam2Label.getOrElse(org.plasmalabs.indexer.services.AssetLabel.Tam2Label.defaultInstance)
def withTam2Label(__v: org.plasmalabs.indexer.services.AssetLabel.Tam2Label): AssetLabel = copy(label = org.plasmalabs.indexer.services.AssetLabel.Label.Tam2Label(__v))
def clearLabel: AssetLabel = copy(label = org.plasmalabs.indexer.services.AssetLabel.Label.Empty)
def withLabel(__v: org.plasmalabs.indexer.services.AssetLabel.Label): AssetLabel = copy(label = __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 = labelType.javaValueDescriptor
if (__t.getNumber() != 0) __t else null
}
case 2 => label.empty.orNull
case 3 => label.v1Label.orNull
case 4 => label.tam2Label.orNull
}
}
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.PEnum(labelType.scalaValueDescriptor)
case 2 => label.empty.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 3 => label.v1Label.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 4 => label.tam2Label.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: org.plasmalabs.indexer.services.AssetLabel.type = org.plasmalabs.indexer.services.AssetLabel
_root_.scalapb.validate.Validator.assertValid(this)(org.plasmalabs.indexer.services.AssetLabelValidator)
// @@protoc_insertion_point(GeneratedMessage[org.plasmalabs.indexer.services.AssetLabel])
}
object AssetLabel extends scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): org.plasmalabs.indexer.services.AssetLabel = {
var __labelType: org.plasmalabs.indexer.services.LabelType = org.plasmalabs.indexer.services.LabelType.EMPTY
var __label: org.plasmalabs.indexer.services.AssetLabel.Label = org.plasmalabs.indexer.services.AssetLabel.Label.Empty
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 8 =>
__labelType = org.plasmalabs.indexer.services.LabelType.fromValue(_input__.readEnum())
case 18 =>
__label = org.plasmalabs.indexer.services.AssetLabel.Label._Empty(__label.empty.fold(_root_.scalapb.LiteParser.readMessage[org.plasmalabs.indexer.services.AssetLabel.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 26 =>
__label = org.plasmalabs.indexer.services.AssetLabel.Label.V1Label(__label.v1Label.fold(_root_.scalapb.LiteParser.readMessage[org.plasmalabs.indexer.services.AssetLabel.V1Label](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 34 =>
__label = org.plasmalabs.indexer.services.AssetLabel.Label.Tam2Label(__label.tam2Label.fold(_root_.scalapb.LiteParser.readMessage[org.plasmalabs.indexer.services.AssetLabel.Tam2Label](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
org.plasmalabs.indexer.services.AssetLabel(
labelType = __labelType,
label = __label,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[org.plasmalabs.indexer.services.AssetLabel] = _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.indexer.services.AssetLabel(
labelType = org.plasmalabs.indexer.services.LabelType.fromValue(__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scalapb.descriptors.EnumValueDescriptor]).getOrElse(org.plasmalabs.indexer.services.LabelType.EMPTY.scalaValueDescriptor).number),
label = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.Empty]]).map(org.plasmalabs.indexer.services.AssetLabel.Label._Empty(_))
.orElse[org.plasmalabs.indexer.services.AssetLabel.Label](__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.V1Label]]).map(org.plasmalabs.indexer.services.AssetLabel.Label.V1Label(_)))
.orElse[org.plasmalabs.indexer.services.AssetLabel.Label](__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.Tam2Label]]).map(org.plasmalabs.indexer.services.AssetLabel.Label.Tam2Label(_)))
.getOrElse(org.plasmalabs.indexer.services.AssetLabel.Label.Empty)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = IndexerModelsProto.javaDescriptor.getMessageTypes().get(3)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = IndexerModelsProto.scalaDescriptor.messages(3)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 2 => __out = org.plasmalabs.indexer.services.AssetLabel.Empty
case 3 => __out = org.plasmalabs.indexer.services.AssetLabel.V1Label
case 4 => __out = org.plasmalabs.indexer.services.AssetLabel.Tam2Label
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.org.plasmalabs.indexer.services.AssetLabel.Empty,
_root_.org.plasmalabs.indexer.services.AssetLabel.V1Label,
_root_.org.plasmalabs.indexer.services.AssetLabel.Tam2Label
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => org.plasmalabs.indexer.services.LabelType
}
}
lazy val defaultInstance = org.plasmalabs.indexer.services.AssetLabel(
labelType = org.plasmalabs.indexer.services.LabelType.EMPTY,
label = org.plasmalabs.indexer.services.AssetLabel.Label.Empty
)
sealed trait Label extends _root_.scalapb.GeneratedOneof {
def isEmpty: _root_.scala.Boolean = false
def isDefined: _root_.scala.Boolean = true
def is_Empty: _root_.scala.Boolean = false
def isV1Label: _root_.scala.Boolean = false
def isTam2Label: _root_.scala.Boolean = false
def empty: _root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.Empty] = _root_.scala.None
def v1Label: _root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.V1Label] = _root_.scala.None
def tam2Label: _root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.Tam2Label] = _root_.scala.None
}
object Label {
@SerialVersionUID(0L)
case object Empty extends org.plasmalabs.indexer.services.AssetLabel.Label {
type ValueType = _root_.scala.Nothing
override def isEmpty: _root_.scala.Boolean = true
override def isDefined: _root_.scala.Boolean = false
override def number: _root_.scala.Int = 0
override def value: _root_.scala.Nothing = throw new java.util.NoSuchElementException("Empty.value")
}
@SerialVersionUID(0L)
final case class _Empty(value: org.plasmalabs.indexer.services.AssetLabel.Empty) extends org.plasmalabs.indexer.services.AssetLabel.Label {
type ValueType = org.plasmalabs.indexer.services.AssetLabel.Empty
override def is_Empty: _root_.scala.Boolean = true
override def empty: _root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.Empty] = Some(value)
override def number: _root_.scala.Int = 2
}
@SerialVersionUID(0L)
final case class V1Label(value: org.plasmalabs.indexer.services.AssetLabel.V1Label) extends org.plasmalabs.indexer.services.AssetLabel.Label {
type ValueType = org.plasmalabs.indexer.services.AssetLabel.V1Label
override def isV1Label: _root_.scala.Boolean = true
override def v1Label: _root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.V1Label] = Some(value)
override def number: _root_.scala.Int = 3
}
@SerialVersionUID(0L)
final case class Tam2Label(value: org.plasmalabs.indexer.services.AssetLabel.Tam2Label) extends org.plasmalabs.indexer.services.AssetLabel.Label {
type ValueType = org.plasmalabs.indexer.services.AssetLabel.Tam2Label
override def isTam2Label: _root_.scala.Boolean = true
override def tam2Label: _root_.scala.Option[org.plasmalabs.indexer.services.AssetLabel.Tam2Label] = Some(value)
override def number: _root_.scala.Int = 4
}
}
@SerialVersionUID(0L)
final case class Empty(
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Empty] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
__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 = {
unknownFields.writeTo(_output__)
}
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 = throw new MatchError(__fieldNumber)
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = throw new MatchError(__field)
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: org.plasmalabs.indexer.services.AssetLabel.Empty.type = org.plasmalabs.indexer.services.AssetLabel.Empty
// @@protoc_insertion_point(GeneratedMessage[org.plasmalabs.indexer.services.AssetLabel.Empty])
}
object Empty extends scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.Empty] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.Empty] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): org.plasmalabs.indexer.services.AssetLabel.Empty = {
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
org.plasmalabs.indexer.services.AssetLabel.Empty(
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[org.plasmalabs.indexer.services.AssetLabel.Empty] = _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.indexer.services.AssetLabel.Empty(
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = org.plasmalabs.indexer.services.AssetLabel.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = org.plasmalabs.indexer.services.AssetLabel.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
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.indexer.services.AssetLabel.Empty(
)
implicit class EmptyLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Empty]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Empty](_l) {
}
def of(
): _root_.org.plasmalabs.indexer.services.AssetLabel.Empty = _root_.org.plasmalabs.indexer.services.AssetLabel.Empty(
)
// @@protoc_insertion_point(GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.Empty])
}
@SerialVersionUID(0L)
final case class V1Label(
version: _root_.scala.Int = 0,
mintingAddress: org.plasmalabs.sdk.models.LockAddress,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[V1Label] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = version
if (__value != 0) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt32Size(1, __value)
}
};
{
val __value = mintingAddress
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
__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 = version
if (__v != 0) {
_output__.writeUInt32(1, __v)
}
};
{
val __v = mintingAddress
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__v.serializedSize)
__v.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def withVersion(__v: _root_.scala.Int): V1Label = copy(version = __v)
def withMintingAddress(__v: org.plasmalabs.sdk.models.LockAddress): V1Label = copy(mintingAddress = __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 = version
if (__t != 0) __t else null
}
case 2 => mintingAddress
}
}
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.PInt(version)
case 2 => mintingAddress.toPMessage
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: org.plasmalabs.indexer.services.AssetLabel.V1Label.type = org.plasmalabs.indexer.services.AssetLabel.V1Label
// @@protoc_insertion_point(GeneratedMessage[org.plasmalabs.indexer.services.AssetLabel.V1Label])
}
object V1Label extends scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.V1Label] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.V1Label] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): org.plasmalabs.indexer.services.AssetLabel.V1Label = {
var __requiredFields0: _root_.scala.Long = 0x1L
var __version: _root_.scala.Int = 0
var __mintingAddress: _root_.scala.Option[org.plasmalabs.sdk.models.LockAddress] = _root_.scala.None
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 8 =>
__version = _input__.readUInt32()
case 18 =>
__mintingAddress = _root_.scala.Some(__mintingAddress.fold(_root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.LockAddress](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
__requiredFields0 &= 0xfffffffffffffffeL
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.indexer.services.AssetLabel.V1Label(
version = __version,
mintingAddress = __mintingAddress.getOrElse(org.plasmalabs.sdk.models.LockAddress.defaultInstance),
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[org.plasmalabs.indexer.services.AssetLabel.V1Label] = _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.indexer.services.AssetLabel.V1Label(
version = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Int]).getOrElse(0),
mintingAddress = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).get.as[org.plasmalabs.sdk.models.LockAddress]
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = org.plasmalabs.indexer.services.AssetLabel.javaDescriptor.getNestedTypes().get(1)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = org.plasmalabs.indexer.services.AssetLabel.scalaDescriptor.nestedMessages(1)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 2 => __out = org.plasmalabs.sdk.models.LockAddress
}
__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.indexer.services.AssetLabel.V1Label(
version = 0,
mintingAddress = org.plasmalabs.sdk.models.LockAddress.defaultInstance
)
implicit class V1LabelLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.V1Label]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.V1Label](_l) {
def version: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.version)((c_, f_) => c_.copy(version = f_))
def mintingAddress: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.sdk.models.LockAddress] = field(_.mintingAddress)((c_, f_) => c_.copy(mintingAddress = f_))
}
final val VERSION_FIELD_NUMBER = 1
final val MINTINGADDRESS_FIELD_NUMBER = 2
def of(
version: _root_.scala.Int,
mintingAddress: org.plasmalabs.sdk.models.LockAddress
): _root_.org.plasmalabs.indexer.services.AssetLabel.V1Label = _root_.org.plasmalabs.indexer.services.AssetLabel.V1Label(
version,
mintingAddress
)
// @@protoc_insertion_point(GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.V1Label])
}
@SerialVersionUID(0L)
final case class Tam2Label(
groupHashMostSignificant: _root_.scala.Long = 0L,
groupHashMoreSignificant: _root_.scala.Long = 0L,
groupHashLessSignificant: _root_.scala.Long = 0L,
groupHashLeastSignificant: _root_.scala.Long = 0L,
seriesHashMostSignificant: _root_.scala.Long = 0L,
seriesHashMoreSignificant: _root_.scala.Long = 0L,
seriesHashLessSignificant: _root_.scala.Long = 0L,
seriesHashLeastSignificant: _root_.scala.Long = 0L,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Tam2Label] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
{
val __value = groupHashMostSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(1, __value)
}
};
{
val __value = groupHashMoreSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(2, __value)
}
};
{
val __value = groupHashLessSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(3, __value)
}
};
{
val __value = groupHashLeastSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(4, __value)
}
};
{
val __value = seriesHashMostSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(5, __value)
}
};
{
val __value = seriesHashMoreSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(6, __value)
}
};
{
val __value = seriesHashLessSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(7, __value)
}
};
{
val __value = seriesHashLeastSignificant
if (__value != 0L) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeFixed64Size(8, __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 = groupHashMostSignificant
if (__v != 0L) {
_output__.writeFixed64(1, __v)
}
};
{
val __v = groupHashMoreSignificant
if (__v != 0L) {
_output__.writeFixed64(2, __v)
}
};
{
val __v = groupHashLessSignificant
if (__v != 0L) {
_output__.writeFixed64(3, __v)
}
};
{
val __v = groupHashLeastSignificant
if (__v != 0L) {
_output__.writeFixed64(4, __v)
}
};
{
val __v = seriesHashMostSignificant
if (__v != 0L) {
_output__.writeFixed64(5, __v)
}
};
{
val __v = seriesHashMoreSignificant
if (__v != 0L) {
_output__.writeFixed64(6, __v)
}
};
{
val __v = seriesHashLessSignificant
if (__v != 0L) {
_output__.writeFixed64(7, __v)
}
};
{
val __v = seriesHashLeastSignificant
if (__v != 0L) {
_output__.writeFixed64(8, __v)
}
};
unknownFields.writeTo(_output__)
}
def withGroupHashMostSignificant(__v: _root_.scala.Long): Tam2Label = copy(groupHashMostSignificant = __v)
def withGroupHashMoreSignificant(__v: _root_.scala.Long): Tam2Label = copy(groupHashMoreSignificant = __v)
def withGroupHashLessSignificant(__v: _root_.scala.Long): Tam2Label = copy(groupHashLessSignificant = __v)
def withGroupHashLeastSignificant(__v: _root_.scala.Long): Tam2Label = copy(groupHashLeastSignificant = __v)
def withSeriesHashMostSignificant(__v: _root_.scala.Long): Tam2Label = copy(seriesHashMostSignificant = __v)
def withSeriesHashMoreSignificant(__v: _root_.scala.Long): Tam2Label = copy(seriesHashMoreSignificant = __v)
def withSeriesHashLessSignificant(__v: _root_.scala.Long): Tam2Label = copy(seriesHashLessSignificant = __v)
def withSeriesHashLeastSignificant(__v: _root_.scala.Long): Tam2Label = copy(seriesHashLeastSignificant = __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 = groupHashMostSignificant
if (__t != 0L) __t else null
}
case 2 => {
val __t = groupHashMoreSignificant
if (__t != 0L) __t else null
}
case 3 => {
val __t = groupHashLessSignificant
if (__t != 0L) __t else null
}
case 4 => {
val __t = groupHashLeastSignificant
if (__t != 0L) __t else null
}
case 5 => {
val __t = seriesHashMostSignificant
if (__t != 0L) __t else null
}
case 6 => {
val __t = seriesHashMoreSignificant
if (__t != 0L) __t else null
}
case 7 => {
val __t = seriesHashLessSignificant
if (__t != 0L) __t else null
}
case 8 => {
val __t = seriesHashLeastSignificant
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(groupHashMostSignificant)
case 2 => _root_.scalapb.descriptors.PLong(groupHashMoreSignificant)
case 3 => _root_.scalapb.descriptors.PLong(groupHashLessSignificant)
case 4 => _root_.scalapb.descriptors.PLong(groupHashLeastSignificant)
case 5 => _root_.scalapb.descriptors.PLong(seriesHashMostSignificant)
case 6 => _root_.scalapb.descriptors.PLong(seriesHashMoreSignificant)
case 7 => _root_.scalapb.descriptors.PLong(seriesHashLessSignificant)
case 8 => _root_.scalapb.descriptors.PLong(seriesHashLeastSignificant)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: org.plasmalabs.indexer.services.AssetLabel.Tam2Label.type = org.plasmalabs.indexer.services.AssetLabel.Tam2Label
// @@protoc_insertion_point(GeneratedMessage[org.plasmalabs.indexer.services.AssetLabel.Tam2Label])
}
object Tam2Label extends scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.Tam2Label] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.Tam2Label] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): org.plasmalabs.indexer.services.AssetLabel.Tam2Label = {
var __groupHashMostSignificant: _root_.scala.Long = 0L
var __groupHashMoreSignificant: _root_.scala.Long = 0L
var __groupHashLessSignificant: _root_.scala.Long = 0L
var __groupHashLeastSignificant: _root_.scala.Long = 0L
var __seriesHashMostSignificant: _root_.scala.Long = 0L
var __seriesHashMoreSignificant: _root_.scala.Long = 0L
var __seriesHashLessSignificant: _root_.scala.Long = 0L
var __seriesHashLeastSignificant: _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 9 =>
__groupHashMostSignificant = _input__.readFixed64()
case 17 =>
__groupHashMoreSignificant = _input__.readFixed64()
case 25 =>
__groupHashLessSignificant = _input__.readFixed64()
case 33 =>
__groupHashLeastSignificant = _input__.readFixed64()
case 41 =>
__seriesHashMostSignificant = _input__.readFixed64()
case 49 =>
__seriesHashMoreSignificant = _input__.readFixed64()
case 57 =>
__seriesHashLessSignificant = _input__.readFixed64()
case 65 =>
__seriesHashLeastSignificant = _input__.readFixed64()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
org.plasmalabs.indexer.services.AssetLabel.Tam2Label(
groupHashMostSignificant = __groupHashMostSignificant,
groupHashMoreSignificant = __groupHashMoreSignificant,
groupHashLessSignificant = __groupHashLessSignificant,
groupHashLeastSignificant = __groupHashLeastSignificant,
seriesHashMostSignificant = __seriesHashMostSignificant,
seriesHashMoreSignificant = __seriesHashMoreSignificant,
seriesHashLessSignificant = __seriesHashLessSignificant,
seriesHashLeastSignificant = __seriesHashLeastSignificant,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[org.plasmalabs.indexer.services.AssetLabel.Tam2Label] = _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.indexer.services.AssetLabel.Tam2Label(
groupHashMostSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
groupHashMoreSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
groupHashLessSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
groupHashLeastSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
seriesHashMostSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
seriesHashMoreSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
seriesHashLessSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
seriesHashLeastSignificant = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Long]).getOrElse(0L)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = org.plasmalabs.indexer.services.AssetLabel.javaDescriptor.getNestedTypes().get(2)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = org.plasmalabs.indexer.services.AssetLabel.scalaDescriptor.nestedMessages(2)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
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.indexer.services.AssetLabel.Tam2Label(
groupHashMostSignificant = 0L,
groupHashMoreSignificant = 0L,
groupHashLessSignificant = 0L,
groupHashLeastSignificant = 0L,
seriesHashMostSignificant = 0L,
seriesHashMoreSignificant = 0L,
seriesHashLessSignificant = 0L,
seriesHashLeastSignificant = 0L
)
implicit class Tam2LabelLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Tam2Label]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Tam2Label](_l) {
def groupHashMostSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.groupHashMostSignificant)((c_, f_) => c_.copy(groupHashMostSignificant = f_))
def groupHashMoreSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.groupHashMoreSignificant)((c_, f_) => c_.copy(groupHashMoreSignificant = f_))
def groupHashLessSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.groupHashLessSignificant)((c_, f_) => c_.copy(groupHashLessSignificant = f_))
def groupHashLeastSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.groupHashLeastSignificant)((c_, f_) => c_.copy(groupHashLeastSignificant = f_))
def seriesHashMostSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.seriesHashMostSignificant)((c_, f_) => c_.copy(seriesHashMostSignificant = f_))
def seriesHashMoreSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.seriesHashMoreSignificant)((c_, f_) => c_.copy(seriesHashMoreSignificant = f_))
def seriesHashLessSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.seriesHashLessSignificant)((c_, f_) => c_.copy(seriesHashLessSignificant = f_))
def seriesHashLeastSignificant: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.seriesHashLeastSignificant)((c_, f_) => c_.copy(seriesHashLeastSignificant = f_))
}
final val GROUPHASHMOSTSIGNIFICANT_FIELD_NUMBER = 1
final val GROUPHASHMORESIGNIFICANT_FIELD_NUMBER = 2
final val GROUPHASHLESSSIGNIFICANT_FIELD_NUMBER = 3
final val GROUPHASHLEASTSIGNIFICANT_FIELD_NUMBER = 4
final val SERIESHASHMOSTSIGNIFICANT_FIELD_NUMBER = 5
final val SERIESHASHMORESIGNIFICANT_FIELD_NUMBER = 6
final val SERIESHASHLESSSIGNIFICANT_FIELD_NUMBER = 7
final val SERIESHASHLEASTSIGNIFICANT_FIELD_NUMBER = 8
def of(
groupHashMostSignificant: _root_.scala.Long,
groupHashMoreSignificant: _root_.scala.Long,
groupHashLessSignificant: _root_.scala.Long,
groupHashLeastSignificant: _root_.scala.Long,
seriesHashMostSignificant: _root_.scala.Long,
seriesHashMoreSignificant: _root_.scala.Long,
seriesHashLessSignificant: _root_.scala.Long,
seriesHashLeastSignificant: _root_.scala.Long
): _root_.org.plasmalabs.indexer.services.AssetLabel.Tam2Label = _root_.org.plasmalabs.indexer.services.AssetLabel.Tam2Label(
groupHashMostSignificant,
groupHashMoreSignificant,
groupHashLessSignificant,
groupHashLeastSignificant,
seriesHashMostSignificant,
seriesHashMoreSignificant,
seriesHashLessSignificant,
seriesHashLeastSignificant
)
// @@protoc_insertion_point(GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel.Tam2Label])
}
implicit class AssetLabelLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, org.plasmalabs.indexer.services.AssetLabel](_l) {
def labelType: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.LabelType] = field(_.labelType)((c_, f_) => c_.copy(labelType = f_))
def empty: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Empty] = field(_.get_Empty)((c_, f_) => c_.copy(label = org.plasmalabs.indexer.services.AssetLabel.Label._Empty(f_)))
def v1Label: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.V1Label] = field(_.getV1Label)((c_, f_) => c_.copy(label = org.plasmalabs.indexer.services.AssetLabel.Label.V1Label(f_)))
def tam2Label: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Tam2Label] = field(_.getTam2Label)((c_, f_) => c_.copy(label = org.plasmalabs.indexer.services.AssetLabel.Label.Tam2Label(f_)))
def label: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.indexer.services.AssetLabel.Label] = field(_.label)((c_, f_) => c_.copy(label = f_))
}
final val LABELTYPE_FIELD_NUMBER = 1
final val EMPTY_FIELD_NUMBER = 2
final val V1LABEL_FIELD_NUMBER = 3
final val TAM2LABEL_FIELD_NUMBER = 4
def of(
labelType: org.plasmalabs.indexer.services.LabelType,
label: org.plasmalabs.indexer.services.AssetLabel.Label
): _root_.org.plasmalabs.indexer.services.AssetLabel = _root_.org.plasmalabs.indexer.services.AssetLabel(
labelType,
label
)
implicit def validator: scalapb.validate.Validator[org.plasmalabs.indexer.services.AssetLabel] = org.plasmalabs.indexer.services.AssetLabelValidator
// @@protoc_insertion_point(GeneratedMessageCompanion[org.plasmalabs.indexer.services.AssetLabel])
}