// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_control/v1/keyapis_telemetry_control_device_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.telemetry_control.v1; @kotlin.jvm.JvmName("-initializeputDeviceGroupAttachRequest") public inline fun putDeviceGroupAttachRequest(block: ru.keyapis.telemetry_control.v1.PutDeviceGroupAttachRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest = ru.keyapis.telemetry_control.v1.PutDeviceGroupAttachRequestKt.Dsl._create(ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос сохранения связей ПУ и группы пользователя * ``` * * Protobuf type `keyapis.telemetry_control.v1.PutDeviceGroupAttachRequest` */ public object PutDeviceGroupAttachRequestKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest = _builder.build() /** * ``` * Связь ПУ и группы пользователя * ``` * * `.keyapis.telemetry_control.v1.DeviceGroup device_group = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var deviceGroup: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.DeviceGroup @JvmName("getDeviceGroup") get() = _builder.getDeviceGroup() @JvmName("setDeviceGroup") set(value) { _builder.setDeviceGroup(value) } /** * ``` * Связь ПУ и группы пользователя * ``` * * `.keyapis.telemetry_control.v1.DeviceGroup device_group = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearDeviceGroup() { _builder.clearDeviceGroup() } /** * ``` * Связь ПУ и группы пользователя * ``` * * `.keyapis.telemetry_control.v1.DeviceGroup device_group = 1 [(.google.api.field_behavior) = REQUIRED];` * @return Whether the deviceGroup field is set. */ public fun hasDeviceGroup(): kotlin.Boolean { return _builder.hasDeviceGroup() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest.copy(block: ru.keyapis.telemetry_control.v1.PutDeviceGroupAttachRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequest = ru.keyapis.telemetry_control.v1.PutDeviceGroupAttachRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.PutDeviceGroupAttachRequestOrBuilder.deviceGroupOrNull: ru.keyapis.telemetry_control.v1.KeyapisTelemetryControlV1Proto.DeviceGroup? get() = if (hasDeviceGroup()) getDeviceGroup() else null