com.google.api.SystemParameterKt.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("-initializesystemParameter")
public inline fun systemParameter(block: com.google.api.SystemParameterKt.Dsl.() -> kotlin.Unit): com.google.api.SystemParameter =
com.google.api.SystemParameterKt.Dsl._create(com.google.api.SystemParameter.newBuilder()).apply { block() }._build()
/**
* ```
* Define a parameter's name and location. The parameter may be passed as either
* an HTTP header or a URL query parameter, and if both are passed the behavior
* is implementation-dependent.
* ```
*
* Protobuf type `google.api.SystemParameter`
*/
public object SystemParameterKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.SystemParameter.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.SystemParameter.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.SystemParameter = _builder.build()
/**
* ```
* Define the name of the parameter, such as "api_key" . It is case sensitive.
* ```
*
* `string name = 1;`
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
* ```
* Define the name of the parameter, such as "api_key" . It is case sensitive.
* ```
*
* `string name = 1;`
*/
public fun clearName() {
_builder.clearName()
}
/**
* ```
* Define the HTTP header name to use for the parameter. It is case
* insensitive.
* ```
*
* `string http_header = 2;`
*/
public var httpHeader: kotlin.String
@JvmName("getHttpHeader")
get() = _builder.getHttpHeader()
@JvmName("setHttpHeader")
set(value) {
_builder.setHttpHeader(value)
}
/**
* ```
* Define the HTTP header name to use for the parameter. It is case
* insensitive.
* ```
*
* `string http_header = 2;`
*/
public fun clearHttpHeader() {
_builder.clearHttpHeader()
}
/**
* ```
* Define the URL query parameter name to use for the parameter. It is case
* sensitive.
* ```
*
* `string url_query_parameter = 3;`
*/
public var urlQueryParameter: kotlin.String
@JvmName("getUrlQueryParameter")
get() = _builder.getUrlQueryParameter()
@JvmName("setUrlQueryParameter")
set(value) {
_builder.setUrlQueryParameter(value)
}
/**
* ```
* Define the URL query parameter name to use for the parameter. It is case
* sensitive.
* ```
*
* `string url_query_parameter = 3;`
*/
public fun clearUrlQueryParameter() {
_builder.clearUrlQueryParameter()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.SystemParameter.copy(block: `com.google.api`.SystemParameterKt.Dsl.() -> kotlin.Unit): com.google.api.SystemParameter =
`com.google.api`.SystemParameterKt.Dsl._create(this.toBuilder()).apply { block() }._build()