// 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("-initializeemergencyScenario") public inline fun emergencyScenario(block: ru.deviceapis.device.v1.EmergencyScenarioKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario = ru.deviceapis.device.v1.EmergencyScenarioKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario.newBuilder()).apply { block() }._build() /** * ``` * Сценарий оповещения * ``` * * Protobuf type `deviceapis.device.v1.EmergencyScenario` */ public object EmergencyScenarioKt { @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.EmergencyScenario.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario = _builder.build() /** * ``` * Имя файла * ``` * * `string file_name = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var fileName: kotlin.String @JvmName("getFileName") get() = _builder.getFileName() @JvmName("setFileName") set(value) { _builder.setFileName(value) } /** * ``` * Имя файла * ``` * * `string file_name = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearFileName() { _builder.clearFileName() } /** * ``` * Максимальная общая длительность оповещения, в секундах. * # Диапазон: 0..65536 * ``` * * `int32 total_duration = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var totalDuration: kotlin.Int @JvmName("getTotalDuration") get() = _builder.getTotalDuration() @JvmName("setTotalDuration") set(value) { _builder.setTotalDuration(value) } /** * ``` * Максимальная общая длительность оповещения, в секундах. * # Диапазон: 0..65536 * ``` * * `int32 total_duration = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearTotalDuration() { _builder.clearTotalDuration() } /** * ``` * Количество воспроизведений файла в каждом цикле оповещения на одном направлении (трубка или динамик). * # Диапазон: 0..65536 * ``` * * `int32 playback_per_tick = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var playbackPerTick: kotlin.Int @JvmName("getPlaybackPerTick") get() = _builder.getPlaybackPerTick() @JvmName("setPlaybackPerTick") set(value) { _builder.setPlaybackPerTick(value) } /** * ``` * Количество воспроизведений файла в каждом цикле оповещения на одном направлении (трубка или динамик). * # Диапазон: 0..65536 * ``` * * `int32 playback_per_tick = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearPlaybackPerTick() { _builder.clearPlaybackPerTick() } /** * ``` * Количество воспроизведений циклов оповещения. * # Диапазон: 0..65536 * ``` * * `int32 tick_count = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var tickCount: kotlin.Int @JvmName("getTickCount") get() = _builder.getTickCount() @JvmName("setTickCount") set(value) { _builder.setTickCount(value) } /** * ``` * Количество воспроизведений циклов оповещения. * # Диапазон: 0..65536 * ``` * * `int32 tick_count = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearTickCount() { _builder.clearTickCount() } /** * ``` * Тип проигрывания * ``` * * `.deviceapis.device.v1.EmergencyScenario.PlayOrderType play_order_type = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var playOrderType: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario.PlayOrderType @JvmName("getPlayOrderType") get() = _builder.getPlayOrderType() @JvmName("setPlayOrderType") set(value) { _builder.setPlayOrderType(value) } public var playOrderTypeValue: kotlin.Int @JvmName("getPlayOrderTypeValue") get() = _builder.getPlayOrderTypeValue() @JvmName("setPlayOrderTypeValue") set(value) { _builder.setPlayOrderTypeValue(value) } /** * ``` * Тип проигрывания * ``` * * `.deviceapis.device.v1.EmergencyScenario.PlayOrderType play_order_type = 5 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearPlayOrderType() { _builder.clearPlayOrderType() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario.copy(block: ru.deviceapis.device.v1.EmergencyScenarioKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.EmergencyScenario = ru.deviceapis.device.v1.EmergencyScenarioKt.Dsl._create(this.toBuilder()).apply { block() }._build()