SystemHeadersBuilder

HTTP headers that can be passed to any Google API.

For more information, see the system parameters documentation.

Constructors

Link copied to clipboard
constructor(headersBuilder: HeadersBuilder)

Properties

Link copied to clipboard

API client identification.

Link copied to clipboard

Google API key. See API keys for details.

Link copied to clipboard

Authentication credentials. See Authentication overview for details.

Link copied to clipboard

HTTP Content-Type request header override.

---

Link copied to clipboard

FieldMask used for response filtering. If empty, all fields should be returned unless documented otherwise.

Link copied to clipboard

The intended HTTP method for the request. Some network proxies don't accept all HTTP methods.

Link copied to clipboard

A pseudo user identifier for charging per-user quotas.

Link copied to clipboard

Passing additional parameters for gRPC requests in URL query format. For example: x-goog-request-params: service=pubsub.googleapis.com&release=2021-11-01r0.

Link copied to clipboard

Contains a reason for making the request, which is intended to be recorded in audit logging. An example reason would be a support-case ticket number.

Link copied to clipboard

Timeout (in seconds, float value) for the server to finish processing the request. This system param only applies to REST APIs for which client-side timeout is not applicable.

Link copied to clipboard

A caller-specified project for quota and billing purposes. The caller must have serviceusage.services.use permission on the project.

Inherited properties

Link copied to clipboard
open override val caseInsensitiveName: Boolean

Inherited functions

Link copied to clipboard
open override fun append(name: String, value: String)
Link copied to clipboard
open override fun appendAll(stringValues: StringValues)
open override fun appendAll(name: String, values: Iterable<String>)
Link copied to clipboard
open override fun appendMissing(stringValues: StringValues)
open override fun appendMissing(name: String, values: Iterable<String>)
Link copied to clipboard

Applies the headers to the specified defaultRequestBuilder.

fun appendToBuilder(httpRequestBuilder: HttpRequestBuilder)

Applies the headers to the specified httpRequestBuilder.

Link copied to clipboard
fun StringValuesBuilder.booleanValue(name: String? = null, toBoolean: StringToBoolean = defaultStringToBoolean, toString: BooleanToString = defaultBooleanToString): ValueSingleDelegateProvider<Boolean?>

Creates an optional parameter of type Boolean with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.booleanValues(name: String? = null, toBoolean: StringToBoolean = defaultStringToBoolean, toString: BooleanToString = defaultBooleanToString): NamedValuePropertyProvider<List<Boolean>?>

Creates an optional parameter of type List<Boolean> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun build(): Headers
Link copied to clipboard
fun StringValuesBuilder.byteValue(name: String? = null, toByte: StringToByte = defaultStringToByte, toString: ByteToString = defaultByteToString): ValueSingleDelegateProvider<Byte?>

Creates an optional parameter of type Byte with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.byteValues(name: String? = null, toByte: StringToByte = defaultStringToByte, toString: ByteToString = defaultByteToString): NamedValuePropertyProvider<List<Byte>?>

Creates an optional parameter of type List<Byte> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(name: String): Boolean
open override fun contains(name: String, value: String): Boolean
Link copied to clipboard

Creates an optional Content-Type header of type ContentType with the given name in this KoogleHeadersBuilder instance.

Link copied to clipboard

Creates an optional Content-Type header of type List<ContentType> with the given name in this KoogleHeadersBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.doubleValue(name: String? = null, toDouble: StringToDouble = defaultStringToDouble, toString: DoubleToString = defaultDoubleToString): ValueSingleDelegateProvider<Double?>

Creates an optional parameter of type Double with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.doubleValues(name: String? = null, toDouble: StringToDouble = defaultStringToDouble, toString: DoubleToString = defaultDoubleToString): NamedValuePropertyProvider<List<Double>?>

Creates an optional parameter of type List<Double> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun entries(): Set<Map.Entry<String, List<String>>>
Link copied to clipboard
inline fun <E : Enum<E>> StringValuesBuilder.enumValue(name: String? = null, noinline toEnum: (String) -> E? = { enumValueOf<E>(it) }, noinline toString: (E) -> String = { it.toString() }): ValueSingleDelegateProvider<E?>

Creates an optional parameter of type E with the given name in this StringValuesBuilder instance.

