All Downloads are FREE. Search and download functionalities are using the official Maven repository.

games.mythical.saga.sdk.proto.common.SubErrorKt.kt Maven / Gradle / Ivy

There is a newer version: 1.1.30
Show newest version
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/common.proto

package games.mythical.saga.sdk.proto.common;

@kotlin.jvm.JvmName("-initializesubError")
inline fun subError(block: games.mythical.saga.sdk.proto.common.SubErrorKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.SubError =
  games.mythical.saga.sdk.proto.common.SubErrorKt.Dsl._create(games.mythical.saga.sdk.proto.common.SubError.newBuilder()).apply { block() }._build()
object SubErrorKt {
  @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.SubError.Builder
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: games.mythical.saga.sdk.proto.common.SubError.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.common.SubError = _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() } /** *
     * Error metadata 
     * 
* * .google.protobuf.Struct metadata = 4; */ var metadata: com.google.protobuf.Struct @JvmName("getMetadata") get() = _builder.getMetadata() @JvmName("setMetadata") set(value) { _builder.setMetadata(value) } /** *
     * Error metadata 
     * 
* * .google.protobuf.Struct metadata = 4; */ fun clearMetadata() { _builder.clearMetadata() } /** *
     * Error metadata 
     * 
* * .google.protobuf.Struct metadata = 4; * @return Whether the metadata field is set. */ fun hasMetadata(): kotlin.Boolean { return _builder.hasMetadata() } } } @kotlin.jvm.JvmSynthetic inline fun games.mythical.saga.sdk.proto.common.SubError.copy(block: games.mythical.saga.sdk.proto.common.SubErrorKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.common.SubError = games.mythical.saga.sdk.proto.common.SubErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() val games.mythical.saga.sdk.proto.common.SubErrorOrBuilder.metadataOrNull: com.google.protobuf.Struct? get() = if (hasMetadata()) getMetadata() else null




© 2015 - 2024 Weber Informatics LLC | Privacy Policy