games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequestKt.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/offer/definition.proto
package games.mythical.saga.sdk.proto.api.offer;
@kotlin.jvm.JvmName("-initializecreateOfferQuoteRequest")
inline fun createOfferQuoteRequest(block: games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequest =
games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequest.newBuilder()).apply { block() }._build()
object CreateOfferQuoteRequestKt {
@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.offer.CreateOfferQuoteRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequest = _builder.build()
/**
* string oauth_id = 1;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
* string oauth_id = 1;
*/
fun clearOauthId() {
_builder.clearOauthId()
}
/**
*
* GameInventory Id of the Offer
*
*
* string inventory_id = 2;
*/
var inventoryId: kotlin.String
@JvmName("getInventoryId")
get() = _builder.getInventoryId()
@JvmName("setInventoryId")
set(value) {
_builder.setInventoryId(value)
}
/**
*
* GameInventory Id of the Offer
*
*
* string inventory_id = 2;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
/**
*
* Total quoted for the Offer
*
*
* string total = 3;
*/
var total: kotlin.String
@JvmName("getTotal")
get() = _builder.getTotal()
@JvmName("setTotal")
set(value) {
_builder.setTotal(value)
}
/**
*
* Total quoted for the Offer
*
*
* string total = 3;
*/
fun clearTotal() {
_builder.clearTotal()
}
/**
*
* Currency the total is in
*
*
* string currency = 4;
*/
var currency: kotlin.String
@JvmName("getCurrency")
get() = _builder.getCurrency()
@JvmName("setCurrency")
set(value) {
_builder.setCurrency(value)
}
/**
*
* Currency the total is in
*
*
* string currency = 4;
*/
fun clearCurrency() {
_builder.clearCurrency()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequest.copy(block: games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequest =
games.mythical.saga.sdk.proto.api.offer.CreateOfferQuoteRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()