1{ 2 "auth": { 3 "oauth2": { 4 "scopes": { 5 "https://www.googleapis.com/auth/cloud-platform": { 6 "description": "See, edit, configure, and delete your Google Cloud Platform data" 7 } 8 } 9 } 10 }, 11 "basePath": "", 12 "baseUrl": "https://remotebuildexecution.googleapis.com/", 13 "batchPath": "batch", 14 "canonicalName": "Remote Build Execution", 15 "description": "Supplies a Remote Execution API service for tools such as bazel.", 16 "discoveryVersion": "v1", 17 "documentationLink": "https://cloud.google.com/remote-build-execution/docs/", 18 "fullyEncodeReservedExpansion": true, 19 "icons": { 20 "x16": "http://www.google.com/images/icons/product/search-16.gif", 21 "x32": "http://www.google.com/images/icons/product/search-32.gif" 22 }, 23 "id": "remotebuildexecution:v2", 24 "kind": "discovery#restDescription", 25 "mtlsRootUrl": "https://remotebuildexecution.mtls.googleapis.com/", 26 "name": "remotebuildexecution", 27 "ownerDomain": "google.com", 28 "ownerName": "Google", 29 "parameters": { 30 "$.xgafv": { 31 "description": "V1 error format.", 32 "enum": [ 33 "1", 34 "2" 35 ], 36 "enumDescriptions": [ 37 "v1 error format", 38 "v2 error format" 39 ], 40 "location": "query", 41 "type": "string" 42 }, 43 "access_token": { 44 "description": "OAuth access token.", 45 "location": "query", 46 "type": "string" 47 }, 48 "alt": { 49 "default": "json", 50 "description": "Data format for response.", 51 "enum": [ 52 "json", 53 "media", 54 "proto" 55 ], 56 "enumDescriptions": [ 57 "Responses with Content-Type of application/json", 58 "Media download with context-dependent Content-Type", 59 "Responses with Content-Type of application/x-protobuf" 60 ], 61 "location": "query", 62 "type": "string" 63 }, 64 "callback": { 65 "description": "JSONP", 66 "location": "query", 67 "type": "string" 68 }, 69 "fields": { 70 "description": "Selector specifying which fields to include in a partial response.", 71 "location": "query", 72 "type": "string" 73 }, 74 "key": { 75 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", 76 "location": "query", 77 "type": "string" 78 }, 79 "oauth_token": { 80 "description": "OAuth 2.0 token for the current user.", 81 "location": "query", 82 "type": "string" 83 }, 84 "prettyPrint": { 85 "default": "true", 86 "description": "Returns response with indentations and line breaks.", 87 "location": "query", 88 "type": "boolean" 89 }, 90 "quotaUser": { 91 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", 92 "location": "query", 93 "type": "string" 94 }, 95 "uploadType": { 96 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", 97 "location": "query", 98 "type": "string" 99 }, 100 "upload_protocol": { 101 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", 102 "location": "query", 103 "type": "string" 104 } 105 }, 106 "protocol": "rest", 107 "resources": { 108 "actionResults": { 109 "methods": { 110 "get": { 111 "description": "Retrieve a cached execution result. Implementations SHOULD ensure that any blobs referenced from the ContentAddressableStorage are available at the time of returning the ActionResult and will be for some period of time afterwards. The lifetimes of the referenced blobs SHOULD be increased if necessary and applicable. Errors: * `NOT_FOUND`: The requested `ActionResult` is not in the cache.", 112 "flatPath": "v2/{v2Id}/actionResults/{hash}/{sizeBytes}", 113 "httpMethod": "GET", 114 "id": "remotebuildexecution.actionResults.get", 115 "parameterOrder": [ 116 "instanceName", 117 "hash", 118 "sizeBytes" 119 ], 120 "parameters": { 121 "hash": { 122 "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", 123 "location": "path", 124 "required": true, 125 "type": "string" 126 }, 127 "inlineOutputFiles": { 128 "description": "A hint to the server to inline the contents of the listed output files. Each path needs to exactly match one file path in either `output_paths` or `output_files` (DEPRECATED since v2.1) in the Command message.", 129 "location": "query", 130 "repeated": true, 131 "type": "string" 132 }, 133 "inlineStderr": { 134 "description": "A hint to the server to request inlining stderr in the ActionResult message.", 135 "location": "query", 136 "type": "boolean" 137 }, 138 "inlineStdout": { 139 "description": "A hint to the server to request inlining stdout in the ActionResult message.", 140 "location": "query", 141 "type": "boolean" 142 }, 143 "instanceName": { 144 "description": "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.", 145 "location": "path", 146 "pattern": "^.*$", 147 "required": true, 148 "type": "string" 149 }, 150 "sizeBytes": { 151 "description": "The size of the blob, in bytes.", 152 "format": "int64", 153 "location": "path", 154 "required": true, 155 "type": "string" 156 } 157 }, 158 "path": "v2/{+instanceName}/actionResults/{hash}/{sizeBytes}", 159 "response": { 160 "$ref": "BuildBazelRemoteExecutionV2ActionResult" 161 }, 162 "scopes": [ 163 "https://www.googleapis.com/auth/cloud-platform" 164 ] 165 }, 166 "update": { 167 "description": "Upload a new execution result. In order to allow the server to perform access control based on the type of action, and to assist with client debugging, the client MUST first upload the Action that produced the result, along with its Command, into the `ContentAddressableStorage`. Server implementations MAY modify the `UpdateActionResultRequest.action_result` and return an equivalent value. Errors: * `INVALID_ARGUMENT`: One or more arguments are invalid. * `FAILED_PRECONDITION`: One or more errors occurred in updating the action result, such as a missing command or action. * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to the cache.", 168 "flatPath": "v2/{v2Id}/actionResults/{hash}/{sizeBytes}", 169 "httpMethod": "PUT", 170 "id": "remotebuildexecution.actionResults.update", 171 "parameterOrder": [ 172 "instanceName", 173 "hash", 174 "sizeBytes" 175 ], 176 "parameters": { 177 "hash": { 178 "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", 179 "location": "path", 180 "required": true, 181 "type": "string" 182 }, 183 "instanceName": { 184 "description": "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.", 185 "location": "path", 186 "pattern": "^.*$", 187 "required": true, 188 "type": "string" 189 }, 190 "resultsCachePolicy.priority": { 191 "description": "The priority (relative importance) of this content in the overall cache. Generally, a lower value means a longer retention time or other advantage, but the interpretation of a given value is server-dependent. A priority of 0 means a *default* value, decided by the server. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into retention/eviction policy.", 192 "format": "int32", 193 "location": "query", 194 "type": "integer" 195 }, 196 "sizeBytes": { 197 "description": "The size of the blob, in bytes.", 198 "format": "int64", 199 "location": "path", 200 "required": true, 201 "type": "string" 202 } 203 }, 204 "path": "v2/{+instanceName}/actionResults/{hash}/{sizeBytes}", 205 "request": { 206 "$ref": "BuildBazelRemoteExecutionV2ActionResult" 207 }, 208 "response": { 209 "$ref": "BuildBazelRemoteExecutionV2ActionResult" 210 }, 211 "scopes": [ 212 "https://www.googleapis.com/auth/cloud-platform" 213 ] 214 } 215 } 216 }, 217 "actions": { 218 "methods": { 219 "execute": { 220 "description": "Execute an action remotely. In order to execute an action, the client must first upload all of the inputs, the Command to run, and the Action into the ContentAddressableStorage. It then calls `Execute` with an `action_digest` referring to them. The server will run the action and eventually return the result. The input `Action`'s fields MUST meet the various canonicalization requirements specified in the documentation for their types so that it has the same digest as other logically equivalent `Action`s. The server MAY enforce the requirements and return errors if a non-canonical input is received. It MAY also proceed without verifying some or all of the requirements, such as for performance reasons. If the server does not verify the requirement, then it will treat the `Action` as distinct from another logically equivalent action if they hash differently. Returns a stream of google.longrunning.Operation messages describing the resulting execution, with eventual `response` ExecuteResponse. The `metadata` on the operation is of type ExecuteOperationMetadata. If the client remains connected after the first response is returned after the server, then updates are streamed as if the client had called WaitExecution until the execution completes or the request reaches an error. The operation can also be queried using Operations API. The server NEED NOT implement other methods or functionality of the Operations API. Errors discovered during creation of the `Operation` will be reported as gRPC Status errors, while errors that occurred while running the action will be reported in the `status` field of the `ExecuteResponse`. The server MUST NOT set the `error` field of the `Operation` proto. The possible errors include: * `INVALID_ARGUMENT`: One or more arguments are invalid. * `FAILED_PRECONDITION`: One or more errors occurred in setting up the action requested, such as a missing input or command or no worker being available. The client may be able to fix the errors and retry. * `RESOURCE_EXHAUSTED`: There is insufficient quota of some resource to run the action. * `UNAVAILABLE`: Due to a transient condition, such as all workers being occupied (and the server does not support a queue), the action could not be started. The client should retry. * `INTERNAL`: An internal error occurred in the execution engine or the worker. * `DEADLINE_EXCEEDED`: The execution timed out. * `CANCELLED`: The operation was cancelled by the client. This status is only possible if the server implements the Operations API CancelOperation method, and it was called for the current execution. In the case of a missing input or command, the server SHOULD additionally send a PreconditionFailure error detail where, for each requested blob not present in the CAS, there is a `Violation` with a `type` of `MISSING` and a `subject` of `\"blobs/{hash}/{size}\"` indicating the digest of the missing blob. The server does not need to guarantee that a call to this method leads to at most one execution of the action. The server MAY execute the action multiple times, potentially in parallel. These redundant executions MAY continue to run, even if the operation is completed.", 221 "flatPath": "v2/{v2Id}/actions:execute", 222 "httpMethod": "POST", 223 "id": "remotebuildexecution.actions.execute", 224 "parameterOrder": [ 225 "instanceName" 226 ], 227 "parameters": { 228 "instanceName": { 229 "description": "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.", 230 "location": "path", 231 "pattern": "^.*$", 232 "required": true, 233 "type": "string" 234 } 235 }, 236 "path": "v2/{+instanceName}/actions:execute", 237 "request": { 238 "$ref": "BuildBazelRemoteExecutionV2ExecuteRequest" 239 }, 240 "response": { 241 "$ref": "GoogleLongrunningOperation" 242 }, 243 "scopes": [ 244 "https://www.googleapis.com/auth/cloud-platform" 245 ] 246 } 247 } 248 }, 249 "blobs": { 250 "methods": { 251 "batchRead": { 252 "description": "Download many blobs at once. The server may enforce a limit of the combined total size of blobs to be downloaded using this API. This limit may be obtained using the Capabilities API. Requests exceeding the limit should either be split into smaller chunks or downloaded using the ByteStream API, as appropriate. This request is equivalent to calling a Bytestream `Read` request on each individual blob, in parallel. The requests may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client attempted to read more than the server supported limit. Every error on individual read will be returned in the corresponding digest status.", 253 "flatPath": "v2/{v2Id}/blobs:batchRead", 254 "httpMethod": "POST", 255 "id": "remotebuildexecution.blobs.batchRead", 256 "parameterOrder": [ 257 "instanceName" 258 ], 259 "parameters": { 260 "instanceName": { 261 "description": "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.", 262 "location": "path", 263 "pattern": "^.*$", 264 "required": true, 265 "type": "string" 266 } 267 }, 268 "path": "v2/{+instanceName}/blobs:batchRead", 269 "request": { 270 "$ref": "BuildBazelRemoteExecutionV2BatchReadBlobsRequest" 271 }, 272 "response": { 273 "$ref": "BuildBazelRemoteExecutionV2BatchReadBlobsResponse" 274 }, 275 "scopes": [ 276 "https://www.googleapis.com/auth/cloud-platform" 277 ] 278 }, 279 "batchUpdate": { 280 "description": "Upload many blobs at once. The server may enforce a limit of the combined total size of blobs to be uploaded using this API. This limit may be obtained using the Capabilities API. Requests exceeding the limit should either be split into smaller chunks or uploaded using the ByteStream API, as appropriate. This request is equivalent to calling a Bytestream `Write` request on each individual blob, in parallel. The requests may succeed or fail independently. Errors: * `INVALID_ARGUMENT`: The client attempted to upload more than the server supported limit. Individual requests may return the following errors, additionally: * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob. * `INVALID_ARGUMENT`: The Digest does not match the provided data.", 281 "flatPath": "v2/{v2Id}/blobs:batchUpdate", 282 "httpMethod": "POST", 283 "id": "remotebuildexecution.blobs.batchUpdate", 284 "parameterOrder": [ 285 "instanceName" 286 ], 287 "parameters": { 288 "instanceName": { 289 "description": "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.", 290 "location": "path", 291 "pattern": "^.*$", 292 "required": true, 293 "type": "string" 294 } 295 }, 296 "path": "v2/{+instanceName}/blobs:batchUpdate", 297 "request": { 298 "$ref": "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest" 299 }, 300 "response": { 301 "$ref": "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse" 302 }, 303 "scopes": [ 304 "https://www.googleapis.com/auth/cloud-platform" 305 ] 306 }, 307 "findMissing": { 308 "description": "Determine if blobs are present in the CAS. Clients can use this API before uploading blobs to determine which ones are already present in the CAS and do not need to be uploaded again. Servers SHOULD increase the lifetimes of the referenced blobs if necessary and applicable. There are no method-specific errors.", 309 "flatPath": "v2/{v2Id}/blobs:findMissing", 310 "httpMethod": "POST", 311 "id": "remotebuildexecution.blobs.findMissing", 312 "parameterOrder": [ 313 "instanceName" 314 ], 315 "parameters": { 316 "instanceName": { 317 "description": "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.", 318 "location": "path", 319 "pattern": "^.*$", 320 "required": true, 321 "type": "string" 322 } 323 }, 324 "path": "v2/{+instanceName}/blobs:findMissing", 325 "request": { 326 "$ref": "BuildBazelRemoteExecutionV2FindMissingBlobsRequest" 327 }, 328 "response": { 329 "$ref": "BuildBazelRemoteExecutionV2FindMissingBlobsResponse" 330 }, 331 "scopes": [ 332 "https://www.googleapis.com/auth/cloud-platform" 333 ] 334 }, 335 "getTree": { 336 "description": "Fetch the entire directory tree rooted at a node. This request must be targeted at a Directory stored in the ContentAddressableStorage (CAS). The server will enumerate the `Directory` tree recursively and return every node descended from the root. The GetTreeRequest.page_token parameter can be used to skip ahead in the stream (e.g. when retrying a partially completed and aborted request), by setting it to a value taken from GetTreeResponse.next_page_token of the last successfully processed GetTreeResponse). The exact traversal order is unspecified and, unless retrieving subsequent pages from an earlier request, is not guaranteed to be stable across multiple invocations of `GetTree`. If part of the tree is missing from the CAS, the server will return the portion present and omit the rest. Errors: * `NOT_FOUND`: The requested tree root is not present in the CAS.", 337 "flatPath": "v2/{v2Id}/blobs/{hash}/{sizeBytes}:getTree", 338 "httpMethod": "GET", 339 "id": "remotebuildexecution.blobs.getTree", 340 "parameterOrder": [ 341 "instanceName", 342 "hash", 343 "sizeBytes" 344 ], 345 "parameters": { 346 "hash": { 347 "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", 348 "location": "path", 349 "required": true, 350 "type": "string" 351 }, 352 "instanceName": { 353 "description": "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.", 354 "location": "path", 355 "pattern": "^.*$", 356 "required": true, 357 "type": "string" 358 }, 359 "pageSize": { 360 "description": "A maximum page size to request. If present, the server will request no more than this many items. Regardless of whether a page size is specified, the server may place its own limit on the number of items to be returned and require the client to retrieve more items using a subsequent request.", 361 "format": "int32", 362 "location": "query", 363 "type": "integer" 364 }, 365 "pageToken": { 366 "description": "A page token, which must be a value received in a previous GetTreeResponse. If present, the server will use that token as an offset, returning only that page and the ones that succeed it.", 367 "location": "query", 368 "type": "string" 369 }, 370 "sizeBytes": { 371 "description": "The size of the blob, in bytes.", 372 "format": "int64", 373 "location": "path", 374 "required": true, 375 "type": "string" 376 } 377 }, 378 "path": "v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree", 379 "response": { 380 "$ref": "BuildBazelRemoteExecutionV2GetTreeResponse" 381 }, 382 "scopes": [ 383 "https://www.googleapis.com/auth/cloud-platform" 384 ] 385 } 386 } 387 }, 388 "operations": { 389 "methods": { 390 "waitExecution": { 391 "description": "Wait for an execution operation to complete. When the client initially makes the request, the server immediately responds with the current status of the execution. The server will leave the request stream open until the operation completes, and then respond with the completed operation. The server MAY choose to stream additional updates as execution progresses, such as to provide an update as to the state of the execution.", 392 "flatPath": "v2/operations/{operationsId}:waitExecution", 393 "httpMethod": "POST", 394 "id": "remotebuildexecution.operations.waitExecution", 395 "parameterOrder": [ 396 "name" 397 ], 398 "parameters": { 399 "name": { 400 "description": "The name of the Operation returned by Execute.", 401 "location": "path", 402 "pattern": "^operations/.*$", 403 "required": true, 404 "type": "string" 405 } 406 }, 407 "path": "v2/{+name}:waitExecution", 408 "request": { 409 "$ref": "BuildBazelRemoteExecutionV2WaitExecutionRequest" 410 }, 411 "response": { 412 "$ref": "GoogleLongrunningOperation" 413 }, 414 "scopes": [ 415 "https://www.googleapis.com/auth/cloud-platform" 416 ] 417 } 418 } 419 }, 420 "v2": { 421 "methods": { 422 "getCapabilities": { 423 "description": "GetCapabilities returns the server capabilities configuration of the remote endpoint. Only the capabilities of the services supported by the endpoint will be returned: * Execution + CAS + Action Cache endpoints should return both CacheCapabilities and ExecutionCapabilities. * Execution only endpoints should return ExecutionCapabilities. * CAS + Action Cache only endpoints should return CacheCapabilities.", 424 "flatPath": "v2/{v2Id}/capabilities", 425 "httpMethod": "GET", 426 "id": "remotebuildexecution.getCapabilities", 427 "parameterOrder": [ 428 "instanceName" 429 ], 430 "parameters": { 431 "instanceName": { 432 "description": "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.", 433 "location": "path", 434 "pattern": "^.*$", 435 "required": true, 436 "type": "string" 437 } 438 }, 439 "path": "v2/{+instanceName}/capabilities", 440 "response": { 441 "$ref": "BuildBazelRemoteExecutionV2ServerCapabilities" 442 }, 443 "scopes": [ 444 "https://www.googleapis.com/auth/cloud-platform" 445 ] 446 } 447 } 448 } 449 }, 450 "revision": "20210712", 451 "rootUrl": "https://remotebuildexecution.googleapis.com/", 452 "schemas": { 453 "BuildBazelRemoteExecutionV2Action": { 454 "description": "An `Action` captures all the information about an execution which is required to reproduce it. `Action`s are the core component of the [Execution] service. A single `Action` represents a repeatable action that can be performed by the execution service. `Action`s can be succinctly identified by the digest of their wire format encoding and, once an `Action` has been executed, will be cached in the action cache. Future requests can then use the cached result rather than needing to run afresh. When a server completes execution of an Action, it MAY choose to cache the result in the ActionCache unless `do_not_cache` is `true`. Clients SHOULD expect the server to do so. By default, future calls to Execute the same `Action` will also serve their results from the cache. Clients must take care to understand the caching behaviour. Ideally, all `Action`s will be reproducible so that serving a result from cache is always desirable and correct.", 455 "id": "BuildBazelRemoteExecutionV2Action", 456 "properties": { 457 "commandDigest": { 458 "$ref": "BuildBazelRemoteExecutionV2Digest", 459 "description": "The digest of the Command to run, which MUST be present in the ContentAddressableStorage." 460 }, 461 "doNotCache": { 462 "description": "If true, then the `Action`'s result cannot be cached, and in-flight requests for the same `Action` may not be merged.", 463 "type": "boolean" 464 }, 465 "inputRootDigest": { 466 "$ref": "BuildBazelRemoteExecutionV2Digest", 467 "description": "The digest of the root Directory for the input files. The files in the directory tree are available in the correct location on the build machine before the command is executed. The root directory, as well as every subdirectory and content blob referred to, MUST be in the ContentAddressableStorage." 468 }, 469 "platform": { 470 "$ref": "BuildBazelRemoteExecutionV2Platform", 471 "description": "The optional platform requirements for the execution environment. The server MAY choose to execute the action on any worker satisfying the requirements, so the client SHOULD ensure that running the action on any such worker will have the same result. A detailed lexicon for this can be found in the accompanying platform.md. New in version 2.2: clients SHOULD set these platform properties as well as those in the Command. Servers SHOULD prefer those set here." 472 }, 473 "salt": { 474 "description": "An optional additional salt value used to place this `Action` into a separate cache namespace from other instances having the same field contents. This salt typically comes from operational configuration specific to sources such as repo and service configuration, and allows disowning an entire set of ActionResults that might have been poisoned by buggy software or tool failures.", 475 "format": "byte", 476 "type": "string" 477 }, 478 "timeout": { 479 "description": "A timeout after which the execution should be killed. If the timeout is absent, then the client is specifying that the execution should continue as long as the server will let it. The server SHOULD impose a timeout if the client does not specify one, however, if the client does specify a timeout that is longer than the server's maximum timeout, the server MUST reject the request. The timeout is a part of the Action message, and therefore two `Actions` with different timeouts are different, even if they are otherwise identical. This is because, if they were not, running an `Action` with a lower timeout than is required might result in a cache hit from an execution run with a longer timeout, hiding the fact that the timeout is too short. By encoding it directly in the `Action`, a lower timeout will result in a cache miss and the execution timeout will fail immediately, rather than whenever the cache entry gets evicted.", 480 "format": "google-duration", 481 "type": "string" 482 } 483 }, 484 "type": "object" 485 }, 486 "BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities": { 487 "description": "Describes the server/instance capabilities for updating the action cache.", 488 "id": "BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities", 489 "properties": { 490 "updateEnabled": { 491 "type": "boolean" 492 } 493 }, 494 "type": "object" 495 }, 496 "BuildBazelRemoteExecutionV2ActionResult": { 497 "description": "An ActionResult represents the result of an Action being run. It is advised that at least one field (for example `ActionResult.execution_metadata.Worker`) have a non-default value, to ensure that the serialized value is non-empty, which can then be used as a basic data sanity check.", 498 "id": "BuildBazelRemoteExecutionV2ActionResult", 499 "properties": { 500 "executionMetadata": { 501 "$ref": "BuildBazelRemoteExecutionV2ExecutedActionMetadata", 502 "description": "The details of the execution that originally produced this result." 503 }, 504 "exitCode": { 505 "description": "The exit code of the command.", 506 "format": "int32", 507 "type": "integer" 508 }, 509 "outputDirectories": { 510 "description": "The output directories of the action. For each output directory requested in the `output_directories` or `output_paths` field of the Action, if the corresponding directory existed after the action completed, a single entry will be present in the output list, which will contain the digest of a Tree message containing the directory tree, and the path equal exactly to the corresponding Action output_directories member. As an example, suppose the Action had an output directory `a/b/dir` and the execution produced the following contents in `a/b/dir`: a file named `bar` and a directory named `foo` with an executable file named `baz`. Then, output_directory will contain (hashes shortened for readability): ```json // OutputDirectory proto: { path: \"a/b/dir\" tree_digest: { hash: \"4a73bc9d03...\", size: 55 } } // Tree proto with hash \"4a73bc9d03...\" and size 55: { root: { files: [ { name: \"bar\", digest: { hash: \"4a73bc9d03...\", size: 65534 } } ], directories: [ { name: \"foo\", digest: { hash: \"4cf2eda940...\", size: 43 } } ] } children : { // (Directory proto with hash \"4cf2eda940...\" and size 43) files: [ { name: \"baz\", digest: { hash: \"b2c941073e...\", size: 1294, }, is_executable: true } ] } } ``` If an output of the same name as listed in `output_files` of the Command was found in `output_directories`, but was not a directory, the server will return a FAILED_PRECONDITION.", 511 "items": { 512 "$ref": "BuildBazelRemoteExecutionV2OutputDirectory" 513 }, 514 "type": "array" 515 }, 516 "outputDirectorySymlinks": { 517 "description": "The output directories of the action that are symbolic links to other directories. Those may be links to other output directories, or input directories, or even absolute paths outside of the working directory, if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each output directory requested in the `output_directories` field of the Action, if the directory existed after the action completed, a single entry will be present either in this field, or in the `output_directories` field, if the directory was not a symbolic link. If an output of the same name was found, but was a symbolic link to a file instead of a directory, the server will return a FAILED_PRECONDITION. If the action does not produce the requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted. DEPRECATED as of v2.1. Servers that wish to be compatible with v2.0 API should still populate this field in addition to `output_symlinks`.", 518 "items": { 519 "$ref": "BuildBazelRemoteExecutionV2OutputSymlink" 520 }, 521 "type": "array" 522 }, 523 "outputFileSymlinks": { 524 "description": "The output files of the action that are symbolic links to other files. Those may be links to other output files, or input files, or even absolute paths outside of the working directory, if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each output file requested in the `output_files` or `output_paths` field of the Action, if the corresponding file existed after the action completed, a single entry will be present either in this field, or in the `output_files` field, if the file was not a symbolic link. If an output symbolic link of the same name as listed in `output_files` of the Command was found, but its target type was not a regular file, the server will return a FAILED_PRECONDITION. If the action does not produce the requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted. DEPRECATED as of v2.1. Servers that wish to be compatible with v2.0 API should still populate this field in addition to `output_symlinks`.", 525 "items": { 526 "$ref": "BuildBazelRemoteExecutionV2OutputSymlink" 527 }, 528 "type": "array" 529 }, 530 "outputFiles": { 531 "description": "The output files of the action. For each output file requested in the `output_files` or `output_paths` field of the Action, if the corresponding file existed after the action completed, a single entry will be present either in this field, or the `output_file_symlinks` field if the file was a symbolic link to another file (`output_symlinks` field after v2.1). If an output listed in `output_files` was found, but was a directory rather than a regular file, the server will return a FAILED_PRECONDITION. If the action does not produce the requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted.", 532 "items": { 533 "$ref": "BuildBazelRemoteExecutionV2OutputFile" 534 }, 535 "type": "array" 536 }, 537 "outputSymlinks": { 538 "description": "New in v2.1: this field will only be populated if the command `output_paths` field was used, and not the pre v2.1 `output_files` or `output_directories` fields. The output paths of the action that are symbolic links to other paths. Those may be links to other outputs, or inputs, or even absolute paths outside of the working directory, if the server supports SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each output requested in `output_paths` field of the Action, if the corresponding path existed after the action completed and was a symbolic link. If the action does not produce a requested output, then that output will be omitted from the list. The server is free to arrange the output list as desired; clients MUST NOT assume that the output list is sorted.", 539 "items": { 540 "$ref": "BuildBazelRemoteExecutionV2OutputSymlink" 541 }, 542 "type": "array" 543 }, 544 "stderrDigest": { 545 "$ref": "BuildBazelRemoteExecutionV2Digest", 546 "description": "The digest for a blob containing the standard error of the action, which can be retrieved from the ContentAddressableStorage." 547 }, 548 "stderrRaw": { 549 "description": "The standard error buffer of the action. The server SHOULD NOT inline stderr unless requested by the client in the GetActionResultRequest message. The server MAY omit inlining, even if requested, and MUST do so if inlining would cause the response to exceed message size limits.", 550 "format": "byte", 551 "type": "string" 552 }, 553 "stdoutDigest": { 554 "$ref": "BuildBazelRemoteExecutionV2Digest", 555 "description": "The digest for a blob containing the standard output of the action, which can be retrieved from the ContentAddressableStorage." 556 }, 557 "stdoutRaw": { 558 "description": "The standard output buffer of the action. The server SHOULD NOT inline stdout unless requested by the client in the GetActionResultRequest message. The server MAY omit inlining, even if requested, and MUST do so if inlining would cause the response to exceed message size limits.", 559 "format": "byte", 560 "type": "string" 561 } 562 }, 563 "type": "object" 564 }, 565 "BuildBazelRemoteExecutionV2BatchReadBlobsRequest": { 566 "description": "A request message for ContentAddressableStorage.BatchReadBlobs.", 567 "id": "BuildBazelRemoteExecutionV2BatchReadBlobsRequest", 568 "properties": { 569 "digests": { 570 "description": "The individual blob digests.", 571 "items": { 572 "$ref": "BuildBazelRemoteExecutionV2Digest" 573 }, 574 "type": "array" 575 } 576 }, 577 "type": "object" 578 }, 579 "BuildBazelRemoteExecutionV2BatchReadBlobsResponse": { 580 "description": "A response message for ContentAddressableStorage.BatchReadBlobs.", 581 "id": "BuildBazelRemoteExecutionV2BatchReadBlobsResponse", 582 "properties": { 583 "responses": { 584 "description": "The responses to the requests.", 585 "items": { 586 "$ref": "BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse" 587 }, 588 "type": "array" 589 } 590 }, 591 "type": "object" 592 }, 593 "BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse": { 594 "description": "A response corresponding to a single blob that the client tried to download.", 595 "id": "BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse", 596 "properties": { 597 "data": { 598 "description": "The raw binary data.", 599 "format": "byte", 600 "type": "string" 601 }, 602 "digest": { 603 "$ref": "BuildBazelRemoteExecutionV2Digest", 604 "description": "The digest to which this response corresponds." 605 }, 606 "status": { 607 "$ref": "GoogleRpcStatus", 608 "description": "The result of attempting to download that blob." 609 } 610 }, 611 "type": "object" 612 }, 613 "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest": { 614 "description": "A request message for ContentAddressableStorage.BatchUpdateBlobs.", 615 "id": "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest", 616 "properties": { 617 "requests": { 618 "description": "The individual upload requests.", 619 "items": { 620 "$ref": "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest" 621 }, 622 "type": "array" 623 } 624 }, 625 "type": "object" 626 }, 627 "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest": { 628 "description": "A request corresponding to a single blob that the client wants to upload.", 629 "id": "BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest", 630 "properties": { 631 "data": { 632 "description": "The raw binary data.", 633 "format": "byte", 634 "type": "string" 635 }, 636 "digest": { 637 "$ref": "BuildBazelRemoteExecutionV2Digest", 638 "description": "The digest of the blob. This MUST be the digest of `data`." 639 } 640 }, 641 "type": "object" 642 }, 643 "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse": { 644 "description": "A response message for ContentAddressableStorage.BatchUpdateBlobs.", 645 "id": "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse", 646 "properties": { 647 "responses": { 648 "description": "The responses to the requests.", 649 "items": { 650 "$ref": "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse" 651 }, 652 "type": "array" 653 } 654 }, 655 "type": "object" 656 }, 657 "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse": { 658 "description": "A response corresponding to a single blob that the client tried to upload.", 659 "id": "BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse", 660 "properties": { 661 "digest": { 662 "$ref": "BuildBazelRemoteExecutionV2Digest", 663 "description": "The blob digest to which this response corresponds." 664 }, 665 "status": { 666 "$ref": "GoogleRpcStatus", 667 "description": "The result of attempting to upload that blob." 668 } 669 }, 670 "type": "object" 671 }, 672 "BuildBazelRemoteExecutionV2CacheCapabilities": { 673 "description": "Capabilities of the remote cache system.", 674 "id": "BuildBazelRemoteExecutionV2CacheCapabilities", 675 "properties": { 676 "actionCacheUpdateCapabilities": { 677 "$ref": "BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities", 678 "description": "Capabilities for updating the action cache." 679 }, 680 "cachePriorityCapabilities": { 681 "$ref": "BuildBazelRemoteExecutionV2PriorityCapabilities", 682 "description": "Supported cache priority range for both CAS and ActionCache." 683 }, 684 "digestFunction": { 685 "description": "All the digest functions supported by the remote cache. Remote cache may support multiple digest functions simultaneously.", 686 "items": { 687 "enum": [ 688 "UNKNOWN", 689 "SHA256", 690 "SHA1", 691 "MD5", 692 "VSO", 693 "SHA384", 694 "SHA512", 695 "MURMUR3" 696 ], 697 "enumDescriptions": [ 698 "It is an error for the server to return this value.", 699 "The SHA-256 digest function.", 700 "The SHA-1 digest function.", 701 "The MD5 digest function.", 702 "The Microsoft \"VSO-Hash\" paged SHA256 digest function. See https://github.com/microsoft/BuildXL/blob/master/Documentation/Specs/PagedHash.md .", 703 "The SHA-384 digest function.", 704 "The SHA-512 digest function.", 705 "Murmur3 128-bit digest function, x64 variant. Note that this is not a cryptographic hash function and its collision properties are not strongly guaranteed. See https://github.com/aappleby/smhasher/wiki/MurmurHash3 ." 706 ], 707 "type": "string" 708 }, 709 "type": "array" 710 }, 711 "maxBatchTotalSizeBytes": { 712 "description": "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.", 713 "format": "int64", 714 "type": "string" 715 }, 716 "supportedCompressor": { 717 "description": "Compressors supported by the \"compressed-blobs\" bytestream resources. Servers MUST support identity/no-compression, even if it is not listed here. Note that this does not imply which if any compressors are supported by the server at the gRPC level.", 718 "items": { 719 "enum": [ 720 "IDENTITY", 721 "ZSTD" 722 ], 723 "enumDescriptions": [ 724 "No compression. Servers and clients MUST always support this, and do not need to advertise it.", 725 "Zstandard compression." 726 ], 727 "type": "string" 728 }, 729 "type": "array" 730 }, 731 "symlinkAbsolutePathStrategy": { 732 "description": "Whether absolute symlink targets are supported.", 733 "enum": [ 734 "UNKNOWN", 735 "DISALLOWED", 736 "ALLOWED" 737 ], 738 "enumDescriptions": [ 739 "Invalid value.", 740 "Server will return an `INVALID_ARGUMENT` on input symlinks with absolute targets. If an action tries to create an output symlink with an absolute target, a `FAILED_PRECONDITION` will be returned.", 741 "Server will allow symlink targets to escape the input root tree, possibly resulting in non-hermetic builds." 742 ], 743 "type": "string" 744 } 745 }, 746 "type": "object" 747 }, 748 "BuildBazelRemoteExecutionV2Command": { 749 "description": "A `Command` is the actual command executed by a worker running an Action and specifications of its environment. Except as otherwise required, the environment (such as which system libraries or binaries are available, and what filesystems are mounted where) is defined by and specific to the implementation of the remote execution API.", 750 "id": "BuildBazelRemoteExecutionV2Command", 751 "properties": { 752 "arguments": { 753 "description": "The arguments to the command. The first argument must be the path to the executable, which must be either a relative path, in which case it is evaluated with respect to the input root, or an absolute path.", 754 "items": { 755 "type": "string" 756 }, 757 "type": "array" 758 }, 759 "environmentVariables": { 760 "description": "The environment variables to set when running the program. The worker may provide its own default environment variables; these defaults can be overridden using this field. Additional variables can also be specified. In order to ensure that equivalent Commands always hash to the same value, the environment variables MUST be lexicographically sorted by name. Sorting of strings is done by code point, equivalently, by the UTF-8 bytes.", 761 "items": { 762 "$ref": "BuildBazelRemoteExecutionV2CommandEnvironmentVariable" 763 }, 764 "type": "array" 765 }, 766 "outputDirectories": { 767 "description": "A list of the output directories that the client expects to retrieve from the action. Only the listed directories will be returned (an entire directory structure will be returned as a Tree message digest, see OutputDirectory), as well as files listed in `output_files`. Other files or directories that may be created during command execution are discarded. The paths are relative to the working directory of the action execution. The paths are specified using a single forward slash (`/`) as a path separator, even if the execution platform natively uses a different separator. The path MUST NOT include a trailing slash, nor a leading slash, being a relative path. The special value of empty string is allowed, although not recommended, and can be used to capture the entire working directory tree, including inputs. In order to ensure consistent hashing of the same Action, the output paths MUST be sorted lexicographically by code point (or, equivalently, by UTF-8 bytes). An output directory cannot be duplicated or have the same path as any of the listed output files. An output directory is allowed to be a parent of another output directory. Directories leading up to the output directories (but not the output directories themselves) are created by the worker prior to execution, even if they are not explicitly part of the input root. DEPRECATED since 2.1: Use `output_paths` instead.", 768 "items": { 769 "type": "string" 770 }, 771 "type": "array" 772 }, 773 "outputFiles": { 774 "description": "A list of the output files that the client expects to retrieve from the action. Only the listed files, as well as directories listed in `output_directories`, will be returned to the client as output. Other files or directories that may be created during command execution are discarded. The paths are relative to the working directory of the action execution. The paths are specified using a single forward slash (`/`) as a path separator, even if the execution platform natively uses a different separator. The path MUST NOT include a trailing slash, nor a leading slash, being a relative path. In order to ensure consistent hashing of the same Action, the output paths MUST be sorted lexicographically by code point (or, equivalently, by UTF-8 bytes). An output file cannot be duplicated, be a parent of another output file, or have the same path as any of the listed output directories. Directories leading up to the output files are created by the worker prior to execution, even if they are not explicitly part of the input root. DEPRECATED since v2.1: Use `output_paths` instead.", 775 "items": { 776 "type": "string" 777 }, 778 "type": "array" 779 }, 780 "outputNodeProperties": { 781 "description": "A list of keys for node properties the client expects to retrieve for output files and directories. Keys are either names of string-based NodeProperty or names of fields in NodeProperties. In order to ensure that equivalent `Action`s always hash to the same value, the node properties MUST be lexicographically sorted by name. Sorting of strings is done by code point, equivalently, by the UTF-8 bytes. The interpretation of string-based properties is server-dependent. If a property is not recognized by the server, the server will return an `INVALID_ARGUMENT`.", 782 "items": { 783 "type": "string" 784 }, 785 "type": "array" 786 }, 787 "outputPaths": { 788 "description": "A list of the output paths that the client expects to retrieve from the action. Only the listed paths will be returned to the client as output. The type of the output (file or directory) is not specified, and will be determined by the server after action execution. If the resulting path is a file, it will be returned in an OutputFile) typed field. If the path is a directory, the entire directory structure will be returned as a Tree message digest, see OutputDirectory) Other files or directories that may be created during command execution are discarded. The paths are relative to the working directory of the action execution. The paths are specified using a single forward slash (`/`) as a path separator, even if the execution platform natively uses a different separator. The path MUST NOT include a trailing slash, nor a leading slash, being a relative path. In order to ensure consistent hashing of the same Action, the output paths MUST be deduplicated and sorted lexicographically by code point (or, equivalently, by UTF-8 bytes). Directories leading up to the output paths are created by the worker prior to execution, even if they are not explicitly part of the input root. New in v2.1: this field supersedes the DEPRECATED `output_files` and `output_directories` fields. If `output_paths` is used, `output_files` and `output_directories` will be ignored!", 789 "items": { 790 "type": "string" 791 }, 792 "type": "array" 793 }, 794 "platform": { 795 "$ref": "BuildBazelRemoteExecutionV2Platform", 796 "description": "The platform requirements for the execution environment. The server MAY choose to execute the action on any worker satisfying the requirements, so the client SHOULD ensure that running the action on any such worker will have the same result. A detailed lexicon for this can be found in the accompanying platform.md. DEPRECATED as of v2.2: platform properties are now specified directly in the action. See documentation note in the Action for migration." 797 }, 798 "workingDirectory": { 799 "description": "The working directory, relative to the input root, for the command to run in. It must be a directory which exists in the input tree. If it is left empty, then the action is run in the input root.", 800 "type": "string" 801 } 802 }, 803 "type": "object" 804 }, 805 "BuildBazelRemoteExecutionV2CommandEnvironmentVariable": { 806 "description": "An `EnvironmentVariable` is one variable to set in the running program's environment.", 807 "id": "BuildBazelRemoteExecutionV2CommandEnvironmentVariable", 808 "properties": { 809 "name": { 810 "description": "The variable name.", 811 "type": "string" 812 }, 813 "value": { 814 "description": "The variable value.", 815 "type": "string" 816 } 817 }, 818 "type": "object" 819 }, 820 "BuildBazelRemoteExecutionV2Digest": { 821 "description": "A content digest. A digest for a given blob consists of the size of the blob and its hash. The hash algorithm to use is defined by the server. The size is considered to be an integral part of the digest and cannot be separated. That is, even if the `hash` field is correctly specified but `size_bytes` is not, the server MUST reject the request. The reason for including the size in the digest is as follows: in a great many cases, the server needs to know the size of the blob it is about to work with prior to starting an operation with it, such as flattening Merkle tree structures or streaming it to a worker. Technically, the server could implement a separate metadata store, but this results in a significantly more complicated implementation as opposed to having the client specify the size up-front (or storing the size along with the digest in every message where digests are embedded). This does mean that the API leaks some implementation details of (what we consider to be) a reasonable server implementation, but we consider this to be a worthwhile tradeoff. When a `Digest` is used to refer to a proto message, it always refers to the message in binary encoded form. To ensure consistent hashing, clients and servers MUST ensure that they serialize messages according to the following rules, even if there are alternate valid encodings for the same message: * Fields are serialized in tag order. * There are no unknown fields. * There are no duplicate fields. * Fields are serialized according to the default semantics for their type. Most protocol buffer implementations will always follow these rules when serializing, but care should be taken to avoid shortcuts. For instance, concatenating two messages to merge them may produce duplicate fields.", 822 "id": "BuildBazelRemoteExecutionV2Digest", 823 "properties": { 824 "hash": { 825 "description": "The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.", 826 "type": "string" 827 }, 828 "sizeBytes": { 829 "description": "The size of the blob, in bytes.", 830 "format": "int64", 831 "type": "string" 832 } 833 }, 834 "type": "object" 835 }, 836 "BuildBazelRemoteExecutionV2Directory": { 837 "description": "A `Directory` represents a directory node in a file tree, containing zero or more children FileNodes, DirectoryNodes and SymlinkNodes. Each `Node` contains its name in the directory, either the digest of its content (either a file blob or a `Directory` proto) or a symlink target, as well as possibly some metadata about the file or directory. In order to ensure that two equivalent directory trees hash to the same value, the following restrictions MUST be obeyed when constructing a a `Directory`: * Every child in the directory must have a path of exactly one segment. Multiple levels of directory hierarchy may not be collapsed. * Each child in the directory must have a unique path segment (file name). Note that while the API itself is case-sensitive, the environment where the Action is executed may or may not be case-sensitive. That is, it is legal to call the API with a Directory that has both \"Foo\" and \"foo\" as children, but the Action may be rejected by the remote system upon execution. * The files, directories and symlinks in the directory must each be sorted in lexicographical order by path. The path strings must be sorted by code point, equivalently, by UTF-8 bytes. * The NodeProperties of files, directories, and symlinks must be sorted in lexicographical order by property name. A `Directory` that obeys the restrictions is said to be in canonical form. As an example, the following could be used for a file named `bar` and a directory named `foo` with an executable file named `baz` (hashes shortened for readability): ```json // (Directory proto) { files: [ { name: \"bar\", digest: { hash: \"4a73bc9d03...\", size: 65534 }, node_properties: [ { \"name\": \"MTime\", \"value\": \"2017-01-15T01:30:15.01Z\" } ] } ], directories: [ { name: \"foo\", digest: { hash: \"4cf2eda940...\", size: 43 } } ] } // (Directory proto with hash \"4cf2eda940...\" and size 43) { files: [ { name: \"baz\", digest: { hash: \"b2c941073e...\", size: 1294, }, is_executable: true } ] } ```", 838 "id": "BuildBazelRemoteExecutionV2Directory", 839 "properties": { 840 "directories": { 841 "description": "The subdirectories in the directory.", 842 "items": { 843 "$ref": "BuildBazelRemoteExecutionV2DirectoryNode" 844 }, 845 "type": "array" 846 }, 847 "files": { 848 "description": "The files in the directory.", 849 "items": { 850 "$ref": "BuildBazelRemoteExecutionV2FileNode" 851 }, 852 "type": "array" 853 }, 854 "nodeProperties": { 855 "$ref": "BuildBazelRemoteExecutionV2NodeProperties" 856 }, 857 "symlinks": { 858 "description": "The symlinks in the directory.", 859 "items": { 860 "$ref": "BuildBazelRemoteExecutionV2SymlinkNode" 861 }, 862 "type": "array" 863 } 864 }, 865 "type": "object" 866 }, 867 "BuildBazelRemoteExecutionV2DirectoryNode": { 868 "description": "A `DirectoryNode` represents a child of a Directory which is itself a `Directory` and its associated metadata.", 869 "id": "BuildBazelRemoteExecutionV2DirectoryNode", 870 "properties": { 871 "digest": { 872 "$ref": "BuildBazelRemoteExecutionV2Digest", 873 "description": "The digest of the Directory object represented. See Digest for information about how to take the digest of a proto message." 874 }, 875 "name": { 876 "description": "The name of the directory.", 877 "type": "string" 878 } 879 }, 880 "type": "object" 881 }, 882 "BuildBazelRemoteExecutionV2ExecuteOperationMetadata": { 883 "description": "Metadata about an ongoing execution, which will be contained in the metadata field of the Operation.", 884 "id": "BuildBazelRemoteExecutionV2ExecuteOperationMetadata", 885 "properties": { 886 "actionDigest": { 887 "$ref": "BuildBazelRemoteExecutionV2Digest", 888 "description": "The digest of the Action being executed." 889 }, 890 "stage": { 891 "description": "The current stage of execution.", 892 "enum": [ 893 "UNKNOWN", 894 "CACHE_CHECK", 895 "QUEUED", 896 "EXECUTING", 897 "COMPLETED" 898 ], 899 "enumDescriptions": [ 900 "Invalid value.", 901 "Checking the result against the cache.", 902 "Currently idle, awaiting a free machine to execute.", 903 "Currently being executed by a worker.", 904 "Finished execution." 905 ], 906 "type": "string" 907 }, 908 "stderrStreamName": { 909 "description": "If set, the client can use this resource name with ByteStream.Read to stream the standard error from the endpoint hosting streamed responses.", 910 "type": "string" 911 }, 912 "stdoutStreamName": { 913 "description": "If set, the client can use this resource name with ByteStream.Read to stream the standard output from the endpoint hosting streamed responses.", 914 "type": "string" 915 } 916 }, 917 "type": "object" 918 }, 919 "BuildBazelRemoteExecutionV2ExecuteRequest": { 920 "description": "A request message for Execution.Execute.", 921 "id": "BuildBazelRemoteExecutionV2ExecuteRequest", 922 "properties": { 923 "actionDigest": { 924 "$ref": "BuildBazelRemoteExecutionV2Digest", 925 "description": "The digest of the Action to execute." 926 }, 927 "executionPolicy": { 928 "$ref": "BuildBazelRemoteExecutionV2ExecutionPolicy", 929 "description": "An optional policy for execution of the action. The server will have a default policy if this is not provided." 930 }, 931 "resultsCachePolicy": { 932 "$ref": "BuildBazelRemoteExecutionV2ResultsCachePolicy", 933 "description": "An optional policy for the results of this execution in the remote cache. The server will have a default policy if this is not provided. This may be applied to both the ActionResult and the associated blobs." 934 }, 935 "skipCacheLookup": { 936 "description": "If true, the action will be executed even if its result is already present in the ActionCache. The execution is still allowed to be merged with other in-flight executions of the same action, however - semantically, the service MUST only guarantee that the results of an execution with this field set were not visible before the corresponding execution request was sent. Note that actions from execution requests setting this field set are still eligible to be entered into the action cache upon completion, and services SHOULD overwrite any existing entries that may exist. This allows skip_cache_lookup requests to be used as a mechanism for replacing action cache entries that reference outputs no longer available or that are poisoned in any way. If false, the result may be served from the action cache.", 937 "type": "boolean" 938 } 939 }, 940 "type": "object" 941 }, 942 "BuildBazelRemoteExecutionV2ExecuteResponse": { 943 "description": "The response message for Execution.Execute, which will be contained in the response field of the Operation.", 944 "id": "BuildBazelRemoteExecutionV2ExecuteResponse", 945 "properties": { 946 "cachedResult": { 947 "description": "True if the result was served from cache, false if it was executed.", 948 "type": "boolean" 949 }, 950 "message": { 951 "description": "Freeform informational message with details on the execution of the action that may be displayed to the user upon failure or when requested explicitly.", 952 "type": "string" 953 }, 954 "result": { 955 "$ref": "BuildBazelRemoteExecutionV2ActionResult", 956 "description": "The result of the action." 957 }, 958 "serverLogs": { 959 "additionalProperties": { 960 "$ref": "BuildBazelRemoteExecutionV2LogFile" 961 }, 962 "description": "An optional list of additional log outputs the server wishes to provide. A server can use this to return execution-specific logs however it wishes. This is intended primarily to make it easier for users to debug issues that may be outside of the actual job execution, such as by identifying the worker executing the action or by providing logs from the worker's setup phase. The keys SHOULD be human readable so that a client can display them to a user.", 963 "type": "object" 964 }, 965 "status": { 966 "$ref": "GoogleRpcStatus", 967 "description": "If the status has a code other than `OK`, it indicates that the action did not finish execution. For example, if the operation times out during execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST use this field for errors in execution, rather than the error field on the `Operation` object. If the status code is other than `OK`, then the result MUST NOT be cached. For an error status, the `result` field is optional; the server may populate the output-, stdout-, and stderr-related fields if it has any information available, such as the stdout and stderr of a timed-out action." 968 } 969 }, 970 "type": "object" 971 }, 972 "BuildBazelRemoteExecutionV2ExecutedActionMetadata": { 973 "description": "ExecutedActionMetadata contains details about a completed execution.", 974 "id": "BuildBazelRemoteExecutionV2ExecutedActionMetadata", 975 "properties": { 976 "auxiliaryMetadata": { 977 "description": "Details that are specific to the kind of worker used. For example, on POSIX-like systems this could contain a message with getrusage(2) statistics.", 978 "items": { 979 "additionalProperties": { 980 "description": "Properties of the object. Contains field @type with type URL.", 981 "type": "any" 982 }, 983 "type": "object" 984 }, 985 "type": "array" 986 }, 987 "executionCompletedTimestamp": { 988 "description": "When the worker completed executing the action command.", 989 "format": "google-datetime", 990 "type": "string" 991 }, 992 "executionStartTimestamp": { 993 "description": "When the worker started executing the action command.", 994 "format": "google-datetime", 995 "type": "string" 996 }, 997 "inputFetchCompletedTimestamp": { 998 "description": "When the worker finished fetching action inputs.", 999 "format": "google-datetime", 1000 "type": "string" 1001 }, 1002 "inputFetchStartTimestamp": { 1003 "description": "When the worker started fetching action inputs.", 1004 "format": "google-datetime", 1005 "type": "string" 1006 }, 1007 "outputUploadCompletedTimestamp": { 1008 "description": "When the worker finished uploading action outputs.", 1009 "format": "google-datetime", 1010 "type": "string" 1011 }, 1012 "outputUploadStartTimestamp": { 1013 "description": "When the worker started uploading action outputs.", 1014 "format": "google-datetime", 1015 "type": "string" 1016 }, 1017 "queuedTimestamp": { 1018 "description": "When was the action added to the queue.", 1019 "format": "google-datetime", 1020 "type": "string" 1021 }, 1022 "worker": { 1023 "description": "The name of the worker which ran the execution.", 1024 "type": "string" 1025 }, 1026 "workerCompletedTimestamp": { 1027 "description": "When the worker completed the action, including all stages.", 1028 "format": "google-datetime", 1029 "type": "string" 1030 }, 1031 "workerStartTimestamp": { 1032 "description": "When the worker received the action.", 1033 "format": "google-datetime", 1034 "type": "string" 1035 } 1036 }, 1037 "type": "object" 1038 }, 1039 "BuildBazelRemoteExecutionV2ExecutionCapabilities": { 1040 "description": "Capabilities of the remote execution system.", 1041 "id": "BuildBazelRemoteExecutionV2ExecutionCapabilities", 1042 "properties": { 1043 "digestFunction": { 1044 "description": "Remote execution may only support a single digest function.", 1045 "enum": [ 1046 "UNKNOWN", 1047 "SHA256", 1048 "SHA1", 1049 "MD5", 1050 "VSO", 1051 "SHA384", 1052 "SHA512", 1053 "MURMUR3" 1054 ], 1055 "enumDescriptions": [ 1056 "It is an error for the server to return this value.", 1057 "The SHA-256 digest function.", 1058 "The SHA-1 digest function.", 1059 "The MD5 digest function.", 1060 "The Microsoft \"VSO-Hash\" paged SHA256 digest function. See https://github.com/microsoft/BuildXL/blob/master/Documentation/Specs/PagedHash.md .", 1061 "The SHA-384 digest function.", 1062 "The SHA-512 digest function.", 1063 "Murmur3 128-bit digest function, x64 variant. Note that this is not a cryptographic hash function and its collision properties are not strongly guaranteed. See https://github.com/aappleby/smhasher/wiki/MurmurHash3 ." 1064 ], 1065 "type": "string" 1066 }, 1067 "execEnabled": { 1068 "description": "Whether remote execution is enabled for the particular server/instance.", 1069 "type": "boolean" 1070 }, 1071 "executionPriorityCapabilities": { 1072 "$ref": "BuildBazelRemoteExecutionV2PriorityCapabilities", 1073 "description": "Supported execution priority range." 1074 }, 1075 "supportedNodeProperties": { 1076 "description": "Supported node properties.", 1077 "items": { 1078 "type": "string" 1079 }, 1080 "type": "array" 1081 } 1082 }, 1083 "type": "object" 1084 }, 1085 "BuildBazelRemoteExecutionV2ExecutionPolicy": { 1086 "description": "An `ExecutionPolicy` can be used to control the scheduling of the action.", 1087 "id": "BuildBazelRemoteExecutionV2ExecutionPolicy", 1088 "properties": { 1089 "priority": { 1090 "description": "The priority (relative importance) of this action. Generally, a lower value means that the action should be run sooner than actions having a greater priority value, but the interpretation of a given value is server- dependent. A priority of 0 means the *default* priority. Priorities may be positive or negative, and such actions should run later or sooner than actions having the default priority, respectively. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into scheduling policy.", 1091 "format": "int32", 1092 "type": "integer" 1093 } 1094 }, 1095 "type": "object" 1096 }, 1097 "BuildBazelRemoteExecutionV2FileNode": { 1098 "description": "A `FileNode` represents a single file and associated metadata.", 1099 "id": "BuildBazelRemoteExecutionV2FileNode", 1100 "properties": { 1101 "digest": { 1102 "$ref": "BuildBazelRemoteExecutionV2Digest", 1103 "description": "The digest of the file's content." 1104 }, 1105 "isExecutable": { 1106 "description": "True if file is executable, false otherwise.", 1107 "type": "boolean" 1108 }, 1109 "name": { 1110 "description": "The name of the file.", 1111 "type": "string" 1112 }, 1113 "nodeProperties": { 1114 "$ref": "BuildBazelRemoteExecutionV2NodeProperties" 1115 } 1116 }, 1117 "type": "object" 1118 }, 1119 "BuildBazelRemoteExecutionV2FindMissingBlobsRequest": { 1120 "description": "A request message for ContentAddressableStorage.FindMissingBlobs.", 1121 "id": "BuildBazelRemoteExecutionV2FindMissingBlobsRequest", 1122 "properties": { 1123 "blobDigests": { 1124 "description": "A list of the blobs to check.", 1125 "items": { 1126 "$ref": "BuildBazelRemoteExecutionV2Digest" 1127 }, 1128 "type": "array" 1129 } 1130 }, 1131 "type": "object" 1132 }, 1133 "BuildBazelRemoteExecutionV2FindMissingBlobsResponse": { 1134 "description": "A response message for ContentAddressableStorage.FindMissingBlobs.", 1135 "id": "BuildBazelRemoteExecutionV2FindMissingBlobsResponse", 1136 "properties": { 1137 "missingBlobDigests": { 1138 "description": "A list of the blobs requested *not* present in the storage.", 1139 "items": { 1140 "$ref": "BuildBazelRemoteExecutionV2Digest" 1141 }, 1142 "type": "array" 1143 } 1144 }, 1145 "type": "object" 1146 }, 1147 "BuildBazelRemoteExecutionV2GetTreeResponse": { 1148 "description": "A response message for ContentAddressableStorage.GetTree.", 1149 "id": "BuildBazelRemoteExecutionV2GetTreeResponse", 1150 "properties": { 1151 "directories": { 1152 "description": "The directories descended from the requested root.", 1153 "items": { 1154 "$ref": "BuildBazelRemoteExecutionV2Directory" 1155 }, 1156 "type": "array" 1157 }, 1158 "nextPageToken": { 1159 "description": "If present, signifies that there are more results which the client can retrieve by passing this as the page_token in a subsequent request. If empty, signifies that this is the last page of results.", 1160 "type": "string" 1161 } 1162 }, 1163 "type": "object" 1164 }, 1165 "BuildBazelRemoteExecutionV2LogFile": { 1166 "description": "A `LogFile` is a log stored in the CAS.", 1167 "id": "BuildBazelRemoteExecutionV2LogFile", 1168 "properties": { 1169 "digest": { 1170 "$ref": "BuildBazelRemoteExecutionV2Digest", 1171 "description": "The digest of the log contents." 1172 }, 1173 "humanReadable": { 1174 "description": "This is a hint as to the purpose of the log, and is set to true if the log is human-readable text that can be usefully displayed to a user, and false otherwise. For instance, if a command-line client wishes to print the server logs to the terminal for a failed action, this allows it to avoid displaying a binary file.", 1175 "type": "boolean" 1176 } 1177 }, 1178 "type": "object" 1179 }, 1180 "BuildBazelRemoteExecutionV2NodeProperties": { 1181 "description": "Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is responsible for specifying the properties that it accepts.", 1182 "id": "BuildBazelRemoteExecutionV2NodeProperties", 1183 "properties": { 1184 "mtime": { 1185 "description": "The file's last modification timestamp.", 1186 "format": "google-datetime", 1187 "type": "string" 1188 }, 1189 "properties": { 1190 "description": "A list of string-based NodeProperties.", 1191 "items": { 1192 "$ref": "BuildBazelRemoteExecutionV2NodeProperty" 1193 }, 1194 "type": "array" 1195 }, 1196 "unixMode": { 1197 "description": "The UNIX file mode, e.g., 0755.", 1198 "format": "uint32", 1199 "type": "integer" 1200 } 1201 }, 1202 "type": "object" 1203 }, 1204 "BuildBazelRemoteExecutionV2NodeProperty": { 1205 "description": "A single property for FileNodes, DirectoryNodes, and SymlinkNodes. The server is responsible for specifying the property `name`s that it accepts. If permitted by the server, the same `name` may occur multiple times.", 1206 "id": "BuildBazelRemoteExecutionV2NodeProperty", 1207 "properties": { 1208 "name": { 1209 "description": "The property name.", 1210 "type": "string" 1211 }, 1212 "value": { 1213 "description": "The property value.", 1214 "type": "string" 1215 } 1216 }, 1217 "type": "object" 1218 }, 1219 "BuildBazelRemoteExecutionV2OutputDirectory": { 1220 "description": "An `OutputDirectory` is the output in an `ActionResult` corresponding to a directory's full contents rather than a single file.", 1221 "id": "BuildBazelRemoteExecutionV2OutputDirectory", 1222 "properties": { 1223 "path": { 1224 "description": "The full path of the directory relative to the working directory. The path separator is a forward slash `/`. Since this is a relative path, it MUST NOT begin with a leading forward slash. The empty string value is allowed, and it denotes the entire working directory.", 1225 "type": "string" 1226 }, 1227 "treeDigest": { 1228 "$ref": "BuildBazelRemoteExecutionV2Digest", 1229 "description": "The digest of the encoded Tree proto containing the directory's contents." 1230 } 1231 }, 1232 "type": "object" 1233 }, 1234 "BuildBazelRemoteExecutionV2OutputFile": { 1235 "description": "An `OutputFile` is similar to a FileNode, but it is used as an output in an `ActionResult`. It allows a full file path rather than only a name.", 1236 "id": "BuildBazelRemoteExecutionV2OutputFile", 1237 "properties": { 1238 "contents": { 1239 "description": "The contents of the file if inlining was requested. The server SHOULD NOT inline file contents unless requested by the client in the GetActionResultRequest message. The server MAY omit inlining, even if requested, and MUST do so if inlining would cause the response to exceed message size limits.", 1240 "format": "byte", 1241 "type": "string" 1242 }, 1243 "digest": { 1244 "$ref": "BuildBazelRemoteExecutionV2Digest", 1245 "description": "The digest of the file's content." 1246 }, 1247 "isExecutable": { 1248 "description": "True if file is executable, false otherwise.", 1249 "type": "boolean" 1250 }, 1251 "nodeProperties": { 1252 "$ref": "BuildBazelRemoteExecutionV2NodeProperties" 1253 }, 1254 "path": { 1255 "description": "The full path of the file relative to the working directory, including the filename. The path separator is a forward slash `/`. Since this is a relative path, it MUST NOT begin with a leading forward slash.", 1256 "type": "string" 1257 } 1258 }, 1259 "type": "object" 1260 }, 1261 "BuildBazelRemoteExecutionV2OutputSymlink": { 1262 "description": "An `OutputSymlink` is similar to a Symlink, but it is used as an output in an `ActionResult`. `OutputSymlink` is binary-compatible with `SymlinkNode`.", 1263 "id": "BuildBazelRemoteExecutionV2OutputSymlink", 1264 "properties": { 1265 "nodeProperties": { 1266 "$ref": "BuildBazelRemoteExecutionV2NodeProperties" 1267 }, 1268 "path": { 1269 "description": "The full path of the symlink relative to the working directory, including the filename. The path separator is a forward slash `/`. Since this is a relative path, it MUST NOT begin with a leading forward slash.", 1270 "type": "string" 1271 }, 1272 "target": { 1273 "description": "The target path of the symlink. The path separator is a forward slash `/`. The target path can be relative to the parent directory of the symlink or it can be an absolute path starting with `/`. Support for absolute paths can be checked using the Capabilities API. `..` components are allowed anywhere in the target path.", 1274 "type": "string" 1275 } 1276 }, 1277 "type": "object" 1278 }, 1279 "BuildBazelRemoteExecutionV2Platform": { 1280 "description": "A `Platform` is a set of requirements, such as hardware, operating system, or compiler toolchain, for an Action's execution environment. A `Platform` is represented as a series of key-value pairs representing the properties that are required of the platform.", 1281 "id": "BuildBazelRemoteExecutionV2Platform", 1282 "properties": { 1283 "properties": { 1284 "description": "The properties that make up this platform. In order to ensure that equivalent `Platform`s always hash to the same value, the properties MUST be lexicographically sorted by name, and then by value. Sorting of strings is done by code point, equivalently, by the UTF-8 bytes.", 1285 "items": { 1286 "$ref": "BuildBazelRemoteExecutionV2PlatformProperty" 1287 }, 1288 "type": "array" 1289 } 1290 }, 1291 "type": "object" 1292 }, 1293 "BuildBazelRemoteExecutionV2PlatformProperty": { 1294 "description": "A single property for the environment. The server is responsible for specifying the property `name`s that it accepts. If an unknown `name` is provided in the requirements for an Action, the server SHOULD reject the execution request. If permitted by the server, the same `name` may occur multiple times. The server is also responsible for specifying the interpretation of property `value`s. For instance, a property describing how much RAM must be available may be interpreted as allowing a worker with 16GB to fulfill a request for 8GB, while a property describing the OS environment on which the action must be performed may require an exact match with the worker's OS. The server MAY use the `value` of one or more properties to determine how it sets up the execution environment, such as by making specific system files available to the worker. Both names and values are typically case-sensitive. Note that the platform is implicitly part of the action digest, so even tiny changes in the names or values (like changing case) may result in different action cache entries.", 1295 "id": "BuildBazelRemoteExecutionV2PlatformProperty", 1296 "properties": { 1297 "name": { 1298 "description": "The property name.", 1299 "type": "string" 1300 }, 1301 "value": { 1302 "description": "The property value.", 1303 "type": "string" 1304 } 1305 }, 1306 "type": "object" 1307 }, 1308 "BuildBazelRemoteExecutionV2PriorityCapabilities": { 1309 "description": "Allowed values for priority in ResultsCachePolicy and ExecutionPolicy Used for querying both cache and execution valid priority ranges.", 1310 "id": "BuildBazelRemoteExecutionV2PriorityCapabilities", 1311 "properties": { 1312 "priorities": { 1313 "items": { 1314 "$ref": "BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange" 1315 }, 1316 "type": "array" 1317 } 1318 }, 1319 "type": "object" 1320 }, 1321 "BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange": { 1322 "description": "Supported range of priorities, including boundaries.", 1323 "id": "BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange", 1324 "properties": { 1325 "maxPriority": { 1326 "description": "The maximum numeric value for this priority range, which represents the least urgent task or shortest retained item.", 1327 "format": "int32", 1328 "type": "integer" 1329 }, 1330 "minPriority": { 1331 "description": "The minimum numeric value for this priority range, which represents the most urgent task or longest retained item.", 1332 "format": "int32", 1333 "type": "integer" 1334 } 1335 }, 1336 "type": "object" 1337 }, 1338 "BuildBazelRemoteExecutionV2RequestMetadata": { 1339 "description": "An optional Metadata to attach to any RPC request to tell the server about an external context of the request. The server may use this for logging or other purposes. To use it, the client attaches the header to the call using the canonical proto serialization: * name: `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the base64 encoded binary `RequestMetadata` message. Note: the gRPC library serializes binary headers encoded in base 64 by default (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests). Therefore, if the gRPC library is used to pass/retrieve this metadata, the user may ignore the base64 encoding and assume it is simply serialized as a binary message.", 1340 "id": "BuildBazelRemoteExecutionV2RequestMetadata", 1341 "properties": { 1342 "actionId": { 1343 "description": "An identifier that ties multiple requests to the same action. For example, multiple requests to the CAS, Action Cache, and Execution API are used in order to compile foo.cc.", 1344 "type": "string" 1345 }, 1346 "actionMnemonic": { 1347 "description": "A brief description of the kind of action, for example, CppCompile or GoLink. There is no standard agreed set of values for this, and they are expected to vary between different client tools.", 1348 "type": "string" 1349 }, 1350 "configurationId": { 1351 "description": "An identifier for the configuration in which the target was built, e.g. for differentiating building host tools or different target platforms. There is no expectation that this value will have any particular structure, or equality across invocations, though some client tools may offer these guarantees.", 1352 "type": "string" 1353 }, 1354 "correlatedInvocationsId": { 1355 "description": "An identifier to tie multiple tool invocations together. For example, runs of foo_test, bar_test and baz_test on a post-submit of a given patch.", 1356 "type": "string" 1357 }, 1358 "targetId": { 1359 "description": "An identifier for the target which produced this action. No guarantees are made around how many actions may relate to a single target.", 1360 "type": "string" 1361 }, 1362 "toolDetails": { 1363 "$ref": "BuildBazelRemoteExecutionV2ToolDetails", 1364 "description": "The details for the tool invoking the requests." 1365 }, 1366 "toolInvocationId": { 1367 "description": "An identifier that ties multiple actions together to a final result. For example, multiple actions are required to build and run foo_test.", 1368 "type": "string" 1369 } 1370 }, 1371 "type": "object" 1372 }, 1373 "BuildBazelRemoteExecutionV2ResultsCachePolicy": { 1374 "description": "A `ResultsCachePolicy` is used for fine-grained control over how action outputs are stored in the CAS and Action Cache.", 1375 "id": "BuildBazelRemoteExecutionV2ResultsCachePolicy", 1376 "properties": { 1377 "priority": { 1378 "description": "The priority (relative importance) of this content in the overall cache. Generally, a lower value means a longer retention time or other advantage, but the interpretation of a given value is server-dependent. A priority of 0 means a *default* value, decided by the server. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into retention/eviction policy.", 1379 "format": "int32", 1380 "type": "integer" 1381 } 1382 }, 1383 "type": "object" 1384 }, 1385 "BuildBazelRemoteExecutionV2ServerCapabilities": { 1386 "description": "A response message for Capabilities.GetCapabilities.", 1387 "id": "BuildBazelRemoteExecutionV2ServerCapabilities", 1388 "properties": { 1389 "cacheCapabilities": { 1390 "$ref": "BuildBazelRemoteExecutionV2CacheCapabilities", 1391 "description": "Capabilities of the remote cache system." 1392 }, 1393 "deprecatedApiVersion": { 1394 "$ref": "BuildBazelSemverSemVer", 1395 "description": "Earliest RE API version supported, including deprecated versions." 1396 }, 1397 "executionCapabilities": { 1398 "$ref": "BuildBazelRemoteExecutionV2ExecutionCapabilities", 1399 "description": "Capabilities of the remote execution system." 1400 }, 1401 "highApiVersion": { 1402 "$ref": "BuildBazelSemverSemVer", 1403 "description": "Latest RE API version supported." 1404 }, 1405 "lowApiVersion": { 1406 "$ref": "BuildBazelSemverSemVer", 1407 "description": "Earliest non-deprecated RE API version supported." 1408 } 1409 }, 1410 "type": "object" 1411 }, 1412 "BuildBazelRemoteExecutionV2SymlinkNode": { 1413 "description": "A `SymlinkNode` represents a symbolic link.", 1414 "id": "BuildBazelRemoteExecutionV2SymlinkNode", 1415 "properties": { 1416 "name": { 1417 "description": "The name of the symlink.", 1418 "type": "string" 1419 }, 1420 "nodeProperties": { 1421 "$ref": "BuildBazelRemoteExecutionV2NodeProperties" 1422 }, 1423 "target": { 1424 "description": "The target path of the symlink. The path separator is a forward slash `/`. The target path can be relative to the parent directory of the symlink or it can be an absolute path starting with `/`. Support for absolute paths can be checked using the Capabilities API. `..` components are allowed anywhere in the target path as logical canonicalization may lead to different behavior in the presence of directory symlinks (e.g. `foo/../bar` may not be the same as `bar`). To reduce potential cache misses, canonicalization is still recommended where this is possible without impacting correctness.", 1425 "type": "string" 1426 } 1427 }, 1428 "type": "object" 1429 }, 1430 "BuildBazelRemoteExecutionV2ToolDetails": { 1431 "description": "Details for the tool used to call the API.", 1432 "id": "BuildBazelRemoteExecutionV2ToolDetails", 1433 "properties": { 1434 "toolName": { 1435 "description": "Name of the tool, e.g. bazel.", 1436 "type": "string" 1437 }, 1438 "toolVersion": { 1439 "description": "Version of the tool used for the request, e.g. 5.0.3.", 1440 "type": "string" 1441 } 1442 }, 1443 "type": "object" 1444 }, 1445 "BuildBazelRemoteExecutionV2Tree": { 1446 "description": "A `Tree` contains all the Directory protos in a single directory Merkle tree, compressed into one message.", 1447 "id": "BuildBazelRemoteExecutionV2Tree", 1448 "properties": { 1449 "children": { 1450 "description": "All the child directories: the directories referred to by the root and, recursively, all its children. In order to reconstruct the directory tree, the client must take the digests of each of the child directories and then build up a tree starting from the `root`.", 1451 "items": { 1452 "$ref": "BuildBazelRemoteExecutionV2Directory" 1453 }, 1454 "type": "array" 1455 }, 1456 "root": { 1457 "$ref": "BuildBazelRemoteExecutionV2Directory", 1458 "description": "The root directory in the tree." 1459 } 1460 }, 1461 "type": "object" 1462 }, 1463 "BuildBazelRemoteExecutionV2WaitExecutionRequest": { 1464 "description": "A request message for WaitExecution.", 1465 "id": "BuildBazelRemoteExecutionV2WaitExecutionRequest", 1466 "properties": {}, 1467 "type": "object" 1468 }, 1469 "BuildBazelSemverSemVer": { 1470 "description": "The full version of a given tool.", 1471 "id": "BuildBazelSemverSemVer", 1472 "properties": { 1473 "major": { 1474 "description": "The major version, e.g 10 for 10.2.3.", 1475 "format": "int32", 1476 "type": "integer" 1477 }, 1478 "minor": { 1479 "description": "The minor version, e.g. 2 for 10.2.3.", 1480 "format": "int32", 1481 "type": "integer" 1482 }, 1483 "patch": { 1484 "description": "The patch version, e.g 3 for 10.2.3.", 1485 "format": "int32", 1486 "type": "integer" 1487 }, 1488 "prerelease": { 1489 "description": "The pre-release version. Either this field or major/minor/patch fields must be filled. They are mutually exclusive. Pre-release versions are assumed to be earlier than any released versions.", 1490 "type": "string" 1491 } 1492 }, 1493 "type": "object" 1494 }, 1495 "GoogleDevtoolsRemotebuildbotCommandDurations": { 1496 "description": "CommandDuration contains the various duration metrics tracked when a bot performs a command.", 1497 "id": "GoogleDevtoolsRemotebuildbotCommandDurations", 1498 "properties": { 1499 "casRelease": { 1500 "description": "The time spent to release the CAS blobs used by the task.", 1501 "format": "google-duration", 1502 "type": "string" 1503 }, 1504 "cmWaitForAssignment": { 1505 "description": "The time spent waiting for Container Manager to assign an asynchronous container for execution.", 1506 "format": "google-duration", 1507 "type": "string" 1508 }, 1509 "dockerPrep": { 1510 "description": "The time spent preparing the command to be run in a Docker container (includes pulling the Docker image, if necessary).", 1511 "format": "google-duration", 1512 "type": "string" 1513 }, 1514 "dockerPrepStartTime": { 1515 "description": "The timestamp when docker preparation begins.", 1516 "format": "google-datetime", 1517 "type": "string" 1518 }, 1519 "download": { 1520 "description": "The time spent downloading the input files and constructing the working directory.", 1521 "format": "google-duration", 1522 "type": "string" 1523 }, 1524 "downloadStartTime": { 1525 "description": "The timestamp when downloading the input files begins.", 1526 "format": "google-datetime", 1527 "type": "string" 1528 }, 1529 "execStartTime": { 1530 "description": "The timestamp when execution begins.", 1531 "format": "google-datetime", 1532 "type": "string" 1533 }, 1534 "execution": { 1535 "description": "The time spent executing the command (i.e., doing useful work).", 1536 "format": "google-duration", 1537 "type": "string" 1538 }, 1539 "isoPrepDone": { 1540 "description": "The timestamp when preparation is done and bot starts downloading files.", 1541 "format": "google-datetime", 1542 "type": "string" 1543 }, 1544 "overall": { 1545 "description": "The time spent completing the command, in total.", 1546 "format": "google-duration", 1547 "type": "string" 1548 }, 1549 "stdout": { 1550 "description": "The time spent uploading the stdout logs.", 1551 "format": "google-duration", 1552 "type": "string" 1553 }, 1554 "upload": { 1555 "description": "The time spent uploading the output files.", 1556 "format": "google-duration", 1557 "type": "string" 1558 }, 1559 "uploadStartTime": { 1560 "description": "The timestamp when uploading the output files begins.", 1561 "format": "google-datetime", 1562 "type": "string" 1563 } 1564 }, 1565 "type": "object" 1566 }, 1567 "GoogleDevtoolsRemotebuildbotCommandEvents": { 1568 "description": "CommandEvents contains counters for the number of warnings and errors that occurred during the execution of a command.", 1569 "id": "GoogleDevtoolsRemotebuildbotCommandEvents", 1570 "properties": { 1571 "cmUsage": { 1572 "description": "Indicates if and how Container Manager is being used for task execution.", 1573 "enum": [ 1574 "CONFIG_NONE", 1575 "CONFIG_MATCH", 1576 "CONFIG_MISMATCH" 1577 ], 1578 "enumDescriptions": [ 1579 "Container Manager is disabled or not running for this execution.", 1580 "Container Manager is enabled and there was a matching container available for use during execution.", 1581 "Container Manager is enabled, but there was no matching container available for execution." 1582 ], 1583 "type": "string" 1584 }, 1585 "dockerCacheHit": { 1586 "description": "Indicates whether we are using a cached Docker image (true) or had to pull the Docker image (false) for this command.", 1587 "type": "boolean" 1588 }, 1589 "dockerImageName": { 1590 "description": "Docker Image name.", 1591 "type": "string" 1592 }, 1593 "inputCacheMiss": { 1594 "description": "The input cache miss ratio.", 1595 "format": "float", 1596 "type": "number" 1597 }, 1598 "numErrors": { 1599 "description": "The number of errors reported.", 1600 "format": "uint64", 1601 "type": "string" 1602 }, 1603 "numWarnings": { 1604 "description": "The number of warnings reported.", 1605 "format": "uint64", 1606 "type": "string" 1607 }, 1608 "outputLocation": { 1609 "description": "Indicates whether output files and/or output directories were found relative to the execution root or to the user provided work directory or both or none.", 1610 "enum": [ 1611 "LOCATION_UNDEFINED", 1612 "LOCATION_NONE", 1613 "LOCATION_EXEC_ROOT_RELATIVE", 1614 "LOCATION_WORKING_DIR_RELATIVE", 1615 "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE", 1616 "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR", 1617 "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" 1618 ], 1619 "enumDescriptions": [ 1620 "Location is set to LOCATION_UNDEFINED for tasks where the working directorty is not specified or is identical to the execution root directory.", 1621 "No output files or directories were found neither relative to the execution root directory nor relative to the working directory.", 1622 "Output files or directories were found relative to the execution root directory but not relative to the working directory.", 1623 "Output files or directories were found relative to the working directory but not relative to the execution root directory.", 1624 "Output files or directories were found both relative to the execution root directory and relative to the working directory.", 1625 "Output files or directories were found relative to the execution root directory but not relative to the working directory. In addition at least one output file or directory was found outside of the working directory such that a working-directory-relative-path would have needed to start with a `..`.", 1626 "Output files or directories were found both relative to the execution root directory and relative to the working directory. In addition at least one exec-root-relative output file or directory was found outside of the working directory such that a working-directory-relative-path would have needed to start with a `..`." 1627 ], 1628 "type": "string" 1629 }, 1630 "usedAsyncContainer": { 1631 "description": "Indicates whether an asynchronous container was used for execution.", 1632 "type": "boolean" 1633 } 1634 }, 1635 "type": "object" 1636 }, 1637 "GoogleDevtoolsRemotebuildbotCommandStatus": { 1638 "description": "The internal status of the command result.", 1639 "id": "GoogleDevtoolsRemotebuildbotCommandStatus", 1640 "properties": { 1641 "code": { 1642 "description": "The status code.", 1643 "enum": [ 1644 "OK", 1645 "INVALID_ARGUMENT", 1646 "DEADLINE_EXCEEDED", 1647 "NOT_FOUND", 1648 "PERMISSION_DENIED", 1649 "INTERNAL", 1650 "ABORTED", 1651 "FAILED_PRECONDITION", 1652 "CLEANUP_ERROR", 1653 "DOWNLOAD_INPUTS_ERROR", 1654 "UNKNOWN", 1655 "UPLOAD_OUTPUTS_ERROR", 1656 "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED", 1657 "DOCKER_LOGIN_ERROR", 1658 "DOCKER_IMAGE_PULL_ERROR", 1659 "DOCKER_IMAGE_EXIST_ERROR", 1660 "DUPLICATE_INPUTS", 1661 "DOCKER_IMAGE_PERMISSION_DENIED", 1662 "DOCKER_IMAGE_NOT_FOUND", 1663 "WORKING_DIR_NOT_FOUND", 1664 "WORKING_DIR_NOT_IN_BASE_DIR", 1665 "DOCKER_UNAVAILABLE", 1666 "NO_CUDA_CAPABLE_DEVICE", 1667 "REMOTE_CAS_DOWNLOAD_ERROR", 1668 "REMOTE_CAS_UPLOAD_ERROR", 1669 "LOCAL_CASPROXY_NOT_RUNNING", 1670 "DOCKER_CREATE_CONTAINER_ERROR", 1671 "DOCKER_INVALID_ULIMIT", 1672 "DOCKER_UNKNOWN_RUNTIME", 1673 "DOCKER_UNKNOWN_CAPABILITY", 1674 "DOCKER_UNKNOWN_ERROR", 1675 "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR", 1676 "DOCKER_PREPARELAYER_ERROR", 1677 "DOCKER_INCOMPATIBLE_OS_ERROR", 1678 "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND", 1679 "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED", 1680 "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND", 1681 "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR", 1682 "DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS", 1683 "LOCAL_CONTAINER_MANAGER_NOT_RUNNING", 1684 "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED", 1685 "WORKING_DIR_NOT_RELATIVE", 1686 "DOCKER_MISSING_CONTAINER" 1687 ], 1688 "enumDescriptions": [ 1689 "The command succeeded.", 1690 "The command input was invalid.", 1691 "The command had passed its expiry time while it was still running.", 1692 "The resources requested by the command were not found.", 1693 "The command failed due to permission errors.", 1694 "The command failed because of some invariants expected by the underlying system have been broken. This usually indicates a bug wit the system.", 1695 "The command was aborted.", 1696 "The command failed because the system is not in a state required for the command, e.g. the command inputs cannot be found on the server.", 1697 "The bot failed to do the cleanup, e.g. unable to delete the command working directory or the command process.", 1698 "The bot failed to download the inputs.", 1699 "Unknown error.", 1700 "The bot failed to upload the outputs.", 1701 "The bot tried to upload files having a total size that is too large.", 1702 "The bot failed to login to docker.", 1703 "The bot failed to pull docker image.", 1704 "The bot failed to check docker images.", 1705 "The inputs contain duplicate files.", 1706 "The bot doesn't have the permissions to pull docker images.", 1707 "The docker image cannot be found.", 1708 "Working directory is not found.", 1709 "Working directory is not under the base directory", 1710 "There are issues with docker service/runtime.", 1711 "The command failed with \"no cuda-capable device is detected\" error.", 1712 "The bot encountered errors from remote CAS when downloading blobs.", 1713 "The bot encountered errors from remote CAS when uploading blobs.", 1714 "The local casproxy is not running.", 1715 "The bot couldn't start the container.", 1716 "The docker ulimit is not valid.", 1717 "The docker runtime is unknown.", 1718 "The docker capability is unknown.", 1719 "The command failed with unknown docker errors.", 1720 "Docker failed to run containers with CreateComputeSystem error.", 1721 "Docker failed to run containers with hcsshim::PrepareLayer error.", 1722 "Docker incompatible operating system error.", 1723 "Docker failed to create OCI runtime because of file not found.", 1724 "Docker failed to create OCI runtime because of permission denied.", 1725 "Docker failed to create process because of file not found.", 1726 "Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused).", 1727 "Docker failed to create an overlay mount because of too many levels of symbolic links.", 1728 "The local Container Manager is not running.", 1729 "Docker failed because a request was denied by the organization's policy.", 1730 "Working directory is not relative", 1731 "Docker cannot find the container specified in the command. This error is likely to only occur if an asynchronous container is not running when the command is run." 1732 ], 1733 "type": "string" 1734 }, 1735 "message": { 1736 "description": "The error message.", 1737 "type": "string" 1738 } 1739 }, 1740 "type": "object" 1741 }, 1742 "GoogleDevtoolsRemotebuildbotResourceUsage": { 1743 "description": "ResourceUsage is the system resource usage of the host machine.", 1744 "id": "GoogleDevtoolsRemotebuildbotResourceUsage", 1745 "properties": { 1746 "cpuUsedPercent": { 1747 "format": "double", 1748 "type": "number" 1749 }, 1750 "diskUsage": { 1751 "$ref": "GoogleDevtoolsRemotebuildbotResourceUsageStat" 1752 }, 1753 "memoryUsage": { 1754 "$ref": "GoogleDevtoolsRemotebuildbotResourceUsageStat" 1755 }, 1756 "totalDiskIoStats": { 1757 "$ref": "GoogleDevtoolsRemotebuildbotResourceUsageIOStats" 1758 } 1759 }, 1760 "type": "object" 1761 }, 1762 "GoogleDevtoolsRemotebuildbotResourceUsageIOStats": { 1763 "id": "GoogleDevtoolsRemotebuildbotResourceUsageIOStats", 1764 "properties": { 1765 "readBytesCount": { 1766 "format": "uint64", 1767 "type": "string" 1768 }, 1769 "readCount": { 1770 "format": "uint64", 1771 "type": "string" 1772 }, 1773 "readTimeMs": { 1774 "format": "uint64", 1775 "type": "string" 1776 }, 1777 "writeBytesCount": { 1778 "format": "uint64", 1779 "type": "string" 1780 }, 1781 "writeCount": { 1782 "format": "uint64", 1783 "type": "string" 1784 }, 1785 "writeTimeMs": { 1786 "format": "uint64", 1787 "type": "string" 1788 } 1789 }, 1790 "type": "object" 1791 }, 1792 "GoogleDevtoolsRemotebuildbotResourceUsageStat": { 1793 "id": "GoogleDevtoolsRemotebuildbotResourceUsageStat", 1794 "properties": { 1795 "total": { 1796 "format": "uint64", 1797 "type": "string" 1798 }, 1799 "used": { 1800 "format": "uint64", 1801 "type": "string" 1802 } 1803 }, 1804 "type": "object" 1805 }, 1806 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig": { 1807 "description": "AcceleratorConfig defines the accelerator cards to attach to the VM.", 1808 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig", 1809 "properties": { 1810 "acceleratorCount": { 1811 "description": "The number of guest accelerator cards exposed to each VM.", 1812 "format": "int64", 1813 "type": "string" 1814 }, 1815 "acceleratorType": { 1816 "description": "The type of accelerator to attach to each VM, e.g. \"nvidia-tesla-k80\" for nVidia Tesla K80.", 1817 "type": "string" 1818 } 1819 }, 1820 "type": "object" 1821 }, 1822 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale": { 1823 "description": "Autoscale defines the autoscaling policy of a worker pool.", 1824 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale", 1825 "properties": { 1826 "maxSize": { 1827 "description": "The maximal number of workers. Must be equal to or greater than min_size.", 1828 "format": "int64", 1829 "type": "string" 1830 }, 1831 "minSize": { 1832 "description": "The minimal number of workers. Must be greater than 0.", 1833 "format": "int64", 1834 "type": "string" 1835 } 1836 }, 1837 "type": "object" 1838 }, 1839 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest": { 1840 "description": "The request used for `CreateInstance`.", 1841 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest", 1842 "properties": { 1843 "instance": { 1844 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance", 1845 "description": "Specifies the instance to create. The name in the instance, if specified in the instance, is ignored." 1846 }, 1847 "instanceId": { 1848 "description": "ID of the created instance. A valid `instance_id` must: be 6-50 characters long, contain only lowercase letters, digits, hyphens and underscores, start with a lowercase letter, and end with a lowercase letter or a digit.", 1849 "type": "string" 1850 }, 1851 "parent": { 1852 "description": "Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`.", 1853 "type": "string" 1854 } 1855 }, 1856 "type": "object" 1857 }, 1858 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest": { 1859 "description": "The request used for `CreateWorkerPool`.", 1860 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest", 1861 "properties": { 1862 "parent": { 1863 "description": "Resource name of the instance in which to create the new worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", 1864 "type": "string" 1865 }, 1866 "poolId": { 1867 "description": "ID of the created worker pool. A valid pool ID must: be 6-50 characters long, contain only lowercase letters, digits, hyphens and underscores, start with a lowercase letter, and end with a lowercase letter or a digit.", 1868 "type": "string" 1869 }, 1870 "workerPool": { 1871 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool", 1872 "description": "Specifies the worker pool to create. The name in the worker pool, if specified, is ignored." 1873 } 1874 }, 1875 "type": "object" 1876 }, 1877 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest": { 1878 "description": "The request used for `DeleteInstance`.", 1879 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest", 1880 "properties": { 1881 "name": { 1882 "description": "Name of the instance to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", 1883 "type": "string" 1884 } 1885 }, 1886 "type": "object" 1887 }, 1888 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest": { 1889 "description": "The request used for DeleteWorkerPool.", 1890 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest", 1891 "properties": { 1892 "name": { 1893 "description": "Name of the worker pool to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.", 1894 "type": "string" 1895 } 1896 }, 1897 "type": "object" 1898 }, 1899 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy": { 1900 "description": "FeaturePolicy defines features allowed to be used on RBE instances, as well as instance-wide behavior changes that take effect without opt-in or opt-out at usage time.", 1901 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy", 1902 "properties": { 1903 "containerImageSources": { 1904 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1905 "description": "Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ \"gcr.io/project-foo\", \"gcr.io/project-bar/repo-baz\", ] } will allow any repositories under \"gcr.io/project-foo\" plus the repository \"gcr.io/project-bar/repo-baz\". Default (UNSPECIFIED) is equivalent to any source is allowed." 1906 }, 1907 "dockerAddCapabilities": { 1908 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1909 "description": "Whether dockerAddCapabilities can be used or what capabilities are allowed." 1910 }, 1911 "dockerChrootPath": { 1912 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1913 "description": "Whether dockerChrootPath can be used." 1914 }, 1915 "dockerNetwork": { 1916 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1917 "description": "Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow `off` value only via `allowed_values`." 1918 }, 1919 "dockerPrivileged": { 1920 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1921 "description": "Whether dockerPrivileged can be used." 1922 }, 1923 "dockerRunAsRoot": { 1924 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1925 "description": "Whether dockerRunAsRoot can be used." 1926 }, 1927 "dockerRuntime": { 1928 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1929 "description": "Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation." 1930 }, 1931 "dockerSiblingContainers": { 1932 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1933 "description": "Whether dockerSiblingContainers can be used." 1934 }, 1935 "linuxIsolation": { 1936 "description": "linux_isolation allows overriding the docker runtime used for containers started on Linux.", 1937 "enum": [ 1938 "LINUX_ISOLATION_UNSPECIFIED", 1939 "GVISOR", 1940 "OFF" 1941 ], 1942 "enumDescriptions": [ 1943 "Default value. Will be using Linux default runtime.", 1944 "Use gVisor runsc runtime.", 1945 "Use stardard Linux runtime. This has the same behaviour as unspecified, but it can be used to revert back from gVisor." 1946 ], 1947 "type": "string" 1948 } 1949 }, 1950 "type": "object" 1951 }, 1952 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature": { 1953 "description": "Defines whether a feature can be used or what values are accepted.", 1954 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", 1955 "properties": { 1956 "allowedValues": { 1957 "description": "A list of acceptable values. Only effective when the policy is `RESTRICTED`.", 1958 "items": { 1959 "type": "string" 1960 }, 1961 "type": "array" 1962 }, 1963 "policy": { 1964 "description": "The policy of the feature.", 1965 "enum": [ 1966 "POLICY_UNSPECIFIED", 1967 "ALLOWED", 1968 "FORBIDDEN", 1969 "RESTRICTED" 1970 ], 1971 "enumDescriptions": [ 1972 "Default value, if not explicitly set. Equivalent to FORBIDDEN, unless otherwise documented on a specific Feature.", 1973 "Feature is explicitly allowed.", 1974 "Feature is forbidden. Requests attempting to leverage it will get an FailedPrecondition error, with a message like: \"Feature forbidden by FeaturePolicy: Feature on instance \"", 1975 "Only the values specified in the `allowed_values` are allowed." 1976 ], 1977 "type": "string" 1978 } 1979 }, 1980 "type": "object" 1981 }, 1982 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest": { 1983 "description": "The request used for `GetInstance`.", 1984 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest", 1985 "properties": { 1986 "name": { 1987 "description": "Name of the instance to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", 1988 "type": "string" 1989 } 1990 }, 1991 "type": "object" 1992 }, 1993 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest": { 1994 "description": "The request used for GetWorkerPool.", 1995 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest", 1996 "properties": { 1997 "name": { 1998 "description": "Name of the worker pool to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.", 1999 "type": "string" 2000 } 2001 }, 2002 "type": "object" 2003 }, 2004 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance": { 2005 "description": "Instance conceptually encapsulates all Remote Build Execution resources for remote builds. An instance consists of storage and compute resources (for example, `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running remote builds. All Remote Build Execution API calls are scoped to an instance.", 2006 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance", 2007 "properties": { 2008 "featurePolicy": { 2009 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy", 2010 "description": "The policy to define whether or not RBE features can be used or how they can be used." 2011 }, 2012 "location": { 2013 "description": "The location is a GCP region. Currently only `us-central1` is supported.", 2014 "type": "string" 2015 }, 2016 "loggingEnabled": { 2017 "description": "Output only. Whether stack driver logging is enabled for the instance.", 2018 "type": "boolean" 2019 }, 2020 "name": { 2021 "description": "Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field.", 2022 "type": "string" 2023 }, 2024 "state": { 2025 "description": "Output only. State of the instance.", 2026 "enum": [ 2027 "STATE_UNSPECIFIED", 2028 "CREATING", 2029 "RUNNING", 2030 "INACTIVE" 2031 ], 2032 "enumDescriptions": [ 2033 "Not a valid state, but the default value of the enum.", 2034 "The instance is in state `CREATING` once `CreateInstance` is called and before the instance is ready for use.", 2035 "The instance is in state `RUNNING` when it is ready for use.", 2036 "An `INACTIVE` instance indicates that there is a problem that needs to be fixed. Such instances cannot be used for execution and instances that remain in this state for a significant period of time will be removed permanently." 2037 ], 2038 "type": "string" 2039 } 2040 }, 2041 "type": "object" 2042 }, 2043 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest": { 2044 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest", 2045 "properties": { 2046 "parent": { 2047 "description": "Resource name of the project. Format: `projects/[PROJECT_ID]`.", 2048 "type": "string" 2049 } 2050 }, 2051 "type": "object" 2052 }, 2053 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse": { 2054 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse", 2055 "properties": { 2056 "instances": { 2057 "description": "The list of instances in a given project.", 2058 "items": { 2059 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance" 2060 }, 2061 "type": "array" 2062 } 2063 }, 2064 "type": "object" 2065 }, 2066 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest": { 2067 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest", 2068 "properties": { 2069 "filter": { 2070 "description": "Optional. A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. String values are case-insensitive. The comparison operator must be either `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. You can also filter on nested fields. To filter on multiple expressions, you can separate expression using `AND` and `OR` operators, using parentheses to specify precedence. If neither operator is specified, `AND` is assumed. Examples: Include only pools with more than 100 reserved workers: `(worker_count > 100) (worker_config.reserved = true)` Include only pools with a certain label or machines of the e2-standard family: `worker_config.labels.key1 : * OR worker_config.machine_type: e2-standard`", 2071 "type": "string" 2072 }, 2073 "parent": { 2074 "description": "Resource name of the instance. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", 2075 "type": "string" 2076 } 2077 }, 2078 "type": "object" 2079 }, 2080 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse": { 2081 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse", 2082 "properties": { 2083 "workerPools": { 2084 "description": "The list of worker pools in a given instance.", 2085 "items": { 2086 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool" 2087 }, 2088 "type": "array" 2089 } 2090 }, 2091 "type": "object" 2092 }, 2093 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": { 2094 "description": "The request used for `UpdateInstance`.", 2095 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest", 2096 "properties": { 2097 "instance": { 2098 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance", 2099 "description": "Specifies the instance to update." 2100 }, 2101 "loggingEnabled": { 2102 "description": "Deprecated, use instance.logging_enabled instead. Whether to enable Stackdriver logging for this instance.", 2103 "type": "boolean" 2104 }, 2105 "name": { 2106 "description": "Deprecated, use instance.Name instead. Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.", 2107 "type": "string" 2108 }, 2109 "updateMask": { 2110 "description": "The update mask applies to instance. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If an empty update_mask is provided, only the non-default valued field in the worker pool field will be updated. Note that in order to update a field to the default value (zero, false, empty string) an explicit update_mask must be provided.", 2111 "format": "google-fieldmask", 2112 "type": "string" 2113 } 2114 }, 2115 "type": "object" 2116 }, 2117 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest": { 2118 "description": "The request used for UpdateWorkerPool.", 2119 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest", 2120 "properties": { 2121 "updateMask": { 2122 "description": "The update mask applies to worker_pool. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If an empty update_mask is provided, only the non-default valued field in the worker pool field will be updated. Note that in order to update a field to the default value (zero, false, empty string) an explicit update_mask must be provided.", 2123 "format": "google-fieldmask", 2124 "type": "string" 2125 }, 2126 "workerPool": { 2127 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool", 2128 "description": "Specifies the worker pool to update." 2129 } 2130 }, 2131 "type": "object" 2132 }, 2133 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig": { 2134 "description": "Defines the configuration to be used for creating workers in the worker pool.", 2135 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig", 2136 "properties": { 2137 "accelerator": { 2138 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig", 2139 "description": "The accelerator card attached to each VM." 2140 }, 2141 "diskSizeGb": { 2142 "description": "Required. Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/", 2143 "format": "int64", 2144 "type": "string" 2145 }, 2146 "diskType": { 2147 "description": "Required. Disk Type to use for the worker. See [Storage options](https://cloud.google.com/compute/docs/disks/#introduction). Currently only `pd-standard` and `pd-ssd` are supported.", 2148 "type": "string" 2149 }, 2150 "labels": { 2151 "additionalProperties": { 2152 "type": "string" 2153 }, 2154 "description": "Labels associated with the workers. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International letters are permitted. Label keys must start with a letter. Label values are optional. There can not be more than 64 labels per resource.", 2155 "type": "object" 2156 }, 2157 "machineType": { 2158 "description": "Required. Machine type of the worker, such as `e2-standard-2`. See https://cloud.google.com/compute/docs/machine-types for a list of supported machine types. Note that `f1-micro` and `g1-small` are not yet supported.", 2159 "type": "string" 2160 }, 2161 "maxConcurrentActions": { 2162 "description": "The maximum number of actions a worker can execute concurrently.", 2163 "format": "int64", 2164 "type": "string" 2165 }, 2166 "minCpuPlatform": { 2167 "description": "Minimum CPU platform to use when creating the worker. See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).", 2168 "type": "string" 2169 }, 2170 "networkAccess": { 2171 "description": "Determines the type of network access granted to workers. Possible values: - \"public\": Workers can connect to the public internet. - \"private\": Workers can only connect to Google APIs and services. - \"restricted-private\": Workers can only connect to Google APIs that are reachable through `restricted.googleapis.com` (`199.36.153.4/30`).", 2172 "type": "string" 2173 }, 2174 "reserved": { 2175 "description": "Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won't be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.", 2176 "type": "boolean" 2177 }, 2178 "soleTenantNodeType": { 2179 "description": "The node type name to be used for sole-tenant nodes.", 2180 "type": "string" 2181 }, 2182 "vmImage": { 2183 "description": "The name of the image used by each VM.", 2184 "type": "string" 2185 } 2186 }, 2187 "type": "object" 2188 }, 2189 "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool": { 2190 "description": "A worker pool resource in the Remote Build Execution API.", 2191 "id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool", 2192 "properties": { 2193 "autoscale": { 2194 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale", 2195 "description": "The autoscale policy to apply on a pool." 2196 }, 2197 "channel": { 2198 "description": "Channel specifies the release channel of the pool.", 2199 "type": "string" 2200 }, 2201 "name": { 2202 "description": "WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field.", 2203 "type": "string" 2204 }, 2205 "state": { 2206 "description": "Output only. State of the worker pool.", 2207 "enum": [ 2208 "STATE_UNSPECIFIED", 2209 "CREATING", 2210 "RUNNING", 2211 "UPDATING", 2212 "DELETING", 2213 "INACTIVE" 2214 ], 2215 "enumDescriptions": [ 2216 "Not a valid state, but the default value of the enum.", 2217 "The worker pool is in state `CREATING` once `CreateWorkerPool` is called and before all requested workers are ready.", 2218 "The worker pool is in state `RUNNING` when all its workers are ready for use.", 2219 "The worker pool is in state `UPDATING` once `UpdateWorkerPool` is called and before the new configuration has all the requested workers ready for use, and no older configuration has any workers. At that point the state transitions to `RUNNING`.", 2220 "The worker pool is in state `DELETING` once the `Delete` method is called and before the deletion completes.", 2221 "The worker pool is in state `INACTIVE` when the instance hosting the worker pool in not running." 2222 ], 2223 "type": "string" 2224 }, 2225 "workerConfig": { 2226 "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig", 2227 "description": "Specifies the properties, such as machine type and disk size, used for creating workers in a worker pool." 2228 }, 2229 "workerCount": { 2230 "description": "The desired number of workers in the worker pool. Must be a value between 0 and 15000.", 2231 "format": "int64", 2232 "type": "string" 2233 } 2234 }, 2235 "type": "object" 2236 }, 2237 "GoogleDevtoolsRemoteworkersV1test2AdminTemp": { 2238 "description": "AdminTemp is a prelimiary set of administration tasks. It's called \"Temp\" because we do not yet know the best way to represent admin tasks; it's possible that this will be entirely replaced in later versions of this API. If this message proves to be sufficient, it will be renamed in the alpha or beta release of this API. This message (suitably marshalled into a protobuf.Any) can be used as the inline_assignment field in a lease; the lease assignment field should simply be `\"admin\"` in these cases. This message is heavily based on Swarming administration tasks from the LUCI project (http://github.com/luci/luci-py/appengine/swarming).", 2239 "id": "GoogleDevtoolsRemoteworkersV1test2AdminTemp", 2240 "properties": { 2241 "arg": { 2242 "description": "The argument to the admin action; see `Command` for semantics.", 2243 "type": "string" 2244 }, 2245 "command": { 2246 "description": "The admin action; see `Command` for legal values.", 2247 "enum": [ 2248 "UNSPECIFIED", 2249 "BOT_UPDATE", 2250 "BOT_RESTART", 2251 "BOT_TERMINATE", 2252 "HOST_RESTART" 2253 ], 2254 "enumDescriptions": [ 2255 "Illegal value.", 2256 "Download and run a new version of the bot. `arg` will be a resource accessible via `ByteStream.Read` to obtain the new bot code.", 2257 "Restart the bot without downloading a new version. `arg` will be a message to log.", 2258 "Shut down the bot. `arg` will be a task resource name (similar to those in tasks.proto) that the bot can use to tell the server that it is terminating.", 2259 "Restart the host computer. `arg` will be a message to log." 2260 ], 2261 "type": "string" 2262 } 2263 }, 2264 "type": "object" 2265 }, 2266 "GoogleDevtoolsRemoteworkersV1test2Blob": { 2267 "description": "Describes a blob of binary content with its digest.", 2268 "id": "GoogleDevtoolsRemoteworkersV1test2Blob", 2269 "properties": { 2270 "contents": { 2271 "description": "The contents of the blob.", 2272 "format": "byte", 2273 "type": "string" 2274 }, 2275 "digest": { 2276 "$ref": "GoogleDevtoolsRemoteworkersV1test2Digest", 2277 "description": "The digest of the blob. This should be verified by the receiver." 2278 } 2279 }, 2280 "type": "object" 2281 }, 2282 "GoogleDevtoolsRemoteworkersV1test2CommandOutputs": { 2283 "description": "DEPRECATED - use CommandResult instead. Describes the actual outputs from the task.", 2284 "id": "GoogleDevtoolsRemoteworkersV1test2CommandOutputs", 2285 "properties": { 2286 "exitCode": { 2287 "description": "exit_code is only fully reliable if the status' code is OK. If the task exceeded its deadline or was cancelled, the process may still produce an exit code as it is cancelled, and this will be populated, but a successful (zero) is unlikely to be correct unless the status code is OK.", 2288 "format": "int32", 2289 "type": "integer" 2290 }, 2291 "outputs": { 2292 "$ref": "GoogleDevtoolsRemoteworkersV1test2Digest", 2293 "description": "The output files. The blob referenced by the digest should contain one of the following (implementation-dependent): * A marshalled DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file" 2294 } 2295 }, 2296 "type": "object" 2297 }, 2298 "GoogleDevtoolsRemoteworkersV1test2CommandOverhead": { 2299 "description": "DEPRECATED - use CommandResult instead. Can be used as part of CompleteRequest.metadata, or are part of a more sophisticated message.", 2300 "id": "GoogleDevtoolsRemoteworkersV1test2CommandOverhead", 2301 "properties": { 2302 "duration": { 2303 "description": "The elapsed time between calling Accept and Complete. The server will also have its own idea of what this should be, but this excludes the overhead of the RPCs and the bot response time.", 2304 "format": "google-duration", 2305 "type": "string" 2306 }, 2307 "overhead": { 2308 "description": "The amount of time *not* spent executing the command (ie uploading/downloading files).", 2309 "format": "google-duration", 2310 "type": "string" 2311 } 2312 }, 2313 "type": "object" 2314 }, 2315 "GoogleDevtoolsRemoteworkersV1test2CommandResult": { 2316 "description": "All information about the execution of a command, suitable for providing as the Bots interface's `Lease.result` field.", 2317 "id": "GoogleDevtoolsRemoteworkersV1test2CommandResult", 2318 "properties": { 2319 "duration": { 2320 "description": "The elapsed time between calling Accept and Complete. The server will also have its own idea of what this should be, but this excludes the overhead of the RPCs and the bot response time.", 2321 "format": "google-duration", 2322 "type": "string" 2323 }, 2324 "exitCode": { 2325 "description": "The exit code of the process. An exit code of \"0\" should only be trusted if `status` has a code of OK (otherwise it may simply be unset).", 2326 "format": "int32", 2327 "type": "integer" 2328 }, 2329 "metadata": { 2330 "description": "Implementation-dependent metadata about the task. Both servers and bots may define messages which can be encoded here; bots are free to provide metadata in multiple formats, and servers are free to choose one or more of the values to process and ignore others. In particular, it is *not* considered an error for the bot to provide the server with a field that it doesn't know about.", 2331 "items": { 2332 "additionalProperties": { 2333 "description": "Properties of the object. Contains field @type with type URL.", 2334 "type": "any" 2335 }, 2336 "type": "object" 2337 }, 2338 "type": "array" 2339 }, 2340 "outputs": { 2341 "$ref": "GoogleDevtoolsRemoteworkersV1test2Digest", 2342 "description": "The output files. The blob referenced by the digest should contain one of the following (implementation-dependent): * A marshalled DirectoryMetadata of the returned filesystem * A LUCI-style .isolated file" 2343 }, 2344 "overhead": { 2345 "description": "The amount of time *not* spent executing the command (ie uploading/downloading files).", 2346 "format": "google-duration", 2347 "type": "string" 2348 }, 2349 "status": { 2350 "$ref": "GoogleRpcStatus", 2351 "description": "An overall status for the command. For example, if the command timed out, this might have a code of DEADLINE_EXCEEDED; if it was killed by the OS for memory exhaustion, it might have a code of RESOURCE_EXHAUSTED." 2352 } 2353 }, 2354 "type": "object" 2355 }, 2356 "GoogleDevtoolsRemoteworkersV1test2CommandTask": { 2357 "description": "Describes a shell-style task to execute, suitable for providing as the Bots interface's `Lease.payload` field.", 2358 "id": "GoogleDevtoolsRemoteworkersV1test2CommandTask", 2359 "properties": { 2360 "expectedOutputs": { 2361 "$ref": "GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs", 2362 "description": "The expected outputs from the task." 2363 }, 2364 "inputs": { 2365 "$ref": "GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs", 2366 "description": "The inputs to the task." 2367 }, 2368 "timeouts": { 2369 "$ref": "GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts", 2370 "description": "The timeouts of this task." 2371 } 2372 }, 2373 "type": "object" 2374 }, 2375 "GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs": { 2376 "description": "Describes the inputs to a shell-style task.", 2377 "id": "GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs", 2378 "properties": { 2379 "arguments": { 2380 "description": "The command itself to run (e.g., argv). This field should be passed directly to the underlying operating system, and so it must be sensible to that operating system. For example, on Windows, the first argument might be \"C:\\Windows\\System32\\ping.exe\" - that is, using drive letters and backslashes. A command for a *nix system, on the other hand, would use forward slashes. All other fields in the RWAPI must consistently use forward slashes, since those fields may be interpretted by both the service and the bot.", 2381 "items": { 2382 "type": "string" 2383 }, 2384 "type": "array" 2385 }, 2386 "environmentVariables": { 2387 "description": "All environment variables required by the task.", 2388 "items": { 2389 "$ref": "GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable" 2390 }, 2391 "type": "array" 2392 }, 2393 "files": { 2394 "description": "The input filesystem to be set up prior to the task beginning. The contents should be a repeated set of FileMetadata messages though other formats are allowed if better for the implementation (eg, a LUCI-style .isolated file). This field is repeated since implementations might want to cache the metadata, in which case it may be useful to break up portions of the filesystem that change frequently (eg, specific input files) from those that don't (eg, standard header files).", 2395 "items": { 2396 "$ref": "GoogleDevtoolsRemoteworkersV1test2Digest" 2397 }, 2398 "type": "array" 2399 }, 2400 "inlineBlobs": { 2401 "description": "Inline contents for blobs expected to be needed by the bot to execute the task. For example, contents of entries in `files` or blobs that are indirectly referenced by an entry there. The bot should check against this list before downloading required task inputs to reduce the number of communications between itself and the remote CAS server.", 2402 "items": { 2403 "$ref": "GoogleDevtoolsRemoteworkersV1test2Blob" 2404 }, 2405 "type": "array" 2406 }, 2407 "workingDirectory": { 2408 "description": "Directory from which a command is executed. It is a relative directory with respect to the bot's working directory (i.e., \"./\"). If it is non-empty, then it must exist under \"./\". Otherwise, \"./\" will be used.", 2409 "type": "string" 2410 } 2411 }, 2412 "type": "object" 2413 }, 2414 "GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable": { 2415 "description": "An environment variable required by this task.", 2416 "id": "GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable", 2417 "properties": { 2418 "name": { 2419 "description": "The envvar name.", 2420 "type": "string" 2421 }, 2422 "value": { 2423 "description": "The envvar value.", 2424 "type": "string" 2425 } 2426 }, 2427 "type": "object" 2428 }, 2429 "GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs": { 2430 "description": "Describes the expected outputs of the command.", 2431 "id": "GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs", 2432 "properties": { 2433 "directories": { 2434 "description": "A list of expected directories, relative to the execution root. All paths MUST be delimited by forward slashes.", 2435 "items": { 2436 "type": "string" 2437 }, 2438 "type": "array" 2439 }, 2440 "files": { 2441 "description": "A list of expected files, relative to the execution root. All paths MUST be delimited by forward slashes.", 2442 "items": { 2443 "type": "string" 2444 }, 2445 "type": "array" 2446 }, 2447 "stderrDestination": { 2448 "description": "The destination to which any stderr should be sent. The method by which the bot should send the stream contents to that destination is not defined in this API. As examples, the destination could be a file referenced in the `files` field in this message, or it could be a URI that must be written via the ByteStream API.", 2449 "type": "string" 2450 }, 2451 "stdoutDestination": { 2452 "description": "The destination to which any stdout should be sent. The method by which the bot should send the stream contents to that destination is not defined in this API. As examples, the destination could be a file referenced in the `files` field in this message, or it could be a URI that must be written via the ByteStream API.", 2453 "type": "string" 2454 } 2455 }, 2456 "type": "object" 2457 }, 2458 "GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts": { 2459 "description": "Describes the timeouts associated with this task.", 2460 "id": "GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts", 2461 "properties": { 2462 "execution": { 2463 "description": "This specifies the maximum time that the task can run, excluding the time required to download inputs or upload outputs. That is, the worker will terminate the task if it runs longer than this.", 2464 "format": "google-duration", 2465 "type": "string" 2466 }, 2467 "idle": { 2468 "description": "This specifies the maximum amount of time the task can be idle - that is, go without generating some output in either stdout or stderr. If the process is silent for more than the specified time, the worker will terminate the task.", 2469 "format": "google-duration", 2470 "type": "string" 2471 }, 2472 "shutdown": { 2473 "description": "If the execution or IO timeouts are exceeded, the worker will try to gracefully terminate the task and return any existing logs. However, tasks may be hard-frozen in which case this process will fail. This timeout specifies how long to wait for a terminated task to shut down gracefully (e.g. via SIGTERM) before we bring down the hammer (e.g. SIGKILL on *nix, CTRL_BREAK_EVENT on Windows).", 2474 "format": "google-duration", 2475 "type": "string" 2476 } 2477 }, 2478 "type": "object" 2479 }, 2480 "GoogleDevtoolsRemoteworkersV1test2Digest": { 2481 "description": "The CommandTask and CommandResult messages assume the existence of a service that can serve blobs of content, identified by a hash and size known as a \"digest.\" The method by which these blobs may be retrieved is not specified here, but a model implementation is in the Remote Execution API's \"ContentAddressibleStorage\" interface. In the context of the RWAPI, a Digest will virtually always refer to the contents of a file or a directory. The latter is represented by the byte-encoded Directory message.", 2482 "id": "GoogleDevtoolsRemoteworkersV1test2Digest", 2483 "properties": { 2484 "hash": { 2485 "description": "A string-encoded hash (eg \"1a2b3c\", not the byte array [0x1a, 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg SHA-256).", 2486 "type": "string" 2487 }, 2488 "sizeBytes": { 2489 "description": "The size of the contents. While this is not strictly required as part of an identifier (after all, any given hash will have exactly one canonical size), it's useful in almost all cases when one might want to send or retrieve blobs of content and is included here for this reason.", 2490 "format": "int64", 2491 "type": "string" 2492 } 2493 }, 2494 "type": "object" 2495 }, 2496 "GoogleDevtoolsRemoteworkersV1test2Directory": { 2497 "description": "The contents of a directory. Similar to the equivalent message in the Remote Execution API.", 2498 "id": "GoogleDevtoolsRemoteworkersV1test2Directory", 2499 "properties": { 2500 "directories": { 2501 "description": "Any subdirectories", 2502 "items": { 2503 "$ref": "GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata" 2504 }, 2505 "type": "array" 2506 }, 2507 "files": { 2508 "description": "The files in this directory", 2509 "items": { 2510 "$ref": "GoogleDevtoolsRemoteworkersV1test2FileMetadata" 2511 }, 2512 "type": "array" 2513 } 2514 }, 2515 "type": "object" 2516 }, 2517 "GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata": { 2518 "description": "The metadata for a directory. Similar to the equivalent message in the Remote Execution API.", 2519 "id": "GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata", 2520 "properties": { 2521 "digest": { 2522 "$ref": "GoogleDevtoolsRemoteworkersV1test2Digest", 2523 "description": "A pointer to the contents of the directory, in the form of a marshalled Directory message." 2524 }, 2525 "path": { 2526 "description": "The path of the directory, as in FileMetadata.path.", 2527 "type": "string" 2528 } 2529 }, 2530 "type": "object" 2531 }, 2532 "GoogleDevtoolsRemoteworkersV1test2FileMetadata": { 2533 "description": "The metadata for a file. Similar to the equivalent message in the Remote Execution API.", 2534 "id": "GoogleDevtoolsRemoteworkersV1test2FileMetadata", 2535 "properties": { 2536 "contents": { 2537 "description": "If the file is small enough, its contents may also or alternatively be listed here.", 2538 "format": "byte", 2539 "type": "string" 2540 }, 2541 "digest": { 2542 "$ref": "GoogleDevtoolsRemoteworkersV1test2Digest", 2543 "description": "A pointer to the contents of the file. The method by which a client retrieves the contents from a CAS system is not defined here." 2544 }, 2545 "isExecutable": { 2546 "description": "Properties of the file", 2547 "type": "boolean" 2548 }, 2549 "path": { 2550 "description": "The path of this file. If this message is part of the CommandOutputs.outputs fields, the path is relative to the execution root and must correspond to an entry in CommandTask.outputs.files. If this message is part of a Directory message, then the path is relative to the root of that directory. All paths MUST be delimited by forward slashes.", 2551 "type": "string" 2552 } 2553 }, 2554 "type": "object" 2555 }, 2556 "GoogleLongrunningOperation": { 2557 "description": "This resource represents a long-running operation that is the result of a network API call.", 2558 "id": "GoogleLongrunningOperation", 2559 "properties": { 2560 "done": { 2561 "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", 2562 "type": "boolean" 2563 }, 2564 "error": { 2565 "$ref": "GoogleRpcStatus", 2566 "description": "The error result of the operation in case of failure or cancellation." 2567 }, 2568 "metadata": { 2569 "additionalProperties": { 2570 "description": "Properties of the object. Contains field @type with type URL.", 2571 "type": "any" 2572 }, 2573 "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", 2574 "type": "object" 2575 }, 2576 "name": { 2577 "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", 2578 "type": "string" 2579 }, 2580 "response": { 2581 "additionalProperties": { 2582 "description": "Properties of the object. Contains field @type with type URL.", 2583 "type": "any" 2584 }, 2585 "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", 2586 "type": "object" 2587 } 2588 }, 2589 "type": "object" 2590 }, 2591 "GoogleRpcStatus": { 2592 "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", 2593 "id": "GoogleRpcStatus", 2594 "properties": { 2595 "code": { 2596 "description": "The status code, which should be an enum value of google.rpc.Code.", 2597 "format": "int32", 2598 "type": "integer" 2599 }, 2600 "details": { 2601 "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", 2602 "items": { 2603 "additionalProperties": { 2604 "description": "Properties of the object. Contains field @type with type URL.", 2605 "type": "any" 2606 }, 2607 "type": "object" 2608 }, 2609 "type": "array" 2610 }, 2611 "message": { 2612 "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", 2613 "type": "string" 2614 } 2615 }, 2616 "type": "object" 2617 } 2618 }, 2619 "servicePath": "", 2620 "title": "Remote Build Execution API", 2621 "version": "v2", 2622 "version_module": true 2623}