tech.figure.block.api.proto.PartyKt.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("-initializeparty")
public inline fun party(block: tech.figure.block.api.proto.PartyKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Party =
tech.figure.block.api.proto.PartyKt.Dsl._create(tech.figure.block.api.proto.BlockOuterClass.Party.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.Party`
*/
public object PartyKt {
@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.Party.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.BlockOuterClass.Party.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.BlockOuterClass.Party = _builder.build()
/**
* `string address = 1;`
*/
public var address: kotlin.String
@JvmName("getAddress")
get() = _builder.getAddress()
@JvmName("setAddress")
set(value) {
_builder.setAddress(value)
}
/**
* `string address = 1;`
*/
public fun clearAddress() {
_builder.clearAddress()
}
/**
* `string role = 2;`
*/
public var role: kotlin.String
@JvmName("getRole")
get() = _builder.getRole()
@JvmName("setRole")
set(value) {
_builder.setRole(value)
}
/**
* `string role = 2;`
*/
public fun clearRole() {
_builder.clearRole()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Party.copy(block: tech.figure.block.api.proto.PartyKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Party =
tech.figure.block.api.proto.PartyKt.Dsl._create(this.toBuilder()).apply { block() }._build()