All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.figure.block.api.proto.BlockStreamResultKt.kt Maven / Gradle / Ivy

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("-initializeblockStreamResult")
public inline fun blockStreamResult(block: tech.figure.block.api.proto.BlockStreamResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResult =
  tech.figure.block.api.proto.BlockStreamResultKt.Dsl._create(tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResult.newBuilder()).apply { block() }._build()
/**
 * Protobuf type `api.BlockStreamResult`
 */
public object BlockStreamResultKt {
  @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.BlockStreamResult.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResult.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResult = _builder.build()

    /**
     * `.api.BlockResult block_result = 1;`
     */
    public var blockResult: tech.figure.block.api.proto.BlockServiceOuterClass.BlockResult
      @JvmName("getBlockResult")
      get() = _builder.getBlockResult()
      @JvmName("setBlockResult")
      set(value) {
        _builder.setBlockResult(value)
      }
    /**
     * `.api.BlockResult block_result = 1;`
     */
    public fun clearBlockResult() {
      _builder.clearBlockResult()
    }
    /**
     * `.api.BlockResult block_result = 1;`
     * @return Whether the blockResult field is set.
     */
    public fun hasBlockResult(): kotlin.Boolean {
      return _builder.hasBlockResult()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResult.copy(block: tech.figure.block.api.proto.BlockStreamResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResult =
  tech.figure.block.api.proto.BlockStreamResultKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.BlockServiceOuterClass.BlockStreamResultOrBuilder.blockResultOrNull: tech.figure.block.api.proto.BlockServiceOuterClass.BlockResult?
  get() = if (hasBlockResult()) getBlockResult() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy