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

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

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

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

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

    /**
     * string reservation_id = 1;
     */
    var reservationId: kotlin.String
      @JvmName("getReservationId")
      get() = _builder.getReservationId()
      @JvmName("setReservationId")
      set(value) {
        _builder.setReservationId(value)
      }
    /**
     * string reservation_id = 1;
     */
    fun clearReservationId() {
      _builder.clearReservationId()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    class ItemsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     */
     val items: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getItemsList()
      )
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     * @param value The items to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addItems")
    fun com.google.protobuf.kotlin.DslList.add(value: games.mythical.saga.sdk.proto.api.item.ItemProto) {
      _builder.addItems(value)
    }
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     * @param value The items to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignItems")
    @Suppress("NOTHING_TO_INLINE")
    inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: games.mythical.saga.sdk.proto.api.item.ItemProto) {
      add(value)
    }
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     * @param values The items to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllItems")
    fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllItems(values)
    }
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     * @param values The items to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllItems")
    @Suppress("NOTHING_TO_INLINE")
    inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     * @param index The index to set the value at.
     * @param value The items to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setItems")
    operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: games.mythical.saga.sdk.proto.api.item.ItemProto) {
      _builder.setItems(index, value)
    }
    /**
     * repeated .saga.api.item.ItemProto items = 2;
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearItems")
    fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearItems()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    class FailedBatchesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     */
     val failedBatches: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getFailedBatchesList()
      )
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     * @param value The failedBatches to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addFailedBatches")
    fun com.google.protobuf.kotlin.DslList.add(value: games.mythical.saga.sdk.proto.api.itemtype.FailedItemTypeBatch) {
      _builder.addFailedBatches(value)
    }
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     * @param value The failedBatches to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignFailedBatches")
    @Suppress("NOTHING_TO_INLINE")
    inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: games.mythical.saga.sdk.proto.api.itemtype.FailedItemTypeBatch) {
      add(value)
    }
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     * @param values The failedBatches to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllFailedBatches")
    fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllFailedBatches(values)
    }
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     * @param values The failedBatches to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllFailedBatches")
    @Suppress("NOTHING_TO_INLINE")
    inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     * @param index The index to set the value at.
     * @param value The failedBatches to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setFailedBatches")
    operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: games.mythical.saga.sdk.proto.api.itemtype.FailedItemTypeBatch) {
      _builder.setFailedBatches(index, value)
    }
    /**
     * repeated .saga.api.itemtype.FailedItemTypeBatch failed_batches = 3;
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearFailedBatches")
    fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearFailedBatches()
    }

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy