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

tech.figure.block.api.proto.TransactionsKt.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("-initializetransactions")
public inline fun transactions(block: tech.figure.block.api.proto.TransactionsKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Transactions =
  tech.figure.block.api.proto.TransactionsKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Transactions.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.Transactions`
 */
public object TransactionsKt {
  @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.Transactions.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Transactions.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class TransactionProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .api.Transaction transaction = 1;`
     */
     public val transaction: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getTransactionList()
      )
    /**
     * `repeated .api.Transaction transaction = 1;`
     * @param value The transaction to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addTransaction")
    public fun com.google.protobuf.kotlin.DslList.add(value: tech.figure.block.api.proto.BlockOuterClass.Transaction) {
      _builder.addTransaction(value)
    }
    /**
     * `repeated .api.Transaction transaction = 1;`
     * @param value The transaction to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignTransaction")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: tech.figure.block.api.proto.BlockOuterClass.Transaction) {
      add(value)
    }
    /**
     * `repeated .api.Transaction transaction = 1;`
     * @param values The transaction to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllTransaction")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllTransaction(values)
    }
    /**
     * `repeated .api.Transaction transaction = 1;`
     * @param values The transaction to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllTransaction")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .api.Transaction transaction = 1;`
     * @param index The index to set the value at.
     * @param value The transaction to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setTransaction")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: tech.figure.block.api.proto.BlockOuterClass.Transaction) {
      _builder.setTransaction(index, value)
    }
    /**
     * `repeated .api.Transaction transaction = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearTransaction")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearTransaction()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Transactions.copy(block: tech.figure.block.api.proto.TransactionsKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Transactions =
  tech.figure.block.api.proto.TransactionsKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy