tech.figure.block.api.proto.HeaderKt.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.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package tech.figure.block.api.proto;
@kotlin.jvm.JvmName("-initializeheader")
public inline fun header(block: tech.figure.block.api.proto.HeaderKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Header =
tech.figure.block.api.proto.HeaderKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Header.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.Header`
*/
public object HeaderKt {
@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.BlockOuterClass.Header.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Header.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.BlockOuterClass.Header = _builder.build()
/**
* `string chain_id = 1;`
*/
public var chainId: kotlin.String
@JvmName("getChainId")
get() = _builder.getChainId()
@JvmName("setChainId")
set(value) {
_builder.setChainId(value)
}
/**
* `string chain_id = 1;`
*/
public fun clearChainId() {
_builder.clearChainId()
}
/**
* `.api.Version version = 2;`
*/
public var version: tech.figure.block.api.proto.BlockOuterClass.Version
@JvmName("getVersion")
get() = _builder.getVersion()
@JvmName("setVersion")
set(value) {
_builder.setVersion(value)
}
/**
* `.api.Version version = 2;`
*/
public fun clearVersion() {
_builder.clearVersion()
}
/**
* `.api.Version version = 2;`
* @return Whether the version field is set.
*/
public fun hasVersion(): kotlin.Boolean {
return _builder.hasVersion()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Header.copy(block: tech.figure.block.api.proto.HeaderKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Header =
tech.figure.block.api.proto.HeaderKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val tech.figure.block.api.proto.BlockOuterClass.HeaderOrBuilder.versionOrNull: tech.figure.block.api.proto.BlockOuterClass.Version?
get() = if (hasVersion()) getVersion() else null