// Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_relay_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.deviceapis.device.v1; @kotlin.jvm.JvmName("-initializerelayOpen") public inline fun relayOpen(block: ru.deviceapis.device.v1.RelayOpenKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen = ru.deviceapis.device.v1.RelayOpenKt.Dsl._create(ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen.newBuilder()).apply { block() }._build() /** * ``` * Настройки открытия реле * ``` * * Protobuf type `deviceapis.device.v1.RelayOpen` */ public object RelayOpenKt { @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.RelayOpen.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen = _builder.build() /** * ``` * Индекс реле. * Диапазон: 1..32767 * ``` * * `int32 relay_index = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var relayIndex: kotlin.Int @JvmName("getRelayIndex") get() = _builder.getRelayIndex() @JvmName("setRelayIndex") set(value) { _builder.setRelayIndex(value) } /** * ``` * Индекс реле. * Диапазон: 1..32767 * ``` * * `int32 relay_index = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearRelayIndex() { _builder.clearRelayIndex() } /** * ``` * Тип замка * ``` * * `.deviceapis.device.v1.RelayOpen.LockType lock_type = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var lockType: ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen.LockType @JvmName("getLockType") get() = _builder.getLockType() @JvmName("setLockType") set(value) { _builder.setLockType(value) } public var lockTypeValue: kotlin.Int @JvmName("getLockTypeValue") get() = _builder.getLockTypeValue() @JvmName("setLockTypeValue") set(value) { _builder.setLockTypeValue(value) } /** * ``` * Тип замка * ``` * * `.deviceapis.device.v1.RelayOpen.LockType lock_type = 2 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearLockType() { _builder.clearLockType() } /** * ``` * Общее время открытия. * Диапазон: 1..200 * ``` * * `int32 open_time_general = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var openTimeGeneral: kotlin.Int @JvmName("getOpenTimeGeneral") get() = _builder.getOpenTimeGeneral() @JvmName("setOpenTimeGeneral") set(value) { _builder.setOpenTimeGeneral(value) } /** * ``` * Общее время открытия. * Диапазон: 1..200 * ``` * * `int32 open_time_general = 3 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearOpenTimeGeneral() { _builder.clearOpenTimeGeneral() } /** * ``` * Время открытия в секундах при экстренном оповещении. * При 0 - до конца экстренного оповещения. * Диапазон: 0..3600 * ``` * * `int32 open_time_emergency = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public var openTimeEmergency: kotlin.Int @JvmName("getOpenTimeEmergency") get() = _builder.getOpenTimeEmergency() @JvmName("setOpenTimeEmergency") set(value) { _builder.setOpenTimeEmergency(value) } /** * ``` * Время открытия в секундах при экстренном оповещении. * При 0 - до конца экстренного оповещения. * Диапазон: 0..3600 * ``` * * `int32 open_time_emergency = 4 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... }` */ public fun clearOpenTimeEmergency() { _builder.clearOpenTimeEmergency() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen.copy(block: ru.deviceapis.device.v1.RelayOpenKt.Dsl.() -> kotlin.Unit): ru.deviceapis.device.v1.DeviceapisDeviceV1Proto.RelayOpen = ru.deviceapis.device.v1.RelayOpenKt.Dsl._create(this.toBuilder()).apply { block() }._build()