build.bazel.remote.execution.v2.KotlinBuilders.kt Maven / Gradle / Ivy
package build.bazel.remote.execution.v2
import build.bazel.semver.SemVer
import com.google.api.kgax.ProtoBuilder
import com.google.protobuf.Any
import com.google.protobuf.ByteString
import com.google.protobuf.Duration
import com.google.protobuf.Timestamp
import com.google.protobuf.UInt32Value
import com.google.rpc.Status
import kotlin.Boolean
import kotlin.Int
import kotlin.Long
import kotlin.Pair
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
@ProtoBuilder
inline class ActionDsl(val builder: Action.Builder) {
inline var commandDigest: Digest
get() = builder.commandDigest
set(value) {
builder.commandDigest = value
}
inline var inputRootDigest: Digest
get() = builder.inputRootDigest
set(value) {
builder.inputRootDigest = value
}
inline var timeout: Duration
get() = builder.timeout
set(value) {
builder.timeout = value
}
inline var doNotCache: Boolean
get() = builder.doNotCache
set(value) {
builder.doNotCache = value
}
inline var salt: ByteString
get() = builder.salt
set(value) {
builder.salt = value
}
inline var platform: Platform
get() = builder.platform
set(value) {
builder.platform = value
}
}
@ProtoBuilder
inline class CommandDsl(val builder: Command.Builder) {
inline var platform: Platform
get() = builder.platform
set(value) {
builder.platform = value
}
inline var workingDirectory: String
get() = builder.workingDirectory
set(value) {
builder.workingDirectory = value
}
inline var arguments: List
get() = builder.argumentsList
set(values) {
builder.clearArguments()
builder.addAllArguments(values)
}
inline var environmentVariables: List
get() = builder.environmentVariablesList
set(values) {
builder.clearEnvironmentVariables()
builder.addAllEnvironmentVariables(values)
}
inline var outputFiles: List
get() = builder.outputFilesList
set(values) {
builder.clearOutputFiles()
builder.addAllOutputFiles(values)
}
inline var outputDirectories: List
get() = builder.outputDirectoriesList
set(values) {
builder.clearOutputDirectories()
builder.addAllOutputDirectories(values)
}
inline var outputPaths: List
get() = builder.outputPathsList
set(values) {
builder.clearOutputPaths()
builder.addAllOutputPaths(values)
}
inline var outputNodeProperties: List
get() = builder.outputNodePropertiesList
set(values) {
builder.clearOutputNodeProperties()
builder.addAllOutputNodeProperties(values)
}
inline fun arguments(vararg values: String) {
builder.addAllArguments(values.toList())
}
inline fun environmentVariables(vararg values: Command.EnvironmentVariable) {
builder.addAllEnvironmentVariables(values.toList())
}
inline fun outputFiles(vararg values: String) {
builder.addAllOutputFiles(values.toList())
}
inline fun outputDirectories(vararg values: String) {
builder.addAllOutputDirectories(values.toList())
}
inline fun outputPaths(vararg values: String) {
builder.addAllOutputPaths(values.toList())
}
inline fun outputNodeProperties(vararg values: String) {
builder.addAllOutputNodeProperties(values.toList())
}
}
@ProtoBuilder
inline class Command_EnvironmentVariableDsl(val builder: Command.EnvironmentVariable.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
inline var value: String
get() = builder.value
set(value) {
builder.value = value
}
}
@ProtoBuilder
inline class PlatformDsl(val builder: Platform.Builder) {
inline var properties: List
get() = builder.propertiesList
set(values) {
builder.clearProperties()
builder.addAllProperties(values)
}
inline fun properties(vararg values: Platform.Property) {
builder.addAllProperties(values.toList())
}
}
@ProtoBuilder
inline class Platform_PropertyDsl(val builder: Platform.Property.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
inline var value: String
get() = builder.value
set(value) {
builder.value = value
}
}
@ProtoBuilder
inline class DirectoryDsl(val builder: Directory.Builder) {
inline var nodeProperties: NodeProperties
get() = builder.nodeProperties
set(value) {
builder.nodeProperties = value
}
inline var files: List
get() = builder.filesList
set(values) {
builder.clearFiles()
builder.addAllFiles(values)
}
inline var directories: List
get() = builder.directoriesList
set(values) {
builder.clearDirectories()
builder.addAllDirectories(values)
}
inline var symlinks: List
get() = builder.symlinksList
set(values) {
builder.clearSymlinks()
builder.addAllSymlinks(values)
}
inline fun files(vararg values: FileNode) {
builder.addAllFiles(values.toList())
}
inline fun directories(vararg values: DirectoryNode) {
builder.addAllDirectories(values.toList())
}
inline fun symlinks(vararg values: SymlinkNode) {
builder.addAllSymlinks(values.toList())
}
}
@ProtoBuilder
inline class NodePropertyDsl(val builder: NodeProperty.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
inline var value: String
get() = builder.value
set(value) {
builder.value = value
}
}
@ProtoBuilder
inline class NodePropertiesDsl(val builder: NodeProperties.Builder) {
inline var mtime: Timestamp
get() = builder.mtime
set(value) {
builder.mtime = value
}
inline var unixMode: UInt32Value
get() = builder.unixMode
set(value) {
builder.unixMode = value
}
inline var properties: List
get() = builder.propertiesList
set(values) {
builder.clearProperties()
builder.addAllProperties(values)
}
inline fun properties(vararg values: NodeProperty) {
builder.addAllProperties(values.toList())
}
}
@ProtoBuilder
inline class FileNodeDsl(val builder: FileNode.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
inline var isExecutable: Boolean
get() = builder.isExecutable
set(value) {
builder.isExecutable = value
}
inline var nodeProperties: NodeProperties
get() = builder.nodeProperties
set(value) {
builder.nodeProperties = value
}
}
@ProtoBuilder
inline class DirectoryNodeDsl(val builder: DirectoryNode.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
}
@ProtoBuilder
inline class SymlinkNodeDsl(val builder: SymlinkNode.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
inline var target: String
get() = builder.target
set(value) {
builder.target = value
}
inline var nodeProperties: NodeProperties
get() = builder.nodeProperties
set(value) {
builder.nodeProperties = value
}
}
@ProtoBuilder
inline class DigestDsl(val builder: Digest.Builder) {
inline var hash: String
get() = builder.hash
set(value) {
builder.hash = value
}
inline var sizeBytes: Long
get() = builder.sizeBytes
set(value) {
builder.sizeBytes = value
}
}
@ProtoBuilder
inline class ExecutedActionMetadataDsl(val builder: ExecutedActionMetadata.Builder) {
inline var worker: String
get() = builder.worker
set(value) {
builder.worker = value
}
inline var queuedTimestamp: Timestamp
get() = builder.queuedTimestamp
set(value) {
builder.queuedTimestamp = value
}
inline var workerStartTimestamp: Timestamp
get() = builder.workerStartTimestamp
set(value) {
builder.workerStartTimestamp = value
}
inline var workerCompletedTimestamp: Timestamp
get() = builder.workerCompletedTimestamp
set(value) {
builder.workerCompletedTimestamp = value
}
inline var inputFetchStartTimestamp: Timestamp
get() = builder.inputFetchStartTimestamp
set(value) {
builder.inputFetchStartTimestamp = value
}
inline var inputFetchCompletedTimestamp: Timestamp
get() = builder.inputFetchCompletedTimestamp
set(value) {
builder.inputFetchCompletedTimestamp = value
}
inline var executionStartTimestamp: Timestamp
get() = builder.executionStartTimestamp
set(value) {
builder.executionStartTimestamp = value
}
inline var executionCompletedTimestamp: Timestamp
get() = builder.executionCompletedTimestamp
set(value) {
builder.executionCompletedTimestamp = value
}
inline var outputUploadStartTimestamp: Timestamp
get() = builder.outputUploadStartTimestamp
set(value) {
builder.outputUploadStartTimestamp = value
}
inline var outputUploadCompletedTimestamp: Timestamp
get() = builder.outputUploadCompletedTimestamp
set(value) {
builder.outputUploadCompletedTimestamp = value
}
inline var auxiliaryMetadata: List
get() = builder.auxiliaryMetadataList
set(values) {
builder.clearAuxiliaryMetadata()
builder.addAllAuxiliaryMetadata(values)
}
inline fun auxiliaryMetadata(vararg values: Any) {
builder.addAllAuxiliaryMetadata(values.toList())
}
}
@ProtoBuilder
inline class ActionResultDsl(val builder: ActionResult.Builder) {
inline var exitCode: Int
get() = builder.exitCode
set(value) {
builder.exitCode = value
}
inline var stdoutRaw: ByteString
get() = builder.stdoutRaw
set(value) {
builder.stdoutRaw = value
}
inline var stdoutDigest: Digest
get() = builder.stdoutDigest
set(value) {
builder.stdoutDigest = value
}
inline var stderrRaw: ByteString
get() = builder.stderrRaw
set(value) {
builder.stderrRaw = value
}
inline var stderrDigest: Digest
get() = builder.stderrDigest
set(value) {
builder.stderrDigest = value
}
inline var executionMetadata: ExecutedActionMetadata
get() = builder.executionMetadata
set(value) {
builder.executionMetadata = value
}
inline var outputFiles: List
get() = builder.outputFilesList
set(values) {
builder.clearOutputFiles()
builder.addAllOutputFiles(values)
}
inline var outputFileSymlinks: List
get() = builder.outputFileSymlinksList
set(values) {
builder.clearOutputFileSymlinks()
builder.addAllOutputFileSymlinks(values)
}
inline var outputSymlinks: List
get() = builder.outputSymlinksList
set(values) {
builder.clearOutputSymlinks()
builder.addAllOutputSymlinks(values)
}
inline var outputDirectories: List
get() = builder.outputDirectoriesList
set(values) {
builder.clearOutputDirectories()
builder.addAllOutputDirectories(values)
}
inline var outputDirectorySymlinks: List
get() = builder.outputDirectorySymlinksList
set(values) {
builder.clearOutputDirectorySymlinks()
builder.addAllOutputDirectorySymlinks(values)
}
inline fun outputFiles(vararg values: OutputFile) {
builder.addAllOutputFiles(values.toList())
}
inline fun outputFileSymlinks(vararg values: OutputSymlink) {
builder.addAllOutputFileSymlinks(values.toList())
}
inline fun outputSymlinks(vararg values: OutputSymlink) {
builder.addAllOutputSymlinks(values.toList())
}
inline fun outputDirectories(vararg values: OutputDirectory) {
builder.addAllOutputDirectories(values.toList())
}
inline fun outputDirectorySymlinks(vararg values: OutputSymlink) {
builder.addAllOutputDirectorySymlinks(values.toList())
}
}
@ProtoBuilder
inline class OutputFileDsl(val builder: OutputFile.Builder) {
inline var path: String
get() = builder.path
set(value) {
builder.path = value
}
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
inline var isExecutable: Boolean
get() = builder.isExecutable
set(value) {
builder.isExecutable = value
}
inline var contents: ByteString
get() = builder.contents
set(value) {
builder.contents = value
}
inline var nodeProperties: NodeProperties
get() = builder.nodeProperties
set(value) {
builder.nodeProperties = value
}
}
@ProtoBuilder
inline class TreeDsl(val builder: Tree.Builder) {
inline var root: Directory
get() = builder.root
set(value) {
builder.root = value
}
inline var children: List
get() = builder.childrenList
set(values) {
builder.clearChildren()
builder.addAllChildren(values)
}
inline fun children(vararg values: Directory) {
builder.addAllChildren(values.toList())
}
}
@ProtoBuilder
inline class OutputDirectoryDsl(val builder: OutputDirectory.Builder) {
inline var path: String
get() = builder.path
set(value) {
builder.path = value
}
inline var treeDigest: Digest
get() = builder.treeDigest
set(value) {
builder.treeDigest = value
}
}
@ProtoBuilder
inline class OutputSymlinkDsl(val builder: OutputSymlink.Builder) {
inline var path: String
get() = builder.path
set(value) {
builder.path = value
}
inline var target: String
get() = builder.target
set(value) {
builder.target = value
}
inline var nodeProperties: NodeProperties
get() = builder.nodeProperties
set(value) {
builder.nodeProperties = value
}
}
@ProtoBuilder
inline class ExecutionPolicyDsl(val builder: ExecutionPolicy.Builder) {
inline var priority: Int
get() = builder.priority
set(value) {
builder.priority = value
}
}
@ProtoBuilder
inline class ResultsCachePolicyDsl(val builder: ResultsCachePolicy.Builder) {
inline var priority: Int
get() = builder.priority
set(value) {
builder.priority = value
}
}
@ProtoBuilder
inline class ExecuteRequestDsl(val builder: ExecuteRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var skipCacheLookup: Boolean
get() = builder.skipCacheLookup
set(value) {
builder.skipCacheLookup = value
}
inline var actionDigest: Digest
get() = builder.actionDigest
set(value) {
builder.actionDigest = value
}
inline var executionPolicy: ExecutionPolicy
get() = builder.executionPolicy
set(value) {
builder.executionPolicy = value
}
inline var resultsCachePolicy: ResultsCachePolicy
get() = builder.resultsCachePolicy
set(value) {
builder.resultsCachePolicy = value
}
}
@ProtoBuilder
inline class LogFileDsl(val builder: LogFile.Builder) {
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
inline var humanReadable: Boolean
get() = builder.humanReadable
set(value) {
builder.humanReadable = value
}
}
@ProtoBuilder
inline class ExecuteResponseDsl(val builder: ExecuteResponse.Builder) {
inline var result: ActionResult
get() = builder.result
set(value) {
builder.result = value
}
inline var cachedResult: Boolean
get() = builder.cachedResult
set(value) {
builder.cachedResult = value
}
inline var status: Status
get() = builder.status
set(value) {
builder.status = value
}
inline var message: String
get() = builder.message
set(value) {
builder.message = value
}
inline var serverLogs: Map
get() = builder.serverLogsMap
set(values) {
builder.serverLogsMap.keys.map { builder.removeServerLogs(it) }
builder.putAllServerLogs(values)
}
inline fun serverLogs(vararg values: Pair) {
builder.putAllServerLogs(values.toMap())
}
}
@ProtoBuilder
inline class ExecutionStageDsl(val builder: ExecutionStage.Builder)
@ProtoBuilder
inline class ExecuteOperationMetadataDsl(val builder: ExecuteOperationMetadata.Builder) {
inline var stage: ExecutionStage.Value
get() = builder.stage
set(value) {
builder.stage = value
}
inline var actionDigest: Digest
get() = builder.actionDigest
set(value) {
builder.actionDigest = value
}
inline var stdoutStreamName: String
get() = builder.stdoutStreamName
set(value) {
builder.stdoutStreamName = value
}
inline var stderrStreamName: String
get() = builder.stderrStreamName
set(value) {
builder.stderrStreamName = value
}
}
@ProtoBuilder
inline class WaitExecutionRequestDsl(val builder: WaitExecutionRequest.Builder) {
inline var name: String
get() = builder.name
set(value) {
builder.name = value
}
}
@ProtoBuilder
inline class GetActionResultRequestDsl(val builder: GetActionResultRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var actionDigest: Digest
get() = builder.actionDigest
set(value) {
builder.actionDigest = value
}
inline var inlineStdout: Boolean
get() = builder.inlineStdout
set(value) {
builder.inlineStdout = value
}
inline var inlineStderr: Boolean
get() = builder.inlineStderr
set(value) {
builder.inlineStderr = value
}
inline var inlineOutputFiles: List
get() = builder.inlineOutputFilesList
set(values) {
builder.clearInlineOutputFiles()
builder.addAllInlineOutputFiles(values)
}
inline fun inlineOutputFiles(vararg values: String) {
builder.addAllInlineOutputFiles(values.toList())
}
}
@ProtoBuilder
inline class UpdateActionResultRequestDsl(val builder: UpdateActionResultRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var actionDigest: Digest
get() = builder.actionDigest
set(value) {
builder.actionDigest = value
}
inline var actionResult: ActionResult
get() = builder.actionResult
set(value) {
builder.actionResult = value
}
inline var resultsCachePolicy: ResultsCachePolicy
get() = builder.resultsCachePolicy
set(value) {
builder.resultsCachePolicy = value
}
}
@ProtoBuilder
inline class FindMissingBlobsRequestDsl(val builder: FindMissingBlobsRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var blobDigests: List
get() = builder.blobDigestsList
set(values) {
builder.clearBlobDigests()
builder.addAllBlobDigests(values)
}
inline fun blobDigests(vararg values: Digest) {
builder.addAllBlobDigests(values.toList())
}
}
@ProtoBuilder
inline class FindMissingBlobsResponseDsl(val builder: FindMissingBlobsResponse.Builder) {
inline var missingBlobDigests: List
get() = builder.missingBlobDigestsList
set(values) {
builder.clearMissingBlobDigests()
builder.addAllMissingBlobDigests(values)
}
inline fun missingBlobDigests(vararg values: Digest) {
builder.addAllMissingBlobDigests(values.toList())
}
}
@ProtoBuilder
inline class BatchUpdateBlobsRequestDsl(val builder: BatchUpdateBlobsRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var requests: List
get() = builder.requestsList
set(values) {
builder.clearRequests()
builder.addAllRequests(values)
}
inline fun requests(vararg values: BatchUpdateBlobsRequest.Request) {
builder.addAllRequests(values.toList())
}
}
@ProtoBuilder
inline class BatchUpdateBlobsRequest_RequestDsl(val builder:
BatchUpdateBlobsRequest.Request.Builder) {
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
inline var data: ByteString
get() = builder.data
set(value) {
builder.data = value
}
}
@ProtoBuilder
inline class BatchUpdateBlobsResponseDsl(val builder: BatchUpdateBlobsResponse.Builder) {
inline var responses: List
get() = builder.responsesList
set(values) {
builder.clearResponses()
builder.addAllResponses(values)
}
inline fun responses(vararg values: BatchUpdateBlobsResponse.Response) {
builder.addAllResponses(values.toList())
}
}
@ProtoBuilder
inline class BatchUpdateBlobsResponse_ResponseDsl(val builder:
BatchUpdateBlobsResponse.Response.Builder) {
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
inline var status: Status
get() = builder.status
set(value) {
builder.status = value
}
}
@ProtoBuilder
inline class BatchReadBlobsRequestDsl(val builder: BatchReadBlobsRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var digests: List
get() = builder.digestsList
set(values) {
builder.clearDigests()
builder.addAllDigests(values)
}
inline fun digests(vararg values: Digest) {
builder.addAllDigests(values.toList())
}
}
@ProtoBuilder
inline class BatchReadBlobsResponseDsl(val builder: BatchReadBlobsResponse.Builder) {
inline var responses: List
get() = builder.responsesList
set(values) {
builder.clearResponses()
builder.addAllResponses(values)
}
inline fun responses(vararg values: BatchReadBlobsResponse.Response) {
builder.addAllResponses(values.toList())
}
}
@ProtoBuilder
inline class BatchReadBlobsResponse_ResponseDsl(val builder:
BatchReadBlobsResponse.Response.Builder) {
inline var digest: Digest
get() = builder.digest
set(value) {
builder.digest = value
}
inline var data: ByteString
get() = builder.data
set(value) {
builder.data = value
}
inline var status: Status
get() = builder.status
set(value) {
builder.status = value
}
}
@ProtoBuilder
inline class GetTreeRequestDsl(val builder: GetTreeRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
inline var rootDigest: Digest
get() = builder.rootDigest
set(value) {
builder.rootDigest = value
}
inline var pageSize: Int
get() = builder.pageSize
set(value) {
builder.pageSize = value
}
inline var pageToken: String
get() = builder.pageToken
set(value) {
builder.pageToken = value
}
}
@ProtoBuilder
inline class GetTreeResponseDsl(val builder: GetTreeResponse.Builder) {
inline var nextPageToken: String
get() = builder.nextPageToken
set(value) {
builder.nextPageToken = value
}
inline var directories: List
get() = builder.directoriesList
set(values) {
builder.clearDirectories()
builder.addAllDirectories(values)
}
inline fun directories(vararg values: Directory) {
builder.addAllDirectories(values.toList())
}
}
@ProtoBuilder
inline class GetCapabilitiesRequestDsl(val builder: GetCapabilitiesRequest.Builder) {
inline var instanceName: String
get() = builder.instanceName
set(value) {
builder.instanceName = value
}
}
@ProtoBuilder
inline class ServerCapabilitiesDsl(val builder: ServerCapabilities.Builder) {
inline var cacheCapabilities: CacheCapabilities
get() = builder.cacheCapabilities
set(value) {
builder.cacheCapabilities = value
}
inline var executionCapabilities: ExecutionCapabilities
get() = builder.executionCapabilities
set(value) {
builder.executionCapabilities = value
}
inline var deprecatedApiVersion: SemVer
get() = builder.deprecatedApiVersion
set(value) {
builder.deprecatedApiVersion = value
}
inline var lowApiVersion: SemVer
get() = builder.lowApiVersion
set(value) {
builder.lowApiVersion = value
}
inline var highApiVersion: SemVer
get() = builder.highApiVersion
set(value) {
builder.highApiVersion = value
}
}
@ProtoBuilder
inline class DigestFunctionDsl(val builder: DigestFunction.Builder)
@ProtoBuilder
inline class ActionCacheUpdateCapabilitiesDsl(val builder: ActionCacheUpdateCapabilities.Builder) {
inline var updateEnabled: Boolean
get() = builder.updateEnabled
set(value) {
builder.updateEnabled = value
}
}
@ProtoBuilder
inline class PriorityCapabilitiesDsl(val builder: PriorityCapabilities.Builder) {
inline var priorities: List
get() = builder.prioritiesList
set(values) {
builder.clearPriorities()
builder.addAllPriorities(values)
}
inline fun priorities(vararg values: PriorityCapabilities.PriorityRange) {
builder.addAllPriorities(values.toList())
}
}
@ProtoBuilder
inline class PriorityCapabilities_PriorityRangeDsl(val builder:
PriorityCapabilities.PriorityRange.Builder) {
inline var minPriority: Int
get() = builder.minPriority
set(value) {
builder.minPriority = value
}
inline var maxPriority: Int
get() = builder.maxPriority
set(value) {
builder.maxPriority = value
}
}
@ProtoBuilder
inline class SymlinkAbsolutePathStrategyDsl(val builder: SymlinkAbsolutePathStrategy.Builder)
@ProtoBuilder
inline class CacheCapabilitiesDsl(val builder: CacheCapabilities.Builder) {
inline var actionCacheUpdateCapabilities: ActionCacheUpdateCapabilities
get() = builder.actionCacheUpdateCapabilities
set(value) {
builder.actionCacheUpdateCapabilities = value
}
inline var cachePriorityCapabilities: PriorityCapabilities
get() = builder.cachePriorityCapabilities
set(value) {
builder.cachePriorityCapabilities = value
}
inline var maxBatchTotalSizeBytes: Long
get() = builder.maxBatchTotalSizeBytes
set(value) {
builder.maxBatchTotalSizeBytes = value
}
inline var symlinkAbsolutePathStrategy: SymlinkAbsolutePathStrategy.Value
get() = builder.symlinkAbsolutePathStrategy
set(value) {
builder.symlinkAbsolutePathStrategy = value
}
inline var digestFunction: List
get() = builder.digestFunctionList
set(values) {
builder.clearDigestFunction()
builder.addAllDigestFunction(values)
}
inline fun digestFunction(vararg values: DigestFunction.Value) {
builder.addAllDigestFunction(values.toList())
}
}
@ProtoBuilder
inline class ExecutionCapabilitiesDsl(val builder: ExecutionCapabilities.Builder) {
inline var digestFunction: DigestFunction.Value
get() = builder.digestFunction
set(value) {
builder.digestFunction = value
}
inline var execEnabled: Boolean
get() = builder.execEnabled
set(value) {
builder.execEnabled = value
}
inline var executionPriorityCapabilities: PriorityCapabilities
get() = builder.executionPriorityCapabilities
set(value) {
builder.executionPriorityCapabilities = value
}
inline var supportedNodeProperties: List
get() = builder.supportedNodePropertiesList
set(values) {
builder.clearSupportedNodeProperties()
builder.addAllSupportedNodeProperties(values)
}
inline fun supportedNodeProperties(vararg values: String) {
builder.addAllSupportedNodeProperties(values.toList())
}
}
@ProtoBuilder
inline class ToolDetailsDsl(val builder: ToolDetails.Builder) {
inline var toolName: String
get() = builder.toolName
set(value) {
builder.toolName = value
}
inline var toolVersion: String
get() = builder.toolVersion
set(value) {
builder.toolVersion = value
}
}
@ProtoBuilder
inline class RequestMetadataDsl(val builder: RequestMetadata.Builder) {
inline var toolDetails: ToolDetails
get() = builder.toolDetails
set(value) {
builder.toolDetails = value
}
inline var actionId: String
get() = builder.actionId
set(value) {
builder.actionId = value
}
inline var toolInvocationId: String
get() = builder.toolInvocationId
set(value) {
builder.toolInvocationId = value
}
inline var correlatedInvocationsId: String
get() = builder.correlatedInvocationsId
set(value) {
builder.correlatedInvocationsId = value
}
}
fun action(init: ActionDsl.() -> Unit): Action {
val builder = Action.newBuilder()
ActionDsl(builder).apply(init)
return builder.build()
}
fun command(init: CommandDsl.() -> Unit): Command {
val builder = Command.newBuilder()
CommandDsl(builder).apply(init)
return builder.build()
}
fun command_EnvironmentVariable(init: Command_EnvironmentVariableDsl.() -> Unit):
Command.EnvironmentVariable {
val builder = Command.EnvironmentVariable.newBuilder()
Command_EnvironmentVariableDsl(builder).apply(init)
return builder.build()
}
fun platform(init: PlatformDsl.() -> Unit): Platform {
val builder = Platform.newBuilder()
PlatformDsl(builder).apply(init)
return builder.build()
}
fun platform_Property(init: Platform_PropertyDsl.() -> Unit): Platform.Property {
val builder = Platform.Property.newBuilder()
Platform_PropertyDsl(builder).apply(init)
return builder.build()
}
fun directory(init: DirectoryDsl.() -> Unit): Directory {
val builder = Directory.newBuilder()
DirectoryDsl(builder).apply(init)
return builder.build()
}
fun nodeProperty(init: NodePropertyDsl.() -> Unit): NodeProperty {
val builder = NodeProperty.newBuilder()
NodePropertyDsl(builder).apply(init)
return builder.build()
}
fun nodeProperties(init: NodePropertiesDsl.() -> Unit): NodeProperties {
val builder = NodeProperties.newBuilder()
NodePropertiesDsl(builder).apply(init)
return builder.build()
}
fun fileNode(init: FileNodeDsl.() -> Unit): FileNode {
val builder = FileNode.newBuilder()
FileNodeDsl(builder).apply(init)
return builder.build()
}
fun directoryNode(init: DirectoryNodeDsl.() -> Unit): DirectoryNode {
val builder = DirectoryNode.newBuilder()
DirectoryNodeDsl(builder).apply(init)
return builder.build()
}
fun symlinkNode(init: SymlinkNodeDsl.() -> Unit): SymlinkNode {
val builder = SymlinkNode.newBuilder()
SymlinkNodeDsl(builder).apply(init)
return builder.build()
}
fun digest(init: DigestDsl.() -> Unit): Digest {
val builder = Digest.newBuilder()
DigestDsl(builder).apply(init)
return builder.build()
}
fun executedActionMetadata(init: ExecutedActionMetadataDsl.() -> Unit): ExecutedActionMetadata {
val builder = ExecutedActionMetadata.newBuilder()
ExecutedActionMetadataDsl(builder).apply(init)
return builder.build()
}
fun actionResult(init: ActionResultDsl.() -> Unit): ActionResult {
val builder = ActionResult.newBuilder()
ActionResultDsl(builder).apply(init)
return builder.build()
}
fun outputFile(init: OutputFileDsl.() -> Unit): OutputFile {
val builder = OutputFile.newBuilder()
OutputFileDsl(builder).apply(init)
return builder.build()
}
fun tree(init: TreeDsl.() -> Unit): Tree {
val builder = Tree.newBuilder()
TreeDsl(builder).apply(init)
return builder.build()
}
fun outputDirectory(init: OutputDirectoryDsl.() -> Unit): OutputDirectory {
val builder = OutputDirectory.newBuilder()
OutputDirectoryDsl(builder).apply(init)
return builder.build()
}
fun outputSymlink(init: OutputSymlinkDsl.() -> Unit): OutputSymlink {
val builder = OutputSymlink.newBuilder()
OutputSymlinkDsl(builder).apply(init)
return builder.build()
}
fun executionPolicy(init: ExecutionPolicyDsl.() -> Unit): ExecutionPolicy {
val builder = ExecutionPolicy.newBuilder()
ExecutionPolicyDsl(builder).apply(init)
return builder.build()
}
fun resultsCachePolicy(init: ResultsCachePolicyDsl.() -> Unit): ResultsCachePolicy {
val builder = ResultsCachePolicy.newBuilder()
ResultsCachePolicyDsl(builder).apply(init)
return builder.build()
}
fun executeRequest(init: ExecuteRequestDsl.() -> Unit): ExecuteRequest {
val builder = ExecuteRequest.newBuilder()
ExecuteRequestDsl(builder).apply(init)
return builder.build()
}
fun logFile(init: LogFileDsl.() -> Unit): LogFile {
val builder = LogFile.newBuilder()
LogFileDsl(builder).apply(init)
return builder.build()
}
fun executeResponse(init: ExecuteResponseDsl.() -> Unit): ExecuteResponse {
val builder = ExecuteResponse.newBuilder()
ExecuteResponseDsl(builder).apply(init)
return builder.build()
}
fun executionStage(init: ExecutionStageDsl.() -> Unit): ExecutionStage {
val builder = ExecutionStage.newBuilder()
ExecutionStageDsl(builder).apply(init)
return builder.build()
}
fun executeOperationMetadata(init: ExecuteOperationMetadataDsl.() -> Unit):
ExecuteOperationMetadata {
val builder = ExecuteOperationMetadata.newBuilder()
ExecuteOperationMetadataDsl(builder).apply(init)
return builder.build()
}
fun waitExecutionRequest(init: WaitExecutionRequestDsl.() -> Unit): WaitExecutionRequest {
val builder = WaitExecutionRequest.newBuilder()
WaitExecutionRequestDsl(builder).apply(init)
return builder.build()
}
fun getActionResultRequest(init: GetActionResultRequestDsl.() -> Unit): GetActionResultRequest {
val builder = GetActionResultRequest.newBuilder()
GetActionResultRequestDsl(builder).apply(init)
return builder.build()
}
fun updateActionResultRequest(init: UpdateActionResultRequestDsl.() -> Unit):
UpdateActionResultRequest {
val builder = UpdateActionResultRequest.newBuilder()
UpdateActionResultRequestDsl(builder).apply(init)
return builder.build()
}
fun findMissingBlobsRequest(init: FindMissingBlobsRequestDsl.() -> Unit): FindMissingBlobsRequest {
val builder = FindMissingBlobsRequest.newBuilder()
FindMissingBlobsRequestDsl(builder).apply(init)
return builder.build()
}
fun findMissingBlobsResponse(init: FindMissingBlobsResponseDsl.() -> Unit):
FindMissingBlobsResponse {
val builder = FindMissingBlobsResponse.newBuilder()
FindMissingBlobsResponseDsl(builder).apply(init)
return builder.build()
}
fun batchUpdateBlobsRequest(init: BatchUpdateBlobsRequestDsl.() -> Unit): BatchUpdateBlobsRequest {
val builder = BatchUpdateBlobsRequest.newBuilder()
BatchUpdateBlobsRequestDsl(builder).apply(init)
return builder.build()
}
fun batchUpdateBlobsRequest_Request(init: BatchUpdateBlobsRequest_RequestDsl.() -> Unit):
BatchUpdateBlobsRequest.Request {
val builder = BatchUpdateBlobsRequest.Request.newBuilder()
BatchUpdateBlobsRequest_RequestDsl(builder).apply(init)
return builder.build()
}
fun batchUpdateBlobsResponse(init: BatchUpdateBlobsResponseDsl.() -> Unit):
BatchUpdateBlobsResponse {
val builder = BatchUpdateBlobsResponse.newBuilder()
BatchUpdateBlobsResponseDsl(builder).apply(init)
return builder.build()
}
fun batchUpdateBlobsResponse_Response(init: BatchUpdateBlobsResponse_ResponseDsl.() -> Unit):
BatchUpdateBlobsResponse.Response {
val builder = BatchUpdateBlobsResponse.Response.newBuilder()
BatchUpdateBlobsResponse_ResponseDsl(builder).apply(init)
return builder.build()
}
fun batchReadBlobsRequest(init: BatchReadBlobsRequestDsl.() -> Unit): BatchReadBlobsRequest {
val builder = BatchReadBlobsRequest.newBuilder()
BatchReadBlobsRequestDsl(builder).apply(init)
return builder.build()
}
fun batchReadBlobsResponse(init: BatchReadBlobsResponseDsl.() -> Unit): BatchReadBlobsResponse {
val builder = BatchReadBlobsResponse.newBuilder()
BatchReadBlobsResponseDsl(builder).apply(init)
return builder.build()
}
fun batchReadBlobsResponse_Response(init: BatchReadBlobsResponse_ResponseDsl.() -> Unit):
BatchReadBlobsResponse.Response {
val builder = BatchReadBlobsResponse.Response.newBuilder()
BatchReadBlobsResponse_ResponseDsl(builder).apply(init)
return builder.build()
}
fun getTreeRequest(init: GetTreeRequestDsl.() -> Unit): GetTreeRequest {
val builder = GetTreeRequest.newBuilder()
GetTreeRequestDsl(builder).apply(init)
return builder.build()
}
fun getTreeResponse(init: GetTreeResponseDsl.() -> Unit): GetTreeResponse {
val builder = GetTreeResponse.newBuilder()
GetTreeResponseDsl(builder).apply(init)
return builder.build()
}
fun getCapabilitiesRequest(init: GetCapabilitiesRequestDsl.() -> Unit): GetCapabilitiesRequest {
val builder = GetCapabilitiesRequest.newBuilder()
GetCapabilitiesRequestDsl(builder).apply(init)
return builder.build()
}
fun serverCapabilities(init: ServerCapabilitiesDsl.() -> Unit): ServerCapabilities {
val builder = ServerCapabilities.newBuilder()
ServerCapabilitiesDsl(builder).apply(init)
return builder.build()
}
fun digestFunction(init: DigestFunctionDsl.() -> Unit): DigestFunction {
val builder = DigestFunction.newBuilder()
DigestFunctionDsl(builder).apply(init)
return builder.build()
}
fun actionCacheUpdateCapabilities(init: ActionCacheUpdateCapabilitiesDsl.() -> Unit):
ActionCacheUpdateCapabilities {
val builder = ActionCacheUpdateCapabilities.newBuilder()
ActionCacheUpdateCapabilitiesDsl(builder).apply(init)
return builder.build()
}
fun priorityCapabilities(init: PriorityCapabilitiesDsl.() -> Unit): PriorityCapabilities {
val builder = PriorityCapabilities.newBuilder()
PriorityCapabilitiesDsl(builder).apply(init)
return builder.build()
}
fun priorityCapabilities_PriorityRange(init: PriorityCapabilities_PriorityRangeDsl.() -> Unit):
PriorityCapabilities.PriorityRange {
val builder = PriorityCapabilities.PriorityRange.newBuilder()
PriorityCapabilities_PriorityRangeDsl(builder).apply(init)
return builder.build()
}
fun symlinkAbsolutePathStrategy(init: SymlinkAbsolutePathStrategyDsl.() -> Unit):
SymlinkAbsolutePathStrategy {
val builder = SymlinkAbsolutePathStrategy.newBuilder()
SymlinkAbsolutePathStrategyDsl(builder).apply(init)
return builder.build()
}
fun cacheCapabilities(init: CacheCapabilitiesDsl.() -> Unit): CacheCapabilities {
val builder = CacheCapabilities.newBuilder()
CacheCapabilitiesDsl(builder).apply(init)
return builder.build()
}
fun executionCapabilities(init: ExecutionCapabilitiesDsl.() -> Unit): ExecutionCapabilities {
val builder = ExecutionCapabilities.newBuilder()
ExecutionCapabilitiesDsl(builder).apply(init)
return builder.build()
}
fun toolDetails(init: ToolDetailsDsl.() -> Unit): ToolDetails {
val builder = ToolDetails.newBuilder()
ToolDetailsDsl(builder).apply(init)
return builder.build()
}
fun requestMetadata(init: RequestMetadataDsl.() -> Unit): RequestMetadata {
val builder = RequestMetadata.newBuilder()
RequestMetadataDsl(builder).apply(init)
return builder.build()
}