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

build.bazel.remote.execution.v2.LogFileKt.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("-initializelogFile")
public inline fun logFile(block: build.bazel.remote.execution.v2.LogFileKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.LogFile =
  build.bazel.remote.execution.v2.LogFileKt.Dsl._create(build.bazel.remote.execution.v2.LogFile.newBuilder()).apply { block() }._build()
/**
 * ```
 * A `LogFile` is a log stored in the CAS.
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.LogFile`
 */
public object LogFileKt {
  @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.LogFile.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.LogFile.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * ```
     * The digest of the log contents.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest digest = 1;`
     */
    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 log contents.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest digest = 1;`
     */
    public fun clearDigest() {
      _builder.clearDigest()
    }
    /**
     * ```
     * The digest of the log contents.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest digest = 1;`
     * @return Whether the digest field is set.
     */
    public fun hasDigest(): kotlin.Boolean {
      return _builder.hasDigest()
    }

    /**
     * ```
     * This is a hint as to the purpose of the log, and is set to true if the log
     * is human-readable text that can be usefully displayed to a user, and false
     * otherwise. For instance, if a command-line client wishes to print the
     * server logs to the terminal for a failed action, this allows it to avoid
     * displaying a binary file.
     * ```
     *
     * `bool human_readable = 2;`
     */
    public var humanReadable: kotlin.Boolean
      @JvmName("getHumanReadable")
      get() = _builder.getHumanReadable()
      @JvmName("setHumanReadable")
      set(value) {
        _builder.setHumanReadable(value)
      }
    /**
     * ```
     * This is a hint as to the purpose of the log, and is set to true if the log
     * is human-readable text that can be usefully displayed to a user, and false
     * otherwise. For instance, if a command-line client wishes to print the
     * server logs to the terminal for a failed action, this allows it to avoid
     * displaying a binary file.
     * ```
     *
     * `bool human_readable = 2;`
     */
    public fun clearHumanReadable() {
      _builder.clearHumanReadable()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.LogFile.copy(block: `build.bazel.remote.execution.v2`.LogFileKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.LogFile =
  `build.bazel.remote.execution.v2`.LogFileKt.Dsl._create(this.toBuilder()).apply { block() }._build()

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy