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

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

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

    /**
     * `int64 currentHeight = 1;`
     */
    public var currentHeight: kotlin.Long
      @JvmName("getCurrentHeight")
      get() = _builder.getCurrentHeight()
      @JvmName("setCurrentHeight")
      set(value) {
        _builder.setCurrentHeight(value)
      }
    /**
     * `int64 currentHeight = 1;`
     */
    public fun clearCurrentHeight() {
      _builder.clearCurrentHeight()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult.copy(block: tech.figure.block.api.proto.StatusResultKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockServiceOuterClass.StatusResult =
  tech.figure.block.api.proto.StatusResultKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy