// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/dial/v1/keyapis_dial_alert_scenario_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.dial.v1; @kotlin.jvm.JvmName("-initializepostBroadcastAlertStartResponse") public inline fun postBroadcastAlertStartResponse(block: ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.Dsl.() -> kotlin.Unit): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse = ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.Dsl._create(ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.newBuilder()).apply { block() }._build() /** * ``` * Ответ на запрос на запуск массового оповещения через домофоны * ``` * * Protobuf type `keyapis.dial.v1.PostBroadcastAlertStartResponse` */ public object PostBroadcastAlertStartResponseKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse = _builder.build() /** * ``` * Ошибка * ``` * * `.keyapis.dial.v1.PostBroadcastAlertStartResponse.Error error = 1;` */ public var error: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error @JvmName("getError") get() = _builder.getError() @JvmName("setError") set(value) { _builder.setError(value) } /** * ``` * Ошибка * ``` * * `.keyapis.dial.v1.PostBroadcastAlertStartResponse.Error error = 1;` */ public fun clearError() { _builder.clearError() } /** * ``` * Ошибка * ``` * * `.keyapis.dial.v1.PostBroadcastAlertStartResponse.Error error = 1;` * @return Whether the error field is set. */ public fun hasError(): kotlin.Boolean { return _builder.hasError() } public val typeCase: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.TypeCase @JvmName("getTypeCase") get() = _builder.getTypeCase() public fun clearType() { _builder.clearType() } } @kotlin.jvm.JvmName("-initializeerror") public inline fun error(block: ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error = ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.Dsl._create(ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.newBuilder()).apply { block() }._build() /** * ``` * Ошибка запроса * ``` * * Protobuf type `keyapis.dial.v1.PostBroadcastAlertStartResponse.Error` */ public object ErrorKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error = _builder.build() /** * ``` * Ошибка валидации * ``` * * `.keyapis.dial.v1.ValidationError validation = 1;` */ public var validation: ru.keyapis.dial.v1.KeyapisDialV1Proto.ValidationError @JvmName("getValidation") get() = _builder.getValidation() @JvmName("setValidation") set(value) { _builder.setValidation(value) } /** * ``` * Ошибка валидации * ``` * * `.keyapis.dial.v1.ValidationError validation = 1;` */ public fun clearValidation() { _builder.clearValidation() } /** * ``` * Ошибка валидации * ``` * * `.keyapis.dial.v1.ValidationError validation = 1;` * @return Whether the validation field is set. */ public fun hasValidation(): kotlin.Boolean { return _builder.hasValidation() } /** * ``` * Звуковой файл не найден * ``` * * `.keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound scenario_not_found = 2;` */ public var scenarioNotFound: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound @JvmName("getScenarioNotFound") get() = _builder.getScenarioNotFound() @JvmName("setScenarioNotFound") set(value) { _builder.setScenarioNotFound(value) } /** * ``` * Звуковой файл не найден * ``` * * `.keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound scenario_not_found = 2;` */ public fun clearScenarioNotFound() { _builder.clearScenarioNotFound() } /** * ``` * Звуковой файл не найден * ``` * * `.keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound scenario_not_found = 2;` * @return Whether the scenarioNotFound field is set. */ public fun hasScenarioNotFound(): kotlin.Boolean { return _builder.hasScenarioNotFound() } public val reasonCase: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ReasonCase @JvmName("getReasonCase") get() = _builder.getReasonCase() public fun clearReason() { _builder.clearReason() } } @kotlin.jvm.JvmName("-initializescenarioNotFound") public inline fun scenarioNotFound(block: ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.ScenarioNotFoundKt.Dsl.() -> kotlin.Unit): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound = ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.ScenarioNotFoundKt.Dsl._create(ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound.newBuilder()).apply { block() }._build() /** * ``` * Не найден сценарий оповещения * ``` * * Protobuf type `keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound` */ public object ScenarioNotFoundKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound = _builder.build() } } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.copy(block: ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.Dsl.() -> kotlin.Unit): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse = ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.copy(block: ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error = ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound.copy(block: ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.ScenarioNotFoundKt.Dsl.() -> kotlin.Unit): ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound = ru.keyapis.dial.v1.PostBroadcastAlertStartResponseKt.ErrorKt.ScenarioNotFoundKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.ErrorOrBuilder.validationOrNull: ru.keyapis.dial.v1.KeyapisDialV1Proto.ValidationError? get() = if (hasValidation()) getValidation() else null public val ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.ErrorOrBuilder.scenarioNotFoundOrNull: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error.ScenarioNotFound? get() = if (hasScenarioNotFound()) getScenarioNotFound() else null public val ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponseOrBuilder.errorOrNull: ru.keyapis.dial.v1.KeyapisDialV1Proto.PostBroadcastAlertStartResponse.Error? get() = if (hasError()) getError() else null