tech.figure.block.api.proto.BlocksResultKt.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("-initializeblocksResult")
public inline fun blocksResult(block: tech.figure.block.api.proto.BlocksResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResult =
tech.figure.block.api.proto.BlocksResultKt.Dsl._create(tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResult.newBuilder()).apply { block() }._build()
/**
* Protobuf type `api.BlocksResult`
*/
public object BlocksResultKt {
@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.BlocksResult.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResult.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResult = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class BlockProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* `repeated .api.Block block = 1;`
*/
public val block: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getBlockList()
)
/**
* `repeated .api.Block block = 1;`
* @param value The block to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addBlock")
public fun com.google.protobuf.kotlin.DslList.add(value: tech.figure.block.api.proto.BlockOuterClass.Block) {
_builder.addBlock(value)
}
/**
* `repeated .api.Block block = 1;`
* @param value The block to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignBlock")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: tech.figure.block.api.proto.BlockOuterClass.Block) {
add(value)
}
/**
* `repeated .api.Block block = 1;`
* @param values The block to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllBlock")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllBlock(values)
}
/**
* `repeated .api.Block block = 1;`
* @param values The block to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllBlock")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* `repeated .api.Block block = 1;`
* @param index The index to set the value at.
* @param value The block to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setBlock")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: tech.figure.block.api.proto.BlockOuterClass.Block) {
_builder.setBlock(index, value)
}
/**
* `repeated .api.Block block = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearBlock")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearBlock()
}
/**
* `.api.TransactionsResult transactions = 2;`
*/
public var transactions: tech.figure.block.api.proto.BlockServiceOuterClass.TransactionsResult
@JvmName("getTransactions")
get() = _builder.getTransactions()
@JvmName("setTransactions")
set(value) {
_builder.setTransactions(value)
}
/**
* `.api.TransactionsResult transactions = 2;`
*/
public fun clearTransactions() {
_builder.clearTransactions()
}
/**
* `.api.TransactionsResult transactions = 2;`
* @return Whether the transactions field is set.
*/
public fun hasTransactions(): kotlin.Boolean {
return _builder.hasTransactions()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResult.copy(block: tech.figure.block.api.proto.BlocksResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResult =
tech.figure.block.api.proto.BlocksResultKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val tech.figure.block.api.proto.BlockServiceOuterClass.BlocksResultOrBuilder.transactionsOrNull: tech.figure.block.api.proto.BlockServiceOuterClass.TransactionsResult?
get() = if (hasTransactions()) getTransactions() else null