// Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_alerting/v1/keyapis_telemetry_alerting_trigger_v1.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") package ru.keyapis.telemetry_alerting.v1; @kotlin.jvm.JvmName("-initializealertDevice") public inline fun alertDevice(block: ru.keyapis.telemetry_alerting.v1.AlertDeviceKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice = ru.keyapis.telemetry_alerting.v1.AlertDeviceKt.Dsl._create(ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice.newBuilder()).apply { block() }._build() /** * ``` * Факты сработки алерта на устройствах * ``` * * Protobuf type `keyapis.telemetry_alerting.v1.AlertDevice` */ public object AlertDeviceKt { @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) @com.google.protobuf.kotlin.ProtoDslMarker public class Dsl private constructor( private val _builder: ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice = _builder.build() /** * ``` * Идентификатор алерта * ``` * * `int32 alert_id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public var alertId: kotlin.Int @JvmName("getAlertId") get() = _builder.getAlertId() @JvmName("setAlertId") set(value) { _builder.setAlertId(value) } /** * ``` * Идентификатор алерта * ``` * * `int32 alert_id = 1 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearAlertId() { _builder.clearAlertId() } /** * ``` * Идентификатор устройства * ``` * * `int32 device_id = 2 [(.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 = 2 [(.google.api.field_behavior) = REQUIRED];` */ public fun clearDeviceId() { _builder.clearDeviceId() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice.copy(block: ru.keyapis.telemetry_alerting.v1.AlertDeviceKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.AlertDevice = ru.keyapis.telemetry_alerting.v1.AlertDeviceKt.Dsl._create(this.toBuilder()).apply { block() }._build()