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

games.mythical.saga.sdk.proto.api.currency.BalanceProtoKt.kt Maven / Gradle / Ivy

There is a newer version: 1.1.30
Show newest version
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api/currency/definition.proto

package games.mythical.saga.sdk.proto.api.currency;

@kotlin.jvm.JvmName("-initializebalanceProto")
inline fun balanceProto(block: games.mythical.saga.sdk.proto.api.currency.BalanceProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.currency.BalanceProto =
  games.mythical.saga.sdk.proto.api.currency.BalanceProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.currency.BalanceProto.newBuilder()).apply { block() }._build()
object BalanceProtoKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  class Dsl private constructor(
    private val _builder: games.mythical.saga.sdk.proto.api.currency.BalanceProto.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: games.mythical.saga.sdk.proto.api.currency.BalanceProto.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.api.currency.BalanceProto = _builder.build()

    /**
     * string currency_type_id = 1;
     */
    var currencyTypeId: kotlin.String
      @JvmName("getCurrencyTypeId")
      get() = _builder.getCurrencyTypeId()
      @JvmName("setCurrencyTypeId")
      set(value) {
        _builder.setCurrencyTypeId(value)
      }
    /**
     * string currency_type_id = 1;
     */
    fun clearCurrencyTypeId() {
      _builder.clearCurrencyTypeId()
    }

    /**
     * string balance_in_wei = 2;
     */
    var balanceInWei: kotlin.String
      @JvmName("getBalanceInWei")
      get() = _builder.getBalanceInWei()
      @JvmName("setBalanceInWei")
      set(value) {
        _builder.setBalanceInWei(value)
      }
    /**
     * string balance_in_wei = 2;
     */
    fun clearBalanceInWei() {
      _builder.clearBalanceInWei()
    }
  }
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.currency.BalanceProto.copy(block: games.mythical.saga.sdk.proto.api.currency.BalanceProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.currency.BalanceProto =
  games.mythical.saga.sdk.proto.api.currency.BalanceProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy