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

build.bazel.remote.execution.v2.ExecutionCapabilitiesKt.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("-initializeexecutionCapabilities")
public inline fun executionCapabilities(block: build.bazel.remote.execution.v2.ExecutionCapabilitiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ExecutionCapabilities =
  build.bazel.remote.execution.v2.ExecutionCapabilitiesKt.Dsl._create(build.bazel.remote.execution.v2.ExecutionCapabilities.newBuilder()).apply { block() }._build()
/**
 * ```
 * Capabilities of the remote execution system.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.ExecutionCapabilities`
 */
public object ExecutionCapabilitiesKt {
  @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.ExecutionCapabilities.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.ExecutionCapabilities.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * Remote execution may only support a single digest function.
     * ```
     *
     * `.build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
     */
    public var digestFunction: build.bazel.remote.execution.v2.DigestFunction.Value
      @JvmName("getDigestFunction")
      get() = _builder.getDigestFunction()
      @JvmName("setDigestFunction")
      set(value) {
        _builder.setDigestFunction(value)
      }
    public var digestFunctionValue: kotlin.Int
      @JvmName("getDigestFunctionValue")
      get() = _builder.getDigestFunctionValue()
      @JvmName("setDigestFunctionValue")
      set(value) {
        _builder.setDigestFunctionValue(value)
      }
    /**
     * ```
     * Remote execution may only support a single digest function.
     * ```
     *
     * `.build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
     */
    public fun clearDigestFunction() {
      _builder.clearDigestFunction()
    }

    /**
     * ```
     * Whether remote execution is enabled for the particular server/instance.
     * ```
     *
     * `bool exec_enabled = 2;`
     */
    public var execEnabled: kotlin.Boolean
      @JvmName("getExecEnabled")
      get() = _builder.getExecEnabled()
      @JvmName("setExecEnabled")
      set(value) {
        _builder.setExecEnabled(value)
      }
    /**
     * ```
     * Whether remote execution is enabled for the particular server/instance.
     * ```
     *
     * `bool exec_enabled = 2;`
     */
    public fun clearExecEnabled() {
      _builder.clearExecEnabled()
    }

    /**
     * ```
     * Supported execution priority range.
     * ```
     *
     * `.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;`
     */
    public var executionPriorityCapabilities: build.bazel.remote.execution.v2.PriorityCapabilities
      @JvmName("getExecutionPriorityCapabilities")
      get() = _builder.getExecutionPriorityCapabilities()
      @JvmName("setExecutionPriorityCapabilities")
      set(value) {
        _builder.setExecutionPriorityCapabilities(value)
      }
    /**
     * ```
     * Supported execution priority range.
     * ```
     *
     * `.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;`
     */
    public fun clearExecutionPriorityCapabilities() {
      _builder.clearExecutionPriorityCapabilities()
    }
    /**
     * ```
     * Supported execution priority range.
     * ```
     *
     * `.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;`
     * @return Whether the executionPriorityCapabilities field is set.
     */
    public fun hasExecutionPriorityCapabilities(): kotlin.Boolean {
      return _builder.hasExecutionPriorityCapabilities()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class SupportedNodePropertiesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     * @return A list containing the supportedNodeProperties.
     */
    public val supportedNodeProperties: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getSupportedNodePropertiesList()
      )
    /**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     * @param value The supportedNodeProperties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addSupportedNodeProperties")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
      _builder.addSupportedNodeProperties(value)
    }
    /**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     * @param value The supportedNodeProperties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignSupportedNodeProperties")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
      add(value)
    }
    /**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     * @param values The supportedNodeProperties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllSupportedNodeProperties")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllSupportedNodeProperties(values)
    }
    /**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     * @param values The supportedNodeProperties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllSupportedNodeProperties")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     * @param index The index to set the value at.
     * @param value The supportedNodeProperties to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setSupportedNodeProperties")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
      _builder.setSupportedNodeProperties(index, value)
    }/**
     * ```
     * Supported node properties.
     * ```
     *
     * `repeated string supported_node_properties = 4;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearSupportedNodeProperties")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearSupportedNodeProperties()
    }}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.ExecutionCapabilities.copy(block: `build.bazel.remote.execution.v2`.ExecutionCapabilitiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.ExecutionCapabilities =
  `build.bazel.remote.execution.v2`.ExecutionCapabilitiesKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder.executionPriorityCapabilitiesOrNull: build.bazel.remote.execution.v2.PriorityCapabilities?
  get() = if (hasExecutionPriorityCapabilities()) getExecutionPriorityCapabilities() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy