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

games.mythical.saga.sdk.proto.api.reservation.RedeemItemProtoKt.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/reservation/definition.proto

package games.mythical.saga.sdk.proto.api.reservation;

@kotlin.jvm.JvmName("-initializeredeemItemProto")
inline fun redeemItemProto(block: games.mythical.saga.sdk.proto.api.reservation.RedeemItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.reservation.RedeemItemProto =
  games.mythical.saga.sdk.proto.api.reservation.RedeemItemProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.reservation.RedeemItemProto.newBuilder()).apply { block() }._build()
object RedeemItemProtoKt {
  @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.reservation.RedeemItemProto.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: games.mythical.saga.sdk.proto.api.reservation.RedeemItemProto.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * string inventory_id = 1;
     */
    var inventoryId: kotlin.String
      @JvmName("getInventoryId")
      get() = _builder.getInventoryId()
      @JvmName("setInventoryId")
      set(value) {
        _builder.setInventoryId(value)
      }
    /**
     * string inventory_id = 1;
     */
    fun clearInventoryId() {
      _builder.clearInventoryId()
    }

    /**
     * string item_type_id = 2;
     */
    var itemTypeId: kotlin.String
      @JvmName("getItemTypeId")
      get() = _builder.getItemTypeId()
      @JvmName("setItemTypeId")
      set(value) {
        _builder.setItemTypeId(value)
      }
    /**
     * string item_type_id = 2;
     */
    fun clearItemTypeId() {
      _builder.clearItemTypeId()
    }

    /**
     * .saga.common.Metadata metadata = 3;
     */
    var metadata: games.mythical.saga.sdk.proto.common.Metadata
      @JvmName("getMetadata")
      get() = _builder.getMetadata()
      @JvmName("setMetadata")
      set(value) {
        _builder.setMetadata(value)
      }
    /**
     * .saga.common.Metadata metadata = 3;
     */
    fun clearMetadata() {
      _builder.clearMetadata()
    }
    /**
     * .saga.common.Metadata metadata = 3;
     * @return Whether the metadata field is set.
     */
    fun hasMetadata(): kotlin.Boolean {
      return _builder.hasMetadata()
    }

    /**
     * uint64 token_id = 4;
     */
    var tokenId: kotlin.Long
      @JvmName("getTokenId")
      get() = _builder.getTokenId()
      @JvmName("setTokenId")
      set(value) {
        _builder.setTokenId(value)
      }
    /**
     * uint64 token_id = 4;
     */
    fun clearTokenId() {
      _builder.clearTokenId()
    }
  }
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.reservation.RedeemItemProto.copy(block: games.mythical.saga.sdk.proto.api.reservation.RedeemItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.reservation.RedeemItemProto =
  games.mythical.saga.sdk.proto.api.reservation.RedeemItemProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()

val games.mythical.saga.sdk.proto.api.reservation.RedeemItemProtoOrBuilder.metadataOrNull: games.mythical.saga.sdk.proto.common.Metadata?
  get() = if (hasMetadata()) getMetadata() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy