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

games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProtoKt.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("-initializebalanceOfPlayerProto")
inline fun balanceOfPlayerProto(block: games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProto =
  games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProto.newBuilder()).apply { block() }._build()
object BalanceOfPlayerProtoKt {
  @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.BalanceOfPlayerProto.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProto.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * string oauth_id = 1;
     */
    var oauthId: kotlin.String
      @JvmName("getOauthId")
      get() = _builder.getOauthId()
      @JvmName("setOauthId")
      set(value) {
        _builder.setOauthId(value)
      }
    /**
     * string oauth_id = 1;
     */
    fun clearOauthId() {
      _builder.clearOauthId()
    }

    /**
     * .saga.api.currency.BalanceProto balance = 2;
     */
    var balance: games.mythical.saga.sdk.proto.api.currency.BalanceProto
      @JvmName("getBalance")
      get() = _builder.getBalance()
      @JvmName("setBalance")
      set(value) {
        _builder.setBalance(value)
      }
    /**
     * .saga.api.currency.BalanceProto balance = 2;
     */
    fun clearBalance() {
      _builder.clearBalance()
    }
    /**
     * .saga.api.currency.BalanceProto balance = 2;
     * @return Whether the balance field is set.
     */
    fun hasBalance(): kotlin.Boolean {
      return _builder.hasBalance()
    }

    /**
     * string trace_id = 3;
     */
    var traceId: kotlin.String
      @JvmName("getTraceId")
      get() = _builder.getTraceId()
      @JvmName("setTraceId")
      set(value) {
        _builder.setTraceId(value)
      }
    /**
     * string trace_id = 3;
     */
    fun clearTraceId() {
      _builder.clearTraceId()
    }
  }
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProto.copy(block: games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProto =
  games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()

val games.mythical.saga.sdk.proto.api.currency.BalanceOfPlayerProtoOrBuilder.balanceOrNull: games.mythical.saga.sdk.proto.api.currency.BalanceProto?
  get() = if (hasBalance()) getBalance() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy