build.bazel.remote.execution.v2.BatchUpdateBlobsResponseKt.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("-initializebatchUpdateBlobsResponse")
public inline fun batchUpdateBlobsResponse(block: build.bazel.remote.execution.v2.BatchUpdateBlobsResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsResponse =
build.bazel.remote.execution.v2.BatchUpdateBlobsResponseKt.Dsl._create(build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.newBuilder()).apply { block() }._build()
/**
* ```
* A response message for
* [ContentAddressableStorage.BatchUpdateBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchUpdateBlobs].
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.BatchUpdateBlobsResponse`
*/
public object BatchUpdateBlobsResponseKt {
@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.BatchUpdateBlobsResponse.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.BatchUpdateBlobsResponse = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ResponsesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
*/
public val responses: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getResponsesList()
)
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
* @param value The responses to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addResponses")
public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response) {
_builder.addResponses(value)
}
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
* @param value The responses to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignResponses")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response) {
add(value)
}
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
* @param values The responses to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllResponses")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllResponses(values)
}
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
* @param values The responses to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllResponses")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
* @param index The index to set the value at.
* @param value The responses to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setResponses")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response) {
_builder.setResponses(index, value)
}
/**
* ```
* The responses to the requests.
* ```
*
* `repeated .build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response responses = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearResponses")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearResponses()
}
}
@kotlin.jvm.JvmName("-initializeresponse")
public inline fun response(block: build.bazel.remote.execution.v2.BatchUpdateBlobsResponseKt.ResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response =
build.bazel.remote.execution.v2.BatchUpdateBlobsResponseKt.ResponseKt.Dsl._create(build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response.newBuilder()).apply { block() }._build()
/**
* ```
* A response corresponding to a single blob that the client tried to upload.
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response`
*/
public object ResponseKt {
@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.BatchUpdateBlobsResponse.Response.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response = _builder.build()
/**
* ```
* The blob digest to which this response corresponds.
* ```
*
* `.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 blob digest to which this response corresponds.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 1;`
*/
public fun clearDigest() {
_builder.clearDigest()
}
/**
* ```
* The blob digest to which this response corresponds.
* ```
*
* `.build.bazel.remote.execution.v2.Digest digest = 1;`
* @return Whether the digest field is set.
*/
public fun hasDigest(): kotlin.Boolean {
return _builder.hasDigest()
}
/**
* ```
* The result of attempting to upload that blob.
* ```
*
* `.google.rpc.Status status = 2;`
*/
public var status: com.google.rpc.Status
@JvmName("getStatus")
get() = _builder.getStatus()
@JvmName("setStatus")
set(value) {
_builder.setStatus(value)
}
/**
* ```
* The result of attempting to upload that blob.
* ```
*
* `.google.rpc.Status status = 2;`
*/
public fun clearStatus() {
_builder.clearStatus()
}
/**
* ```
* The result of attempting to upload that blob.
* ```
*
* `.google.rpc.Status status = 2;`
* @return Whether the status field is set.
*/
public fun hasStatus(): kotlin.Boolean {
return _builder.hasStatus()
}
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.copy(block: `build.bazel.remote.execution.v2`.BatchUpdateBlobsResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsResponse =
`build.bazel.remote.execution.v2`.BatchUpdateBlobsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response.copy(block: `build.bazel.remote.execution.v2`.BatchUpdateBlobsResponseKt.ResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.Response =
`build.bazel.remote.execution.v2`.BatchUpdateBlobsResponseKt.ResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.ResponseOrBuilder.digestOrNull: build.bazel.remote.execution.v2.Digest?
get() = if (hasDigest()) getDigest() else null
public val build.bazel.remote.execution.v2.BatchUpdateBlobsResponse.ResponseOrBuilder.statusOrNull: com.google.rpc.Status?
get() = if (hasStatus()) getStatus() else null