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

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

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

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

@kotlin.jvm.JvmName("-initializelatestMarkerStateResponse")
public inline fun latestMarkerStateResponse(block: tech.figure.block.api.proto.LatestMarkerStateResponseKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse =
  tech.figure.block.api.proto.LatestMarkerStateResponseKt.Dsl._create(tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.newBuilder()).apply { block() }._build()
/**
 * ```
 * Response data containing the latest marker state for the given denom
 * ```
 *
 * Protobuf type `api.LatestMarkerStateResponse`
 */
public object LatestMarkerStateResponseKt {
  @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.MarkerServiceOuterClass.LatestMarkerStateResponse.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The latest marker state for the given denom
     * ```
     *
     * `.api.MarkerState marker_state = 1;`
     */
    public var markerState: tech.figure.block.api.proto.Marker.MarkerState
      @JvmName("getMarkerState")
      get() = _builder.getMarkerState()
      @JvmName("setMarkerState")
      set(value) {
        _builder.setMarkerState(value)
      }
    /**
     * ```
     * The latest marker state for the given denom
     * ```
     *
     * `.api.MarkerState marker_state = 1;`
     */
    public fun clearMarkerState() {
      _builder.clearMarkerState()
    }
    /**
     * ```
     * The latest marker state for the given denom
     * ```
     *
     * `.api.MarkerState marker_state = 1;`
     * @return Whether the markerState field is set.
     */
    public fun hasMarkerState(): kotlin.Boolean {
      return _builder.hasMarkerState()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse.copy(block: tech.figure.block.api.proto.LatestMarkerStateResponseKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponse =
  tech.figure.block.api.proto.LatestMarkerStateResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.MarkerServiceOuterClass.LatestMarkerStateResponseOrBuilder.markerStateOrNull: tech.figure.block.api.proto.Marker.MarkerState?
  get() = if (hasMarkerState()) getMarkerState() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy