// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_event_alert_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.device.v1; @kotlin.jvm.JvmName("-initializeplayStartTask") public inline fun playStartTask(block: ru.keyapis.device.v1.PlayStartTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask = ru.keyapis.device.v1.PlayStartTaskKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask.newBuilder()).apply { block() }._build() /** * ``` * Команда на старт проигрывания файла через домофон. * Очередь key.device.alert.play_start * ``` * * Protobuf type `keyapis.device.v1.PlayStartTask` */ public object PlayStartTaskKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask = _builder.build() /** * ``` * Идентификатор запроса. * # Тип: Guid * ``` * * `string request_id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var requestId: kotlin.String @JvmName("getRequestId") get() = _builder.getRequestId() @JvmName("setRequestId") set(value) { _builder.setRequestId(value) } /** * ``` * Идентификатор запроса. * # Тип: Guid * ``` * * `string request_id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearRequestId() { _builder.clearRequestId() } /** * ``` * Идентификатор устройства * ``` * * `int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var deviceId: kotlin.Int @JvmName("getDeviceId") get() = _builder.getDeviceId() @JvmName("setDeviceId") set(value) { _builder.setDeviceId(value) } /** * ``` * Идентификатор устройства * ``` * * `int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearDeviceId() { _builder.clearDeviceId() } /** * ``` * Ссылка на звуковой файл для проигрывания. * Файл должен лежать на внутреннем хранилище. * # Диапазон: 7..100 * ``` * * `string sound_file_uri = 3 [(.google.api.field_behavior) = REQUIRED];` */ public var soundFileUri: kotlin.String @JvmName("getSoundFileUri") get() = _builder.getSoundFileUri() @JvmName("setSoundFileUri") set(value) { _builder.setSoundFileUri(value) } /** * ``` * Ссылка на звуковой файл для проигрывания. * Файл должен лежать на внутреннем хранилище. * # Диапазон: 7..100 * ``` * * `string sound_file_uri = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearSoundFileUri() { _builder.clearSoundFileUri() } /** * ``` * Сетевой адрес. * # Паттерн: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ * ``` * * `string ip_address = 4 [(.google.api.field_behavior) = REQUIRED];` */ public var ipAddress: kotlin.String @JvmName("getIpAddress") get() = _builder.getIpAddress() @JvmName("setIpAddress") set(value) { _builder.setIpAddress(value) } /** * ``` * Сетевой адрес. * # Паттерн: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ * ``` * * `string ip_address = 4 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearIpAddress() { _builder.clearIpAddress() } /** * ``` * Сетевой порт. * # Диапазон: 0..65535 * ``` * * `.google.protobuf.Int32Value port = 5;` */ public var port: com.google.protobuf.Int32Value @JvmName("getPort") get() = _builder.getPort() @JvmName("setPort") set(value) { _builder.setPort(value) } /** * ``` * Сетевой порт. * # Диапазон: 0..65535 * ``` * * `.google.protobuf.Int32Value port = 5;` */ public fun clearPort() { _builder.clearPort() } /** * ``` * Сетевой порт. * # Диапазон: 0..65535 * ``` * * `.google.protobuf.Int32Value port = 5;` * @return Whether the port field is set. */ public fun hasPort(): kotlin.Boolean { return _builder.hasPort() } /** * ``` * Модель устройства. * # Диапазон: 2..100 * ``` * * `string model = 6 [(.google.api.field_behavior) = REQUIRED];` */ public var model: kotlin.String @JvmName("getModel") get() = _builder.getModel() @JvmName("setModel") set(value) { _builder.setModel(value) } /** * ``` * Модель устройства. * # Диапазон: 2..100 * ``` * * `string model = 6 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearModel() { _builder.clearModel() } /** * ``` * Длительность воспроизведения такта в секундах. * Такт включает в себя проигрывание файла на трубках или на динамике. * # Диапазон: 0..65536 * ``` * * `int32 tact_play_duration = 7 [(.google.api.field_behavior) = REQUIRED];` */ public var tactPlayDuration: kotlin.Int @JvmName("getTactPlayDuration") get() = _builder.getTactPlayDuration() @JvmName("setTactPlayDuration") set(value) { _builder.setTactPlayDuration(value) } /** * ``` * Длительность воспроизведения такта в секундах. * Такт включает в себя проигрывание файла на трубках или на динамике. * # Диапазон: 0..65536 * ``` * * `int32 tact_play_duration = 7 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearTactPlayDuration() { _builder.clearTactPlayDuration() } /** * ``` * Количество последовательных повторов тактов перед сменой динамика на трубки или наоборот. * # Диапазон: 0..65536 * ``` * * `int32 tact_repeat_count = 8 [(.google.api.field_behavior) = REQUIRED];` */ public var tactRepeatCount: kotlin.Int @JvmName("getTactRepeatCount") get() = _builder.getTactRepeatCount() @JvmName("setTactRepeatCount") set(value) { _builder.setTactRepeatCount(value) } /** * ``` * Количество последовательных повторов тактов перед сменой динамика на трубки или наоборот. * # Диапазон: 0..65536 * ``` * * `int32 tact_repeat_count = 8 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearTactRepeatCount() { _builder.clearTactRepeatCount() } /** * ``` * Количество повторов заданного количества тактов, где умолчание=0 - это один повтор. * # Диапазон: 0..65536 * ``` * * `int32 play_repeat_count = 9 [(.google.api.field_behavior) = REQUIRED];` */ public var playRepeatCount: kotlin.Int @JvmName("getPlayRepeatCount") get() = _builder.getPlayRepeatCount() @JvmName("setPlayRepeatCount") set(value) { _builder.setPlayRepeatCount(value) } /** * ``` * Количество повторов заданного количества тактов, где умолчание=0 - это один повтор. * # Диапазон: 0..65536 * ``` * * `int32 play_repeat_count = 9 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearPlayRepeatCount() { _builder.clearPlayRepeatCount() } /** * ``` * Тип проигрывания * ``` * * `.keyapis.device.v1.PlayStartTask.PlayType play_type = 10 [(.google.api.field_behavior) = REQUIRED];` */ public var playType: ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask.PlayType @JvmName("getPlayType") get() = _builder.getPlayType() @JvmName("setPlayType") set(value) { _builder.setPlayType(value) } public var playTypeValue: kotlin.Int @JvmName("getPlayTypeValue") get() = _builder.getPlayTypeValue() @JvmName("setPlayTypeValue") set(value) { _builder.setPlayTypeValue(value) } /** * ``` * Тип проигрывания * ``` * * `.keyapis.device.v1.PlayStartTask.PlayType play_type = 10 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearPlayType() { _builder.clearPlayType() } /** * ``` * Логин. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue login = 11;` */ public var login: com.google.protobuf.StringValue @JvmName("getLogin") get() = _builder.getLogin() @JvmName("setLogin") set(value) { _builder.setLogin(value) } /** * ``` * Логин. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue login = 11;` */ public fun clearLogin() { _builder.clearLogin() } /** * ``` * Логин. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue login = 11;` * @return Whether the login field is set. */ public fun hasLogin(): kotlin.Boolean { return _builder.hasLogin() } /** * ``` * Пароль. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue password = 12;` */ public var password: com.google.protobuf.StringValue @JvmName("getPassword") get() = _builder.getPassword() @JvmName("setPassword") set(value) { _builder.setPassword(value) } /** * ``` * Пароль. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue password = 12;` */ public fun clearPassword() { _builder.clearPassword() } /** * ``` * Пароль. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue password = 12;` * @return Whether the password field is set. */ public fun hasPassword(): kotlin.Boolean { return _builder.hasPassword() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask.copy(block: ru.keyapis.device.v1.PlayStartTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTask = ru.keyapis.device.v1.PlayStartTaskKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTaskOrBuilder.portOrNull: com.google.protobuf.Int32Value? get() = if (hasPort()) getPort() else null public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTaskOrBuilder.loginOrNull: com.google.protobuf.StringValue? get() = if (hasLogin()) getLogin() else null public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStartTaskOrBuilder.passwordOrNull: com.google.protobuf.StringValue? get() = if (hasPassword()) getPassword() else null