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

build.bazel.remote.asset.v1.FetchBlobResponseKt.kt Maven / Gradle / Ivy

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/remote/asset/v1/remote_asset.proto

// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package build.bazel.remote.asset.v1;

@kotlin.jvm.JvmName("-initializefetchBlobResponse")
public inline fun fetchBlobResponse(block: build.bazel.remote.asset.v1.FetchBlobResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.FetchBlobResponse =
  build.bazel.remote.asset.v1.FetchBlobResponseKt.Dsl._create(build.bazel.remote.asset.v1.FetchBlobResponse.newBuilder()).apply { block() }._build()
/**
 * ```
 * A response message for
 * [Fetch.FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
 * ```
 *
 * Protobuf type `build.bazel.remote.asset.v1.FetchBlobResponse`
 */
public object FetchBlobResponseKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  public class Dsl private constructor(
    private val _builder: build.bazel.remote.asset.v1.FetchBlobResponse.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.asset.v1.FetchBlobResponse.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.remote.asset.v1.FetchBlobResponse = _builder.build()

    /**
     * ```
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * ```
     *
     * `.google.rpc.Status status = 1;`
     */
    public var status: com.google.rpc.Status
      @JvmName("getStatus")
      get() = _builder.getStatus()
      @JvmName("setStatus")
      set(value) {
        _builder.setStatus(value)
      }
    /**
     * ```
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * ```
     *
     * `.google.rpc.Status status = 1;`
     */
    public fun clearStatus() {
      _builder.clearStatus()
    }
    /**
     * ```
     * If the status has a code other than `OK`, it indicates that the operation
     * was unable to be completed for reasons outside the servers' control.
     * The possible fetch errors include:
     * * `DEADLINE_EXCEEDED`: The operation could not be completed within the
     *   specified timeout.
     * * `NOT_FOUND`: The requested asset was not found at the specified location.
     * * `PERMISSION_DENIED`: The request was rejected by a remote server, or
     *   requested an asset from a disallowed origin.
     * * `ABORTED`: The operation could not be completed, typically due to a
     *   failed consistency check.
     * ```
     *
     * `.google.rpc.Status status = 1;`
     * @return Whether the status field is set.
     */
    public fun hasStatus(): kotlin.Boolean {
      return _builder.hasStatus()
    }

    /**
     * ```
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * ```
     *
     * `string uri = 2;`
     */
    public var uri: kotlin.String
      @JvmName("getUri")
      get() = _builder.getUri()
      @JvmName("setUri")
      set(value) {
        _builder.setUri(value)
      }
    /**
     * ```
     * The uri from the request that resulted in a successful retrieval, or from
     * which the error indicated in `status` was obtained.
     * ```
     *
     * `string uri = 2;`
     */
    public fun clearUri() {
      _builder.clearUri()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class QualifiersProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     */
     public val qualifiers: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getQualifiersList()
      )
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     * @param value The qualifiers to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addQualifiers")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.asset.v1.Qualifier) {
      _builder.addQualifiers(value)
    }
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     * @param value The qualifiers to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignQualifiers")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.asset.v1.Qualifier) {
      add(value)
    }
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     * @param values The qualifiers to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllQualifiers")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllQualifiers(values)
    }
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     * @param values The qualifiers to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllQualifiers")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     * @param index The index to set the value at.
     * @param value The qualifiers to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setQualifiers")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.asset.v1.Qualifier) {
      _builder.setQualifiers(index, value)
    }
    /**
     * ```
     * Any qualifiers known to the server and of interest to clients.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearQualifiers")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearQualifiers()
    }


    /**
     * ```
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * ```
     *
     * `.google.protobuf.Timestamp expires_at = 4;`
     */
    public var expiresAt: com.google.protobuf.Timestamp
      @JvmName("getExpiresAt")
      get() = _builder.getExpiresAt()
      @JvmName("setExpiresAt")
      set(value) {
        _builder.setExpiresAt(value)
      }
    /**
     * ```
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * ```
     *
     * `.google.protobuf.Timestamp expires_at = 4;`
     */
    public fun clearExpiresAt() {
      _builder.clearExpiresAt()
    }
    /**
     * ```
     * A minimum timestamp the content is expected to be available through.
     * Servers *MAY* omit this field, if not known with confidence.
     * ```
     *
     * `.google.protobuf.Timestamp expires_at = 4;`
     * @return Whether the expiresAt field is set.
     */
    public fun hasExpiresAt(): kotlin.Boolean {
      return _builder.hasExpiresAt()
    }

    /**
     * ```
     * The result of the fetch, if the status had code `OK`.
     * The digest of the file's contents, available for download through the CAS.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest blob_digest = 5;`
     */
    public var blobDigest: build.bazel.remote.execution.v2.Digest
      @JvmName("getBlobDigest")
      get() = _builder.getBlobDigest()
      @JvmName("setBlobDigest")
      set(value) {
        _builder.setBlobDigest(value)
      }
    /**
     * ```
     * The result of the fetch, if the status had code `OK`.
     * The digest of the file's contents, available for download through the CAS.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest blob_digest = 5;`
     */
    public fun clearBlobDigest() {
      _builder.clearBlobDigest()
    }
    /**
     * ```
     * The result of the fetch, if the status had code `OK`.
     * The digest of the file's contents, available for download through the CAS.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest blob_digest = 5;`
     * @return Whether the blobDigest field is set.
     */
    public fun hasBlobDigest(): kotlin.Boolean {
      return _builder.hasBlobDigest()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.asset.v1.FetchBlobResponse.copy(block: `build.bazel.remote.asset.v1`.FetchBlobResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.FetchBlobResponse =
  `build.bazel.remote.asset.v1`.FetchBlobResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.asset.v1.FetchBlobResponseOrBuilder.statusOrNull: com.google.rpc.Status?
  get() = if (hasStatus()) getStatus() else null

public val build.bazel.remote.asset.v1.FetchBlobResponseOrBuilder.expiresAtOrNull: com.google.protobuf.Timestamp?
  get() = if (hasExpiresAt()) getExpiresAt() else null

public val build.bazel.remote.asset.v1.FetchBlobResponseOrBuilder.blobDigestOrNull: build.bazel.remote.execution.v2.Digest?
  get() = if (hasBlobDigest()) getBlobDigest() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy