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

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

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

    /**
     * ```
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * ```
     *
     * `string instance_name = 1;`
     */
    public var instanceName: kotlin.String
      @JvmName("getInstanceName")
      get() = _builder.getInstanceName()
      @JvmName("setInstanceName")
      set(value) {
        _builder.setInstanceName(value)
      }
    /**
     * ```
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * ```
     *
     * `string instance_name = 1;`
     */
    public fun clearInstanceName() {
      _builder.clearInstanceName()
    }

    /**
     * ```
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin. This value is allowed to exceed the RPC deadline, in which case the
     * server *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.status].
     * ```
     *
     * `.google.protobuf.Duration timeout = 2;`
     */
    public var timeout: com.google.protobuf.Duration
      @JvmName("getTimeout")
      get() = _builder.getTimeout()
      @JvmName("setTimeout")
      set(value) {
        _builder.setTimeout(value)
      }
    /**
     * ```
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin. This value is allowed to exceed the RPC deadline, in which case the
     * server *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.status].
     * ```
     *
     * `.google.protobuf.Duration timeout = 2;`
     */
    public fun clearTimeout() {
      _builder.clearTimeout()
    }
    /**
     * ```
     * The timeout for the underlying fetch, if content needs to be retrieved from
     * origin. This value is allowed to exceed the RPC deadline, in which case the
     * server *SHOULD* keep the fetch going after the RPC completes, to be made
     * available for future Fetch calls.
     *
     * If this timeout is exceeded on an attempt to retrieve content from origin
     * the client will receive DEADLINE_EXCEEDED in [FetchDirectoryResponse.status].
     * ```
     *
     * `.google.protobuf.Duration timeout = 2;`
     * @return Whether the timeout field is set.
     */
    public fun hasTimeout(): kotlin.Boolean {
      return _builder.hasTimeout()
    }

    /**
     * ```
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * ```
     *
     * `.google.protobuf.Timestamp oldest_content_accepted = 3;`
     */
    public var oldestContentAccepted: com.google.protobuf.Timestamp
      @JvmName("getOldestContentAccepted")
      get() = _builder.getOldestContentAccepted()
      @JvmName("setOldestContentAccepted")
      set(value) {
        _builder.setOldestContentAccepted(value)
      }
    /**
     * ```
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * ```
     *
     * `.google.protobuf.Timestamp oldest_content_accepted = 3;`
     */
    public fun clearOldestContentAccepted() {
      _builder.clearOldestContentAccepted()
    }
    /**
     * ```
     * The oldest content the client is willing to accept, as measured from the
     * time it was Push'd or when the underlying retrieval from origin was
     * started.
     * Upon retries of Fetch requests that cannot be completed within a single
     * RPC, clients *SHOULD* provide the same value for subsequent requests as the
     * original, to simplify combining the request with the previous attempt.
     *
     * If unset, the client *SHOULD* accept content of any age.
     * ```
     *
     * `.google.protobuf.Timestamp oldest_content_accepted = 3;`
     * @return Whether the oldestContentAccepted field is set.
     */
    public fun hasOldestContentAccepted(): kotlin.Boolean {
      return _builder.hasOldestContentAccepted()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class UrisProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     * @return A list containing the uris.
     */
    public val uris: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getUrisList()
      )
    /**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     * @param value The uris to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addUris")
    public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
      _builder.addUris(value)
    }
    /**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     * @param value The uris to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignUris")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
      add(value)
    }
    /**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     * @param values The uris to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllUris")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllUris(values)
    }
    /**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     * @param values The uris to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllUris")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     * @param index The index to set the value at.
     * @param value The uris to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setUris")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
      _builder.setUris(index, value)
    }/**
     * ```
     * The URI(s) of the content to fetch. These may be resources that the server
     * can directly fetch from origin, in which case multiple URIs *SHOULD*
     * represent the same content available at different locations (such as an
     * origin and secondary mirrors). These may also be URIs for content known to
     * the server through other mechanisms, e.g. pushed via the [Push][build.bazel.remote.asset.v1.Push]
     * service.
     *
     * Clients *MUST* supply at least one URI. Servers *MAY* match any one of the
     * supplied URIs.
     * ```
     *
     * `repeated string uris = 4;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearUris")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearUris()
    }
    /**
     * 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()
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     */
     public val qualifiers: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getQualifiersList()
      )
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     * @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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     * @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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     * @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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     * @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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     * @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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content to fetch - see comments on
     * [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     *
     * Specified qualifier names *MUST* be unique.
     * ```
     *
     * `repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 5;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearQualifiers")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearQualifiers()
    }

  }
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.asset.v1.FetchDirectoryRequest.copy(block: `build.bazel.remote.asset.v1`.FetchDirectoryRequestKt.Dsl.() -> kotlin.Unit): build.bazel.remote.asset.v1.FetchDirectoryRequest =
  `build.bazel.remote.asset.v1`.FetchDirectoryRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build()

public val build.bazel.remote.asset.v1.FetchDirectoryRequestOrBuilder.timeoutOrNull: com.google.protobuf.Duration?
  get() = if (hasTimeout()) getTimeout() else null

public val build.bazel.remote.asset.v1.FetchDirectoryRequestOrBuilder.oldestContentAcceptedOrNull: com.google.protobuf.Timestamp?
  get() = if (hasOldestContentAccepted()) getOldestContentAccepted() else null





© 2015 - 2024 Weber Informatics LLC | Privacy Policy