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

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

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

    /**
     * `string scope_id = 1;`
     */
    public var scopeId: kotlin.String
      @JvmName("getScopeId")
      get() = _builder.getScopeId()
      @JvmName("setScopeId")
      set(value) {
        _builder.setScopeId(value)
      }
    /**
     * `string scope_id = 1;`
     */
    public fun clearScopeId() {
      _builder.clearScopeId()
    }

    /**
     * `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()
    }

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

    /**
     * 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 = 4;`
     * @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 = 4;`
     * @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 = 4;`
     * @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 = 4;`
     * @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 = 4;`
     * @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 = 4;`
     * @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 = 4;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearMessages")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearMessages()
    }}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Scope.copy(block: tech.figure.block.api.proto.ScopeKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Scope =
  tech.figure.block.api.proto.ScopeKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy