// 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("-initializerfid") public inline fun rfid(block: ru.keyapis.device.v1.RfidKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.Rfid = ru.keyapis.device.v1.RfidKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.Rfid.newBuilder()).apply { block() }._build() /** * ``` * Ключ * ``` * * Protobuf type `keyapis.device.v1.Rfid` */ public object RfidKt { @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.Rfid.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.Rfid.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.Rfid = _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() } /** * ``` * Значение ключа * ``` * * `string key = 2 [(.google.api.field_behavior) = REQUIRED];` */ public var key: kotlin.String @JvmName("getKey") get() = _builder.getKey() @JvmName("setKey") set(value) { _builder.setKey(value) } /** * ``` * Значение ключа * ``` * * `string key = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearKey() { _builder.clearKey() } /** * ``` * Номер помещения к которому прявязан ключ * ``` * * `string room_number = 3 [(.google.api.field_behavior) = REQUIRED];` */ public var roomNumber: kotlin.String @JvmName("getRoomNumber") get() = _builder.getRoomNumber() @JvmName("setRoomNumber") set(value) { _builder.setRoomNumber(value) } /** * ``` * Номер помещения к которому прявязан ключ * ``` * * `string room_number = 3 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearRoomNumber() { _builder.clearRoomNumber() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.Rfid.copy(block: ru.keyapis.device.v1.RfidKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.Rfid = ru.keyapis.device.v1.RfidKt.Dsl._create(this.toBuilder()).apply { block() }._build()