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

build.bazel.remote.execution.v2.PriorityCapabilitiesKt.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("-initializepriorityCapabilities")
public inline fun priorityCapabilities(block: build.bazel.remote.execution.v2.PriorityCapabilitiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.PriorityCapabilities =
  build.bazel.remote.execution.v2.PriorityCapabilitiesKt.Dsl._create(build.bazel.remote.execution.v2.PriorityCapabilities.newBuilder()).apply { block() }._build()
/**
 * ```
 * Allowed values for priority in
 * [ResultsCachePolicy][build.bazel.remoteexecution.v2.ResultsCachePolicy] and
 * [ExecutionPolicy][build.bazel.remoteexecution.v2.ResultsCachePolicy]
 * Used for querying both cache and execution valid priority ranges.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.PriorityCapabilities`
 */
public object PriorityCapabilitiesKt {
  @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.PriorityCapabilities.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.PriorityCapabilities.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class PrioritiesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     */
     public val priorities: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getPrioritiesList()
      )
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     * @param value The priorities to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addPriorities")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) {
      _builder.addPriorities(value)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     * @param value The priorities to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignPriorities")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) {
      add(value)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     * @param values The priorities to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllPriorities")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllPriorities(values)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     * @param values The priorities to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllPriorities")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     * @param index The index to set the value at.
     * @param value The priorities to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setPriorities")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange) {
      _builder.setPriorities(index, value)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange priorities = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearPriorities")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearPriorities()
    }

  }
  @kotlin.jvm.JvmName("-initializepriorityRange")
  public inline fun priorityRange(block: build.bazel.remote.execution.v2.PriorityCapabilitiesKt.PriorityRangeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange =
    build.bazel.remote.execution.v2.PriorityCapabilitiesKt.PriorityRangeKt.Dsl._create(build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.newBuilder()).apply { block() }._build()
  /**
   * ```
   * Supported range of priorities, including boundaries.
   * ```
   *
   * Protobuf type `build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange`
   */
  public object PriorityRangeKt {
    @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.PriorityCapabilities.PriorityRange.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.Builder): Dsl = Dsl(builder)
      }

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

      /**
       * ```
       * The minimum numeric value for this priority range, which represents the
       * most urgent task or longest retained item.
       * ```
       *
       * `int32 min_priority = 1;`
       */
      public var minPriority: kotlin.Int
        @JvmName("getMinPriority")
        get() = _builder.getMinPriority()
        @JvmName("setMinPriority")
        set(value) {
          _builder.setMinPriority(value)
        }
      /**
       * ```
       * The minimum numeric value for this priority range, which represents the
       * most urgent task or longest retained item.
       * ```
       *
       * `int32 min_priority = 1;`
       */
      public fun clearMinPriority() {
        _builder.clearMinPriority()
      }

      /**
       * ```
       * The maximum numeric value for this priority range, which represents the
       * least urgent task or shortest retained item.
       * ```
       *
       * `int32 max_priority = 2;`
       */
      public var maxPriority: kotlin.Int
        @JvmName("getMaxPriority")
        get() = _builder.getMaxPriority()
        @JvmName("setMaxPriority")
        set(value) {
          _builder.setMaxPriority(value)
        }
      /**
       * ```
       * The maximum numeric value for this priority range, which represents the
       * least urgent task or shortest retained item.
       * ```
       *
       * `int32 max_priority = 2;`
       */
      public fun clearMaxPriority() {
        _builder.clearMaxPriority()
      }
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.PriorityCapabilities.copy(block: `build.bazel.remote.execution.v2`.PriorityCapabilitiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.PriorityCapabilities =
  `build.bazel.remote.execution.v2`.PriorityCapabilitiesKt.Dsl._create(this.toBuilder()).apply { block() }._build()

@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange.copy(block: `build.bazel.remote.execution.v2`.PriorityCapabilitiesKt.PriorityRangeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.PriorityCapabilities.PriorityRange =
  `build.bazel.remote.execution.v2`.PriorityCapabilitiesKt.PriorityRangeKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy