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

games.mythical.saga.sdk.proto.api.common.ErrorProtoKt.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: api/common/error.proto

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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): games.mythical.saga.sdk.proto.api.common.ErrorProto = _builder.build()

    /**
     * int32 code = 1;
     */
    var code: kotlin.Int
      @JvmName("getCode")
      get() = _builder.getCode()
      @JvmName("setCode")
      set(value) {
        _builder.setCode(value)
      }
    /**
     * int32 code = 1;
     */
    fun clearCode() {
      _builder.clearCode()
    }

    /**
     * string message = 2;
     */
    var message: kotlin.String
      @JvmName("getMessage")
      get() = _builder.getMessage()
      @JvmName("setMessage")
      set(value) {
        _builder.setMessage(value)
      }
    /**
     * string message = 2;
     */
    fun clearMessage() {
      _builder.clearMessage()
    }

    /**
     * string source = 3;
     */
    var source: kotlin.String
      @JvmName("getSource")
      get() = _builder.getSource()
      @JvmName("setSource")
      set(value) {
        _builder.setSource(value)
      }
    /**
     * string source = 3;
     */
    fun clearSource() {
      _builder.clearSource()
    }

    /**
     * string trace_id = 4;
     */
    var traceId: kotlin.String
      @JvmName("getTraceId")
      get() = _builder.getTraceId()
      @JvmName("setTraceId")
      set(value) {
        _builder.setTraceId(value)
      }
    /**
     * string trace_id = 4;
     */
    fun clearTraceId() {
      _builder.clearTraceId()
    }
  }
}
@kotlin.jvm.JvmSynthetic
inline fun games.mythical.saga.sdk.proto.api.common.ErrorProto.copy(block: games.mythical.saga.sdk.proto.api.common.ErrorProtoKt.Dsl.() -> kotlin.Unit): games.mythical.saga.sdk.proto.api.common.ErrorProto =
  games.mythical.saga.sdk.proto.api.common.ErrorProtoKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy