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

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

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): build.bazel.remote.asset.v1.PushBlobRequest = _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()
    }

    /**
     * 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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     * @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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     * @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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     * @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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     * @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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     * @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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     * @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 associate. If multiple URIs are specified, the
     * pushed content will be available to fetch by specifying any of them.
     * ```
     *
     * `repeated string uris = 2;`
     */
    @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 that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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()
      )
    /**
     * ```
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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)
    }
    /**
     * ```
     * Qualifiers sub-specifying the content that is being pushed - see comments
     * on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
     * The same qualifiers apply to all URIs.
     * ```
     *
     * `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 time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * ```
     *
     * `.google.protobuf.Timestamp expire_at = 4;`
     */
    public var expireAt: com.google.protobuf.Timestamp
      @JvmName("getExpireAt")
      get() = _builder.getExpireAt()
      @JvmName("setExpireAt")
      set(value) {
        _builder.setExpireAt(value)
      }
    /**
     * ```
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * ```
     *
     * `.google.protobuf.Timestamp expire_at = 4;`
     */
    public fun clearExpireAt() {
      _builder.clearExpireAt()
    }
    /**
     * ```
     * A time after which this content should stop being returned via [FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
     * Servers *MAY* expire content early, e.g. due to storage pressure.
     * ```
     *
     * `.google.protobuf.Timestamp expire_at = 4;`
     * @return Whether the expireAt field is set.
     */
    public fun hasExpireAt(): kotlin.Boolean {
      return _builder.hasExpireAt()
    }

    /**
     * ```
     * The blob to associate.
     * ```
     *
     * `.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 blob to associate.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest blob_digest = 5;`
     */
    public fun clearBlobDigest() {
      _builder.clearBlobDigest()
    }
    /**
     * ```
     * The blob to associate.
     * ```
     *
     * `.build.bazel.remote.execution.v2.Digest blob_digest = 5;`
     * @return Whether the blobDigest field is set.
     */
    public fun hasBlobDigest(): kotlin.Boolean {
      return _builder.hasBlobDigest()
    }

    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ReferencesBlobsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     */
     public val referencesBlobs: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getReferencesBlobsList()
      )
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     * @param value The referencesBlobs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addReferencesBlobs")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.Digest) {
      _builder.addReferencesBlobs(value)
    }
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     * @param value The referencesBlobs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignReferencesBlobs")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.Digest) {
      add(value)
    }
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     * @param values The referencesBlobs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllReferencesBlobs")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllReferencesBlobs(values)
    }
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     * @param values The referencesBlobs to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllReferencesBlobs")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     * @param index The index to set the value at.
     * @param value The referencesBlobs to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setReferencesBlobs")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.Digest) {
      _builder.setReferencesBlobs(index, value)
    }
    /**
     * ```
     * Referenced blobs or directories that need to not expire before expiration
     * of this association, in addition to `blob_digest` itself.
     * These fields are hints - clients *MAY* omit them, and servers *SHOULD*
     * respect them, at the risk of increased incidents of Fetch responses
     * indirectly referencing unavailable blobs.
     * ```
     *
     * `repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearReferencesBlobs")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearReferencesBlobs()
    }


    /**
     * An uninstantiable, behaviorless type to represent the field in
     * generics.
     */
    @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
    public class ReferencesDirectoriesProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     */
     public val referencesDirectories: com.google.protobuf.kotlin.DslList
      @kotlin.jvm.JvmSynthetic
      get() = com.google.protobuf.kotlin.DslList(
        _builder.getReferencesDirectoriesList()
      )
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     * @param value The referencesDirectories to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addReferencesDirectories")
    public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.Digest) {
      _builder.addReferencesDirectories(value)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     * @param value The referencesDirectories to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignReferencesDirectories")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.Digest) {
      add(value)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     * @param values The referencesDirectories to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("addAllReferencesDirectories")
    public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
      _builder.addAllReferencesDirectories(values)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     * @param values The referencesDirectories to add.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("plusAssignAllReferencesDirectories")
    @Suppress("NOTHING_TO_INLINE")
    public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
      addAll(values)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     * @param index The index to set the value at.
     * @param value The referencesDirectories to set.
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("setReferencesDirectories")
    public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.Digest) {
      _builder.setReferencesDirectories(index, value)
    }
    /**
     * `repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;`
     */
    @kotlin.jvm.JvmSynthetic
    @kotlin.jvm.JvmName("clearReferencesDirectories")
    public fun com.google.protobuf.kotlin.DslList.clear() {
      _builder.clearReferencesDirectories()
    }

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

public val build.bazel.remote.asset.v1.PushBlobRequestOrBuilder.expireAtOrNull: com.google.protobuf.Timestamp?
  get() = if (hasExpireAt()) getExpireAt() else null

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy