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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate = _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.reservation.ReservationCreatedProto reservation_created = 2;
     */
    var reservationCreated: games.mythical.saga.sdk.proto.streams.reservation.ReservationCreatedProto
      @JvmName("getReservationCreated")
      get() = _builder.getReservationCreated()
      @JvmName("setReservationCreated")
      set(value) {
        _builder.setReservationCreated(value)
      }
    /**
     * .saga.rpc.streams.reservation.ReservationCreatedProto reservation_created = 2;
     */
    fun clearReservationCreated() {
      _builder.clearReservationCreated()
    }
    /**
     * .saga.rpc.streams.reservation.ReservationCreatedProto reservation_created = 2;
     * @return Whether the reservationCreated field is set.
     */
    fun hasReservationCreated(): kotlin.Boolean {
      return _builder.hasReservationCreated()
    }

    /**
     * .saga.rpc.streams.reservation.ReservationReleasedProto reservation_released = 3;
     */
    var reservationReleased: games.mythical.saga.sdk.proto.streams.reservation.ReservationReleasedProto
      @JvmName("getReservationReleased")
      get() = _builder.getReservationReleased()
      @JvmName("setReservationReleased")
      set(value) {
        _builder.setReservationReleased(value)
      }
    /**
     * .saga.rpc.streams.reservation.ReservationReleasedProto reservation_released = 3;
     */
    fun clearReservationReleased() {
      _builder.clearReservationReleased()
    }
    /**
     * .saga.rpc.streams.reservation.ReservationReleasedProto reservation_released = 3;
     * @return Whether the reservationReleased field is set.
     */
    fun hasReservationReleased(): kotlin.Boolean {
      return _builder.hasReservationReleased()
    }

    /**
     * .saga.rpc.streams.reservation.ReservationRedeemedProto reservation_redeemed = 4;
     */
    var reservationRedeemed: games.mythical.saga.sdk.proto.streams.reservation.ReservationRedeemedProto
      @JvmName("getReservationRedeemed")
      get() = _builder.getReservationRedeemed()
      @JvmName("setReservationRedeemed")
      set(value) {
        _builder.setReservationRedeemed(value)
      }
    /**
     * .saga.rpc.streams.reservation.ReservationRedeemedProto reservation_redeemed = 4;
     */
    fun clearReservationRedeemed() {
      _builder.clearReservationRedeemed()
    }
    /**
     * .saga.rpc.streams.reservation.ReservationRedeemedProto reservation_redeemed = 4;
     * @return Whether the reservationRedeemed field is set.
     */
    fun hasReservationRedeemed(): kotlin.Boolean {
      return _builder.hasReservationRedeemed()
    }
    val updateCase: games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdate.UpdateCase
      @JvmName("getUpdateCase")
      get() = _builder.getUpdateCase()

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

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

val games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder.reservationCreatedOrNull: games.mythical.saga.sdk.proto.streams.reservation.ReservationCreatedProto?
  get() = if (hasReservationCreated()) getReservationCreated() else null

val games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder.reservationReleasedOrNull: games.mythical.saga.sdk.proto.streams.reservation.ReservationReleasedProto?
  get() = if (hasReservationReleased()) getReservationReleased() else null

val games.mythical.saga.sdk.proto.streams.reservation.ReservationUpdateOrBuilder.reservationRedeemedOrNull: games.mythical.saga.sdk.proto.streams.reservation.ReservationRedeemedProto?
  get() = if (hasReservationRedeemed()) getReservationRedeemed() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy