games.mythical.saga.sdk.proto.api.offer.OfferProtoKt.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("-initializeofferProto")
inline fun offerProto(block: games.mythical.saga.sdk.proto.api.offer.OfferProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.offer.OfferProto =
games.mythical.saga.sdk.proto.api.offer.OfferProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.offer.OfferProto.newBuilder()).apply { block() }._build()
object OfferProtoKt {
@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.OfferProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.offer.OfferProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.offer.OfferProto = _builder.build()
/**
*
* User of the Offer
*
*
* string oauth_id = 1;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
*
* User of the Offer
*
*
* 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()
}
/**
*
* Currency of the total
*
*
* string currency = 3;
*/
var currency: kotlin.String
@JvmName("getCurrency")
get() = _builder.getCurrency()
@JvmName("setCurrency")
set(value) {
_builder.setCurrency(value)
}
/**
*
* Currency of the total
*
*
* string currency = 3;
*/
fun clearCurrency() {
_builder.clearCurrency()
}
/**
*
* Total cost of the offer
*
*
* string total = 4;
*/
var total: kotlin.String
@JvmName("getTotal")
get() = _builder.getTotal()
@JvmName("setTotal")
set(value) {
_builder.setTotal(value)
}
/**
*
* Total cost of the offer
*
*
* string total = 4;
*/
fun clearTotal() {
_builder.clearTotal()
}
/**
*
* When the offer was created
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
var createdAt: com.google.protobuf.Timestamp
@JvmName("getCreatedAt")
get() = _builder.getCreatedAt()
@JvmName("setCreatedAt")
set(value) {
_builder.setCreatedAt(value)
}
/**
*
* When the offer was created
*
*
* .google.protobuf.Timestamp created_at = 5;
*/
fun clearCreatedAt() {
_builder.clearCreatedAt()
}
/**
*
* When the offer was created
*
*
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
fun hasCreatedAt(): kotlin.Boolean {
return _builder.hasCreatedAt()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.offer.OfferProto.copy(block: games.mythical.saga.sdk.proto.api.offer.OfferProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.offer.OfferProto =
games.mythical.saga.sdk.proto.api.offer.OfferProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.offer.OfferProtoOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp?
get() = if (hasCreatedAt()) getCreatedAt() else null