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

build.bazel.remote.execution.v2.UpdateActionResultRequestKt.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("-initializeupdateActionResultRequest")
public inline fun updateActionResultRequest(block: build.bazel.remote.execution.v2.UpdateActionResultRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.UpdateActionResultRequest =
  build.bazel.remote.execution.v2.UpdateActionResultRequestKt.Dsl._create(build.bazel.remote.execution.v2.UpdateActionResultRequest.newBuilder()).apply { block() }._build()
/**
 * ```
 * A request message for
 * [ActionCache.UpdateActionResult][build.bazel.remote.execution.v2.ActionCache.UpdateActionResult].
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.UpdateActionResultRequest`
 */
public object UpdateActionResultRequestKt {
  @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.UpdateActionResultRequest.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.UpdateActionResultRequest.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.remote.execution.v2.UpdateActionResultRequest = _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 being uploaded.
     * ```
     *
     * `.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 being uploaded.
     * ```
     *
     * `.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 being uploaded.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest action_digest = 2;`
     * @return Whether the actionDigest field is set.
     */
    public fun hasActionDigest(): kotlin.Boolean {
      return _builder.hasActionDigest()
    }

    /**
     * ```
     * The [ActionResult][build.bazel.remote.execution.v2.ActionResult]
     * to store in the cache.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ActionResult action_result = 3;`
     */
    public var actionResult: build.bazel.remote.execution.v2.ActionResult
      @JvmName("getActionResult")
      get() = _builder.getActionResult()
      @JvmName("setActionResult")
      set(value) {
        _builder.setActionResult(value)
      }
    /**
     * ```
     * The [ActionResult][build.bazel.remote.execution.v2.ActionResult]
     * to store in the cache.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ActionResult action_result = 3;`
     */
    public fun clearActionResult() {
      _builder.clearActionResult()
    }
    /**
     * ```
     * The [ActionResult][build.bazel.remote.execution.v2.ActionResult]
     * to store in the cache.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ActionResult action_result = 3;`
     * @return Whether the actionResult field is set.
     */
    public fun hasActionResult(): kotlin.Boolean {
      return _builder.hasActionResult()
    }

    /**
     * ```
     * An optional policy for the results of this execution in the remote cache.
     * The server will have a default policy if this is not provided.
     * This may be applied to both the ActionResult and the associated blobs.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ResultsCachePolicy results_cache_policy = 4;`
     */
    public var resultsCachePolicy: build.bazel.remote.execution.v2.ResultsCachePolicy
      @JvmName("getResultsCachePolicy")
      get() = _builder.getResultsCachePolicy()
      @JvmName("setResultsCachePolicy")
      set(value) {
        _builder.setResultsCachePolicy(value)
      }
    /**
     * ```
     * An optional policy for the results of this execution in the remote cache.
     * The server will have a default policy if this is not provided.
     * This may be applied to both the ActionResult and the associated blobs.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ResultsCachePolicy results_cache_policy = 4;`
     */
    public fun clearResultsCachePolicy() {
      _builder.clearResultsCachePolicy()
    }
    /**
     * ```
     * An optional policy for the results of this execution in the remote cache.
     * The server will have a default policy if this is not provided.
     * This may be applied to both the ActionResult and the associated blobs.
     * ```
     *
     * `.build.bazel.remote.execution.v2.ResultsCachePolicy results_cache_policy = 4;`
     * @return Whether the resultsCachePolicy field is set.
     */
    public fun hasResultsCachePolicy(): kotlin.Boolean {
      return _builder.hasResultsCachePolicy()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.UpdateActionResultRequest.copy(block: `build.bazel.remote.execution.v2`.UpdateActionResultRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.UpdateActionResultRequest =
  `build.bazel.remote.execution.v2`.UpdateActionResultRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()

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

public val build.bazel.remote.execution.v2.UpdateActionResultRequestOrBuilder.actionResultOrNull: build.bazel.remote.execution.v2.ActionResult?
  get() = if (hasActionResult()) getActionResult() else null

public val build.bazel.remote.execution.v2.UpdateActionResultRequestOrBuilder.resultsCachePolicyOrNull: build.bazel.remote.execution.v2.ResultsCachePolicy?
  get() = if (hasResultsCachePolicy()) getResultsCachePolicy() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy