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

games.mythical.saga.sdk.proto.streams.StatusUpdateKt.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/stream.proto

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

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

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

    /**
     * string trace_id = 1;
     */
    var traceId: kotlin.String
      @JvmName("getTraceId")
      get() = _builder.getTraceId()
      @JvmName("setTraceId")
      set(value) {
        _builder.setTraceId(value)
      }
    /**
     * string trace_id = 1;
     */
    fun clearTraceId() {
      _builder.clearTraceId()
    }

    /**
     * .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
     */
    var currencyUpdate: games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate
      @JvmName("getCurrencyUpdate")
      get() = _builder.getCurrencyUpdate()
      @JvmName("setCurrencyUpdate")
      set(value) {
        _builder.setCurrencyUpdate(value)
      }
    /**
     * .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
     */
    fun clearCurrencyUpdate() {
      _builder.clearCurrencyUpdate()
    }
    /**
     * .saga.rpc.streams.currency.CurrencyUpdate currency_update = 2;
     * @return Whether the currencyUpdate field is set.
     */
    fun hasCurrencyUpdate(): kotlin.Boolean {
      return _builder.hasCurrencyUpdate()
    }

    /**
     * .saga.rpc.streams.item.ItemUpdate item_update = 3;
     */
    var itemUpdate: games.mythical.saga.sdk.proto.streams.item.ItemUpdate
      @JvmName("getItemUpdate")
      get() = _builder.getItemUpdate()
      @JvmName("setItemUpdate")
      set(value) {
        _builder.setItemUpdate(value)
      }
    /**
     * .saga.rpc.streams.item.ItemUpdate item_update = 3;
     */
    fun clearItemUpdate() {
      _builder.clearItemUpdate()
    }
    /**
     * .saga.rpc.streams.item.ItemUpdate item_update = 3;
     * @return Whether the itemUpdate field is set.
     */
    fun hasItemUpdate(): kotlin.Boolean {
      return _builder.hasItemUpdate()
    }

    /**
     * .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
     */
    var itemTypeUpdate: games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate
      @JvmName("getItemTypeUpdate")
      get() = _builder.getItemTypeUpdate()
      @JvmName("setItemTypeUpdate")
      set(value) {
        _builder.setItemTypeUpdate(value)
      }
    /**
     * .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
     */
    fun clearItemTypeUpdate() {
      _builder.clearItemTypeUpdate()
    }
    /**
     * .saga.rpc.streams.itemtype.ItemTypeUpdate item_type_update = 4;
     * @return Whether the itemTypeUpdate field is set.
     */
    fun hasItemTypeUpdate(): kotlin.Boolean {
      return _builder.hasItemTypeUpdate()
    }

    /**
     * .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
     */
    var playerWalletUpdate: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate
      @JvmName("getPlayerWalletUpdate")
      get() = _builder.getPlayerWalletUpdate()
      @JvmName("setPlayerWalletUpdate")
      set(value) {
        _builder.setPlayerWalletUpdate(value)
      }
    /**
     * .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
     */
    fun clearPlayerWalletUpdate() {
      _builder.clearPlayerWalletUpdate()
    }
    /**
     * .saga.rpc.streams.playerwallet.PlayerWalletUpdate player_wallet_update = 6;
     * @return Whether the playerWalletUpdate field is set.
     */
    fun hasPlayerWalletUpdate(): kotlin.Boolean {
      return _builder.hasPlayerWalletUpdate()
    }

    /**
     * .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
     */
    var reservationUpdate: games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate
      @JvmName("getReservationUpdate")
      get() = _builder.getReservationUpdate()
      @JvmName("setReservationUpdate")
      set(value) {
        _builder.setReservationUpdate(value)
      }
    /**
     * .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
     */
    fun clearReservationUpdate() {
      _builder.clearReservationUpdate()
    }
    /**
     * .saga.rpc.streams.reservation.ReservationUpdate reservation_update = 7;
     * @return Whether the reservationUpdate field is set.
     */
    fun hasReservationUpdate(): kotlin.Boolean {
      return _builder.hasReservationUpdate()
    }

    /**
     * .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
     */
    var metadataUpdate: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate
      @JvmName("getMetadataUpdate")
      get() = _builder.getMetadataUpdate()
      @JvmName("setMetadataUpdate")
      set(value) {
        _builder.setMetadataUpdate(value)
      }
    /**
     * .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
     */
    fun clearMetadataUpdate() {
      _builder.clearMetadataUpdate()
    }
    /**
     * .saga.rpc.streams.metadata.MetadataUpdate metadata_update = 9;
     * @return Whether the metadataUpdate field is set.
     */
    fun hasMetadataUpdate(): kotlin.Boolean {
      return _builder.hasMetadataUpdate()
    }

    /**
     * .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
     */
    var currencyTypeUpdate: games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate
      @JvmName("getCurrencyTypeUpdate")
      get() = _builder.getCurrencyTypeUpdate()
      @JvmName("setCurrencyTypeUpdate")
      set(value) {
        _builder.setCurrencyTypeUpdate(value)
      }
    /**
     * .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
     */
    fun clearCurrencyTypeUpdate() {
      _builder.clearCurrencyTypeUpdate()
    }
    /**
     * .saga.rpc.streams.currencytype.CurrencyTypeUpdate currency_type_update = 10;
     * @return Whether the currencyTypeUpdate field is set.
     */
    fun hasCurrencyTypeUpdate(): kotlin.Boolean {
      return _builder.hasCurrencyTypeUpdate()
    }

    /**
     * .google.protobuf.Timestamp created_at = 8;
     */
    var createdAt: com.google.protobuf.Timestamp
      @JvmName("getCreatedAt")
      get() = _builder.getCreatedAt()
      @JvmName("setCreatedAt")
      set(value) {
        _builder.setCreatedAt(value)
      }
    /**
     * .google.protobuf.Timestamp created_at = 8;
     */
    fun clearCreatedAt() {
      _builder.clearCreatedAt()
    }
    /**
     * .google.protobuf.Timestamp created_at = 8;
     * @return Whether the createdAt field is set.
     */
    fun hasCreatedAt(): kotlin.Boolean {
      return _builder.hasCreatedAt()
    }
    val statusUpdateCase: games.mythical.saga.sdk.proto.streams.StatusUpdate.StatusUpdateCase
      @JvmName("getStatusUpdateCase")
      get() = _builder.getStatusUpdateCase()

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

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.currencyUpdateOrNull: games.mythical.saga.sdk.proto.streams.currency.CurrencyUpdate?
  get() = if (hasCurrencyUpdate()) getCurrencyUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.itemUpdateOrNull: games.mythical.saga.sdk.proto.streams.item.ItemUpdate?
  get() = if (hasItemUpdate()) getItemUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.itemTypeUpdateOrNull: games.mythical.saga.sdk.proto.streams.itemtype.ItemTypeUpdate?
  get() = if (hasItemTypeUpdate()) getItemTypeUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.playerWalletUpdateOrNull: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate?
  get() = if (hasPlayerWalletUpdate()) getPlayerWalletUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.reservationUpdateOrNull: games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate?
  get() = if (hasReservationUpdate()) getReservationUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.metadataUpdateOrNull: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate?
  get() = if (hasMetadataUpdate()) getMetadataUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.currencyTypeUpdateOrNull: games.mythical.saga.sdk.proto.streams.currencytype.CurrencyTypeUpdate?
  get() = if (hasCurrencyTypeUpdate()) getCurrencyTypeUpdate() else null

val games.mythical.saga.sdk.proto.streams.StatusUpdateOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp?
  get() = if (hasCreatedAt()) getCreatedAt() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy