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

build.bazel.remote.execution.v2.OutputDirectoryKt.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("-initializeoutputDirectory")
public inline fun outputDirectory(block: build.bazel.remote.execution.v2.OutputDirectoryKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.OutputDirectory =
  build.bazel.remote.execution.v2.OutputDirectoryKt.Dsl._create(build.bazel.remote.execution.v2.OutputDirectory.newBuilder()).apply { block() }._build()
/**
 * ```
 * An `OutputDirectory` is the output in an `ActionResult` corresponding to a
 * directory's full contents rather than a single file.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.OutputDirectory`
 */
public object OutputDirectoryKt {
  @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.OutputDirectory.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.OutputDirectory.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The full path of the directory relative to the working directory. The path
     * separator is a forward slash `/`. Since this is a relative path, it MUST
     * NOT begin with a leading forward slash. The empty string value is allowed,
     * and it denotes the entire working directory.
     * ```
     *
     * `string path = 1;`
     */
    public var path: kotlin.String
      @JvmName("getPath")
      get() = _builder.getPath()
      @JvmName("setPath")
      set(value) {
        _builder.setPath(value)
      }
    /**
     * ```
     * The full path of the directory relative to the working directory. The path
     * separator is a forward slash `/`. Since this is a relative path, it MUST
     * NOT begin with a leading forward slash. The empty string value is allowed,
     * and it denotes the entire working directory.
     * ```
     *
     * `string path = 1;`
     */
    public fun clearPath() {
      _builder.clearPath()
    }

    /**
     * ```
     * The digest of the encoded
     * [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
     * directory's contents.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest tree_digest = 3;`
     */
    public var treeDigest: build.bazel.remote.execution.v2.Digest
      @JvmName("getTreeDigest")
      get() = _builder.getTreeDigest()
      @JvmName("setTreeDigest")
      set(value) {
        _builder.setTreeDigest(value)
      }
    /**
     * ```
     * The digest of the encoded
     * [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
     * directory's contents.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest tree_digest = 3;`
     */
    public fun clearTreeDigest() {
      _builder.clearTreeDigest()
    }
    /**
     * ```
     * The digest of the encoded
     * [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
     * directory's contents.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest tree_digest = 3;`
     * @return Whether the treeDigest field is set.
     */
    public fun hasTreeDigest(): kotlin.Boolean {
      return _builder.hasTreeDigest()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.OutputDirectory.copy(block: `build.bazel.remote.execution.v2`.OutputDirectoryKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.OutputDirectory =
  `build.bazel.remote.execution.v2`.OutputDirectoryKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.execution.v2.OutputDirectoryOrBuilder.treeDigestOrNull: build.bazel.remote.execution.v2.Digest?
  get() = if (hasTreeDigest()) getTreeDigest() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy