games.mythical.saga.sdk.proto.api.item.GetItemsRequestKt.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("-initializegetItemsRequest")
inline fun getItemsRequest(block: games.mythical.saga.sdk.proto.api.item.GetItemsRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.GetItemsRequest =
games.mythical.saga.sdk.proto.api.item.GetItemsRequestKt.Dsl._create(games.mythical.saga.sdk.proto.api.item.GetItemsRequest.newBuilder()).apply { block() }._build()
object GetItemsRequestKt {
@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.GetItemsRequest.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.api.item.GetItemsRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.api.item.GetItemsRequest = _builder.build()
/**
*
* Sort/filter options
*
*
* .saga.common.QueryOptionsProto query_options = 1;
*/
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 = 1;
*/
fun clearQueryOptions() {
_builder.clearQueryOptions()
}
/**
*
* Sort/filter options
*
*
* .saga.common.QueryOptionsProto query_options = 1;
* @return Whether the queryOptions field is set.
*/
fun hasQueryOptions(): kotlin.Boolean {
return _builder.hasQueryOptions()
}
/**
* .saga.common.Finalized finalized = 2;
*/
var finalized: games.mythical.saga.sdk.proto.common.Finalized
@JvmName("getFinalized")
get() = _builder.getFinalized()
@JvmName("setFinalized")
set(value) {
_builder.setFinalized(value)
}
/**
* .saga.common.Finalized finalized = 2;
*/
fun clearFinalized() {
_builder.clearFinalized()
}
/**
* string token_name = 3;
*/
var tokenName: kotlin.String
@JvmName("getTokenName")
get() = _builder.getTokenName()
@JvmName("setTokenName")
set(value) {
_builder.setTokenName(value)
}
/**
* string token_name = 3;
*/
fun clearTokenName() {
_builder.clearTokenName()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.item.GetItemsRequest.copy(block: games.mythical.saga.sdk.proto.api.item.GetItemsRequestKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.item.GetItemsRequest =
games.mythical.saga.sdk.proto.api.item.GetItemsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.api.item.GetItemsRequestOrBuilder.queryOptionsOrNull: games.mythical.saga.sdk.proto.common.QueryOptionsProto?
get() = if (hasQueryOptions()) getQueryOptions() else null