// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_events_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.device.v1; @kotlin.jvm.JvmName("-initializeopenTask") public inline fun openTask(block: ru.keyapis.device.v1.OpenTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTask = ru.keyapis.device.v1.OpenTaskKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTask.newBuilder()).apply { block() }._build() /** * ``` * Задача на открытие устройства. * Очередь key.device.open * ``` * * Protobuf type `keyapis.device.v1.OpenTask` */ public object OpenTaskKt { @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.OpenTask.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTask.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTask = _builder.build() /** * ``` * Идентификатор запроса * ``` * * `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) } /** * ``` * Идентификатор запроса * ``` * * `string request_id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearRequestId() { _builder.clearRequestId() } /** * ``` * Модель * ``` * * `string model = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var model: kotlin.String @JvmName("getModel") get() = _builder.getModel() @JvmName("setModel") set(value) { _builder.setModel(value) } /** * ``` * Модель * ``` * * `string model = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearModel() { _builder.clearModel() } /** * ``` * Хост * ``` * * `string host = 3 [(.google.api.field_behavior) = REQUIRED];` */ public var host: kotlin.String @JvmName("getHost") get() = _builder.getHost() @JvmName("setHost") set(value) { _builder.setHost(value) } /** * ``` * Хост * ``` * * `string host = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearHost() { _builder.clearHost() } /** * ``` * Имя пользователя * ``` * * `string username = 4;` */ public var username: kotlin.String @JvmName("getUsername") get() = _builder.getUsername() @JvmName("setUsername") set(value) { _builder.setUsername(value) } /** * ``` * Имя пользователя * ``` * * `string username = 4;` */ public fun clearUsername() { _builder.clearUsername() } /** * ``` * Пароль * ``` * * `string password = 5;` */ public var password: kotlin.String @JvmName("getPassword") get() = _builder.getPassword() @JvmName("setPassword") set(value) { _builder.setPassword(value) } /** * ``` * Пароль * ``` * * `string password = 5;` */ public fun clearPassword() { _builder.clearPassword() } /** * ``` * Идентификатор устройства * ``` * * `int32 device_id = 6 [(.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 = 6 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearDeviceId() { _builder.clearDeviceId() } /** * ``` * Номер реле * ``` * * `.google.protobuf.Int32Value relay_index = 7;` */ public var relayIndex: com.google.protobuf.Int32Value @JvmName("getRelayIndex") get() = _builder.getRelayIndex() @JvmName("setRelayIndex") set(value) { _builder.setRelayIndex(value) } /** * ``` * Номер реле * ``` * * `.google.protobuf.Int32Value relay_index = 7;` */ public fun clearRelayIndex() { _builder.clearRelayIndex() } /** * ``` * Номер реле * ``` * * `.google.protobuf.Int32Value relay_index = 7;` * @return Whether the relayIndex field is set. */ public fun hasRelayIndex(): kotlin.Boolean { return _builder.hasRelayIndex() } /** * ``` * Задержка в секундах. * Если не передано, то полставляется значение по умолчанию (5) * ``` * * `.google.protobuf.Int32Value delay = 8;` */ public var delay: com.google.protobuf.Int32Value @JvmName("getDelay") get() = _builder.getDelay() @JvmName("setDelay") set(value) { _builder.setDelay(value) } /** * ``` * Задержка в секундах. * Если не передано, то полставляется значение по умолчанию (5) * ``` * * `.google.protobuf.Int32Value delay = 8;` */ public fun clearDelay() { _builder.clearDelay() } /** * ``` * Задержка в секундах. * Если не передано, то полставляется значение по умолчанию (5) * ``` * * `.google.protobuf.Int32Value delay = 8;` * @return Whether the delay field is set. */ public fun hasDelay(): kotlin.Boolean { return _builder.hasDelay() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTask.copy(block: ru.keyapis.device.v1.OpenTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTask = ru.keyapis.device.v1.OpenTaskKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTaskOrBuilder.relayIndexOrNull: com.google.protobuf.Int32Value? get() = if (hasRelayIndex()) getRelayIndex() else null public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.OpenTaskOrBuilder.delayOrNull: com.google.protobuf.Int32Value? get() = if (hasDelay()) getDelay() else null