games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProtoKt.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: streams/metadata/definition.proto
package games.mythical.saga.sdk.proto.streams.metadata;
@kotlin.jvm.JvmName("-initializemetadataUpdateProto")
inline fun metadataUpdateProto(block: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto =
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProtoKt.Dsl._create(games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto.newBuilder()).apply { block() }._build()
object MetadataUpdateProtoKt {
@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.streams.metadata.MetadataUpdateProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto = _builder.build()
/**
*
* Game's unique Id for the Item
*
*
* string inventory_id = 1;
*/
var inventoryId: kotlin.String
@JvmName("getInventoryId")
get() = _builder.getInventoryId()
@JvmName("setInventoryId")
set(value) {
_builder.setInventoryId(value)
}
/**
*
* Game's unique Id for the Item
*
*
* string inventory_id = 1;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
/**
*
* Metadata address
*
*
* string metadata_url = 2;
*/
var metadataUrl: kotlin.String
@JvmName("getMetadataUrl")
get() = _builder.getMetadataUrl()
@JvmName("setMetadataUrl")
set(value) {
_builder.setMetadataUrl(value)
}
/**
*
* Metadata address
*
*
* string metadata_url = 2;
*/
fun clearMetadataUrl() {
_builder.clearMetadataUrl()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto.copy(block: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto =
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()