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

build.bazel.remote.execution.v2.ResultsCachePolicyKt.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("-initializeresultsCachePolicy")
public inline fun resultsCachePolicy(block: build.bazel.remote.execution.v2.ResultsCachePolicyKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ResultsCachePolicy =
  build.bazel.remote.execution.v2.ResultsCachePolicyKt.Dsl._create(build.bazel.remote.execution.v2.ResultsCachePolicy.newBuilder()).apply { block() }._build()
/**
 * ```
 * A `ResultsCachePolicy` is used for fine-grained control over how action
 * outputs are stored in the CAS and Action Cache.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.ResultsCachePolicy`
 */
public object ResultsCachePolicyKt {
  @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.ResultsCachePolicy.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.ResultsCachePolicy.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The priority (relative importance) of this content in the overall cache.
     * Generally, a lower value means a longer retention time or other advantage,
     * but the interpretation of a given value is server-dependent. A priority of
     * 0 means a *default* value, decided by the server.
     *
     * The particular semantics of this field is up to the server. In particular,
     * every server will have their own supported range of priorities, and will
     * decide how these map into retention/eviction policy.
     * ```
     *
     * `int32 priority = 1;`
     */
    public var priority: kotlin.Int
      @JvmName("getPriority")
      get() = _builder.getPriority()
      @JvmName("setPriority")
      set(value) {
        _builder.setPriority(value)
      }
    /**
     * ```
     * The priority (relative importance) of this content in the overall cache.
     * Generally, a lower value means a longer retention time or other advantage,
     * but the interpretation of a given value is server-dependent. A priority of
     * 0 means a *default* value, decided by the server.
     *
     * The particular semantics of this field is up to the server. In particular,
     * every server will have their own supported range of priorities, and will
     * decide how these map into retention/eviction policy.
     * ```
     *
     * `int32 priority = 1;`
     */
    public fun clearPriority() {
      _builder.clearPriority()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.ResultsCachePolicy.copy(block: `build.bazel.remote.execution.v2`.ResultsCachePolicyKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ResultsCachePolicy =
  `build.bazel.remote.execution.v2`.ResultsCachePolicyKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy