games.mythical.saga.sdk.proto.api.item.TransferItemRequestKt.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/item/definition.proto
package games.mythical.saga.sdk.proto.api.item;
@kotlin.jvm.JvmName("-initializetransferItemRequest")
inline fun transferItemRequest(block: games.mythical.saga.sdk.proto.api.item.TransferItemRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.TransferItemRequest =
games.mythical.saga.sdk.proto.api.item.TransferItemRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.TransferItemRequest.newBuilder()).apply { block() }._build()
object TransferItemRequestKt {
@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.item.TransferItemRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.TransferItemRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.TransferItemRequest = _builder.build()
/**
*
* Game's id for the Item to transfer
*
*
* string inventory_id = 1;
*/
var inventoryId: kotlin.String
@JvmName("getInventoryId")
get() = _builder.getInventoryId()
@JvmName("setInventoryId")
set(value) {
_builder.setInventoryId(value)
}
/**
*
* Game's id for the Item to transfer
*
*
* string inventory_id = 1;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
/**
*
* User of Item to transfer to
*
*
* string destination_oauth_id = 3;
*/
var destinationOauthId: kotlin.String
@JvmName("getDestinationOauthId")
get() = _builder.getDestinationOauthId()
@JvmName("setDestinationOauthId")
set(value) {
_builder.setDestinationOauthId(value)
}
/**
*
* User of Item to transfer to
*
*
* string destination_oauth_id = 3;
*/
fun clearDestinationOauthId() {
_builder.clearDestinationOauthId()
}
/**
* string idempotency_id = 4;
*/
var idempotencyId: kotlin.String
@JvmName("getIdempotencyId")
get() = _builder.getIdempotencyId()
@JvmName("setIdempotencyId")
set(value) {
_builder.setIdempotencyId(value)
}
/**
* string idempotency_id = 4;
*/
fun clearIdempotencyId() {
_builder.clearIdempotencyId()
}
/**
* bool prefund_gas = 5;
*/
var prefundGas: kotlin.Boolean
@JvmName("getPrefundGas")
get() = _builder.getPrefundGas()
@JvmName("setPrefundGas")
set(value) {
_builder.setPrefundGas(value)
}
/**
* bool prefund_gas = 5;
*/
fun clearPrefundGas() {
_builder.clearPrefundGas()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.TransferItemRequest.copy(block: games.mythical.saga.sdk.proto.api.item.TransferItemRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.TransferItemRequest =
games.mythical.saga.sdk.proto.api.item.TransferItemRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()