build.bazel.remote.execution.v2.BatchReadBlobsRequestKt.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("-initializebatchReadBlobsRequest")
public inline fun batchReadBlobsRequest(block: build.bazel.remote.execution.v2.BatchReadBlobsRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchReadBlobsRequest =
build.bazel.remote.execution.v2.BatchReadBlobsRequestKt.Dsl._create(build.bazel.remote.execution.v2.BatchReadBlobsRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request message for
* [ContentAddressableStorage.BatchReadBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchReadBlobs].
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.BatchReadBlobsRequest`
*/
public object BatchReadBlobsRequestKt {
@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.BatchReadBlobsRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.BatchReadBlobsRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.BatchReadBlobsRequest = _builder.build()
/**
* ```
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
* ```
*
* `string instance_name = 1;`
*/
public var instanceName: kotlin.String
@JvmName("getInstanceName")
get() = _builder.getInstanceName()
@JvmName("setInstanceName")
set(value) {
_builder.setInstanceName(value)
}
/**
* ```
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
* ```
*
* `string instance_name = 1;`
*/
public fun clearInstanceName() {
_builder.clearInstanceName()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class DigestsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
*/
public val digests: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getDigestsList()
)
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
* @param value The digests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addDigests")
public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.Digest) {
_builder.addDigests(value)
}
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
* @param value The digests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignDigests")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.Digest) {
add(value)
}
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
* @param values The digests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllDigests")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllDigests(values)
}
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
* @param values The digests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllDigests")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
* @param index The index to set the value at.
* @param value The digests to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setDigests")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.Digest) {
_builder.setDigests(index, value)
}
/**
* ```
* The individual blob digests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.Digest digests = 2;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearDigests")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearDigests()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchReadBlobsRequest.copy(block: `build.bazel.remote.execution.v2`.BatchReadBlobsRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchReadBlobsRequest =
`build.bazel.remote.execution.v2`.BatchReadBlobsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()