games.mythical.saga.sdk.proto.api.item.ItemProtoKt.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/item/definition.proto
package games.mythical.saga.sdk.proto.api.item;
@kotlin.jvm.JvmName("-initializeitemProto")
inline fun itemProto(block: games.mythical.saga.sdk.proto.api.item.ItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.ItemProto =
games.mythical.saga.sdk.proto.api.item.ItemProtoKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.ItemProto.newBuilder()).apply { block() }._build()
object ItemProtoKt {
@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.item.ItemProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.ItemProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.ItemProto = _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()
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
*/
var inventoryId: kotlin.String
@JvmName("getInventoryId")
get() = _builder.getInventoryId()
@JvmName("setInventoryId")
set(value) {
_builder.setInventoryId(value)
}
/**
*
* The game's unique id for this Item
*
*
* string inventory_id = 2;
*/
fun clearInventoryId() {
_builder.clearInventoryId()
}
/**
* string oauth_id = 3;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
* string oauth_id = 3;
*/
fun clearOauthId() {
_builder.clearOauthId()
}
/**
* int64 token_id = 4;
*/
var tokenId: kotlin.Long
@JvmName("getTokenId")
get() = _builder.getTokenId()
@JvmName("setTokenId")
set(value) {
_builder.setTokenId(value)
}
/**
* int64 token_id = 4;
*/
fun clearTokenId() {
_builder.clearTokenId()
}
/**
* bool finalized = 5;
*/
var finalized: kotlin.Boolean
@JvmName("getFinalized")
get() = _builder.getFinalized()
@JvmName("setFinalized")
set(value) {
_builder.setFinalized(value)
}
/**
* bool finalized = 5;
*/
fun clearFinalized() {
_builder.clearFinalized()
}
/**
* string block_explorer_url = 6;
*/
var blockExplorerUrl: kotlin.String
@JvmName("getBlockExplorerUrl")
get() = _builder.getBlockExplorerUrl()
@JvmName("setBlockExplorerUrl")
set(value) {
_builder.setBlockExplorerUrl(value)
}
/**
* string block_explorer_url = 6;
*/
fun clearBlockExplorerUrl() {
_builder.clearBlockExplorerUrl()
}
/**
* string metadata_url = 7;
*/
var metadataUrl: kotlin.String
@JvmName("getMetadataUrl")
get() = _builder.getMetadataUrl()
@JvmName("setMetadataUrl")
set(value) {
_builder.setMetadataUrl(value)
}
/**
* string metadata_url = 7;
*/
fun clearMetadataUrl() {
_builder.clearMetadataUrl()
}
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
var createdAt: com.google.protobuf.Timestamp
@JvmName("getCreatedAt")
get() = _builder.getCreatedAt()
@JvmName("setCreatedAt")
set(value) {
_builder.setCreatedAt(value)
}
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
*/
fun clearCreatedAt() {
_builder.clearCreatedAt()
}
/**
*
* When was this Item created
*
*
* .google.protobuf.Timestamp created_at = 8;
* @return Whether the createdAt field is set.
*/
fun hasCreatedAt(): kotlin.Boolean {
return _builder.hasCreatedAt()
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
var updatedAt: com.google.protobuf.Timestamp
@JvmName("getUpdatedAt")
get() = _builder.getUpdatedAt()
@JvmName("setUpdatedAt")
set(value) {
_builder.setUpdatedAt(value)
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
*/
fun clearUpdatedAt() {
_builder.clearUpdatedAt()
}
/**
*
* When was this Item last updated
*
*
* .google.protobuf.Timestamp updated_at = 9;
* @return Whether the updatedAt field is set.
*/
fun hasUpdatedAt(): kotlin.Boolean {
return _builder.hasUpdatedAt()
}
/**
* string state = 10;
*/
var state: kotlin.String
@JvmName("getState")
get() = _builder.getState()
@JvmName("setState")
set(value) {
_builder.setState(value)
}
/**
* string state = 10;
*/
fun clearState() {
_builder.clearState()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.ItemProto.copy(block: games.mythical.saga.sdk.proto.api.item.ItemProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.ItemProto =
games.mythical.saga.sdk.proto.api.item.ItemProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.item.ItemProtoOrBuilder.createdAtOrNull: com.google.protobuf.Timestamp?
get() = if (hasCreatedAt()) getCreatedAt() else null
val games.mythical.saga.sdk.proto.api.item.ItemProtoOrBuilder.updatedAtOrNull: com.google.protobuf.Timestamp?
get() = if (hasUpdatedAt()) getUpdatedAt() else null