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

games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.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: streams/playerwallet/definition.proto

package games.mythical.saga.sdk.proto.streams.playerwallet;

@kotlin.jvm.JvmName("-initializeplayerWalletUpdate")
inline fun playerWalletUpdate(block: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate =
  games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl._create(games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.newBuilder()).apply { block() }._build()
object PlayerWalletUpdateKt {
  @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.streams.playerwallet.PlayerWalletUpdate.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate = _builder.build()

    /**
     * .saga.common.ErrorData error = 1;
     */
    var error: games.mythical.saga.sdk.proto.common.ErrorData
      @JvmName("getError")
      get() = _builder.getError()
      @JvmName("setError")
      set(value) {
        _builder.setError(value)
      }
    /**
     * .saga.common.ErrorData error = 1;
     */
    fun clearError() {
      _builder.clearError()
    }
    /**
     * .saga.common.ErrorData error = 1;
     * @return Whether the error field is set.
     */
    fun hasError(): kotlin.Boolean {
      return _builder.hasError()
    }

    /**
     * .saga.rpc.streams.playerwallet.PlayerWalletStatusUpdate status_update = 2;
     */
    var statusUpdate: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletStatusUpdate
      @JvmName("getStatusUpdate")
      get() = _builder.getStatusUpdate()
      @JvmName("setStatusUpdate")
      set(value) {
        _builder.setStatusUpdate(value)
      }
    /**
     * .saga.rpc.streams.playerwallet.PlayerWalletStatusUpdate status_update = 2;
     */
    fun clearStatusUpdate() {
      _builder.clearStatusUpdate()
    }
    /**
     * .saga.rpc.streams.playerwallet.PlayerWalletStatusUpdate status_update = 2;
     * @return Whether the statusUpdate field is set.
     */
    fun hasStatusUpdate(): kotlin.Boolean {
      return _builder.hasStatusUpdate()
    }
    val updateCase: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.UpdateCase
      @JvmName("getUpdateCase")
      get() = _builder.getUpdateCase()

    fun clearUpdate() {
      _builder.clearUpdate()
    }
  }
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.copy(block: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate =
  games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl._create(this.toBuilder()).apply { block() }._build()

val games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder.errorOrNull: games.mythical.saga.sdk.proto.common.ErrorData?
  get() = if (hasError()) getError() else null

val games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder.statusUpdateOrNull: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletStatusUpdate?
  get() = if (hasStatusUpdate()) getStatusUpdate() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy