tech.figure.block.api.proto.EarliestMarkerStateResponseKt.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("-initializeearliestMarkerStateResponse")
public inline fun earliestMarkerStateResponse(block: tech.figure.block.api.proto.EarliestMarkerStateResponseKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse =
tech.figure.block.api.proto.EarliestMarkerStateResponseKt.Dsl._create(tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse.newBuilder()).apply { block() }._build()
/**
* ```
* Response data containing the first marker state for a given denom, chronologically
* ```
*
* Protobuf type `api.EarliestMarkerStateResponse`
*/
public object EarliestMarkerStateResponseKt {
@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.EarliestMarkerStateResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse = _builder.build()
/**
* ```
* The first marker state for a given denom, chronologically
* ```
*
* `.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 first marker state for a given denom, chronologically
* ```
*
* `.api.MarkerState marker_state = 1;`
*/
public fun clearMarkerState() {
_builder.clearMarkerState()
}
/**
* ```
* The first marker state for a given denom, chronologically
* ```
*
* `.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.EarliestMarkerStateResponse.copy(block: tech.figure.block.api.proto.EarliestMarkerStateResponseKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponse =
tech.figure.block.api.proto.EarliestMarkerStateResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val tech.figure.block.api.proto.MarkerServiceOuterClass.EarliestMarkerStateResponseOrBuilder.markerStateOrNull: tech.figure.block.api.proto.Marker.MarkerState?
get() = if (hasMarkerState()) getMarkerState() else null