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

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

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

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

@kotlin.jvm.JvmName("-initializemarkerTrigger")
public inline fun markerTrigger(block: tech.figure.block.api.proto.MarkerTriggerKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.Marker.MarkerTrigger =
  tech.figure.block.api.proto.MarkerTriggerKt.Dsl._create(tech.figure.block.api.proto.Marker.MarkerTrigger.newBuilder()).apply { block() }._build()
/**
 * ```
 * A representation of a Provenance Blockchain message or event that caused a MarkerState to be produced
 * ```
 *
 * Protobuf type `api.MarkerTrigger`
 */
public object MarkerTriggerKt {
  @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.Marker.MarkerTrigger.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.Marker.MarkerTrigger.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The hash of the transaction that contained the message or event
     * ```
     *
     * `string tx_hash = 1;`
     */
    public var txHash: kotlin.String
      @JvmName("getTxHash")
      get() = _builder.getTxHash()
      @JvmName("setTxHash")
      set(value) {
        _builder.setTxHash(value)
      }
    /**
     * ```
     * The hash of the transaction that contained the message or event
     * ```
     *
     * `string tx_hash = 1;`
     */
    public fun clearTxHash() {
      _builder.clearTxHash()
    }

    /**
     * ```
     * The proto that caused the MarkerState to be produced
     * ```
     *
     * `.google.protobuf.Any message = 2;`
     */
    public var message: com.google.protobuf.Any
      @JvmName("getMessage")
      get() = _builder.getMessage()
      @JvmName("setMessage")
      set(value) {
        _builder.setMessage(value)
      }
    /**
     * ```
     * The proto that caused the MarkerState to be produced
     * ```
     *
     * `.google.protobuf.Any message = 2;`
     */
    public fun clearMessage() {
      _builder.clearMessage()
    }
    /**
     * ```
     * The proto that caused the MarkerState to be produced
     * ```
     *
     * `.google.protobuf.Any message = 2;`
     * @return Whether the message field is set.
     */
    public fun hasMessage(): kotlin.Boolean {
      return _builder.hasMessage()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.Marker.MarkerTrigger.copy(block: tech.figure.block.api.proto.MarkerTriggerKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.Marker.MarkerTrigger =
  tech.figure.block.api.proto.MarkerTriggerKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.Marker.MarkerTriggerOrBuilder.messageOrNull: com.google.protobuf.Any?
  get() = if (hasMessage()) getMessage() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy