tech.figure.block.api.proto.VersionKt.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("-initializeversion")
public inline fun version(block: tech.figure.block.api.proto.VersionKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Version =
tech.figure.block.api.proto.VersionKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Version.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.Version`
*/
public object VersionKt {
@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.Version.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Version.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.BlockOuterClass.Version = _builder.build()
/**
* `string app = 1;`
*/
public var app: kotlin.String
@JvmName("getApp")
get() = _builder.getApp()
@JvmName("setApp")
set(value) {
_builder.setApp(value)
}
/**
* `string app = 1;`
*/
public fun clearApp() {
_builder.clearApp()
}
/**
* `string block = 2;`
*/
public var block: kotlin.String
@JvmName("getBlock")
get() = _builder.getBlock()
@JvmName("setBlock")
set(value) {
_builder.setBlock(value)
}
/**
* `string block = 2;`
*/
public fun clearBlock() {
_builder.clearBlock()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Version.copy(block: tech.figure.block.api.proto.VersionKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Version =
tech.figure.block.api.proto.VersionKt.Dsl._create(this.toBuilder()).apply { block() }._build()