games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequestKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saga-sdk-proto Show documentation
Show all versions of saga-sdk-proto Show documentation
Saga SDK for Java game servers
//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("-initializecreateReservationRequest")
inline fun createReservationRequest(block: games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequest =
games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequest.newBuilder()).apply { block() }._build()
object CreateReservationRequestKt {
@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.CreateReservationRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequest = _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()
}
/**
* string oauth_id = 2;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
* string oauth_id = 2;
*/
fun clearOauthId() {
_builder.clearOauthId()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
class ItemReservationsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
*/
val itemReservations: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getItemReservationsList()
)
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
* @param value The itemReservations to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addItemReservations")
fun com.google.protobuf.kotlin.DslList.add(value: games.mythical.saga.sdk.proto.api.reservation.ItemReservationProto) {
_builder.addItemReservations(value)
}
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
* @param value The itemReservations to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignItemReservations")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: games.mythical.saga.sdk.proto.api.reservation.ItemReservationProto) {
add(value)
}
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
* @param values The itemReservations to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllItemReservations")
fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllItemReservations(values)
}
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
* @param values The itemReservations to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllItemReservations")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
* @param index The index to set the value at.
* @param value The itemReservations to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setItemReservations")
operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: games.mythical.saga.sdk.proto.api.reservation.ItemReservationProto) {
_builder.setItemReservations(index, value)
}
/**
* repeated .saga.api.reservation.ItemReservationProto item_reservations = 3;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearItemReservations")
fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearItemReservations()
}
/**
* .google.protobuf.Int64Value ttl = 4;
*/
var ttl: com.google.protobuf.Int64Value
@JvmName("getTtl")
get() = _builder.getTtl()
@JvmName("setTtl")
set(value) {
_builder.setTtl(value)
}
/**
* .google.protobuf.Int64Value ttl = 4;
*/
fun clearTtl() {
_builder.clearTtl()
}
/**
* .google.protobuf.Int64Value ttl = 4;
* @return Whether the ttl field is set.
*/
fun hasTtl(): kotlin.Boolean {
return _builder.hasTtl()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequest.copy(block: games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequest =
games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.reservation.CreateReservationRequestOrBuilder.ttlOrNull: com.google.protobuf.Int64Value?
get() = if (hasTtl()) getTtl() else null