games.mythical.saga.sdk.proto.common.ErrorDataKt.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/common.proto
package games.mythical.saga.sdk.proto.common;
@kotlin.jvm.JvmName("-initializeerrorData")
inline fun errorData(block: games.mythical.saga.sdk.proto.common.ErrorDataKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.ErrorData =
games.mythical.saga.sdk.proto.common.ErrorDataKt.Dsl._create(games.mythical.saga.sdk.proto.common.ErrorData.newBuilder()).apply { block() }._build()
object ErrorDataKt {
@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.ErrorData.Builder
) {
companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: games.mythical.saga.sdk.proto.common.ErrorData.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): games.mythical.saga.sdk.proto.common.ErrorData = _builder.build()
/**
*
* The error code for this type of error
*
*
* string error_code = 1;
*/
var errorCode: kotlin.String
@JvmName("getErrorCode")
get() = _builder.getErrorCode()
@JvmName("setErrorCode")
set(value) {
_builder.setErrorCode(value)
}
/**
*
* The error code for this type of error
*
*
* string error_code = 1;
*/
fun clearErrorCode() {
_builder.clearErrorCode()
}
/**
*
* Description of the error
*
*
* string message = 2;
*/
var message: kotlin.String
@JvmName("getMessage")
get() = _builder.getMessage()
@JvmName("setMessage")
set(value) {
_builder.setMessage(value)
}
/**
*
* Description of the error
*
*
* string message = 2;
*/
fun clearMessage() {
_builder.clearMessage()
}
/**
*
* Indicator of which service the error occurred in
*
*
* string source = 3;
*/
var source: kotlin.String
@JvmName("getSource")
get() = _builder.getSource()
@JvmName("setSource")
set(value) {
_builder.setSource(value)
}
/**
*
* Indicator of which service the error occurred in
*
*
* string source = 3;
*/
fun clearSource() {
_builder.clearSource()
}
/**
*
* Trace id for this operation, if any
*
*
* string trace = 4;
*/
var trace: kotlin.String
@JvmName("getTrace")
get() = _builder.getTrace()
@JvmName("setTrace")
set(value) {
_builder.setTrace(value)
}
/**
*
* Trace id for this operation, if any
*
*
* string trace = 4;
*/
fun clearTrace() {
_builder.clearTrace()
}
/**
*
* Error metadata
*
*
* .google.protobuf.Struct metadata = 5;
*/
var metadata: com.google.protobuf.Struct
@JvmName("getMetadata")
get() = _builder.getMetadata()
@JvmName("setMetadata")
set(value) {
_builder.setMetadata(value)
}
/**
*
* Error metadata
*
*
* .google.protobuf.Struct metadata = 5;
*/
fun clearMetadata() {
_builder.clearMetadata()
}
/**
*
* Error metadata
*
*
* .google.protobuf.Struct metadata = 5;
* @return Whether the metadata field is set.
*/
fun hasMetadata(): kotlin.Boolean {
return _builder.hasMetadata()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
class SuberrorsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
*/
val suberrors: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getSuberrorsList()
)
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
* @param value The suberrors to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addSuberrors")
fun com.google.protobuf.kotlin.DslList.add(value: games.mythical.saga.sdk.proto.common.SubError) {
_builder.addSuberrors(value)
}
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
* @param value The suberrors to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignSuberrors")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: games.mythical.saga.sdk.proto.common.SubError) {
add(value)
}
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
* @param values The suberrors to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllSuberrors")
fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllSuberrors(values)
}
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
* @param values The suberrors to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllSuberrors")
@Suppress("NOTHING_TO_INLINE")
inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
* @param index The index to set the value at.
* @param value The suberrors to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setSuberrors")
operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: games.mythical.saga.sdk.proto.common.SubError) {
_builder.setSuberrors(index, value)
}
/**
*
* Sub-errors assocated with this incident
*
*
* repeated .saga.common.SubError suberrors = 6;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearSuberrors")
fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearSuberrors()
}
}
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.common.ErrorData.copy(block: games.mythical.saga.sdk.proto.common.ErrorDataKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.ErrorData =
games.mythical.saga.sdk.proto.common.ErrorDataKt.Dsl._create(this.toBuilder()).apply { block() }._build()
val games.mythical.saga.sdk.proto.common.ErrorDataOrBuilder.metadataOrNull: com.google.protobuf.Struct?
get() = if (hasMetadata()) getMetadata() else null