games.mythical.saga.sdk.proto.common.QueryOptionsProtoKt.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: common/query.proto
package games.mythical.saga.sdk.proto.common;
@kotlin.jvm.JvmName("-initializequeryOptionsProto")
inline fun queryOptionsProto(block: games.mythical.saga.sdk.proto.common.QueryOptionsProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.QueryOptionsProto =
games.mythical.saga.sdk.proto.common.QueryOptionsProtoKt.Dsl._create(games.mythical.saga.sdk.proto.common.QueryOptionsProto.newBuilder()).apply { block() }._build()
object QueryOptionsProtoKt {
@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.common.QueryOptionsProto.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.common.QueryOptionsProto.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.common.QueryOptionsProto = _builder.build()
/**
*
* Size of the page of results
*
*
* int32 page_size = 1;
*/
var pageSize: kotlin.Int
@JvmName("getPageSize")
get() = _builder.getPageSize()
@JvmName("setPageSize")
set(value) {
_builder.setPageSize(value)
}
/**
*
* Size of the page of results
*
*
* int32 page_size = 1;
*/
fun clearPageSize() {
_builder.clearPageSize()
}
/**
*
* Which order to sort
*
*
* .saga.common.SortOrder sort_order = 2;
*/
var sortOrder: games.mythical.saga.sdk.proto.common.SortOrder
@JvmName("getSortOrder")
get() = _builder.getSortOrder()
@JvmName("setSortOrder")
set(value) {
_builder.setSortOrder(value)
}
/**
*
* Which order to sort
*
*
* .saga.common.SortOrder sort_order = 2;
*/
fun clearSortOrder() {
_builder.clearSortOrder()
}
/**
*
* Cursor-based pagination based on created_at
*
*
* optional .google.protobuf.Timestamp created_at_cursor = 3;
*/
var createdAtCursor: com.google.protobuf.Timestamp
@JvmName("getCreatedAtCursor")
get() = _builder.getCreatedAtCursor()
@JvmName("setCreatedAtCursor")
set(value) {
_builder.setCreatedAtCursor(value)
}
/**
*
* Cursor-based pagination based on created_at
*
*
* optional .google.protobuf.Timestamp created_at_cursor = 3;
*/
fun clearCreatedAtCursor() {
_builder.clearCreatedAtCursor()
}
/**
*
* Cursor-based pagination based on created_at
*
*
* optional .google.protobuf.Timestamp created_at_cursor = 3;
* @return Whether the createdAtCursor field is set.
*/
fun hasCreatedAtCursor(): kotlin.Boolean {
return _builder.hasCreatedAtCursor()
}
val QueryOptionsProtoKt.Dsl.createdAtCursorOrNull: com.google.protobuf.Timestamp?
get() = _builder.createdAtCursorOrNull
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.common.QueryOptionsProto.copy(block: games.mythical.saga.sdk.proto.common.QueryOptionsProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.QueryOptionsProto =
games.mythical.saga.sdk.proto.common.QueryOptionsProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.common.QueryOptionsProtoOrBuilder.createdAtCursorOrNull: com.google.protobuf.Timestamp?
get() = if (hasCreatedAtCursor()) getCreatedAtCursor() else null