// 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("-initializedeleteCodesTask") public inline fun deleteCodesTask(block: ru.keyapis.device.v1.DeleteCodesTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTask = ru.keyapis.device.v1.DeleteCodesTaskKt.Dsl._create(ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTask.newBuilder()).apply { block() }._build() /** * ``` * Задача на удаление кодов с устройства. * Очередь key.device.delete_codes * ``` * * Protobuf type `keyapis.device.v1.DeleteCodesTask` */ public object DeleteCodesTaskKt { @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.DeleteCodesTask.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTask.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTask = _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() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class CodesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` */ public val codes: com.google.protobuf.kotlin.DslList @kotlin.jvm.JvmSynthetic get() = com.google.protobuf.kotlin.DslList( _builder.getCodesList() ) /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` * @param value The codes to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addCodes") public fun com.google.protobuf.kotlin.DslList.add(value: ru.keyapis.device.v1.KeyapisDeviceV1Proto.Code) { _builder.addCodes(value) } /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` * @param value The codes to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignCodes") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: ru.keyapis.device.v1.KeyapisDeviceV1Proto.Code) { add(value) } /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` * @param values The codes to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("addAllCodes") public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { _builder.addAllCodes(values) } /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` * @param values The codes to add. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("plusAssignAllCodes") @Suppress("NOTHING_TO_INLINE") public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { addAll(values) } /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` * @param index The index to set the value at. * @param value The codes to set. */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("setCodes") public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: ru.keyapis.device.v1.KeyapisDeviceV1Proto.Code) { _builder.setCodes(index, value) } /** * ``` * Ключи * ``` * * `repeated .keyapis.device.v1.Code codes = 7 [(.google.api.field_behavior) = REQUIRED];` */ @kotlin.jvm.JvmSynthetic @kotlin.jvm.JvmName("clearCodes") public fun com.google.protobuf.kotlin.DslList.clear() { _builder.clearCodes() } /** * ``` * При передаче этого флага в true, ответное сообщение не будет получено * ``` * * `.google.protobuf.BoolValue is_answer_unnecessary = 8;` */ public var isAnswerUnnecessary: com.google.protobuf.BoolValue @JvmName("getIsAnswerUnnecessary") get() = _builder.getIsAnswerUnnecessary() @JvmName("setIsAnswerUnnecessary") set(value) { _builder.setIsAnswerUnnecessary(value) } /** * ``` * При передаче этого флага в true, ответное сообщение не будет получено * ``` * * `.google.protobuf.BoolValue is_answer_unnecessary = 8;` */ public fun clearIsAnswerUnnecessary() { _builder.clearIsAnswerUnnecessary() } /** * ``` * При передаче этого флага в true, ответное сообщение не будет получено * ``` * * `.google.protobuf.BoolValue is_answer_unnecessary = 8;` * @return Whether the isAnswerUnnecessary field is set. */ public fun hasIsAnswerUnnecessary(): kotlin.Boolean { return _builder.hasIsAnswerUnnecessary() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTask.copy(block: ru.keyapis.device.v1.DeleteCodesTaskKt.Dsl.() -> kotlin.Unit): ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTask = ru.keyapis.device.v1.DeleteCodesTaskKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.device.v1.KeyapisDeviceV1Proto.DeleteCodesTaskOrBuilder.isAnswerUnnecessaryOrNull: com.google.protobuf.BoolValue? get() = if (hasIsAnswerUnnecessary()) getIsAnswerUnnecessary() else null