games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.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("-initializeissueItemProto")
inline fun issueItemProto(block: games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.IssueItemProto =
games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.IssueItemProto.newBuilder()).apply { block() }._build()
object IssueItemProtoKt {
@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.IssueItemProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.IssueItemProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.IssueItemProto = _builder.build()
/**
*
* GameInventory Ids of Items being issued
*
*
* string inventory_id = 1;
*/
var inventoryId: kotlin.String
@JvmName("getInventoryId")
get() = _builder.getInventoryId()
@JvmName("setInventoryId")
set(value) {
_builder.setInventoryId(value)
}
/**
*
* GameInventory Ids of Items being issued
*
*
* string inventory_id = 1;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
/**
*
* Metadata associated to Item being issued
*
*
* .saga.common.Metadata metadata = 2;
*/
var metadata: games.mythical.saga.sdk.proto.common.Metadata
@JvmName("getMetadata")
get() = _builder.getMetadata()
@JvmName("setMetadata")
set(value) {
_builder.setMetadata(value)
}
/**
*
* Metadata associated to Item being issued
*
*
* .saga.common.Metadata metadata = 2;
*/
fun clearMetadata() {
_builder.clearMetadata()
}
/**
*
* Metadata associated to Item being issued
*
*
* .saga.common.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
fun hasMetadata(): kotlin.Boolean {
return _builder.hasMetadata()
}
/**
*
* TokenId associated to Item being issued
*
*
* uint64 token_id = 4;
*/
var tokenId: kotlin.Long
@JvmName("getTokenId")
get() = _builder.getTokenId()
@JvmName("setTokenId")
set(value) {
_builder.setTokenId(value)
}
/**
*
* TokenId associated to Item being issued
*
*
* uint64 token_id = 4;
*/
fun clearTokenId() {
_builder.clearTokenId()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.IssueItemProto.copy(block: games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.IssueItemProto =
games.mythical.saga.sdk.proto.api.item.IssueItemProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.item.IssueItemProtoOrBuilder.metadataOrNull: games.mythical.saga.sdk.proto.common.Metadata?
get() = if (hasMetadata()) getMetadata() else null