tech.figure.block.api.proto.LatestMarkerStateResponseKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-proto Show documentation
Show all versions of api-proto Show documentation
gRPC client code to interact with Figures off chain Provenance data
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