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

games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateKt.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/currency/definition.proto

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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate = _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.currency.CurrencyStatusUpdate status_update = 2;
     */
    var statusUpdate: games.mythical.saga.sdk.proto.streams.currency.CurrencyStatusUpdate
      @JvmName("getStatusUpdate")
      get() = _builder.getStatusUpdate()
      @JvmName("setStatusUpdate")
      set(value) {
        _builder.setStatusUpdate(value)
      }
    /**
     * .saga.rpc.streams.currency.CurrencyStatusUpdate status_update = 2;
     */
    fun clearStatusUpdate() {
      _builder.clearStatusUpdate()
    }
    /**
     * .saga.rpc.streams.currency.CurrencyStatusUpdate 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.currency.CurrencyUpdate.UpdateCase
      @JvmName("getUpdateCase")
      get() = _builder.getUpdateCase()

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

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

val games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdateOrBuilder.statusUpdateOrNull: games.mythical.saga.sdk.proto.streams.currency.CurrencyStatusUpdate?
  get() = if (hasStatusUpdate()) getStatusUpdate() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy