![JAR search and dependency download from the Maven repository](/logo.png)
com.google.api.ContextRuleKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remote-cache Show documentation
Show all versions of remote-cache Show documentation
Bitrise remote cache implementation for Gradle
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/context.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.google.api;
@kotlin.jvm.JvmName("-initializecontextRule")
public inline fun contextRule(block: com.google.api.ContextRuleKt.Dsl.() -> kotlin.Unit): com.google.api.ContextRule =
com.google.api.ContextRuleKt.Dsl._create(com.google.api.ContextRule.newBuilder()).apply { block() }._build()
/**
* ```
* A context rule provides information about the context for an individual API
* element.
* ```
*
* Protobuf type `google.api.ContextRule`
*/
public object ContextRuleKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: com.google.api.ContextRule.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: com.google.api.ContextRule.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): com.google.api.ContextRule = _builder.build()
/**
* ```
* Selects the methods to which this rule applies.
*
* 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.
*
* 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 RequestedProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
* @return A list containing the requested.
*/
public val requested: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getRequestedList()
)
/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
* @param value The requested to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addRequested")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addRequested(value)
}
/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
* @param value The requested to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignRequested")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
* @param values The requested to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllRequested")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllRequested(values)
}
/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
* @param values The requested to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllRequested")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
* @param index The index to set the value at.
* @param value The requested to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setRequested")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setRequested(index, value)
}/**
* ```
* A list of full type names of requested contexts.
* ```
*
* `repeated string requested = 2;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearRequested")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearRequested()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ProvidedProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
* @return A list containing the provided.
*/
public val provided: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getProvidedList()
)
/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
* @param value The provided to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addProvided")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addProvided(value)
}
/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
* @param value The provided to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignProvided")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
* @param values The provided to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllProvided")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllProvided(values)
}
/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
* @param values The provided to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllProvided")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
* @param index The index to set the value at.
* @param value The provided to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setProvided")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setProvided(index, value)
}/**
* ```
* A list of full type names of provided contexts.
* ```
*
* `repeated string provided = 3;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearProvided")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearProvided()
}}
}
@kotlin.jvm.JvmSynthetic
public inline fun com.google.api.ContextRule.copy(block: `com.google.api`.ContextRuleKt.Dsl.() -> kotlin.Unit): com.google.api.ContextRule =
`com.google.api`.ContextRuleKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy