build.bazel.remote.execution.v2.GetActionResultRequestKt.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("-initializegetActionResultRequest")
public inline fun getActionResultRequest(block: build.bazel.remote.execution.v2.GetActionResultRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.GetActionResultRequest =
build.bazel.remote.execution.v2.GetActionResultRequestKt.Dsl._create(build.bazel.remote.execution.v2.GetActionResultRequest.newBuilder()).apply { block() }._build()
/**
* ```
* A request message for
* [ActionCache.GetActionResult][build.bazel.remote.execution.v2.ActionCache.GetActionResult].
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.GetActionResultRequest`
*/
public object GetActionResultRequestKt {
@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.GetActionResultRequest.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.GetActionResultRequest.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.GetActionResultRequest = _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()
}
/**
* ```
* The digest of the [Action][build.bazel.remote.execution.v2.Action]
* whose result is requested.
* ```
*
* `.build.bazel.remote.execution.v2.Digest action_digest = 2;`
*/
public var actionDigest: build.bazel.remote.execution.v2.Digest
@JvmName("getActionDigest")
get() = _builder.getActionDigest()
@JvmName("setActionDigest")
set(value) {
_builder.setActionDigest(value)
}
/**
* ```
* The digest of the [Action][build.bazel.remote.execution.v2.Action]
* whose result is requested.
* ```
*
* `.build.bazel.remote.execution.v2.Digest action_digest = 2;`
*/
public fun clearActionDigest() {
_builder.clearActionDigest()
}
/**
* ```
* The digest of the [Action][build.bazel.remote.execution.v2.Action]
* whose result is requested.
* ```
*
* `.build.bazel.remote.execution.v2.Digest action_digest = 2;`
* @return Whether the actionDigest field is set.
*/
public fun hasActionDigest(): kotlin.Boolean {
return _builder.hasActionDigest()
}
/**
* ```
* A hint to the server to request inlining stdout in the
* [ActionResult][build.bazel.remote.execution.v2.ActionResult] message.
* ```
*
* `bool inline_stdout = 3;`
*/
public var inlineStdout: kotlin.Boolean
@JvmName("getInlineStdout")
get() = _builder.getInlineStdout()
@JvmName("setInlineStdout")
set(value) {
_builder.setInlineStdout(value)
}
/**
* ```
* A hint to the server to request inlining stdout in the
* [ActionResult][build.bazel.remote.execution.v2.ActionResult] message.
* ```
*
* `bool inline_stdout = 3;`
*/
public fun clearInlineStdout() {
_builder.clearInlineStdout()
}
/**
* ```
* A hint to the server to request inlining stderr in the
* [ActionResult][build.bazel.remote.execution.v2.ActionResult] message.
* ```
*
* `bool inline_stderr = 4;`
*/
public var inlineStderr: kotlin.Boolean
@JvmName("getInlineStderr")
get() = _builder.getInlineStderr()
@JvmName("setInlineStderr")
set(value) {
_builder.setInlineStderr(value)
}
/**
* ```
* A hint to the server to request inlining stderr in the
* [ActionResult][build.bazel.remote.execution.v2.ActionResult] message.
* ```
*
* `bool inline_stderr = 4;`
*/
public fun clearInlineStderr() {
_builder.clearInlineStderr()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class InlineOutputFilesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
* @return A list containing the inlineOutputFiles.
*/
public val inlineOutputFiles: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getInlineOutputFilesList()
)
/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
* @param value The inlineOutputFiles to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addInlineOutputFiles")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addInlineOutputFiles(value)
}
/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
* @param value The inlineOutputFiles to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignInlineOutputFiles")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
* @param values The inlineOutputFiles to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllInlineOutputFiles")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllInlineOutputFiles(values)
}
/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
* @param values The inlineOutputFiles to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllInlineOutputFiles")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
* @param index The index to set the value at.
* @param value The inlineOutputFiles to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setInlineOutputFiles")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setInlineOutputFiles(index, value)
}/**
* ```
* A hint to the server to inline the contents of the listed output files.
* Each path needs to exactly match one file path in either `output_paths` or
* `output_files` (DEPRECATED since v2.1) in the
* [Command][build.bazel.remote.execution.v2.Command] message.
* ```
*
* `repeated string inline_output_files = 5;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearInlineOutputFiles")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearInlineOutputFiles()
}}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.GetActionResultRequest.copy(block: `build.bazel.remote.execution.v2`.GetActionResultRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.GetActionResultRequest =
`build.bazel.remote.execution.v2`.GetActionResultRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val build.bazel.remote.execution.v2.GetActionResultRequestOrBuilder.actionDigestOrNull: build.bazel.remote.execution.v2.Digest?
get() = if (hasActionDigest()) getActionDigest() else null