build.bazel.remote.execution.v2.CacheCapabilitiesKt.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("-initializecacheCapabilities")
public inline fun cacheCapabilities(block: build.bazel.remote.execution.v2.CacheCapabilitiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.CacheCapabilities =
build.bazel.remote.execution.v2.CacheCapabilitiesKt.Dsl._create(build.bazel.remote.execution.v2.CacheCapabilities.newBuilder()).apply { block() }._build()
/**
* ```
* Capabilities of the remote cache system.
* ```
*
* Protobuf type `build.bazel.remote.execution.v2.CacheCapabilities`
*/
public object CacheCapabilitiesKt {
@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.CacheCapabilities.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: build.bazel.remote.execution.v2.CacheCapabilities.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): build.bazel.remote.execution.v2.CacheCapabilities = _builder.build()
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class DigestFunctionProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
*/
public val digestFunction: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getDigestFunctionList()
)
/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
* @param value The digestFunction to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addDigestFunction")
public fun com.google.protobuf.kotlin.DslList.add(value: build.bazel.remote.execution.v2.DigestFunction.Value) {
_builder.addDigestFunction(value)
}/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
* @param value The digestFunction to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignDigestFunction")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: build.bazel.remote.execution.v2.DigestFunction.Value) {
add(value)
}/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
* @param values The digestFunction to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllDigestFunction")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllDigestFunction(values)
}/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
* @param values The digestFunction to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllDigestFunction")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
* @param index The index to set the value at.
* @param value The digestFunction to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setDigestFunction")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: build.bazel.remote.execution.v2.DigestFunction.Value) {
_builder.setDigestFunction(index, value)
}/**
* ```
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
* ```
*
* `repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;`
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearDigestFunction")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearDigestFunction()
}
/**
* ```
* Capabilities for updating the action cache.
* ```
*
* `.build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities action_cache_update_capabilities = 2;`
*/
public var actionCacheUpdateCapabilities: build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities
@JvmName("getActionCacheUpdateCapabilities")
get() = _builder.getActionCacheUpdateCapabilities()
@JvmName("setActionCacheUpdateCapabilities")
set(value) {
_builder.setActionCacheUpdateCapabilities(value)
}
/**
* ```
* Capabilities for updating the action cache.
* ```
*
* `.build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities action_cache_update_capabilities = 2;`
*/
public fun clearActionCacheUpdateCapabilities() {
_builder.clearActionCacheUpdateCapabilities()
}
/**
* ```
* Capabilities for updating the action cache.
* ```
*
* `.build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities action_cache_update_capabilities = 2;`
* @return Whether the actionCacheUpdateCapabilities field is set.
*/
public fun hasActionCacheUpdateCapabilities(): kotlin.Boolean {
return _builder.hasActionCacheUpdateCapabilities()
}
/**
* ```
* Supported cache priority range for both CAS and ActionCache.
* ```
*
* `.build.bazel.remote.execution.v2.PriorityCapabilities cache_priority_capabilities = 3;`
*/
public var cachePriorityCapabilities: build.bazel.remote.execution.v2.PriorityCapabilities
@JvmName("getCachePriorityCapabilities")
get() = _builder.getCachePriorityCapabilities()
@JvmName("setCachePriorityCapabilities")
set(value) {
_builder.setCachePriorityCapabilities(value)
}
/**
* ```
* Supported cache priority range for both CAS and ActionCache.
* ```
*
* `.build.bazel.remote.execution.v2.PriorityCapabilities cache_priority_capabilities = 3;`
*/
public fun clearCachePriorityCapabilities() {
_builder.clearCachePriorityCapabilities()
}
/**
* ```
* Supported cache priority range for both CAS and ActionCache.
* ```
*
* `.build.bazel.remote.execution.v2.PriorityCapabilities cache_priority_capabilities = 3;`
* @return Whether the cachePriorityCapabilities field is set.
*/
public fun hasCachePriorityCapabilities(): kotlin.Boolean {
return _builder.hasCachePriorityCapabilities()
}
/**
* ```
* Maximum total size of blobs to be uploaded/downloaded using
* batch methods. A value of 0 means no limit is set, although
* in practice there will always be a message size limitation
* of the protocol in use, e.g. GRPC.
* ```
*
* `int64 max_batch_total_size_bytes = 4;`
*/
public var maxBatchTotalSizeBytes: kotlin.Long
@JvmName("getMaxBatchTotalSizeBytes")
get() = _builder.getMaxBatchTotalSizeBytes()
@JvmName("setMaxBatchTotalSizeBytes")
set(value) {
_builder.setMaxBatchTotalSizeBytes(value)
}
/**
* ```
* Maximum total size of blobs to be uploaded/downloaded using
* batch methods. A value of 0 means no limit is set, although
* in practice there will always be a message size limitation
* of the protocol in use, e.g. GRPC.
* ```
*
* `int64 max_batch_total_size_bytes = 4;`
*/
public fun clearMaxBatchTotalSizeBytes() {
_builder.clearMaxBatchTotalSizeBytes()
}
/**
* ```
* Whether absolute symlink targets are supported.
* ```
*
* `.build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;`
*/
public var symlinkAbsolutePathStrategy: build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value
@JvmName("getSymlinkAbsolutePathStrategy")
get() = _builder.getSymlinkAbsolutePathStrategy()
@JvmName("setSymlinkAbsolutePathStrategy")
set(value) {
_builder.setSymlinkAbsolutePathStrategy(value)
}
public var symlinkAbsolutePathStrategyValue: kotlin.Int
@JvmName("getSymlinkAbsolutePathStrategyValue")
get() = _builder.getSymlinkAbsolutePathStrategyValue()
@JvmName("setSymlinkAbsolutePathStrategyValue")
set(value) {
_builder.setSymlinkAbsolutePathStrategyValue(value)
}
/**
* ```
* Whether absolute symlink targets are supported.
* ```
*
* `.build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;`
*/
public fun clearSymlinkAbsolutePathStrategy() {
_builder.clearSymlinkAbsolutePathStrategy()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun build.bazel.remote.execution.v2.CacheCapabilities.copy(block: `build.bazel.remote.execution.v2`.CacheCapabilitiesKt.Dsl.() -> kotlin.Unit): build.bazel.remote.execution.v2.CacheCapabilities =
`build.bazel.remote.execution.v2`.CacheCapabilitiesKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder.actionCacheUpdateCapabilitiesOrNull: build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities?
get() = if (hasActionCacheUpdateCapabilities()) getActionCacheUpdateCapabilities() else null
public val build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder.cachePriorityCapabilitiesOrNull: build.bazel.remote.execution.v2.PriorityCapabilities?
get() = if (hasCachePriorityCapabilities()) getCachePriorityCapabilities() else null