Link copied to clipboard
inline fun <E : Enum<E>> StringValuesBuilder.enumValues(name: String? = null, noinline toEnum: (String) -> E? = { enumValueOf<E>(it) }, noinline toString: (E) -> String = { it.toString() }): NamedValuePropertyProvider<List<E>?>

Creates an optional parameter of type List<E> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.floatValue(name: String? = null, toFloat: StringToFloat = defaultStringToFloat, toString: FloatToString = defaultFloatToString): ValueSingleDelegateProvider<Float?>

Creates an optional parameter of type Float with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.floatValues(name: String? = null, toFloat: StringToFloat = defaultStringToFloat, toString: FloatToString = defaultFloatToString): NamedValuePropertyProvider<List<Float>?>

Creates an optional parameter of type List<Float> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open operator override fun get(name: String): String?
Link copied to clipboard
open override fun getAll(name: String): List<String>?
Link copied to clipboard
fun StringValuesBuilder.intValue(name: String? = null, toInt: StringToInt = defaultStringToInt, toString: IntToString = defaultIntToString): ValueSingleDelegateProvider<Int?>

Creates an optional parameter of type Int with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.intValues(name: String? = null, toInt: StringToInt = defaultStringToInt, toString: IntToString = defaultIntToString): NamedValuePropertyProvider<List<Int>?>

Creates an optional parameter of type List<Int> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun StringValuesBuilder.longValue(name: String? = null, toLong: StringToLong = defaultStringToLong, toString: LongToString = defaultLongToString): ValueSingleDelegateProvider<Long?>

Creates an optional parameter of type Long with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.longValues(name: String? = null, toLong: StringToLong = defaultStringToLong, toString: LongToString = defaultLongToString): NamedValuePropertyProvider<List<Long>?>

Creates an optional parameter of type List<Long> with the given name in this StringValuesBuilder instance.

Link copied to clipboard

Removes the specified string-value (by name) using -= syntax.

Removes the specified string-value (by names) using -= syntax.

operator fun StringValuesBuilder.minusAssign(properties: Iterable<KProperty<*>>)

Removes the specified string-value (by properties) using -= syntax.

operator fun StringValuesBuilder.minusAssign(property: KProperty<*>)

Removes the specified string-value (by property) using -= syntax.

Link copied to clipboard
open override fun names(): Set<String>
Link copied to clipboard

Adds the specified string-value using += syntax.

Link copied to clipboard
open override fun remove(name: String)
open override fun remove(name: String, value: String): Boolean
Link copied to clipboard
open override fun removeKeysWithNoEntries()
Link copied to clipboard
open operator override fun set(name: String, value: String)
Link copied to clipboard
operator fun StringValuesBuilder.set(name: String, values: Iterable<String>)

Sets the specified string-value.

Link copied to clipboard
fun StringValuesBuilder.shortValue(name: String? = null, toShort: StringToShort = defaultStringToShort, toString: ShortToString = defaultShortToString): ValueSingleDelegateProvider<Short?>

Creates an optional parameter of type Short with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.shortValues(name: String? = null, toShort: StringToShort = defaultStringToShort, toString: ShortToString = defaultShortToString): NamedValuePropertyProvider<List<Short>?>

Creates an optional parameter of type List<Short> with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.stringValue(name: String? = null, toParsedString: StringParamToString = defaultStringParamToString, toParamString: StringToStringParam = defaultStringToStringParam): ValueSingleDelegateProvider<String?>

Creates an optional parameter of type String with the given name in this StringValuesBuilder instance.

Link copied to clipboard
fun StringValuesBuilder.stringValues(name: String? = null, toParsedString: StringParamToString = defaultStringParamToString, toParamString: StringToStringParam = defaultStringToStringParam): NamedValuePropertyProvider<List<String>?>

Creates an optional parameter of type List<String> with the given name in this StringValuesBuilder instance.

Link copied to clipboard

Sets a string-value via the delegation pattern.

Link copied to clipboard
fun StringValuesBuilder.valueList(name: String? = null, defaultValue: List<String> = emptyList(), clearListOnSet: Boolean = true): ReadWriteProperty<StringValuesBuilder, List<String>?>

Sets a string-value via the delegation pattern.