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

build.bazel.remote.execution.v2.TreeKt.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("-initializetree")
public inline fun tree(block: build.bazel.remote.execution.v2.TreeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.Tree =
  build.bazel.remote.execution.v2.TreeKt.Dsl._create(build.bazel.remote.execution.v2.Tree.newBuilder()).apply { block() }._build()
/**
 * ```
 * A `Tree` contains all the
 * [Directory][build.bazel.remote.execution.v2.Directory] protos in a
 * single directory Merkle tree, compressed into one message.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.Tree`
 */
public object TreeKt {
  @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.Tree.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.Tree.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The root directory in the tree.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Directory root = 1;`
     */
    public var root: build.bazel.remote.execution.v2.Directory
      @JvmName("getRoot")
      get() = _builder.getRoot()
      @JvmName("setRoot")
      set(value) {
        _builder.setRoot(value)
      }
    /**
     * ```
     * The root directory in the tree.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Directory root = 1;`
     */
    public fun clearRoot() {
      _builder.clearRoot()
    }
    /**
     * ```
     * The root directory in the tree.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Directory root = 1;`
     * @return Whether the root field is set.
     */
    public fun hasRoot(): kotlin.Boolean {
      return _builder.hasRoot()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ChildrenProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     */
     public val children: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getChildrenList()
      )
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     * @param value The children to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addChildren")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.Directory) {
      _builder.addChildren(value)
    }
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     * @param value The children to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignChildren")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.Directory) {
      add(value)
    }
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     * @param values The children to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllChildren")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllChildren(values)
    }
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     * @param values The children to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllChildren")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     * @param index The index to set the value at.
     * @param value The children to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setChildren")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.Directory) {
      _builder.setChildren(index, value)
    }
    /**
     * ```
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Directory children = 2;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearChildren")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearChildren()
    }

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

public val build.bazel.remote.execution.v2.TreeOrBuilder.rootOrNull: build.bazel.remote.execution.v2.Directory?
  get() = if (hasRoot()) getRoot() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy