build.bazel.remote.execution.v2.GetTreeResponseKt.kt Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/remote/execution/v2/remote_execution.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package build.bazel.remote.execution.v2;
@kotlin.jvm.JvmName("-initializegetTreeResponse")
public inline fun getTreeResponse(block: build.bazel.remote.execution.v2.GetTreeResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.GetTreeResponse =
build.bazel.remote.execution.v2.GetTreeResponseKt.Dsl._create(build.bazel.remote.execution.v2.GetTreeResponse.newBuilder()).apply { block() }._build()
/**
* ```
* A response message for
* [ContentAddressableStorage.GetTree][build.bazel.remote.execution.v2.ContentAddressableStorage.GetTree].
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.GetTreeResponse`
*/
public object GetTreeResponseKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: build.bazel.remote.execution.v2.GetTreeResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.GetTreeResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.GetTreeResponse = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class DirectoriesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
*/
public val directories: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getDirectoriesList()
)
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
* @param value The directories to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addDirectories")
public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.Directory) {
_builder.addDirectories(value)
}
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
* @param value The directories to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignDirectories")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.Directory) {
add(value)
}
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
* @param values The directories to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllDirectories")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllDirectories(values)
}
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
* @param values The directories to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllDirectories")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
* @param index The index to set the value at.
* @param value The directories to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setDirectories")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.Directory) {
_builder.setDirectories(index, value)
}
/**
* ```
* The directories descended from the requested root.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Directory directories = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearDirectories")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearDirectories()
}
/**
* ```
* If present, signifies that there are more results which the client can
* retrieve by passing this as the page_token in a subsequent
* [request][build.bazel.remote.execution.v2.GetTreeRequest].
* If empty, signifies that this is the last page of results.
* ```
*
* `string next_page_token = 2;`
*/
public var nextPageToken: kotlin.String
@JvmName("getNextPageToken")
get() = _builder.getNextPageToken()
@JvmName("setNextPageToken")
set(value) {
_builder.setNextPageToken(value)
}
/**
* ```
* If present, signifies that there are more results which the client can
* retrieve by passing this as the page_token in a subsequent
* [request][build.bazel.remote.execution.v2.GetTreeRequest].
* If empty, signifies that this is the last page of results.
* ```
*
* `string next_page_token = 2;`
*/
public fun clearNextPageToken() {
_builder.clearNextPageToken()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.GetTreeResponse.copy(block: `build.bazel.remote.execution.v2`.GetTreeResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.GetTreeResponse =
`build.bazel.remote.execution.v2`.GetTreeResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()