com.google.api.SystemParameterRuleKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/system_parameter.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializesystemParameterRule")
public inline fun systemParameterRule(block: com.google.api.SystemParameterRuleKt.Dsl.() -> kotlin.Unit): com.google.api.SystemParameterRule =
com.google.api.SystemParameterRuleKt.Dsl._create(com.google.api.SystemParameterRule.newBuilder()).apply { block() }._build()
/**
* ```
* Define a system parameter rule mapping system parameter definitions to
* methods.
* ```
*
* Protobuf type `google.api.SystemParameterRule`
*/
public object SystemParameterRuleKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.SystemParameterRule.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.SystemParameterRule.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.SystemParameterRule = _builder.build()
/**
* ```
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
*
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
* ```
*
* `string selector = 1;`
*/
public var selector: kotlin.String
@JvmName("getSelector")
get() = _builder.getSelector()
@JvmName("setSelector")
set(value) {
_builder.setSelector(value)
}
/**
* ```
* Selects the methods to which this rule applies. Use '*' to indicate all
* methods in all APIs.
*
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
* ```
*
* `string selector = 1;`
*/
public fun clearSelector() {
_builder.clearSelector()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ParametersProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
*/
public val parameters: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getParametersList()
)
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
* @param value The parameters to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addParameters")
public fun com.google.protobuf.kotlin.DslList.add(value: com.google.api.SystemParameter) {
_builder.addParameters(value)
}
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
* @param value The parameters to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignParameters")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.google.api.SystemParameter) {
add(value)
}
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
* @param values The parameters to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllParameters")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllParameters(values)
}
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
* @param values The parameters to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllParameters")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
* @param index The index to set the value at.
* @param value The parameters to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setParameters")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.google.api.SystemParameter) {
_builder.setParameters(index, value)
}
/**
* ```
* Define parameters. Multiple names may be defined for a parameter.
* For a given method call, only one of them should be used. If multiple
* names are used the behavior is implementation-dependent.
* If none of the specified names are present the behavior is
* parameter-dependent.
* ```
*
* `repeated .google.api.SystemParameter parameters = 2;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearParameters")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearParameters()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.SystemParameterRule.copy(block: `com.google.api`.SystemParameterRuleKt.Dsl.() -> kotlin.Unit): com.google.api.SystemParameterRule =
`com.google.api`.SystemParameterRuleKt.Dsl._create(this.toBuilder()).apply { block() }._build()