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

build.bazel.remote.execution.v2.BatchReadBlobsResponseKt.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("-initializebatchReadBlobsResponse")
public inline fun batchReadBlobsResponse(block: build.bazel.remote.execution.v2.BatchReadBlobsResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchReadBlobsResponse =
  build.bazel.remote.execution.v2.BatchReadBlobsResponseKt.Dsl._create(build.bazel.remote.execution.v2.BatchReadBlobsResponse.newBuilder()).apply { block() }._build()
/**
 * ```
 * A response message for
 * [ContentAddressableStorage.BatchReadBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchReadBlobs].
 * ```
 *
 * Protobuf type `build.bazel.remote.execution.v2.BatchReadBlobsResponse`
 */
public object BatchReadBlobsResponseKt {
  @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.BatchReadBlobsResponse.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.execution.v2.BatchReadBlobsResponse.Builder): Dsl = Dsl(builder)
    }

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

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ResponsesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     */
     public val responses: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getResponsesList()
      )
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     * @param value The responses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addResponses")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) {
      _builder.addResponses(value)
    }
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     * @param value The responses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignResponses")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) {
      add(value)
    }
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     * @param values The responses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllResponses")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllResponses(values)
    }
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     * @param values The responses to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllResponses")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     * @param index The index to set the value at.
     * @param value The responses to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setResponses")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) {
      _builder.setResponses(index, value)
    }
    /**
     * ```
     * The responses to the requests.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearResponses")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearResponses()
    }

  }
  @kotlin.jvm.JvmName("-initializeresponse")
  public inline fun response(block: build.bazel.remote.execution.v2.BatchReadBlobsResponseKt.ResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response =
    build.bazel.remote.execution.v2.BatchReadBlobsResponseKt.ResponseKt.Dsl._create(build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.newBuilder()).apply { block() }._build()
  /**
   * ```
   * A response corresponding to a single blob that the client tried to download.
   * ```
   *
   * Protobuf type `build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response`
   */
  public object ResponseKt {
    @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.BatchReadBlobsResponse.Response.Builder
    ) {
      public companion object {
        @kotlin.jvm.JvmSynthetic
        @kotlin.PublishedApi
        internal fun _create(builder: build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder): Dsl = Dsl(builder)
      }

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

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

      /**
       * ```
       * The raw binary data.
       * ```
       *
       * `bytes data = 2;`
       */
      public var data: com.google.protobuf.ByteString
        @JvmName("getData")
        get() = _builder.getData()
        @JvmName("setData")
        set(value) {
          _builder.setData(value)
        }
      /**
       * ```
       * The raw binary data.
       * ```
       *
       * `bytes data = 2;`
       */
      public fun clearData() {
        _builder.clearData()
      }

      /**
       * ```
       * The result of attempting to download that blob.
       * ```
       *
       * `.google.rpc.Status status = 3;`
       */
      public var status: com.google.rpc.Status
        @JvmName("getStatus")
        get() = _builder.getStatus()
        @JvmName("setStatus")
        set(value) {
          _builder.setStatus(value)
        }
      /**
       * ```
       * The result of attempting to download that blob.
       * ```
       *
       * `.google.rpc.Status status = 3;`
       */
      public fun clearStatus() {
        _builder.clearStatus()
      }
      /**
       * ```
       * The result of attempting to download that blob.
       * ```
       *
       * `.google.rpc.Status status = 3;`
       * @return Whether the status field is set.
       */
      public fun hasStatus(): kotlin.Boolean {
        return _builder.hasStatus()
      }
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchReadBlobsResponse.copy(block: `build.bazel.remote.execution.v2`.BatchReadBlobsResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchReadBlobsResponse =
  `build.bazel.remote.execution.v2`.BatchReadBlobsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.copy(block: `build.bazel.remote.execution.v2`.BatchReadBlobsResponseKt.ResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response =
  `build.bazel.remote.execution.v2`.BatchReadBlobsResponseKt.ResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

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

public val build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder.statusOrNull: com.google.rpc.Status?
  get() = if (hasStatus()) getStatus() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy