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

tech.figure.block.api.proto.TransactionKt.kt Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: block.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package tech.figure.block.api.proto;

@kotlin.jvm.JvmName("-initializetransaction")
public inline fun transaction(block: tech.figure.block.api.proto.TransactionKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Transaction =
  tech.figure.block.api.proto.TransactionKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Transaction.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.Transaction`
 */
public object TransactionKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Transaction.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): tech.figure.block.api.proto.BlockOuterClass.Transaction = _builder.build()

    /**
     * `string tx_hash = 1;`
     */
    public var txHash: kotlin.String
      @JvmName("getTxHash")
      get() = _builder.getTxHash()
      @JvmName("setTxHash")
      set(value) {
        _builder.setTxHash(value)
      }
    /**
     * `string tx_hash = 1;`
     */
    public fun clearTxHash() {
      _builder.clearTxHash()
    }

    /**
     * `uint64 block_height = 2;`
     */
    public var blockHeight: kotlin.Long
      @JvmName("getBlockHeight")
      get() = _builder.getBlockHeight()
      @JvmName("setBlockHeight")
      set(value) {
        _builder.setBlockHeight(value)
      }
    /**
     * `uint64 block_height = 2;`
     */
    public fun clearBlockHeight() {
      _builder.clearBlockHeight()
    }

    /**
     * `uint64 code = 3;`
     */
    public var code: kotlin.Long
      @JvmName("getCode")
      get() = _builder.getCode()
      @JvmName("setCode")
      set(value) {
        _builder.setCode(value)
      }
    /**
     * `uint64 code = 3;`
     */
    public fun clearCode() {
      _builder.clearCode()
    }

    /**
     * `string data = 4;`
     */
    public var data: kotlin.String
      @JvmName("getData")
      get() = _builder.getData()
      @JvmName("setData")
      set(value) {
        _builder.setData(value)
      }
    /**
     * `string data = 4;`
     */
    public fun clearData() {
      _builder.clearData()
    }

    /**
     * `string info = 5;`
     */
    public var info: kotlin.String
      @JvmName("getInfo")
      get() = _builder.getInfo()
      @JvmName("setInfo")
      set(value) {
        _builder.setInfo(value)
      }
    /**
     * `string info = 5;`
     */
    public fun clearInfo() {
      _builder.clearInfo()
    }

    /**
     * `uint64 gas_wanted = 6;`
     */
    public var gasWanted: kotlin.Long
      @JvmName("getGasWanted")
      get() = _builder.getGasWanted()
      @JvmName("setGasWanted")
      set(value) {
        _builder.setGasWanted(value)
      }
    /**
     * `uint64 gas_wanted = 6;`
     */
    public fun clearGasWanted() {
      _builder.clearGasWanted()
    }

    /**
     * `uint64 gas_used = 7;`
     */
    public var gasUsed: kotlin.Long
      @JvmName("getGasUsed")
      get() = _builder.getGasUsed()
      @JvmName("setGasUsed")
      set(value) {
        _builder.setGasUsed(value)
      }
    /**
     * `uint64 gas_used = 7;`
     */
    public fun clearGasUsed() {
      _builder.clearGasUsed()
    }

    /**
     * `uint32 num_events = 8;`
     */
    public var numEvents: kotlin.Int
      @JvmName("getNumEvents")
      get() = _builder.getNumEvents()
      @JvmName("setNumEvents")
      set(value) {
        _builder.setNumEvents(value)
      }
    /**
     * `uint32 num_events = 8;`
     */
    public fun clearNumEvents() {
      _builder.clearNumEvents()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class AddressesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated string addresses = 9;`
     * @return A list containing the addresses.
     */
    public val addresses: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getAddressesList()
      )
    /**
     * `repeated string addresses = 9;`
     * @param value The addresses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAddresses")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
      _builder.addAddresses(value)
    }
    /**
     * `repeated string addresses = 9;`
     * @param value The addresses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAddresses")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
      add(value)
    }
    /**
     * `repeated string addresses = 9;`
     * @param values The addresses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllAddresses")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllAddresses(values)
    }
    /**
     * `repeated string addresses = 9;`
     * @param values The addresses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllAddresses")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated string addresses = 9;`
     * @param index The index to set the value at.
     * @param value The addresses to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setAddresses")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
      _builder.setAddresses(index, value)
    }/**
     * `repeated string addresses = 9;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearAddresses")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearAddresses()
    }
    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class MessagesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated string messages = 10;`
     * @return A list containing the messages.
     */
    public val messages: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getMessagesList()
      )
    /**
     * `repeated string messages = 10;`
     * @param value The messages to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addMessages")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
      _builder.addMessages(value)
    }
    /**
     * `repeated string messages = 10;`
     * @param value The messages to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignMessages")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
      add(value)
    }
    /**
     * `repeated string messages = 10;`
     * @param values The messages to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllMessages")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllMessages(values)
    }
    /**
     * `repeated string messages = 10;`
     * @param values The messages to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllMessages")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated string messages = 10;`
     * @param index The index to set the value at.
     * @param value The messages to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setMessages")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
      _builder.setMessages(index, value)
    }/**
     * `repeated string messages = 10;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearMessages")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearMessages()
    }
    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class EventsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.TxEvent events = 11;`
     */
     public val events: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getEventsList()
      )
    /**
     * `repeated .api.TxEvent events = 11;`
     * @param value The events to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addEvents")
    public fun com.google.protobuf.kotlin.DslList.add(value: tech.figure.block.api.proto.BlockOuterClass.TxEvent) {
      _builder.addEvents(value)
    }
    /**
     * `repeated .api.TxEvent events = 11;`
     * @param value The events to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignEvents")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: tech.figure.block.api.proto.BlockOuterClass.TxEvent) {
      add(value)
    }
    /**
     * `repeated .api.TxEvent events = 11;`
     * @param values The events to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllEvents")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllEvents(values)
    }
    /**
     * `repeated .api.TxEvent events = 11;`
     * @param values The events to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllEvents")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.TxEvent events = 11;`
     * @param index The index to set the value at.
     * @param value The events to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setEvents")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: tech.figure.block.api.proto.BlockOuterClass.TxEvent) {
      _builder.setEvents(index, value)
    }
    /**
     * `repeated .api.TxEvent events = 11;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearEvents")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearEvents()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated string tags = 12;`
     * @return A list containing the tags.
     */
    public val tags: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getTagsList()
      )
    /**
     * `repeated string tags = 12;`
     * @param value The tags to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addTags")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
      _builder.addTags(value)
    }
    /**
     * `repeated string tags = 12;`
     * @param value The tags to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignTags")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
      add(value)
    }
    /**
     * `repeated string tags = 12;`
     * @param values The tags to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllTags")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllTags(values)
    }
    /**
     * `repeated string tags = 12;`
     * @param values The tags to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllTags")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated string tags = 12;`
     * @param index The index to set the value at.
     * @param value The tags to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setTags")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
      _builder.setTags(index, value)
    }/**
     * `repeated string tags = 12;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearTags")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearTags()
    }
    /**
     * `.api.Fee fee = 13;`
     */
    public var fee: tech.figure.block.api.proto.BlockOuterClass.Fee
      @JvmName("getFee")
      get() = _builder.getFee()
      @JvmName("setFee")
      set(value) {
        _builder.setFee(value)
      }
    /**
     * `.api.Fee fee = 13;`
     */
    public fun clearFee() {
      _builder.clearFee()
    }
    /**
     * `.api.Fee fee = 13;`
     * @return Whether the fee field is set.
     */
    public fun hasFee(): kotlin.Boolean {
      return _builder.hasFee()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Transaction.copy(block: tech.figure.block.api.proto.TransactionKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Transaction =
  tech.figure.block.api.proto.TransactionKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.BlockOuterClass.TransactionOrBuilder.feeOrNull: tech.figure.block.api.proto.BlockOuterClass.Fee?
  get() = if (hasFee()) getFee() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy