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

build.bazel.remote.asset.v1.QualifierKt.kt Maven / Gradle / Ivy

There is a newer version: 1.2.13
Show newest version
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/remote/asset/v1/remote_asset.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package build.bazel.remote.asset.v1;

@kotlin.jvm.JvmName("-initializequalifier")
public inline fun qualifier(block: build.bazel.remote.asset.v1.QualifierKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.Qualifier =
  build.bazel.remote.asset.v1.QualifierKt.Dsl._create(build.bazel.remote.asset.v1.Qualifier.newBuilder()).apply { block() }._build()
/**
 * ```
 * Qualifiers are used to disambiguate or sub-select content that shares a URI.
 * This may include specifying a particular commit or branch, in the case of
 * URIs referencing a repository; they could also be used to specify a
 * particular subdirectory of a repository or tarball. Qualifiers may also be
 * used to ensure content matches what the client expects, even when there is
 * no ambiguity to be had - for example, a qualifier specifying a checksum
 * value.
 *
 * In cases where the semantics of the request are not immediately clear from
 * the URL and/or qualifiers - e.g. dictated by URL scheme - it is recommended
 * to use an additional qualifier to remove the ambiguity. The `resource_type`
 * qualifier is recommended for this purpose.
 *
 * Qualifiers may be supplied in any order.
 * ```
 *
 * Protobuf type `build.bazel.remote.asset.v1.Qualifier`
 */
public object QualifierKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: build.bazel.remote.asset.v1.Qualifier.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.asset.v1.Qualifier.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.remote.asset.v1.Qualifier = _builder.build()

    /**
     * ```
     * The "name" of the qualifier, for example "resource_type".
     * No separation is made between 'standard' and 'nonstandard'
     * qualifiers, in accordance with https://tools.ietf.org/html/rfc6648,
     * however implementers *SHOULD* take care to avoid ambiguity.
     * ```
     *
     * `string name = 1;`
     */
    public var name: kotlin.String
      @JvmName("getName")
      get() = _builder.getName()
      @JvmName("setName")
      set(value) {
        _builder.setName(value)
      }
    /**
     * ```
     * The "name" of the qualifier, for example "resource_type".
     * No separation is made between 'standard' and 'nonstandard'
     * qualifiers, in accordance with https://tools.ietf.org/html/rfc6648,
     * however implementers *SHOULD* take care to avoid ambiguity.
     * ```
     *
     * `string name = 1;`
     */
    public fun clearName() {
      _builder.clearName()
    }

    /**
     * ```
     * The "value" of the qualifier. Semantics will be dictated by the name.
     * ```
     *
     * `string value = 2;`
     */
    public var value: kotlin.String
      @JvmName("getValue")
      get() = _builder.getValue()
      @JvmName("setValue")
      set(value) {
        _builder.setValue(value)
      }
    /**
     * ```
     * The "value" of the qualifier. Semantics will be dictated by the name.
     * ```
     *
     * `string value = 2;`
     */
    public fun clearValue() {
      _builder.clearValue()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.asset.v1.Qualifier.copy(block: `build.bazel.remote.asset.v1`.QualifierKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.Qualifier =
  `build.bazel.remote.asset.v1`.QualifierKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2025 Weber Informatics LLC | Privacy Policy