com.google.api.AdviceKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/config_change.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializeadvice")
public inline fun advice(block: com.google.api.AdviceKt.Dsl.() -> kotlin.Unit): com.google.api.Advice =
com.google.api.AdviceKt.Dsl._create(com.google.api.Advice.newBuilder()).apply { block() }._build()
/**
* ```
* Generated advice about this change, used for providing more
* information about how a change will affect the existing service.
* ```
*
* Protobuf type `google.api.Advice`
*/
public object AdviceKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.Advice.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.Advice.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.Advice = _builder.build()
/**
* ```
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
* ```
*
* `string description = 2;`
*/
public var description: kotlin.String
@JvmName("getDescription")
get() = _builder.getDescription()
@JvmName("setDescription")
set(value) {
_builder.setDescription(value)
}
/**
* ```
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
* ```
*
* `string description = 2;`
*/
public fun clearDescription() {
_builder.clearDescription()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.Advice.copy(block: `com.google.api`.AdviceKt.Dsl.() -> kotlin.Unit): com.google.api.Advice =
`com.google.api`.AdviceKt.Dsl._create(this.toBuilder()).apply { block() }._build()