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

build.bazel.remote.execution.v2.NodePropertyKt.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("-initializenodeProperty")
public inline fun nodeProperty(block: build.bazel.remote.execution.v2.NodePropertyKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.NodeProperty =
  build.bazel.remote.execution.v2.NodePropertyKt.Dsl._create(build.bazel.remote.execution.v2.NodeProperty.newBuilder()).apply { block() }._build()
/**
 * ```
 * A single property for [FileNodes][build.bazel.remote.execution.v2.FileNode],
 * [DirectoryNodes][build.bazel.remote.execution.v2.DirectoryNode], and
 * [SymlinkNodes][build.bazel.remote.execution.v2.SymlinkNode]. The server is
 * responsible for specifying the property `name`s that it accepts. If
 * permitted by the server, the same `name` may occur multiple times.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.NodeProperty`
 */
public object NodePropertyKt {
  @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.NodeProperty.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.NodeProperty.Builder): Dsl = Dsl(builder)
    }

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

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

    /**
     * ```
     * The property value.
     * ```
     *
     * `string value = 2;`
     */
    public var value: kotlin.String
      @JvmName("getValue")
      get() = _builder.getValue()
      @JvmName("setValue")
      set(value) {
        _builder.setValue(value)
      }
    /**
     * ```
     * The property value.
     * ```
     *
     * `string value = 2;`
     */
    public fun clearValue() {
      _builder.clearValue()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.NodeProperty.copy(block: `build.bazel.remote.execution.v2`.NodePropertyKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.NodeProperty =
  `build.bazel.remote.execution.v2`.NodePropertyKt.Dsl._create(this.toBuilder()).apply { block() }._build()





© 2015 - 2024 Weber Informatics LLC | Privacy Policy