tech.figure.block.api.proto.StatusResultKt.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: block-service.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package tech.figure.block.api.proto;
@kotlin.jvm.JvmName("-initializestatusResult")
public inline fun statusResult(block: tech.figure.block.api.proto.StatusResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult =
tech.figure.block.api.proto.StatusResultKt.Dsl._create(tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.StatusResult`
*/
public object StatusResultKt {
@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.BlockServiceOuterClass.StatusResult.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult = _builder.build()
/**
* `int64 currentHeight = 1;`
*/
public var currentHeight: kotlin.Long
@JvmName("getCurrentHeight")
get() = _builder.getCurrentHeight()
@JvmName("setCurrentHeight")
set(value) {
_builder.setCurrentHeight(value)
}
/**
* `int64 currentHeight = 1;`
*/
public fun clearCurrentHeight() {
_builder.clearCurrentHeight()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult.copy(block: tech.figure.block.api.proto.StatusResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult =
tech.figure.block.api.proto.StatusResultKt.Dsl._create(this.toBuilder()).apply { block() }._build()