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

build.bazel.remote.asset.v1.FetchDirectoryResponseKt.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("-initializefetchDirectoryResponse")
public inline fun fetchDirectoryResponse(block: build.bazel.remote.asset.v1.FetchDirectoryResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.FetchDirectoryResponse =
  build.bazel.remote.asset.v1.FetchDirectoryResponseKt.Dsl._create(build.bazel.remote.asset.v1.FetchDirectoryResponse.newBuilder()).apply { block() }._build()
/**
 * ```
 * A response message for
 * [Fetch.FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
 * ```
 *
 * Protobuf type `build.bazel.remote.asset.v1.FetchDirectoryResponse`
 */
public object FetchDirectoryResponseKt {
  @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.FetchDirectoryResponse.Builder
  ) {
    public companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: build.bazel.remote.asset.v1.FetchDirectoryResponse.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.remote.asset.v1.FetchDirectoryResponse = _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 root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest root_directory_digest = 5;`
     */
    public var rootDirectoryDigest: build.bazel.remote.execution.v2.Digest
      @JvmName("getRootDirectoryDigest")
      get() = _builder.getRootDirectoryDigest()
      @JvmName("setRootDirectoryDigest")
      set(value) {
        _builder.setRootDirectoryDigest(value)
      }
    /**
     * ```
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest root_directory_digest = 5;`
     */
    public fun clearRootDirectoryDigest() {
      _builder.clearRootDirectoryDigest()
    }
    /**
     * ```
     * The result of the fetch, if the status had code `OK`.
     * the root digest of a directory tree, suitable for fetching via
     * [ContentAddressableStorage.GetTree].
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest root_directory_digest = 5;`
     * @return Whether the rootDirectoryDigest field is set.
     */
    public fun hasRootDirectoryDigest(): kotlin.Boolean {
      return _builder.hasRootDirectoryDigest()
    }
  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.asset.v1.FetchDirectoryResponse.copy(block: `build.bazel.remote.asset.v1`.FetchDirectoryResponseKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.FetchDirectoryResponse =
  `build.bazel.remote.asset.v1`.FetchDirectoryResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build()

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

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

public val build.bazel.remote.asset.v1.FetchDirectoryResponseOrBuilder.rootDirectoryDigestOrNull: build.bazel.remote.execution.v2.Digest?
  get() = if (hasRootDirectoryDigest()) getRootDirectoryDigest() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy