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

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

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

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

    /**
     * `uint64 fee = 1;`
     */
    public var fee: kotlin.Long
      @JvmName("getFee")
      get() = _builder.getFee()
      @JvmName("setFee")
      set(value) {
        _builder.setFee(value)
      }
    /**
     * `uint64 fee = 1;`
     */
    public fun clearFee() {
      _builder.clearFee()
    }

    /**
     * `string denom = 2;`
     */
    public var denom: kotlin.String
      @JvmName("getDenom")
      get() = _builder.getDenom()
      @JvmName("setDenom")
      set(value) {
        _builder.setDenom(value)
      }
    /**
     * `string denom = 2;`
     */
    public fun clearDenom() {
      _builder.clearDenom()
    }

    /**
     * `.api.SignerInfo signerInfo = 3;`
     */
    public var signerInfo: tech.figure.block.api.proto.BlockOuterClass.SignerInfo
      @JvmName("getSignerInfo")
      get() = _builder.getSignerInfo()
      @JvmName("setSignerInfo")
      set(value) {
        _builder.setSignerInfo(value)
      }
    /**
     * `.api.SignerInfo signerInfo = 3;`
     */
    public fun clearSignerInfo() {
      _builder.clearSignerInfo()
    }
    /**
     * `.api.SignerInfo signerInfo = 3;`
     * @return Whether the signerInfo field is set.
     */
    public fun hasSignerInfo(): kotlin.Boolean {
      return _builder.hasSignerInfo()
    }

    /**
     * `int64 height = 4;`
     */
    public var height: kotlin.Long
      @JvmName("getHeight")
      get() = _builder.getHeight()
      @JvmName("setHeight")
      set(value) {
        _builder.setHeight(value)
      }
    /**
     * `int64 height = 4;`
     */
    public fun clearHeight() {
      _builder.clearHeight()
    }

    /**
     * `string tx_hash = 5;`
     */
    public var txHash: kotlin.String
      @JvmName("getTxHash")
      get() = _builder.getTxHash()
      @JvmName("setTxHash")
      set(value) {
        _builder.setTxHash(value)
      }
    /**
     * `string tx_hash = 5;`
     */
    public fun clearTxHash() {
      _builder.clearTxHash()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun tech.figure.block.api.proto.BlockOuterClass.Fee.copy(block: tech.figure.block.api.proto.FeeKt.Dsl.() -> kotlin.Unit): tech.figure.block.api.proto.BlockOuterClass.Fee =
  tech.figure.block.api.proto.FeeKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val tech.figure.block.api.proto.BlockOuterClass.FeeOrBuilder.signerInfoOrNull: tech.figure.block.api.proto.BlockOuterClass.SignerInfo?
  get() = if (hasSignerInfo()) getSignerInfo() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy