games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoKt.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/playerwallet/definition.proto
package games.mythical.saga.sdk.proto.api.playerwallet;
@kotlin.jvm.JvmName("-initializeplayerWalletProto")
inline fun playerWalletProto(block: games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto =
games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto.newBuilder()).apply { block() }._build()
object PlayerWalletProtoKt {
@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.playerwallet.PlayerWalletProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto = _builder.build()
/**
* string trace_id = 1;
*/
var traceId: kotlin.String
@JvmName("getTraceId")
get() = _builder.getTraceId()
@JvmName("setTraceId")
set(value) {
_builder.setTraceId(value)
}
/**
* string trace_id = 1;
*/
fun clearTraceId() {
_builder.clearTraceId()
}
/**
* string oauth_id = 2;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
* string oauth_id = 2;
*/
fun clearOauthId() {
_builder.clearOauthId()
}
/**
* string address = 3;
*/
var address: kotlin.String
@JvmName("getAddress")
get() = _builder.getAddress()
@JvmName("setAddress")
set(value) {
_builder.setAddress(value)
}
/**
* string address = 3;
*/
fun clearAddress() {
_builder.clearAddress()
}
/**
* string balance_in_wei = 4;
*/
var balanceInWei: kotlin.String
@JvmName("getBalanceInWei")
get() = _builder.getBalanceInWei()
@JvmName("setBalanceInWei")
set(value) {
_builder.setBalanceInWei(value)
}
/**
* string balance_in_wei = 4;
*/
fun clearBalanceInWei() {
_builder.clearBalanceInWei()
}
/**
* .google.protobuf.Timestamp created_at = 5;
*/
var createdAt: com.google.protobuf.Timestamp
@JvmName("getCreatedAt")
get() = _builder.getCreatedAt()
@JvmName("setCreatedAt")
set(value) {
_builder.setCreatedAt(value)
}
/**
* .google.protobuf.Timestamp created_at = 5;
*/
fun clearCreatedAt() {
_builder.clearCreatedAt()
}
/**
* .google.protobuf.Timestamp created_at = 5;
* @return Whether the createdAt field is set.
*/
fun hasCreatedAt(): kotlin.Boolean {
return _builder.hasCreatedAt()
}
/**
* .google.protobuf.Timestamp updated_at = 6;
*/
var updatedAt: com.google.protobuf.Timestamp
@JvmName("getUpdatedAt")
get() = _builder.getUpdatedAt()
@JvmName("setUpdatedAt")
set(value) {
_builder.setUpdatedAt(value)
}
/**
* .google.protobuf.Timestamp updated_at = 6;
*/
fun clearUpdatedAt() {
_builder.clearUpdatedAt()
}
/**
* .google.protobuf.Timestamp updated_at = 6;
* @return Whether the updatedAt field is set.
*/
fun hasUpdatedAt(): kotlin.Boolean {
return _builder.hasUpdatedAt()
}
/**
* string withdrawable_limit_in_wei = 7;
*/
var withdrawableLimitInWei: kotlin.String
@JvmName("getWithdrawableLimitInWei")
get() = _builder.getWithdrawableLimitInWei()
@JvmName("setWithdrawableLimitInWei")
set(value) {
_builder.setWithdrawableLimitInWei(value)
}
/**
* string withdrawable_limit_in_wei = 7;
*/
fun clearWithdrawableLimitInWei() {
_builder.clearWithdrawableLimitInWei()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto.copy(block: games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProto =
games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp?
get() = if (hasCreatedAt()) getCreatedAt() else null
val games.mythical.saga.sdk.proto.api.playerwallet.PlayerWalletProtoOrBuilder.updatedAtOrNull: com.google.protobuf.Timestamp?
get() = if (hasUpdatedAt()) getUpdatedAt() else null