build.bazel.remote.execution.v2.BatchUpdateBlobsRequestKt.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("-initializebatchUpdateBlobsRequest")
public inline fun batchUpdateBlobsRequest(block: build.bazel.remote.execution.v2.BatchUpdateBlobsRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsRequest =
build.bazel.remote.execution.v2.BatchUpdateBlobsRequestKt.Dsl._create(build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request message for
* [ContentAddressableStorage.BatchUpdateBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchUpdateBlobs].
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.BatchUpdateBlobsRequest`
*/
public object BatchUpdateBlobsRequestKt {
@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.BatchUpdateBlobsRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.BatchUpdateBlobsRequest = _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 RequestsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
*/
public val requests: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getRequestsList()
)
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
* @param value The requests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addRequests")
public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request) {
_builder.addRequests(value)
}
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
* @param value The requests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignRequests")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request) {
add(value)
}
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
* @param values The requests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllRequests")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllRequests(values)
}
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
* @param values The requests to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllRequests")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
* @param index The index to set the value at.
* @param value The requests to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setRequests")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request) {
_builder.setRequests(index, value)
}
/**
* ```
* The individual upload requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request requests = 2;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearRequests")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearRequests()
}
}
@kotlin.jvm.JvmName("-initializerequest")
public inline fun request(block: build.bazel.remote.execution.v2.BatchUpdateBlobsRequestKt.RequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request =
build.bazel.remote.execution.v2.BatchUpdateBlobsRequestKt.RequestKt.Dsl._create(build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request.newBuilder()).apply { block() }._build()
/**
* ```
* A request corresponding to a single blob that the client wants to upload.
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request`
*/
public object RequestKt {
@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.BatchUpdateBlobsRequest.Request.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request = _builder.build()
/**
* ```
* The digest of the blob. This MUST be the digest of `data`.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 1;`
*/
public var digest: build.bazel.remote.execution.v2.Digest
@JvmName("getDigest")
get() = _builder.getDigest()
@JvmName("setDigest")
set(value) {
_builder.setDigest(value)
}
/**
* ```
* The digest of the blob. This MUST be the digest of `data`.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 1;`
*/
public fun clearDigest() {
_builder.clearDigest()
}
/**
* ```
* The digest of the blob. This MUST be the digest of `data`.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 1;`
* @return Whether the digest field is set.
*/
public fun hasDigest(): kotlin.Boolean {
return _builder.hasDigest()
}
/**
* ```
* The raw binary data.
* ```
*
* `bytes data = 2;`
*/
public var data: com.google.protobuf.ByteString
@JvmName("getData")
get() = _builder.getData()
@JvmName("setData")
set(value) {
_builder.setData(value)
}
/**
* ```
* The raw binary data.
* ```
*
* `bytes data = 2;`
*/
public fun clearData() {
_builder.clearData()
}
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.copy(block: `build.bazel.remote.execution.v2`.BatchUpdateBlobsRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsRequest =
`build.bazel.remote.execution.v2`.BatchUpdateBlobsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request.copy(block: `build.bazel.remote.execution.v2`.BatchUpdateBlobsRequestKt.RequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.Request =
`build.bazel.remote.execution.v2`.BatchUpdateBlobsRequestKt.RequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val build.bazel.remote.execution.v2.BatchUpdateBlobsRequest.RequestOrBuilder.digestOrNull: build.bazel.remote.execution.v2.Digest?
get() = if (hasDigest()) getDigest() else null