All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.bazel.remote.execution.v2.ExecuteOperationMetadataKt.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("-initializeexecuteOperationMetadata")
public inline fun executeOperationMetadata(block: build.bazel.remote.execution.v2.ExecuteOperationMetadataKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ExecuteOperationMetadata =
  build.bazel.remote.execution.v2.ExecuteOperationMetadataKt.Dsl._create(build.bazel.remote.execution.v2.ExecuteOperationMetadata.newBuilder()).apply { block() }._build()
/**
 * ```
 * Metadata about an ongoing
 * [execution][build.bazel.remote.execution.v2.Execution.Execute], which
 * will be contained in the [metadata
 * field][google.longrunning.Operation.response] of the
 * [Operation][google.longrunning.Operation].
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.ExecuteOperationMetadata`
 */
public object ExecuteOperationMetadataKt {
  @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.ExecuteOperationMetadata.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.ExecuteOperationMetadata.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.remote.execution.v2.ExecuteOperationMetadata = _builder.build()

    /**
     * ```
     * The current stage of execution.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ExecutionStage.Value stage = 1;`
     */
    public var stage: build.bazel.remote.execution.v2.ExecutionStage.Value
      @JvmName("getStage")
      get() = _builder.getStage()
      @JvmName("setStage")
      set(value) {
        _builder.setStage(value)
      }
    public var stageValue: kotlin.Int
      @JvmName("getStageValue")
      get() = _builder.getStageValue()
      @JvmName("setStageValue")
      set(value) {
        _builder.setStageValue(value)
      }
    /**
     * ```
     * The current stage of execution.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ExecutionStage.Value stage = 1;`
     */
    public fun clearStage() {
      _builder.clearStage()
    }

    /**
     * ```
     * The digest of the [Action][build.bazel.remote.execution.v2.Action]
     * being executed.
     * ```
     *
     * `.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]
     * being executed.
     * ```
     *
     * `.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]
     * being executed.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest action_digest = 2;`
     * @return Whether the actionDigest field is set.
     */
    public fun hasActionDigest(): kotlin.Boolean {
      return _builder.hasActionDigest()
    }

    /**
     * ```
     * If set, the client can use this resource name with
     * [ByteStream.Read][google.bytestream.ByteStream.Read] to stream the
     * standard output from the endpoint hosting streamed responses.
     * ```
     *
     * `string stdout_stream_name = 3;`
     */
    public var stdoutStreamName: kotlin.String
      @JvmName("getStdoutStreamName")
      get() = _builder.getStdoutStreamName()
      @JvmName("setStdoutStreamName")
      set(value) {
        _builder.setStdoutStreamName(value)
      }
    /**
     * ```
     * If set, the client can use this resource name with
     * [ByteStream.Read][google.bytestream.ByteStream.Read] to stream the
     * standard output from the endpoint hosting streamed responses.
     * ```
     *
     * `string stdout_stream_name = 3;`
     */
    public fun clearStdoutStreamName() {
      _builder.clearStdoutStreamName()
    }

    /**
     * ```
     * If set, the client can use this resource name with
     * [ByteStream.Read][google.bytestream.ByteStream.Read] to stream the
     * standard error from the endpoint hosting streamed responses.
     * ```
     *
     * `string stderr_stream_name = 4;`
     */
    public var stderrStreamName: kotlin.String
      @JvmName("getStderrStreamName")
      get() = _builder.getStderrStreamName()
      @JvmName("setStderrStreamName")
      set(value) {
        _builder.setStderrStreamName(value)
      }
    /**
     * ```
     * If set, the client can use this resource name with
     * [ByteStream.Read][google.bytestream.ByteStream.Read] to stream the
     * standard error from the endpoint hosting streamed responses.
     * ```
     *
     * `string stderr_stream_name = 4;`
     */
    public fun clearStderrStreamName() {
      _builder.clearStderrStreamName()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.ExecuteOperationMetadata.copy(block: `build.bazel.remote.execution.v2`.ExecuteOperationMetadataKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ExecuteOperationMetadata =
  `build.bazel.remote.execution.v2`.ExecuteOperationMetadataKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.execution.v2.ExecuteOperationMetadataOrBuilder.actionDigestOrNull: build.bazel.remote.execution.v2.Digest?
  get() = if (hasActionDigest()) getActionDigest() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy