// Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_safe_emergency_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.deviceapis.device.v1; @kotlin.jvm.JvmName("-initializepostSafeCityEmergencyStartResponse") public inline fun postSafeCityEmergencyStartResponse(block: ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse = ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.newBuilder()).apply { block() }._build() /** * ``` * Ответ на запрос на старт оповещения * ``` * * Protobuf type `deviceapis.device.v1.PostSafeCityEmergencyStartResponse` */ public object PostSafeCityEmergencyStartResponseKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse = _builder.build() /** * ``` * Ошибка * ``` * * `.deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error error = 1;` */ public var error: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error @JvmName("getError") get() = _builder.getError() @JvmName("setError") set(value) { _builder.setError(value) } /** * ``` * Ошибка * ``` * * `.deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error error = 1;` */ public fun clearError() { _builder.clearError() } /** * ``` * Ошибка * ``` * * `.deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error error = 1;` * @return Whether the error field is set. */ public fun hasError(): kotlin.Boolean { return _builder.hasError() } public val typeCase: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.TypeCase @JvmName("getTypeCase") get() = _builder.getTypeCase() public fun clearType() { _builder.clearType() } } @kotlin.jvm.JvmName("-initializeerror") public inline fun error(block: ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error = ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.newBuilder()).apply { block() }._build() /** * ``` * Ошибка запроса * ``` * * Protobuf type `deviceapis.device.v1.PostSafeCityEmergencyStartResponse.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.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error = _builder.build() /** * ``` * Ошибка валидации * ``` * * `.deviceapis.device.v1.ValidationError validation = 1;` */ public var validation: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.ValidationError @JvmName("getValidation") get() = _builder.getValidation() @JvmName("setValidation") set(value) { _builder.setValidation(value) } /** * ``` * Ошибка валидации * ``` * * `.deviceapis.device.v1.ValidationError validation = 1;` */ public fun clearValidation() { _builder.clearValidation() } /** * ``` * Ошибка валидации * ``` * * `.deviceapis.device.v1.ValidationError validation = 1;` * @return Whether the validation field is set. */ public fun hasValidation(): kotlin.Boolean { return _builder.hasValidation() } /** * ``` * Звуковой файл не найден * ``` * * `.deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound sound_file_not_found = 2;` */ public var soundFileNotFound: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound @JvmName("getSoundFileNotFound") get() = _builder.getSoundFileNotFound() @JvmName("setSoundFileNotFound") set(value) { _builder.setSoundFileNotFound(value) } /** * ``` * Звуковой файл не найден * ``` * * `.deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound sound_file_not_found = 2;` */ public fun clearSoundFileNotFound() { _builder.clearSoundFileNotFound() } /** * ``` * Звуковой файл не найден * ``` * * `.deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound sound_file_not_found = 2;` * @return Whether the soundFileNotFound field is set. */ public fun hasSoundFileNotFound(): kotlin.Boolean { return _builder.hasSoundFileNotFound() } public val reasonCase: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.ReasonCase @JvmName("getReasonCase") get() = _builder.getReasonCase() public fun clearReason() { _builder.clearReason() } } @kotlin.jvm.JvmName("-initializesoundFileNotFound") public inline fun soundFileNotFound(block: ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.SoundFileNotFoundKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound = ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.SoundFileNotFoundKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound.newBuilder()).apply { block() }._build() /** * ``` * Звуковой файл не найден * ``` * * Protobuf type `deviceapis.device.v1.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound` */ public object SoundFileNotFoundKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound = _builder.build() } } } } @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.copy(block: ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse = ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.copy(block: ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error = ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.Dsl._create(this.toBuilder()).apply { block() }._build() @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound.copy(block: ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.SoundFileNotFoundKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound = ru.deviceapis.device.v1.PostSafeCityEmergencyStartResponseKt.ErrorKt.SoundFileNotFoundKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.ErrorOrBuilder.validationOrNull: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.ValidationError? get() = if (hasValidation()) getValidation() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.ErrorOrBuilder.soundFileNotFoundOrNull: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error.SoundFileNotFound? get() = if (hasSoundFileNotFound()) getSoundFileNotFound() else null public val ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponseOrBuilder.errorOrNull: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.PostSafeCityEmergencyStartResponse.Error? get() = if (hasError()) getError() else null