// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_device_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.device.v1; @kotlin.jvm.JvmName("-initializeputDeviceRequest") public inline fun putDeviceRequest(block: ru.keyapis.device.v1.PutDeviceRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PutDeviceRequest = ru.keyapis.device.v1.PutDeviceRequestKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.PutDeviceRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос изменения устройства * ``` * * Protobuf type `keyapis.device.v1.PutDeviceRequest` */ public object PutDeviceRequestKt { @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.PutDeviceRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.PutDeviceRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PutDeviceRequest = _builder.build() /** * ``` * Идентификатор устройства * ``` * * `int32 id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var id: kotlin.Int @JvmName("getId") get() = _builder.getId() @JvmName("setId") set(value) { _builder.setId(value) } /** * ``` * Идентификатор устройства * ``` * * `int32 id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearId() { _builder.clearId() } /** * ``` * Идентификатор пресета * ``` * * `int32 preset_id = 2 [(.google.api.field_behavior) = OPTIONAL];` */ public var presetId: kotlin.Int @JvmName("getPresetId") get() = _builder.getPresetId() @JvmName("setPresetId") set(value) { _builder.setPresetId(value) } /** * ``` * Идентификатор пресета * ``` * * `int32 preset_id = 2 [(.google.api.field_behavior) = OPTIONAL];` */ public fun clearPresetId() { _builder.clearPresetId() } /** * ``` * Настройка режима SL3 * ``` * * `bool is_sl3_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];` */ public var isSl3ModeEnabled: kotlin.Boolean @JvmName("getIsSl3ModeEnabled") get() = _builder.getIsSl3ModeEnabled() @JvmName("setIsSl3ModeEnabled") set(value) { _builder.setIsSl3ModeEnabled(value) } /** * ``` * Настройка режима SL3 * ``` * * `bool is_sl3_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];` */ public fun clearIsSl3ModeEnabled() { _builder.clearIsSl3ModeEnabled() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.PutDeviceRequest.copy(block: ru.keyapis.device.v1.PutDeviceRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.PutDeviceRequest = ru.keyapis.device.v1.PutDeviceRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()