games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProtoKt.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/currency/definition.proto
package games.mythical.saga.sdk.proto.api.currency;
@kotlin.jvm.JvmName("-initializebalancesOfPlayerProto")
inline fun balancesOfPlayerProto(block: games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProto =
games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProto.newBuilder()).apply { block() }._build()
object BalancesOfPlayerProtoKt {
@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.currency.BalancesOfPlayerProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProto = _builder.build()
/**
* string oauth_id = 1;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
* string oauth_id = 1;
*/
fun clearOauthId() {
_builder.clearOauthId()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
class BalancesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
*/
val balances: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getBalancesList()
)
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
* @param value The balances to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addBalances")
fun com.google.protobuf.kotlin.DslList.add(value: games.mythical.saga.sdk.proto.api.currency.BalanceProto) {
_builder.addBalances(value)
}
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
* @param value The balances to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignBalances")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: games.mythical.saga.sdk.proto.api.currency.BalanceProto) {
add(value)
}
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
* @param values The balances to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllBalances")
fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllBalances(values)
}
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
* @param values The balances to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllBalances")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
* @param index The index to set the value at.
* @param value The balances to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setBalances")
operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: games.mythical.saga.sdk.proto.api.currency.BalanceProto) {
_builder.setBalances(index, value)
}
/**
* repeated .saga.api.currency.BalanceProto balances = 2;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearBalances")
fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearBalances()
}
/**
* string trace_id = 3;
*/
var traceId: kotlin.String
@JvmName("getTraceId")
get() = _builder.getTraceId()
@JvmName("setTraceId")
set(value) {
_builder.setTraceId(value)
}
/**
* string trace_id = 3;
*/
fun clearTraceId() {
_builder.clearTraceId()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProto.copy(block: games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProto =
games.mythical.saga.sdk.proto.api.currency.BalancesOfPlayerProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()