// 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("-initializeplayStopTask") public inline fun playStopTask(block: ru.keyapis.device.v1.PlayStopTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTask = ru.keyapis.device.v1.PlayStopTaskKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTask.newBuilder()).apply { block() }._build() /** * ``` * Команда на прекращение проигрывания файла через домофон. * Очередь key.device.alert.play_stop * ``` * * Protobuf type `keyapis.device.v1.PlayStopTask` */ public object PlayStopTaskKt { @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.PlayStopTask.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTask.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTask = _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() } /** * ``` * Сетевой адрес. * # Паттерн: /^(?:(?: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 = 3 [(.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 = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearIpAddress() { _builder.clearIpAddress() } /** * ``` * Сетевой порт. * # Диапазон: 0..65535 * ``` * * `.google.protobuf.Int32Value port = 4;` */ 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 = 4;` */ public fun clearPort() { _builder.clearPort() } /** * ``` * Сетевой порт. * # Диапазон: 0..65535 * ``` * * `.google.protobuf.Int32Value port = 4;` * @return Whether the port field is set. */ public fun hasPort(): kotlin.Boolean { return _builder.hasPort() } /** * ``` * Модель устройства. * # Диапазон: 2..100 * ``` * * `string model = 5 [(.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 = 5 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearModel() { _builder.clearModel() } /** * ``` * Логин. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue login = 6;` */ 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 = 6;` */ public fun clearLogin() { _builder.clearLogin() } /** * ``` * Логин. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue login = 6;` * @return Whether the login field is set. */ public fun hasLogin(): kotlin.Boolean { return _builder.hasLogin() } /** * ``` * Пароль. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue password = 7;` */ 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 = 7;` */ public fun clearPassword() { _builder.clearPassword() } /** * ``` * Пароль. * # Диапазон: 0..100 * ``` * * `.google.protobuf.StringValue password = 7;` * @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.PlayStopTask.copy(block: ru.keyapis.device.v1.PlayStopTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTask = ru.keyapis.device.v1.PlayStopTaskKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTaskOrBuilder.portOrNull: com.google.protobuf.Int32Value? get() = if (hasPort()) getPort() else null public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTaskOrBuilder.loginOrNull: com.google.protobuf.StringValue? get() = if (hasLogin()) getLogin() else null public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.PlayStopTaskOrBuilder.passwordOrNull: com.google.protobuf.StringValue? get() = if (hasPassword()) getPassword() else null