games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.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/playerwallet/definition.proto
package games.mythical.saga.sdk.proto.streams.playerwallet;
@kotlin.jvm.JvmName("-initializeplayerWalletUpdate")
inline fun playerWalletUpdate(block: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate =
games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl._create(games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.newBuilder()).apply { block() }._build()
object PlayerWalletUpdateKt {
@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.playerwallet.PlayerWalletUpdate.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate = _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.playerwallet.PlayerWalletStatusUpdate status_update = 2;
*/
var statusUpdate: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletStatusUpdate
@JvmName("getStatusUpdate")
get() = _builder.getStatusUpdate()
@JvmName("setStatusUpdate")
set(value) {
_builder.setStatusUpdate(value)
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletStatusUpdate status_update = 2;
*/
fun clearStatusUpdate() {
_builder.clearStatusUpdate()
}
/**
* .saga.rpc.streams.playerwallet.PlayerWalletStatusUpdate status_update = 2;
* @return Whether the statusUpdate field is set.
*/
fun hasStatusUpdate(): kotlin.Boolean {
return _builder.hasStatusUpdate()
}
val updateCase: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.UpdateCase
@JvmName("getUpdateCase")
get() = _builder.getUpdateCase()
fun clearUpdate() {
_builder.clearUpdate()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate.copy(block: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdate =
games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder.errorOrNull: games.mythical.saga.sdk.proto.common.ErrorData?
get() = if (hasError()) getError() else null
val games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletUpdateOrBuilder.statusUpdateOrNull: games.mythical.saga.sdk.proto.streams.playerwallet.PlayerWalletStatusUpdate?
get() = if (hasStatusUpdate()) getStatusUpdate() else null