// 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("-initializepostTriggerAlertDisableRequest") public inline fun postTriggerAlertDisableRequest(block: ru.keyapis.telemetry_alerting.v1.PostTriggerAlertDisableRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequest = ru.keyapis.telemetry_alerting.v1.PostTriggerAlertDisableRequestKt.Dsl._create(ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequest.newBuilder()).apply { block() }._build() /** * ``` * Запрос на погашение алерта * ``` * * Protobuf type `keyapis.telemetry_alerting.v1.PostTriggerAlertDisableRequest` */ public object PostTriggerAlertDisableRequestKt { @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.PostTriggerAlertDisableRequest.Builder ) { public companion object { @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _create(builder: ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequest.Builder): Dsl = Dsl(builder) } @kotlin.jvm.JvmSynthetic @kotlin.PublishedApi internal fun _build(): ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequest = _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() } /** * ``` * Причина принудительного закрытия, заполняется в момент принудительного закрытия * ``` * * `.google.protobuf.StringValue closing_reason = 2;` */ public var closingReason: com.google.protobuf.StringValue @JvmName("getClosingReason") get() = _builder.getClosingReason() @JvmName("setClosingReason") set(value) { _builder.setClosingReason(value) } /** * ``` * Причина принудительного закрытия, заполняется в момент принудительного закрытия * ``` * * `.google.protobuf.StringValue closing_reason = 2;` */ public fun clearClosingReason() { _builder.clearClosingReason() } /** * ``` * Причина принудительного закрытия, заполняется в момент принудительного закрытия * ``` * * `.google.protobuf.StringValue closing_reason = 2;` * @return Whether the closingReason field is set. */ public fun hasClosingReason(): kotlin.Boolean { return _builder.hasClosingReason() } } } @kotlin.jvm.JvmSynthetic public inline fun ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequest.copy(block: ru.keyapis.telemetry_alerting.v1.PostTriggerAlertDisableRequestKt.Dsl.() -> kotlin.Unit): ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequest = ru.keyapis.telemetry_alerting.v1.PostTriggerAlertDisableRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() public val ru.keyapis.telemetry_alerting.v1.KeyapisTelemetryAlertingV1Proto.PostTriggerAlertDisableRequestOrBuilder.closingReasonOrNull: com.google.protobuf.StringValue? get() = if (hasClosingReason()) getClosingReason() else null