games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequestKt.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/metadata/definition.proto
package games.mythical.saga.sdk.proto.api.metadata;
@kotlin.jvm.JvmName("-initializeupdateItemMetadataRequest")
inline fun updateItemMetadataRequest(block: games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest =
games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest.newBuilder()).apply { block() }._build()
object UpdateItemMetadataRequestKt {
@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.metadata.UpdateItemMetadataRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest = _builder.build()
/**
*
* Update Metadata for the Item with this id
*
*
* string inventory_id = 1;
*/
var inventoryId: kotlin.String
@JvmName("getInventoryId")
get() = _builder.getInventoryId()
@JvmName("setInventoryId")
set(value) {
_builder.setInventoryId(value)
}
/**
*
* Update Metadata for the Item with this id
*
*
* string inventory_id = 1;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
/**
*
* Metadata to update with
*
*
* .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 to update with
*
*
* .saga.common.Metadata metadata = 2;
*/
fun clearMetadata() {
_builder.clearMetadata()
}
/**
*
* Metadata to update with
*
*
* .saga.common.Metadata metadata = 2;
* @return Whether the metadata field is set.
*/
fun hasMetadata(): kotlin.Boolean {
return _builder.hasMetadata()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest.copy(block: games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequest =
games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.metadata.UpdateItemMetadataRequestOrBuilder.metadataOrNull: games.mythical.saga.sdk.proto.common.Metadata?
get() = if (hasMetadata()) getMetadata() else null