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

build.bazel.remote.execution.v2.OutputSymlinkKt.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("-initializeoutputSymlink")
public inline fun outputSymlink(block: build.bazel.remote.execution.v2.OutputSymlinkKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.OutputSymlink =
  build.bazel.remote.execution.v2.OutputSymlinkKt.Dsl._create(build.bazel.remote.execution.v2.OutputSymlink.newBuilder()).apply { block() }._build()
/**
 * ```
 * An `OutputSymlink` is similar to a
 * [Symlink][build.bazel.remote.execution.v2.SymlinkNode], but it is used as an
 * output in an `ActionResult`.
 *
 * `OutputSymlink` is binary-compatible with `SymlinkNode`.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.OutputSymlink`
 */
public object OutputSymlinkKt {
  @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.OutputSymlink.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.OutputSymlink.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The full path of the symlink relative to the working directory, including the
     * filename. The path separator is a forward slash `/`. Since this is a
     * relative path, it MUST NOT begin with a leading forward slash.
     * ```
     *
     * `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 symlink relative to the working directory, including the
     * filename. The path separator is a forward slash `/`. Since this is a
     * relative path, it MUST NOT begin with a leading forward slash.
     * ```
     *
     * `string path = 1;`
     */
    public fun clearPath() {
      _builder.clearPath()
    }

    /**
     * ```
     * The target path of the symlink. The path separator is a forward slash `/`.
     * The target path can be relative to the parent directory of the symlink or
     * it can be an absolute path starting with `/`. Support for absolute paths
     * can be checked using the [Capabilities][build.bazel.remote.execution.v2.Capabilities]
     * API. `..` components are allowed anywhere in the target path.
     * ```
     *
     * `string target = 2;`
     */
    public var target: kotlin.String
      @JvmName("getTarget")
      get() = _builder.getTarget()
      @JvmName("setTarget")
      set(value) {
        _builder.setTarget(value)
      }
    /**
     * ```
     * The target path of the symlink. The path separator is a forward slash `/`.
     * The target path can be relative to the parent directory of the symlink or
     * it can be an absolute path starting with `/`. Support for absolute paths
     * can be checked using the [Capabilities][build.bazel.remote.execution.v2.Capabilities]
     * API. `..` components are allowed anywhere in the target path.
     * ```
     *
     * `string target = 2;`
     */
    public fun clearTarget() {
      _builder.clearTarget()
    }

    /**
     * `.build.bazel.remote.execution.v2.NodeProperties node_properties = 4;`
     */
    public var nodeProperties: build.bazel.remote.execution.v2.NodeProperties
      @JvmName("getNodeProperties")
      get() = _builder.getNodeProperties()
      @JvmName("setNodeProperties")
      set(value) {
        _builder.setNodeProperties(value)
      }
    /**
     * `.build.bazel.remote.execution.v2.NodeProperties node_properties = 4;`
     */
    public fun clearNodeProperties() {
      _builder.clearNodeProperties()
    }
    /**
     * `.build.bazel.remote.execution.v2.NodeProperties node_properties = 4;`
     * @return Whether the nodeProperties field is set.
     */
    public fun hasNodeProperties(): kotlin.Boolean {
      return _builder.hasNodeProperties()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.OutputSymlink.copy(block: `build.bazel.remote.execution.v2`.OutputSymlinkKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.OutputSymlink =
  `build.bazel.remote.execution.v2`.OutputSymlinkKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.execution.v2.OutputSymlinkOrBuilder.nodePropertiesOrNull: build.bazel.remote.execution.v2.NodeProperties?
  get() = if (hasNodeProperties()) getNodeProperties() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy