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

build.bazel.remote.execution.v2.SymlinkNodeKt.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("-initializesymlinkNode")
public inline fun symlinkNode(block: build.bazel.remote.execution.v2.SymlinkNodeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.SymlinkNode =
  build.bazel.remote.execution.v2.SymlinkNodeKt.Dsl._create(build.bazel.remote.execution.v2.SymlinkNode.newBuilder()).apply { block() }._build()
/**
 * ```
 * A `SymlinkNode` represents a symbolic link.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.SymlinkNode`
 */
public object SymlinkNodeKt {
  @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.SymlinkNode.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.SymlinkNode.Builder): Dsl = Dsl(builder)
    }

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

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

    /**
     * ```
     * 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 as logical
     * canonicalization may lead to different behavior in the presence of
     * directory symlinks (e.g. `foo/../bar` may not be the same as `bar`).
     * To reduce potential cache misses, canonicalization is still recommended
     * where this is possible without impacting correctness.
     * ```
     *
     * `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 as logical
     * canonicalization may lead to different behavior in the presence of
     * directory symlinks (e.g. `foo/../bar` may not be the same as `bar`).
     * To reduce potential cache misses, canonicalization is still recommended
     * where this is possible without impacting correctness.
     * ```
     *
     * `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.SymlinkNode.copy(block: `build.bazel.remote.execution.v2`.SymlinkNodeKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.SymlinkNode =
  `build.bazel.remote.execution.v2`.SymlinkNodeKt.Dsl._create(this.toBuilder()).apply { block() }._build()

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy