games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateKt.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("-initializemetadataUpdate")
inline fun metadataUpdate(block: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate =
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateKt.Dsl._create(games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.newBuilder()).apply { block() }._build()
object MetadataUpdateKt {
@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.MetadataUpdate.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate = _builder.build()
/**
* .saga.common.ErrorData error = 1;
*/
var error: games.mythical.saga.sdk.proto.common.ErrorData
@JvmName("getError")
get() = _builder.getError()
@JvmName("setError")
set(value) {
_builder.setError(value)
}
/**
* .saga.common.ErrorData error = 1;
*/
fun clearError() {
_builder.clearError()
}
/**
* .saga.common.ErrorData error = 1;
* @return Whether the error field is set.
*/
fun hasError(): kotlin.Boolean {
return _builder.hasError()
}
/**
* .saga.rpc.streams.metadata.MetadataUpdateProto metadata_updated = 2;
*/
var metadataUpdated: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto
@JvmName("getMetadataUpdated")
get() = _builder.getMetadataUpdated()
@JvmName("setMetadataUpdated")
set(value) {
_builder.setMetadataUpdated(value)
}
/**
* .saga.rpc.streams.metadata.MetadataUpdateProto metadata_updated = 2;
*/
fun clearMetadataUpdated() {
_builder.clearMetadataUpdated()
}
/**
* .saga.rpc.streams.metadata.MetadataUpdateProto metadata_updated = 2;
* @return Whether the metadataUpdated field is set.
*/
fun hasMetadataUpdated(): kotlin.Boolean {
return _builder.hasMetadataUpdated()
}
val updateCase: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.UpdateCase
@JvmName("getUpdateCase")
get() = _builder.getUpdateCase()
fun clearUpdate() {
_builder.clearUpdate()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate.copy(block: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdate =
games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder.errorOrNull: games.mythical.saga.sdk.proto.common.ErrorData?
get() = if (hasError()) getError() else null
val games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateOrBuilder.metadataUpdatedOrNull: games.mythical.saga.sdk.proto.streams.metadata.MetadataUpdateProto?
get() = if (hasMetadataUpdated()) getMetadataUpdated() else null