games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequestKt.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("-initializegetItemsForPlayerRequest")
inline fun getItemsForPlayerRequest(block: games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest =
games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest.newBuilder()).apply { block() }._build()
object GetItemsForPlayerRequestKt {
@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.GetItemsForPlayerRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest = _builder.build()
/**
*
* Player to get Items for
*
*
* string oauth_id = 1;
*/
var oauthId: kotlin.String
@JvmName("getOauthId")
get() = _builder.getOauthId()
@JvmName("setOauthId")
set(value) {
_builder.setOauthId(value)
}
/**
*
* Player to get Items for
*
*
* string oauth_id = 1;
*/
fun clearOauthId() {
_builder.clearOauthId()
}
/**
*
* Sort/filter options
*
*
* .saga.common.QueryOptionsProto query_options = 2;
*/
var queryOptions: games.mythical.saga.sdk.proto.common.QueryOptionsProto
@JvmName("getQueryOptions")
get() = _builder.getQueryOptions()
@JvmName("setQueryOptions")
set(value) {
_builder.setQueryOptions(value)
}
/**
*
* Sort/filter options
*
*
* .saga.common.QueryOptionsProto query_options = 2;
*/
fun clearQueryOptions() {
_builder.clearQueryOptions()
}
/**
*
* Sort/filter options
*
*
* .saga.common.QueryOptionsProto query_options = 2;
* @return Whether the queryOptions field is set.
*/
fun hasQueryOptions(): kotlin.Boolean {
return _builder.hasQueryOptions()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest.copy(block: games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequest =
games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.item.GetItemsForPlayerRequestOrBuilder.queryOptionsOrNull: games.mythical.saga.sdk.proto.common.QueryOptionsProto?
get() = if (hasQueryOptions()) getQueryOptions() else null