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

build.bazel.remote.execution.v2.PlatformKt.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("-initializeplatform")
public inline fun platform(block: build.bazel.remote.execution.v2.PlatformKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.Platform =
  build.bazel.remote.execution.v2.PlatformKt.Dsl._create(build.bazel.remote.execution.v2.Platform.newBuilder()).apply { block() }._build()
/**
 * ```
 * A `Platform` is a set of requirements, such as hardware, operating system, or
 * compiler toolchain, for an
 * [Action][build.bazel.remote.execution.v2.Action]'s execution
 * environment. A `Platform` is represented as a series of key-value pairs
 * representing the properties that are required of the platform.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.Platform`
 */
public object PlatformKt {
  @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.Platform.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.Platform.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class PropertiesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     */
     public val properties: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getPropertiesList()
      )
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     * @param value The properties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addProperties")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.Platform.Property) {
      _builder.addProperties(value)
    }
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     * @param value The properties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignProperties")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.Platform.Property) {
      add(value)
    }
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     * @param values The properties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllProperties")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllProperties(values)
    }
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     * @param values The properties to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllProperties")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     * @param index The index to set the value at.
     * @param value The properties to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setProperties")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.Platform.Property) {
      _builder.setProperties(index, value)
    }
    /**
     * ```
     * The properties that make up this platform. In order to ensure that
     * equivalent `Platform`s always hash to the same value, the properties MUST
     * be lexicographically sorted by name, and then by value. Sorting of strings
     * is done by code point, equivalently, by the UTF-8 bytes.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Platform.Property properties = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearProperties")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearProperties()
    }

  }
  @kotlin.jvm.JvmName("-initializeproperty")
  public inline fun property(block: build.bazel.remote.execution.v2.PlatformKt.PropertyKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.Platform.Property =
    build.bazel.remote.execution.v2.PlatformKt.PropertyKt.Dsl._create(build.bazel.remote.execution.v2.Platform.Property.newBuilder()).apply { block() }._build()
  /**
   * ```
   * A single property for the environment. The server is responsible for
   * specifying the property `name`s that it accepts. If an unknown `name` is
   * provided in the requirements for an
   * [Action][build.bazel.remote.execution.v2.Action], the server SHOULD
   * reject the execution request. If permitted by the server, the same `name`
   * may occur multiple times.
   *
   * The server is also responsible for specifying the interpretation of
   * property `value`s. For instance, a property describing how much RAM must be
   * available may be interpreted as allowing a worker with 16GB to fulfill a
   * request for 8GB, while a property describing the OS environment on which
   * the action must be performed may require an exact match with the worker's
   * OS.
   *
   * The server MAY use the `value` of one or more properties to determine how
   * it sets up the execution environment, such as by making specific system
   * files available to the worker.
   *
   * Both names and values are typically case-sensitive. Note that the platform
   * is implicitly part of the action digest, so even tiny changes in the names
   * or values (like changing case) may result in different action cache
   * entries.
   * ```
   *
   * Protobuf type `build.bazel.remote.execution.v2.Platform.Property`
   */
  public object PropertyKt {
    @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.Platform.Property.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: build.bazel.remote.execution.v2.Platform.Property.Builder): Dsl = Dsl(builder)
      }

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

      /**
       * ```
       * The property name.
       * ```
       *
       * `string name = 1;`
       */
      public var name: kotlin.String
        @JvmName("getName")
        get() = _builder.getName()
        @JvmName("setName")
        set(value) {
          _builder.setName(value)
        }
      /**
       * ```
       * The property name.
       * ```
       *
       * `string name = 1;`
       */
      public fun clearName() {
        _builder.clearName()
      }

      /**
       * ```
       * The property value.
       * ```
       *
       * `string value = 2;`
       */
      public var value: kotlin.String
        @JvmName("getValue")
        get() = _builder.getValue()
        @JvmName("setValue")
        set(value) {
          _builder.setValue(value)
        }
      /**
       * ```
       * The property value.
       * ```
       *
       * `string value = 2;`
       */
      public fun clearValue() {
        _builder.clearValue()
      }
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.Platform.copy(block: `build.bazel.remote.execution.v2`.PlatformKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.Platform =
  `build.bazel.remote.execution.v2`.PlatformKt.Dsl._create(this.toBuilder()).apply { block() }._build()

@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.Platform.Property.copy(block: `build.bazel.remote.execution.v2`.PlatformKt.PropertyKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.Platform.Property =
  `build.bazel.remote.execution.v2`.PlatformKt.PropertyKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy