org.plasmalabs.sdk.models.transaction.IoTransaction.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.sdk.models.transaction
/** defines a transaction
*
* @param transactionId
* The ID of _this_ transaction. This value is optional and its contents are not included in the signable or identifiable data. Clients which _can_ verify
* this value should verify this value, but some clients may not be able to or need to, in which case this field acts as a convenience.
* @param inputs
* 0-to-many list of inputs
* @param outputs
* 0-to-many list of outputs
* @param datum
* Datum
* @param groupPolicies
* 0-to-many list of group Policy
* @param seriesPolicies
* 0-to-many list of seriesPolicy
* @param mintingStatements
* 0-to-many list of minting asset statements
* @param mergingStatements
* 0-to-many list of merging asset statements
* @param splittingStatements
* 0-to-many list of splitting asset statements
*/
@SerialVersionUID(0L)
final case class IoTransaction(
transactionId: _root_.scala.Option[org.plasmalabs.sdk.models.TransactionId] = _root_.scala.None,
inputs: _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput] = _root_.scala.Seq.empty,
outputs: _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput] = _root_.scala.Seq.empty,
datum: org.plasmalabs.sdk.models.Datum.IoTransaction,
groupPolicies: _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.GroupPolicy] = _root_.scala.Seq.empty,
seriesPolicies: _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.SeriesPolicy] = _root_.scala.Seq.empty,
mintingStatements: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMintingStatement] = _root_.scala.Seq.empty,
mergingStatements: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMergingStatement] = _root_.scala.Seq.empty,
splittingStatements: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetSplittingStatement] = _root_.scala.Seq.empty,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[IoTransaction] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
if (transactionId.isDefined) {
val __value = transactionId.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
inputs.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
outputs.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = datum
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
groupPolicies.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
seriesPolicies.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
mintingStatements.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
mergingStatements.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
splittingStatements.foreach { __item =>
val __value = __item
__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 = {
inputs.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
outputs.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = datum
_output__.writeTag(3, 2)
_output__.writeUInt32NoTag(__v.serializedSize)
__v.writeTo(_output__)
};
transactionId.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
groupPolicies.foreach { __v =>
val __m = __v
_output__.writeTag(5, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
seriesPolicies.foreach { __v =>
val __m = __v
_output__.writeTag(6, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
mintingStatements.foreach { __v =>
val __m = __v
_output__.writeTag(7, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
mergingStatements.foreach { __v =>
val __m = __v
_output__.writeTag(8, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
splittingStatements.foreach { __v =>
val __m = __v
_output__.writeTag(9, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def getTransactionId: org.plasmalabs.sdk.models.TransactionId = transactionId.getOrElse(org.plasmalabs.sdk.models.TransactionId.defaultInstance)
def clearTransactionId: IoTransaction = copy(transactionId = _root_.scala.None)
def withTransactionId(__v: org.plasmalabs.sdk.models.TransactionId): IoTransaction = copy(transactionId = Option(__v))
def clearInputs = copy(inputs = _root_.scala.Seq.empty)
def addInputs(__vs: org.plasmalabs.sdk.models.transaction.SpentTransactionOutput *): IoTransaction = addAllInputs(__vs)
def addAllInputs(__vs: Iterable[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput]): IoTransaction = copy(inputs = inputs ++ __vs)
def withInputs(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput]): IoTransaction = copy(inputs = __v)
def clearOutputs = copy(outputs = _root_.scala.Seq.empty)
def addOutputs(__vs: org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput *): IoTransaction = addAllOutputs(__vs)
def addAllOutputs(__vs: Iterable[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput]): IoTransaction = copy(outputs = outputs ++ __vs)
def withOutputs(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput]): IoTransaction = copy(outputs = __v)
def withDatum(__v: org.plasmalabs.sdk.models.Datum.IoTransaction): IoTransaction = copy(datum = __v)
def clearGroupPolicies = copy(groupPolicies = _root_.scala.Seq.empty)
def addGroupPolicies(__vs: org.plasmalabs.sdk.models.Datum.GroupPolicy *): IoTransaction = addAllGroupPolicies(__vs)
def addAllGroupPolicies(__vs: Iterable[org.plasmalabs.sdk.models.Datum.GroupPolicy]): IoTransaction = copy(groupPolicies = groupPolicies ++ __vs)
def withGroupPolicies(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.GroupPolicy]): IoTransaction = copy(groupPolicies = __v)
def clearSeriesPolicies = copy(seriesPolicies = _root_.scala.Seq.empty)
def addSeriesPolicies(__vs: org.plasmalabs.sdk.models.Datum.SeriesPolicy *): IoTransaction = addAllSeriesPolicies(__vs)
def addAllSeriesPolicies(__vs: Iterable[org.plasmalabs.sdk.models.Datum.SeriesPolicy]): IoTransaction = copy(seriesPolicies = seriesPolicies ++ __vs)
def withSeriesPolicies(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.SeriesPolicy]): IoTransaction = copy(seriesPolicies = __v)
def clearMintingStatements = copy(mintingStatements = _root_.scala.Seq.empty)
def addMintingStatements(__vs: org.plasmalabs.sdk.models.box.AssetMintingStatement *): IoTransaction = addAllMintingStatements(__vs)
def addAllMintingStatements(__vs: Iterable[org.plasmalabs.sdk.models.box.AssetMintingStatement]): IoTransaction = copy(mintingStatements = mintingStatements ++ __vs)
def withMintingStatements(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMintingStatement]): IoTransaction = copy(mintingStatements = __v)
def clearMergingStatements = copy(mergingStatements = _root_.scala.Seq.empty)
def addMergingStatements(__vs: org.plasmalabs.sdk.models.box.AssetMergingStatement *): IoTransaction = addAllMergingStatements(__vs)
def addAllMergingStatements(__vs: Iterable[org.plasmalabs.sdk.models.box.AssetMergingStatement]): IoTransaction = copy(mergingStatements = mergingStatements ++ __vs)
def withMergingStatements(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMergingStatement]): IoTransaction = copy(mergingStatements = __v)
def clearSplittingStatements = copy(splittingStatements = _root_.scala.Seq.empty)
def addSplittingStatements(__vs: org.plasmalabs.sdk.models.box.AssetSplittingStatement *): IoTransaction = addAllSplittingStatements(__vs)
def addAllSplittingStatements(__vs: Iterable[org.plasmalabs.sdk.models.box.AssetSplittingStatement]): IoTransaction = copy(splittingStatements = splittingStatements ++ __vs)
def withSplittingStatements(__v: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetSplittingStatement]): IoTransaction = copy(splittingStatements = __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 4 => transactionId.orNull
case 1 => inputs
case 2 => outputs
case 3 => datum
case 5 => groupPolicies
case 6 => seriesPolicies
case 7 => mintingStatements
case 8 => mergingStatements
case 9 => splittingStatements
}
}
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 4 => transactionId.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 1 => _root_.scalapb.descriptors.PRepeated(inputs.iterator.map(_.toPMessage).toVector)
case 2 => _root_.scalapb.descriptors.PRepeated(outputs.iterator.map(_.toPMessage).toVector)
case 3 => datum.toPMessage
case 5 => _root_.scalapb.descriptors.PRepeated(groupPolicies.iterator.map(_.toPMessage).toVector)
case 6 => _root_.scalapb.descriptors.PRepeated(seriesPolicies.iterator.map(_.toPMessage).toVector)
case 7 => _root_.scalapb.descriptors.PRepeated(mintingStatements.iterator.map(_.toPMessage).toVector)
case 8 => _root_.scalapb.descriptors.PRepeated(mergingStatements.iterator.map(_.toPMessage).toVector)
case 9 => _root_.scalapb.descriptors.PRepeated(splittingStatements.iterator.map(_.toPMessage).toVector)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: org.plasmalabs.sdk.models.transaction.IoTransaction.type = org.plasmalabs.sdk.models.transaction.IoTransaction
_root_.scalapb.validate.Validator.assertValid(this)(org.plasmalabs.sdk.models.transaction.IoTransactionValidator)
// @@protoc_insertion_point(GeneratedMessage[org.plasmalabs.sdk.models.transaction.IoTransaction])
}
object IoTransaction extends scalapb.GeneratedMessageCompanion[org.plasmalabs.sdk.models.transaction.IoTransaction] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[org.plasmalabs.sdk.models.transaction.IoTransaction] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): org.plasmalabs.sdk.models.transaction.IoTransaction = {
var __requiredFields0: _root_.scala.Long = 0x1L
var __transactionId: _root_.scala.Option[org.plasmalabs.sdk.models.TransactionId] = _root_.scala.None
val __inputs: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput]
val __outputs: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput]
var __datum: _root_.scala.Option[org.plasmalabs.sdk.models.Datum.IoTransaction] = _root_.scala.None
val __groupPolicies: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.Datum.GroupPolicy] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.Datum.GroupPolicy]
val __seriesPolicies: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.Datum.SeriesPolicy] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.Datum.SeriesPolicy]
val __mintingStatements: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.box.AssetMintingStatement] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.box.AssetMintingStatement]
val __mergingStatements: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.box.AssetMergingStatement] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.box.AssetMergingStatement]
val __splittingStatements: _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.box.AssetSplittingStatement] = new _root_.scala.collection.immutable.VectorBuilder[org.plasmalabs.sdk.models.box.AssetSplittingStatement]
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 34 =>
__transactionId = _root_.scala.Option(__transactionId.fold(_root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.TransactionId](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 10 =>
__inputs += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput](_input__)
case 18 =>
__outputs += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput](_input__)
case 26 =>
__datum = _root_.scala.Some(__datum.fold(_root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.Datum.IoTransaction](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
__requiredFields0 &= 0xfffffffffffffffeL
case 42 =>
__groupPolicies += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.Datum.GroupPolicy](_input__)
case 50 =>
__seriesPolicies += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.Datum.SeriesPolicy](_input__)
case 58 =>
__mintingStatements += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.box.AssetMintingStatement](_input__)
case 66 =>
__mergingStatements += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.box.AssetMergingStatement](_input__)
case 74 =>
__splittingStatements += _root_.scalapb.LiteParser.readMessage[org.plasmalabs.sdk.models.box.AssetSplittingStatement](_input__)
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.sdk.models.transaction.IoTransaction(
transactionId = __transactionId,
inputs = __inputs.result(),
outputs = __outputs.result(),
datum = __datum.getOrElse(org.plasmalabs.sdk.models.Datum.IoTransaction.defaultInstance),
groupPolicies = __groupPolicies.result(),
seriesPolicies = __seriesPolicies.result(),
mintingStatements = __mintingStatements.result(),
mergingStatements = __mergingStatements.result(),
splittingStatements = __splittingStatements.result(),
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[org.plasmalabs.sdk.models.transaction.IoTransaction] = _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.sdk.models.transaction.IoTransaction(
transactionId = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[org.plasmalabs.sdk.models.TransactionId]]),
inputs = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput]]).getOrElse(_root_.scala.Seq.empty),
outputs = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput]]).getOrElse(_root_.scala.Seq.empty),
datum = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).get.as[org.plasmalabs.sdk.models.Datum.IoTransaction],
groupPolicies = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.Datum.GroupPolicy]]).getOrElse(_root_.scala.Seq.empty),
seriesPolicies = __fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.Datum.SeriesPolicy]]).getOrElse(_root_.scala.Seq.empty),
mintingStatements = __fieldsMap.get(scalaDescriptor.findFieldByNumber(7).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMintingStatement]]).getOrElse(_root_.scala.Seq.empty),
mergingStatements = __fieldsMap.get(scalaDescriptor.findFieldByNumber(8).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMergingStatement]]).getOrElse(_root_.scala.Seq.empty),
splittingStatements = __fieldsMap.get(scalaDescriptor.findFieldByNumber(9).get).map(_.as[_root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetSplittingStatement]]).getOrElse(_root_.scala.Seq.empty)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = IoTransactionProto.javaDescriptor.getMessageTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = IoTransactionProto.scalaDescriptor.messages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 4 => __out = org.plasmalabs.sdk.models.TransactionId
case 1 => __out = org.plasmalabs.sdk.models.transaction.SpentTransactionOutput
case 2 => __out = org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput
case 3 => __out = org.plasmalabs.sdk.models.Datum.IoTransaction
case 5 => __out = org.plasmalabs.sdk.models.Datum.GroupPolicy
case 6 => __out = org.plasmalabs.sdk.models.Datum.SeriesPolicy
case 7 => __out = org.plasmalabs.sdk.models.box.AssetMintingStatement
case 8 => __out = org.plasmalabs.sdk.models.box.AssetMergingStatement
case 9 => __out = org.plasmalabs.sdk.models.box.AssetSplittingStatement
}
__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.sdk.models.transaction.IoTransaction(
transactionId = _root_.scala.None,
inputs = _root_.scala.Seq.empty,
outputs = _root_.scala.Seq.empty,
datum = org.plasmalabs.sdk.models.Datum.IoTransaction.defaultInstance,
groupPolicies = _root_.scala.Seq.empty,
seriesPolicies = _root_.scala.Seq.empty,
mintingStatements = _root_.scala.Seq.empty,
mergingStatements = _root_.scala.Seq.empty,
splittingStatements = _root_.scala.Seq.empty
)
implicit class IoTransactionLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.sdk.models.transaction.IoTransaction]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, org.plasmalabs.sdk.models.transaction.IoTransaction](_l) {
def transactionId: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.sdk.models.TransactionId] = field(_.getTransactionId)((c_, f_) => c_.copy(transactionId = _root_.scala.Option(f_)))
def optionalTransactionId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[org.plasmalabs.sdk.models.TransactionId]] = field(_.transactionId)((c_, f_) => c_.copy(transactionId = f_))
def inputs: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput]] = field(_.inputs)((c_, f_) => c_.copy(inputs = f_))
def outputs: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput]] = field(_.outputs)((c_, f_) => c_.copy(outputs = f_))
def datum: _root_.scalapb.lenses.Lens[UpperPB, org.plasmalabs.sdk.models.Datum.IoTransaction] = field(_.datum)((c_, f_) => c_.copy(datum = f_))
def groupPolicies: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.GroupPolicy]] = field(_.groupPolicies)((c_, f_) => c_.copy(groupPolicies = f_))
def seriesPolicies: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.SeriesPolicy]] = field(_.seriesPolicies)((c_, f_) => c_.copy(seriesPolicies = f_))
def mintingStatements: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMintingStatement]] = field(_.mintingStatements)((c_, f_) => c_.copy(mintingStatements = f_))
def mergingStatements: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMergingStatement]] = field(_.mergingStatements)((c_, f_) => c_.copy(mergingStatements = f_))
def splittingStatements: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetSplittingStatement]] = field(_.splittingStatements)((c_, f_) => c_.copy(splittingStatements = f_))
}
final val TRANSACTIONID_FIELD_NUMBER = 4
final val INPUTS_FIELD_NUMBER = 1
final val OUTPUTS_FIELD_NUMBER = 2
final val DATUM_FIELD_NUMBER = 3
final val GROUPPOLICIES_FIELD_NUMBER = 5
final val SERIESPOLICIES_FIELD_NUMBER = 6
final val MINTINGSTATEMENTS_FIELD_NUMBER = 7
final val MERGINGSTATEMENTS_FIELD_NUMBER = 8
final val SPLITTINGSTATEMENTS_FIELD_NUMBER = 9
def of(
transactionId: _root_.scala.Option[org.plasmalabs.sdk.models.TransactionId],
inputs: _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.SpentTransactionOutput],
outputs: _root_.scala.Seq[org.plasmalabs.sdk.models.transaction.UnspentTransactionOutput],
datum: org.plasmalabs.sdk.models.Datum.IoTransaction,
groupPolicies: _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.GroupPolicy],
seriesPolicies: _root_.scala.Seq[org.plasmalabs.sdk.models.Datum.SeriesPolicy],
mintingStatements: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMintingStatement],
mergingStatements: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetMergingStatement],
splittingStatements: _root_.scala.Seq[org.plasmalabs.sdk.models.box.AssetSplittingStatement]
): _root_.org.plasmalabs.sdk.models.transaction.IoTransaction = _root_.org.plasmalabs.sdk.models.transaction.IoTransaction(
transactionId,
inputs,
outputs,
datum,
groupPolicies,
seriesPolicies,
mintingStatements,
mergingStatements,
splittingStatements
)
implicit def validator: scalapb.validate.Validator[org.plasmalabs.sdk.models.transaction.IoTransaction] = org.plasmalabs.sdk.models.transaction.IoTransactionValidator
// @@protoc_insertion_point(GeneratedMessageCompanion[org.plasmalabs.sdk.models.transaction.IoTransaction])
}