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

build.bazel.remote.execution.v2.OutputFileKt.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("-initializeoutputFile")
public inline fun outputFile(block: build.bazel.remote.execution.v2.OutputFileKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.OutputFile =
  build.bazel.remote.execution.v2.OutputFileKt.Dsl._create(build.bazel.remote.execution.v2.OutputFile.newBuilder()).apply { block() }._build()
/**
 * ```
 * An `OutputFile` is similar to a
 * [FileNode][build.bazel.remote.execution.v2.FileNode], but it is used as an
 * output in an `ActionResult`. It allows a full file path rather than
 * only a name.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.OutputFile`
 */
public object OutputFileKt {
  @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.OutputFile.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.OutputFile.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The full path of the file 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 file 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 digest of the file's content.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest digest = 2;`
     */
    public var digest: build.bazel.remote.execution.v2.Digest
      @JvmName("getDigest")
      get() = _builder.getDigest()
      @JvmName("setDigest")
      set(value) {
        _builder.setDigest(value)
      }
    /**
     * ```
     * The digest of the file's content.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest digest = 2;`
     */
    public fun clearDigest() {
      _builder.clearDigest()
    }
    /**
     * ```
     * The digest of the file's content.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest digest = 2;`
     * @return Whether the digest field is set.
     */
    public fun hasDigest(): kotlin.Boolean {
      return _builder.hasDigest()
    }

    /**
     * ```
     * True if file is executable, false otherwise.
     * ```
     *
     * `bool is_executable = 4;`
     */
    public var isExecutable: kotlin.Boolean
      @JvmName("getIsExecutable")
      get() = _builder.getIsExecutable()
      @JvmName("setIsExecutable")
      set(value) {
        _builder.setIsExecutable(value)
      }
    /**
     * ```
     * True if file is executable, false otherwise.
     * ```
     *
     * `bool is_executable = 4;`
     */
    public fun clearIsExecutable() {
      _builder.clearIsExecutable()
    }

    /**
     * ```
     * The contents of the file if inlining was requested. The server SHOULD NOT inline
     * file contents unless requested by the client in the
     * [GetActionResultRequest][build.bazel.remote.execution.v2.GetActionResultRequest]
     * message. The server MAY omit inlining, even if requested, and MUST do so if inlining
     * would cause the response to exceed message size limits.
     * ```
     *
     * `bytes contents = 5;`
     */
    public var contents: com.google.protobuf.ByteString
      @JvmName("getContents")
      get() = _builder.getContents()
      @JvmName("setContents")
      set(value) {
        _builder.setContents(value)
      }
    /**
     * ```
     * The contents of the file if inlining was requested. The server SHOULD NOT inline
     * file contents unless requested by the client in the
     * [GetActionResultRequest][build.bazel.remote.execution.v2.GetActionResultRequest]
     * message. The server MAY omit inlining, even if requested, and MUST do so if inlining
     * would cause the response to exceed message size limits.
     * ```
     *
     * `bytes contents = 5;`
     */
    public fun clearContents() {
      _builder.clearContents()
    }

    /**
     * `.build.bazel.remote.execution.v2.NodeProperties node_properties = 7;`
     */
    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 = 7;`
     */
    public fun clearNodeProperties() {
      _builder.clearNodeProperties()
    }
    /**
     * `.build.bazel.remote.execution.v2.NodeProperties node_properties = 7;`
     * @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.OutputFile.copy(block: `build.bazel.remote.execution.v2`.OutputFileKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.OutputFile =
  `build.bazel.remote.execution.v2`.OutputFileKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.execution.v2.OutputFileOrBuilder.digestOrNull: build.bazel.remote.execution.v2.Digest?
  get() = if (hasDigest()) getDigest() else null

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy