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

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

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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.streams.item.ItemUpdate = _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.item.ItemStatusUpdate status_update = 2;
     */
    var statusUpdate: games.mythical.saga.sdk.proto.streams.item.ItemStatusUpdate
      @JvmName("getStatusUpdate")
      get() = _builder.getStatusUpdate()
      @JvmName("setStatusUpdate")
      set(value) {
        _builder.setStatusUpdate(value)
      }
    /**
     * .saga.rpc.streams.item.ItemStatusUpdate status_update = 2;
     */
    fun clearStatusUpdate() {
      _builder.clearStatusUpdate()
    }
    /**
     * .saga.rpc.streams.item.ItemStatusUpdate status_update = 2;
     * @return Whether the statusUpdate field is set.
     */
    fun hasStatusUpdate(): kotlin.Boolean {
      return _builder.hasStatusUpdate()
    }

    /**
     * .saga.rpc.streams.item.ItemStatusUpdates status_updates = 3;
     */
    var statusUpdates: games.mythical.saga.sdk.proto.streams.item.ItemStatusUpdates
      @JvmName("getStatusUpdates")
      get() = _builder.getStatusUpdates()
      @JvmName("setStatusUpdates")
      set(value) {
        _builder.setStatusUpdates(value)
      }
    /**
     * .saga.rpc.streams.item.ItemStatusUpdates status_updates = 3;
     */
    fun clearStatusUpdates() {
      _builder.clearStatusUpdates()
    }
    /**
     * .saga.rpc.streams.item.ItemStatusUpdates status_updates = 3;
     * @return Whether the statusUpdates field is set.
     */
    fun hasStatusUpdates(): kotlin.Boolean {
      return _builder.hasStatusUpdates()
    }
    val updateCase: games.mythical.saga.sdk.proto.streams.item.ItemUpdate.UpdateCase
      @JvmName("getUpdateCase")
      get() = _builder.getUpdateCase()

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

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

val games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder.statusUpdateOrNull: games.mythical.saga.sdk.proto.streams.item.ItemStatusUpdate?
  get() = if (hasStatusUpdate()) getStatusUpdate() else null

val games.mythical.saga.sdk.proto.streams.item.ItemUpdateOrBuilder.statusUpdatesOrNull: games.mythical.saga.sdk.proto.streams.item.ItemStatusUpdates?
  get() = if (hasStatusUpdates()) getStatusUpdates() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy