games.mythical.saga.sdk.proto.api.item.GetItemRequestKt.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("-initializegetItemRequest")
inline fun getItemRequest(block: games.mythical.saga.sdk.proto.api.item.GetItemRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.GetItemRequest =
games.mythical.saga.sdk.proto.api.item.GetItemRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.GetItemRequest.newBuilder()).apply { block() }._build()
object GetItemRequestKt {
@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.GetItemRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.GetItemRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.GetItemRequest = _builder.build()
/**
*
* Game's id for the Item to retrieve
*
*
* 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 retrieve
*
*
* string inventory_id = 1;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.GetItemRequest.copy(block: games.mythical.saga.sdk.proto.api.item.GetItemRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.GetItemRequest =
games.mythical.saga.sdk.proto.api.item.GetItemRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()