Movatterモバイル変換


[0]ホーム

URL:


remotebuildexecution

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:15Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package remotebuildexecution provides access to the Remote Build Execution API.

For product documentation, see:https://cloud.google.com/remote-build-execution/docs/

Creating a client

Usage example:

import "google.golang.org/api/remotebuildexecution/v2"...ctx := context.Background()remotebuildexecutionService, err := remotebuildexecution.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seehttps://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud Platform dataCloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeActionResultsGetCall

type ActionResultsGetCall struct {// contains filtered or unexported fields}

func (*ActionResultsGetCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*ActionResultsGetCall)Do

Do executes the "remotebuildexecution.actionResults.get" call.Exactly one of *BuildBazelRemoteExecutionV2ActionResult or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*BuildBazelRemoteExecutionV2ActionResult.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*ActionResultsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*ActionResultsGetCall)Header

func (c *ActionResultsGetCall) Header()http.Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*ActionResultsGetCall)IfNoneMatch

func (c *ActionResultsGetCall) IfNoneMatch(entityTagstring) *ActionResultsGetCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

func (*ActionResultsGetCall)InlineOutputFilesadded inv0.7.0

func (c *ActionResultsGetCall) InlineOutputFiles(inlineOutputFiles ...string) *ActionResultsGetCall

InlineOutputFiles sets the optional parameter "inlineOutputFiles": Ahint 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 theCommand message.

func (*ActionResultsGetCall)InlineStderradded inv0.7.0

func (c *ActionResultsGetCall) InlineStderr(inlineStderrbool) *ActionResultsGetCall

InlineStderr sets the optional parameter "inlineStderr": A hint tothe server to request inlining stderr in the ActionResult message.

func (*ActionResultsGetCall)InlineStdoutadded inv0.7.0

func (c *ActionResultsGetCall) InlineStdout(inlineStdoutbool) *ActionResultsGetCall

InlineStdout sets the optional parameter "inlineStdout": A hint tothe server to request inlining stdout in the ActionResult message.

typeActionResultsService

type ActionResultsService struct {// contains filtered or unexported fields}

funcNewActionResultsService

func NewActionResultsService(s *Service) *ActionResultsService

func (*ActionResultsService)Get

func (r *ActionResultsService) Get(instanceNamestring, hashstring, sizeBytesint64) *ActionResultsGetCall

Get: Retrieve a cached execution result. Implementations SHOULDensure that any blobs referenced from the ContentAddressableStorageare available at the time of returning the ActionResult and will befor some period of time afterwards. The lifetimes of the referencedblobs SHOULD be increased if necessary and applicable. Errors: *`NOT_FOUND`: The requested `ActionResult` is not in the cache.

  • hash: The hash. In the case of SHA-256, it will always be alowercase hex string exactly 64 characters long.
  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.
  • sizeBytes: The size of the blob, in bytes.

func (*ActionResultsService)Update

func (r *ActionResultsService) Update(instanceNamestring, hashstring, sizeBytesint64, buildbazelremoteexecutionv2actionresult *BuildBazelRemoteExecutionV2ActionResult) *ActionResultsUpdateCall

Update: Upload a new execution result. In order to allow the serverto perform access control based on the type of action, and to assistwith client debugging, the client MUST first upload the Action thatproduced the result, along with its Command, into the`ContentAddressableStorage`. Server implementations MAY modify the`UpdateActionResultRequest.action_result` and return an equivalentvalue. Errors: * `INVALID_ARGUMENT`: One or more arguments areinvalid. * `FAILED_PRECONDITION`: One or more errors occurred inupdating the action result, such as a missing command or action. *`RESOURCE_EXHAUSTED`: There is insufficient storage space to add theentry to the cache.

  • hash: The hash. In the case of SHA-256, it will always be alowercase hex string exactly 64 characters long.
  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.
  • sizeBytes: The size of the blob, in bytes.

typeActionResultsUpdateCall

type ActionResultsUpdateCall struct {// contains filtered or unexported fields}

func (*ActionResultsUpdateCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*ActionResultsUpdateCall)Do

Do executes the "remotebuildexecution.actionResults.update" call.Exactly one of *BuildBazelRemoteExecutionV2ActionResult or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*BuildBazelRemoteExecutionV2ActionResult.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*ActionResultsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*ActionResultsUpdateCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*ActionResultsUpdateCall)ResultsCachePolicyPriority

func (c *ActionResultsUpdateCall) ResultsCachePolicyPriority(resultsCachePolicyPriorityint64) *ActionResultsUpdateCall

ResultsCachePolicyPriority sets the optional parameter"resultsCachePolicy.priority": The priority (relative importance) ofthis content in the overall cache. Generally, a lower value means alonger retention time or other advantage, but the interpretation of agiven value is server-dependent. A priority of 0 means a *default*value, decided by the server. The particular semantics of this fieldis up to the server. In particular, every server will have their ownsupported range of priorities, and will decide how these map intoretention/eviction policy.

typeActionsExecuteCall

type ActionsExecuteCall struct {// contains filtered or unexported fields}

func (*ActionsExecuteCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*ActionsExecuteCall)Do

Do executes the "remotebuildexecution.actions.execute" call.Exactly one of *GoogleLongrunningOperation or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*ActionsExecuteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*ActionsExecuteCall)Header

func (c *ActionsExecuteCall) Header()http.Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

typeActionsService

type ActionsService struct {// contains filtered or unexported fields}

funcNewActionsService

func NewActionsService(s *Service) *ActionsService

func (*ActionsService)Execute

func (r *ActionsService) Execute(instanceNamestring, buildbazelremoteexecutionv2executerequest *BuildBazelRemoteExecutionV2ExecuteRequest) *ActionsExecuteCall

Execute: 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 willrun the action and eventually return the result. The input `Action`'sfields MUST meet the various canonicalization requirements specifiedin the documentation for their types so that it has the same digestas other logically equivalent `Action`s. The server MAY enforce therequirements and return errors if a non-canonical input is received.It MAY also proceed without verifying some or all of therequirements, such as for performance reasons. If the server does notverify the requirement, then it will treat the `Action` as distinctfrom another logically equivalent action if they hash differently.Returns a stream of google.longrunning.Operation messages describingthe 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 returnedafter the server, then updates are streamed as if the client hadcalled WaitExecution until the execution completes or the requestreaches an error. The operation can also be queried using OperationsAPI. The server NEED NOT implement other methods or functionality ofthe Operations API. Errors discovered during creation of the`Operation` will be reported as gRPC Status errors, while errors thatoccurred 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 theaction requested, such as a missing input or command or no workerbeing available. The client may be able to fix the errors and retry.* `RESOURCE_EXHAUSTED`: There is insufficient quota of some resourceto run the action. * `UNAVAILABLE`: Due to a transient condition,such as all workers being occupied (and the server does not support aqueue), the action could not be started. The client should retry. *`INTERNAL`: An internal error occurred in the execution engine or theworker. * `DEADLINE_EXCEEDED`: The execution timed out. *`CANCELLED`: The operation was cancelled by the client. This statusis only possible if the server implements the Operations APICancelOperation method, and it was called for the current execution.In the case of a missing input or command, the server SHOULDadditionally send a PreconditionFailure error detail where, for eachrequested 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 needto guarantee that a call to this method leads to at most oneexecution of the action. The server MAY execute the action multipletimes, potentially in parallel. These redundant executions MAYcontinue to run, even if the operation is completed.

  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.

typeBlobsBatchReadCall

type BlobsBatchReadCall struct {// contains filtered or unexported fields}

func (*BlobsBatchReadCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*BlobsBatchReadCall)Do

Do executes the "remotebuildexecution.blobs.batchRead" call.Exactly one of *BuildBazelRemoteExecutionV2BatchReadBlobsResponse orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*BuildBazelRemoteExecutionV2BatchReadBlobsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*BlobsBatchReadCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*BlobsBatchReadCall)Header

func (c *BlobsBatchReadCall) Header()http.Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

typeBlobsBatchUpdateCall

type BlobsBatchUpdateCall struct {// contains filtered or unexported fields}

func (*BlobsBatchUpdateCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*BlobsBatchUpdateCall)Do

Do executes the "remotebuildexecution.blobs.batchUpdate" call.Exactly one of *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseor error will be non-nil. Any non-2xx status code is an error.Response headers are in either*BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*BlobsBatchUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*BlobsBatchUpdateCall)Header

func (c *BlobsBatchUpdateCall) Header()http.Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

typeBlobsFindMissingCall

type BlobsFindMissingCall struct {// contains filtered or unexported fields}

func (*BlobsFindMissingCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*BlobsFindMissingCall)Do

Do executes the "remotebuildexecution.blobs.findMissing" call.Exactly one of *BuildBazelRemoteExecutionV2FindMissingBlobsResponseor error will be non-nil. Any non-2xx status code is an error.Response headers are in either*BuildBazelRemoteExecutionV2FindMissingBlobsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*BlobsFindMissingCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*BlobsFindMissingCall)Header

func (c *BlobsFindMissingCall) Header()http.Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

typeBlobsGetTreeCall

type BlobsGetTreeCall struct {// contains filtered or unexported fields}

func (*BlobsGetTreeCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*BlobsGetTreeCall)Do

Do executes the "remotebuildexecution.blobs.getTree" call.Exactly one of *BuildBazelRemoteExecutionV2GetTreeResponse or errorwill be non-nil. Any non-2xx status code is an error. Responseheaders are in either*BuildBazelRemoteExecutionV2GetTreeResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*BlobsGetTreeCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*BlobsGetTreeCall)Header

func (c *BlobsGetTreeCall) Header()http.Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*BlobsGetTreeCall)IfNoneMatch

func (c *BlobsGetTreeCall) IfNoneMatch(entityTagstring) *BlobsGetTreeCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

func (*BlobsGetTreeCall)PageSize

func (c *BlobsGetTreeCall) PageSize(pageSizeint64) *BlobsGetTreeCall

PageSize sets the optional parameter "pageSize": A maximum page sizeto request. If present, the server will request no more than thismany items. Regardless of whether a page size is specified, theserver may place its own limit on the number of items to be returnedand require the client to retrieve more items using a subsequentrequest.

func (*BlobsGetTreeCall)PageToken

func (c *BlobsGetTreeCall) PageToken(pageTokenstring) *BlobsGetTreeCall

PageToken sets the optional parameter "pageToken": A page token,which must be a value received in a previous GetTreeResponse. Ifpresent, the server will use that token as an offset, returning onlythat page and the ones that succeed it.

func (*BlobsGetTreeCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeBlobsService

type BlobsService struct {// contains filtered or unexported fields}

funcNewBlobsService

func NewBlobsService(s *Service) *BlobsService

func (*BlobsService)BatchRead

func (r *BlobsService) BatchRead(instanceNamestring, buildbazelremoteexecutionv2batchreadblobsrequest *BuildBazelRemoteExecutionV2BatchReadBlobsRequest) *BlobsBatchReadCall

BatchRead: Download many blobs at once. The server may enforce alimit of the combined total size of blobs to be downloaded using thisAPI. This limit may be obtained using the Capabilities API. Requestsexceeding the limit should either be split into smaller chunks ordownloaded using the ByteStream API, as appropriate. This request isequivalent to calling a Bytestream `Read` request on each individualblob, in parallel. The requests may succeed or fail independently.Errors: * `INVALID_ARGUMENT`: The client attempted to read more thanthe server supported limit. Every error on individual read will bereturned in the corresponding digest status.

  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.

func (*BlobsService)BatchUpdate

func (r *BlobsService) BatchUpdate(instanceNamestring, buildbazelremoteexecutionv2batchupdateblobsrequest *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest) *BlobsBatchUpdateCall

BatchUpdate: Upload many blobs at once. The server may enforce alimit of the combined total size of blobs to be uploaded using thisAPI. This limit may be obtained using the Capabilities API. Requestsexceeding the limit should either be split into smaller chunks oruploaded using the ByteStream API, as appropriate. This request isequivalent to calling a Bytestream `Write` request on each individualblob, in parallel. The requests may succeed or fail independently.Errors: * `INVALID_ARGUMENT`: The client attempted to upload morethan the server supported limit. Individual requests may return thefollowing errors, additionally: * `RESOURCE_EXHAUSTED`: There isinsufficient disk quota to store the blob. * `INVALID_ARGUMENT`: TheDigest does not match the provided data.

  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.

func (*BlobsService)FindMissing

func (r *BlobsService) FindMissing(instanceNamestring, buildbazelremoteexecutionv2findmissingblobsrequest *BuildBazelRemoteExecutionV2FindMissingBlobsRequest) *BlobsFindMissingCall

FindMissing: Determine if blobs are present in the CAS. Clients canuse this API before uploading blobs to determine which ones arealready present in the CAS and do not need to be uploaded again.Servers SHOULD increase the lifetimes of the referenced blobs ifnecessary and applicable. There are no method-specific errors.

  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.

func (*BlobsService)GetTree

func (r *BlobsService) GetTree(instanceNamestring, hashstring, sizeBytesint64) *BlobsGetTreeCall

GetTree: Fetch the entire directory tree rooted at a node. Thisrequest must be targeted at a Directory stored in theContentAddressableStorage (CAS). The server will enumerate the`Directory` tree recursively and return every node descended from theroot. The GetTreeRequest.page_token parameter can be used to skipahead in the stream (e.g. when retrying a partially completed andaborted request), by setting it to a value taken fromGetTreeResponse.next_page_token of the last successfully processedGetTreeResponse). The exact traversal order is unspecified and,unless retrieving subsequent pages from an earlier request, is notguaranteed to be stable across multiple invocations of `GetTree`. Ifpart of the tree is missing from the CAS, the server will return theportion present and omit the rest. Errors: * `NOT_FOUND`: Therequested tree root is not present in the CAS.

  • hash: The hash. In the case of SHA-256, it will always be alowercase hex string exactly 64 characters long.
  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.
  • sizeBytes: The size of the blob, in bytes.

typeBuildBazelRemoteExecutionV2Action

type BuildBazelRemoteExecutionV2Action struct {// CommandDigest: The digest of the Command to run, which MUST be// present in the ContentAddressableStorage.CommandDigest *BuildBazelRemoteExecutionV2Digest `json:"commandDigest,omitempty"`// DoNotCache: If true, then the `Action`'s result cannot be cached, and// in-flight requests for the same `Action` may not be merged.DoNotCachebool `json:"doNotCache,omitempty"`// InputRootDigest: 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.InputRootDigest *BuildBazelRemoteExecutionV2Digest `json:"inputRootDigest,omitempty"`// Platform: 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.Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"`// Salt: 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.Saltstring `json:"salt,omitempty"`// Timeout: 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.Timeoutstring `json:"timeout,omitempty"`// ForceSendFields is a list of field names (e.g. "CommandDigest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommandDigest") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2Action: An `Action` captures all theinformation 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 theexecution service. `Action`s can be succinctly identified by thedigest of their wire format encoding and, once an `Action` has beenexecuted, will be cached in the action cache. Future requests canthen use the cached result rather than needing to run afresh. When aserver completes execution of an Action, it MAY choose to cache theresult in the ActionCache unless `do_not_cache` is `true`. ClientsSHOULD expect the server to do so. By default, future calls toExecute the same `Action` will also serve their results from thecache. Clients must take care to understand the caching behaviour.Ideally, all `Action`s will be reproducible so that serving a resultfrom cache is always desirable and correct.

func (*BuildBazelRemoteExecutionV2Action)MarshalJSON

func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities

type BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities struct {UpdateEnabledbool `json:"updateEnabled,omitempty"`// ForceSendFields is a list of field names (e.g. "UpdateEnabled") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UpdateEnabled") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities: Describesthe server/instance capabilities for updating the action cache.

func (*BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities)MarshalJSON

typeBuildBazelRemoteExecutionV2ActionResult

type BuildBazelRemoteExecutionV2ActionResult struct {// ExecutionMetadata: The details of the execution that originally// produced this result.ExecutionMetadata *BuildBazelRemoteExecutionV2ExecutedActionMetadata `json:"executionMetadata,omitempty"`// ExitCode: The exit code of the command.ExitCodeint64 `json:"exitCode,omitempty"`// OutputDirectories: 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.OutputDirectories []*BuildBazelRemoteExecutionV2OutputDirectory `json:"outputDirectories,omitempty"`// OutputDirectorySymlinks: 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`.OutputDirectorySymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputDirectorySymlinks,omitempty"`// OutputFileSymlinks: 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`.OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"`// OutputFiles: 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.OutputFiles []*BuildBazelRemoteExecutionV2OutputFile `json:"outputFiles,omitempty"`// OutputSymlinks: 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.OutputSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputSymlinks,omitempty"`// StderrDigest: The digest for a blob containing the standard error of// the action, which can be retrieved from the// ContentAddressableStorage.StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"`// StderrRaw: 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.StderrRawstring `json:"stderrRaw,omitempty"`// StdoutDigest: The digest for a blob containing the standard output of// the action, which can be retrieved from the// ContentAddressableStorage.StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"`// StdoutRaw: 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.StdoutRawstring `json:"stdoutRaw,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionMetadata")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionMetadata") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ActionResult: An ActionResult representsthe result of an Action being run. It is advised that at least onefield (for example `ActionResult.execution_metadata.Worker`) have anon-default value, to ensure that the serialized value is non-empty,which can then be used as a basic data sanity check.

func (*BuildBazelRemoteExecutionV2ActionResult)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchReadBlobsRequest

type BuildBazelRemoteExecutionV2BatchReadBlobsRequest struct {// Digests: The individual blob digests.Digests []*BuildBazelRemoteExecutionV2Digest `json:"digests,omitempty"`// ForceSendFields is a list of field names (e.g. "Digests") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digests") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchReadBlobsRequest: A request messagefor ContentAddressableStorage.BatchReadBlobs.

func (*BuildBazelRemoteExecutionV2BatchReadBlobsRequest)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchReadBlobsResponse

type BuildBazelRemoteExecutionV2BatchReadBlobsResponse struct {// Responses: The responses to the requests.Responses []*BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse `json:"responses,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Responses") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Responses") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchReadBlobsResponse: A response messagefor ContentAddressableStorage.BatchReadBlobs.

func (*BuildBazelRemoteExecutionV2BatchReadBlobsResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse

type BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse struct {// Data: The raw binary data.Datastring `json:"data,omitempty"`// Digest: The digest to which this response corresponds.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// Status: The result of attempting to download that blob.Status *GoogleRpcStatus `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Data") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Data") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse: A responsecorresponding to a single blob that the client tried to download.

func (*BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest

type BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest struct {// Requests: The individual upload requests.Requests []*BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest `json:"requests,omitempty"`// ForceSendFields is a list of field names (e.g. "Requests") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Requests") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest: A request messagefor ContentAddressableStorage.BatchUpdateBlobs.

func (*BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest

type BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest struct {// Data: The raw binary data.Datastring `json:"data,omitempty"`// Digest: The digest of the blob. This MUST be the digest of `data`.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// ForceSendFields is a list of field names (e.g. "Data") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Data") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest: A requestcorresponding to a single blob that the client wants to upload.

func (*BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse

type BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse struct {// Responses: The responses to the requests.Responses []*BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse `json:"responses,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Responses") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Responses") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse: A responsemessage for ContentAddressableStorage.BatchUpdateBlobs.

func (*BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse

type BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse struct {// Digest: The blob digest to which this response corresponds.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// Status: The result of attempting to upload that blob.Status *GoogleRpcStatus `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Digest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digest") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse: Aresponse corresponding to a single blob that the client tried toupload.

func (*BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2CacheCapabilities

type BuildBazelRemoteExecutionV2CacheCapabilities struct {// ActionCacheUpdateCapabilities: Capabilities for updating the action// cache.ActionCacheUpdateCapabilities *BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities `json:"actionCacheUpdateCapabilities,omitempty"`// CachePriorityCapabilities: Supported cache priority range for both// CAS and ActionCache.CachePriorityCapabilities *BuildBazelRemoteExecutionV2PriorityCapabilities `json:"cachePriorityCapabilities,omitempty"`// DigestFunction: All the digest functions supported by the remote// cache. Remote cache may support multiple digest functions// simultaneously.//// Possible values://   "UNKNOWN" - It is an error for the server to return this value.//   "SHA256" - The SHA-256 digest function.//   "SHA1" - The SHA-1 digest function.//   "MD5" - The MD5 digest function.//   "VSO" - The Microsoft "VSO-Hash" paged SHA256 digest function. See//https://github.com/microsoft/BuildXL/blob/master/Documentation/Specs/PagedHash.md// .//   "SHA384" - The SHA-384 digest function.//   "SHA512" - The SHA-512 digest function.//   "MURMUR3" - 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 .DigestFunction []string `json:"digestFunction,omitempty"`// MaxBatchTotalSizeBytes: 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.MaxBatchTotalSizeBytesint64 `json:"maxBatchTotalSizeBytes,omitempty,string"`// SupportedCompressor: 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.//// Possible values://   "IDENTITY" - No compression. Servers and clients MUST always// support this, and do not need to advertise it.//   "ZSTD" - Zstandard compression.SupportedCompressor []string `json:"supportedCompressor,omitempty"`// SymlinkAbsolutePathStrategy: Whether absolute symlink targets are// supported.//// Possible values://   "UNKNOWN" - Invalid value.//   "DISALLOWED" - 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.//   "ALLOWED" - Server will allow symlink targets to escape the input// root tree, possibly resulting in non-hermetic builds.SymlinkAbsolutePathStrategystring `json:"symlinkAbsolutePathStrategy,omitempty"`// ForceSendFields is a list of field names (e.g.// "ActionCacheUpdateCapabilities") to unconditionally include in API// requests. By default, fields with empty values are omitted from API// requests. However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "ActionCacheUpdateCapabilities") to include in API requests with the// JSON null value. By default, fields with empty values are omitted// from API requests. However, any field with an empty value appearing// in NullFields will be sent to the server as null. It is an error if a// field in this list has a non-empty value. This may be used to include// null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2CacheCapabilities: Capabilities of theremote cache system.

func (*BuildBazelRemoteExecutionV2CacheCapabilities)MarshalJSON

typeBuildBazelRemoteExecutionV2Command

type BuildBazelRemoteExecutionV2Command struct {// Arguments: 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.Arguments []string `json:"arguments,omitempty"`// EnvironmentVariables: 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.EnvironmentVariables []*BuildBazelRemoteExecutionV2CommandEnvironmentVariable `json:"environmentVariables,omitempty"`// OutputDirectories: 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.OutputDirectories []string `json:"outputDirectories,omitempty"`// OutputFiles: 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.OutputFiles []string `json:"outputFiles,omitempty"`// OutputNodeProperties: 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`.OutputNodeProperties []string `json:"outputNodeProperties,omitempty"`// OutputPaths: 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!OutputPaths []string `json:"outputPaths,omitempty"`// Platform: 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.Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"`// WorkingDirectory: 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.WorkingDirectorystring `json:"workingDirectory,omitempty"`// ForceSendFields is a list of field names (e.g. "Arguments") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Arguments") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2Command: A `Command` is the actual commandexecuted by a worker running an Action and specifications of itsenvironment. Except as otherwise required, the environment (such aswhich system libraries or binaries are available, and whatfilesystems are mounted where) is defined by and specific to theimplementation of the remote execution API.

func (*BuildBazelRemoteExecutionV2Command)MarshalJSON

func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2CommandEnvironmentVariable

type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct {// Name: The variable name.Namestring `json:"name,omitempty"`// Value: The variable value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An`EnvironmentVariable` is one variable to set in the running program'senvironment.

func (*BuildBazelRemoteExecutionV2CommandEnvironmentVariable)MarshalJSON

typeBuildBazelRemoteExecutionV2Digest

type BuildBazelRemoteExecutionV2Digest struct {// Hash: The hash. In the case of SHA-256, it will always be a lowercase// hex string exactly 64 characters long.Hashstring `json:"hash,omitempty"`// SizeBytes: The size of the blob, in bytes.SizeBytesint64 `json:"sizeBytes,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Hash") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Hash") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2Digest: A content digest. A digest for agiven blob consists of the size of the blob and its hash. The hashalgorithm to use is defined by the server. The size is considered tobe an integral part of the digest and cannot be separated. That is,even if the `hash` field is correctly specified but `size_bytes` isnot, the server MUST reject the request. The reason for including thesize in the digest is as follows: in a great many cases, the serverneeds to know the size of the blob it is about to work with prior tostarting an operation with it, such as flattening Merkle treestructures or streaming it to a worker. Technically, the server couldimplement a separate metadata store, but this results in asignificantly more complicated implementation as opposed to havingthe client specify the size up-front (or storing the size along withthe digest in every message where digests are embedded). This doesmean that the API leaks some implementation details of (what weconsider to be) a reasonable server implementation, but we considerthis to be a worthwhile tradeoff. When a `Digest` is used to refer toa proto message, it always refers to the message in binary encodedform. To ensure consistent hashing, clients and servers MUST ensurethat they serialize messages according to the following rules, evenif there are alternate valid encodings for the same message: * Fieldsare serialized in tag order. * There are no unknown fields. * Thereare no duplicate fields. * Fields are serialized according to thedefault semantics for their type. Most protocol bufferimplementations will always follow these rules when serializing, butcare should be taken to avoid shortcuts. For instance, concatenatingtwo messages to merge them may produce duplicate fields.

func (*BuildBazelRemoteExecutionV2Digest)MarshalJSON

func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2Directory

type BuildBazelRemoteExecutionV2Directory struct {// Directories: The subdirectories in the directory.Directories []*BuildBazelRemoteExecutionV2DirectoryNode `json:"directories,omitempty"`// Files: The files in the directory.Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"`NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`// Symlinks: The symlinks in the directory.Symlinks []*BuildBazelRemoteExecutionV2SymlinkNode `json:"symlinks,omitempty"`// ForceSendFields is a list of field names (e.g. "Directories") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Directories") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2Directory: A `Directory` represents adirectory node in a file tree, containing zero or more childrenFileNodes, DirectoryNodes and SymlinkNodes. Each `Node` contains itsname in the directory, either the digest of its content (either afile blob or a `Directory` proto) or a symlink target, as well aspossibly some metadata about the file or directory. In order toensure 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 ofexactly one segment. Multiple levels of directory hierarchy may notbe collapsed. * Each child in the directory must have a unique pathsegment (file name). Note that while the API itself iscase-sensitive, the environment where the Action is executed may ormay not be case-sensitive. That is, it is legal to call the API witha Directory that has both "Foo" and "foo" as children, but the Actionmay be rejected by the remote system upon execution. * The files,directories and symlinks in the directory must each be sorted inlexicographical order by path. The path strings must be sorted bycode point, equivalently, by UTF-8 bytes. * The NodeProperties offiles, directories, and symlinks must be sorted in lexicographicalorder by property name. A `Directory` that obeys the restrictions issaid to be in canonical form. As an example, the following could beused for a file named `bar` and a directory named `foo` with anexecutable 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 } ] } ```

func (*BuildBazelRemoteExecutionV2Directory)MarshalJSON

func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2DirectoryNode

type BuildBazelRemoteExecutionV2DirectoryNode struct {// Digest: The digest of the Directory object represented. See Digest// for information about how to take the digest of a proto message.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// Name: The name of the directory.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Digest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digest") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode`represents a child of a Directory which is itself a `Directory` andits associated metadata.

func (*BuildBazelRemoteExecutionV2DirectoryNode)MarshalJSON

typeBuildBazelRemoteExecutionV2ExecuteOperationMetadata

type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct {// ActionDigest: The digest of the Action being executed.ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"`// Stage: The current stage of execution.//// Possible values://   "UNKNOWN" - Invalid value.//   "CACHE_CHECK" - Checking the result against the cache.//   "QUEUED" - Currently idle, awaiting a free machine to execute.//   "EXECUTING" - Currently being executed by a worker.//   "COMPLETED" - Finished execution.Stagestring `json:"stage,omitempty"`// StderrStreamName: If set, the client can use this resource name with// ByteStream.Read to stream the standard error from the endpoint// hosting streamed responses.StderrStreamNamestring `json:"stderrStreamName,omitempty"`// StdoutStreamName: If set, the client can use this resource name with// ByteStream.Read to stream the standard output from the endpoint// hosting streamed responses.StdoutStreamNamestring `json:"stdoutStreamName,omitempty"`// ForceSendFields is a list of field names (e.g. "ActionDigest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionDigest") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata aboutan ongoing execution, which will be contained in the metadata fieldof the Operation.

func (*BuildBazelRemoteExecutionV2ExecuteOperationMetadata)MarshalJSON

typeBuildBazelRemoteExecutionV2ExecuteRequest

type BuildBazelRemoteExecutionV2ExecuteRequest struct {// ActionDigest: The digest of the Action to execute.ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"`// ExecutionPolicy: An optional policy for execution of the action. The// server will have a default policy if this is not provided.ExecutionPolicy *BuildBazelRemoteExecutionV2ExecutionPolicy `json:"executionPolicy,omitempty"`// ResultsCachePolicy: 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.ResultsCachePolicy *BuildBazelRemoteExecutionV2ResultsCachePolicy `json:"resultsCachePolicy,omitempty"`// SkipCacheLookup: 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.SkipCacheLookupbool `json:"skipCacheLookup,omitempty"`// ForceSendFields is a list of field names (e.g. "ActionDigest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionDigest") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ExecuteRequest: A request message forExecution.Execute.

func (*BuildBazelRemoteExecutionV2ExecuteRequest)MarshalJSON

typeBuildBazelRemoteExecutionV2ExecuteResponse

type BuildBazelRemoteExecutionV2ExecuteResponse struct {// CachedResult: True if the result was served from cache, false if it// was executed.CachedResultbool `json:"cachedResult,omitempty"`// Message: Freeform informational message with details on the execution// of the action that may be displayed to the user upon failure or when// requested explicitly.Messagestring `json:"message,omitempty"`// Result: The result of the action.Result *BuildBazelRemoteExecutionV2ActionResult `json:"result,omitempty"`// ServerLogs: 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.ServerLogs map[string]BuildBazelRemoteExecutionV2LogFile `json:"serverLogs,omitempty"`// Status: 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.Status *GoogleRpcStatus `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "CachedResult") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CachedResult") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ExecuteResponse: The response message forExecution.Execute, which will be contained in the response field ofthe Operation.

func (*BuildBazelRemoteExecutionV2ExecuteResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2ExecutedActionMetadata

type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct {// AuxiliaryMetadata: 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.AuxiliaryMetadata []googleapi.RawMessage `json:"auxiliaryMetadata,omitempty"`// ExecutionCompletedTimestamp: When the worker completed executing the// action command.ExecutionCompletedTimestampstring `json:"executionCompletedTimestamp,omitempty"`// ExecutionStartTimestamp: When the worker started executing the action// command.ExecutionStartTimestampstring `json:"executionStartTimestamp,omitempty"`// InputFetchCompletedTimestamp: When the worker finished fetching// action inputs.InputFetchCompletedTimestampstring `json:"inputFetchCompletedTimestamp,omitempty"`// InputFetchStartTimestamp: When the worker started fetching action// inputs.InputFetchStartTimestampstring `json:"inputFetchStartTimestamp,omitempty"`// OutputUploadCompletedTimestamp: When the worker finished uploading// action outputs.OutputUploadCompletedTimestampstring `json:"outputUploadCompletedTimestamp,omitempty"`// OutputUploadStartTimestamp: When the worker started uploading action// outputs.OutputUploadStartTimestampstring `json:"outputUploadStartTimestamp,omitempty"`// QueuedTimestamp: When was the action added to the queue.QueuedTimestampstring `json:"queuedTimestamp,omitempty"`// Worker: The name of the worker which ran the execution.Workerstring `json:"worker,omitempty"`// WorkerCompletedTimestamp: When the worker completed the action,// including all stages.WorkerCompletedTimestampstring `json:"workerCompletedTimestamp,omitempty"`// WorkerStartTimestamp: When the worker received the action.WorkerStartTimestampstring `json:"workerStartTimestamp,omitempty"`// ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuxiliaryMetadata") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ExecutedActionMetadata:ExecutedActionMetadata contains details about a completed execution.

func (*BuildBazelRemoteExecutionV2ExecutedActionMetadata)MarshalJSON

typeBuildBazelRemoteExecutionV2ExecutionCapabilities

type BuildBazelRemoteExecutionV2ExecutionCapabilities struct {// DigestFunction: Remote execution may only support a single digest// function.//// Possible values://   "UNKNOWN" - It is an error for the server to return this value.//   "SHA256" - The SHA-256 digest function.//   "SHA1" - The SHA-1 digest function.//   "MD5" - The MD5 digest function.//   "VSO" - The Microsoft "VSO-Hash" paged SHA256 digest function. See//https://github.com/microsoft/BuildXL/blob/master/Documentation/Specs/PagedHash.md// .//   "SHA384" - The SHA-384 digest function.//   "SHA512" - The SHA-512 digest function.//   "MURMUR3" - 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 .DigestFunctionstring `json:"digestFunction,omitempty"`// ExecEnabled: Whether remote execution is enabled for the particular// server/instance.ExecEnabledbool `json:"execEnabled,omitempty"`// ExecutionPriorityCapabilities: Supported execution priority range.ExecutionPriorityCapabilities *BuildBazelRemoteExecutionV2PriorityCapabilities `json:"executionPriorityCapabilities,omitempty"`// SupportedNodeProperties: Supported node properties.SupportedNodeProperties []string `json:"supportedNodeProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "DigestFunction") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DigestFunction") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ExecutionCapabilities: Capabilities of theremote execution system.

func (*BuildBazelRemoteExecutionV2ExecutionCapabilities)MarshalJSON

typeBuildBazelRemoteExecutionV2ExecutionPolicy

type BuildBazelRemoteExecutionV2ExecutionPolicy struct {// Priority: 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.Priorityint64 `json:"priority,omitempty"`// ForceSendFields is a list of field names (e.g. "Priority") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Priority") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ExecutionPolicy: An `ExecutionPolicy` canbe used to control the scheduling of the action.

func (*BuildBazelRemoteExecutionV2ExecutionPolicy)MarshalJSON

typeBuildBazelRemoteExecutionV2FileNode

type BuildBazelRemoteExecutionV2FileNode struct {// Digest: The digest of the file's content.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// IsExecutable: True if file is executable, false otherwise.IsExecutablebool `json:"isExecutable,omitempty"`// Name: The name of the file.Namestring `json:"name,omitempty"`NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "Digest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digest") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a singlefile and associated metadata.

func (*BuildBazelRemoteExecutionV2FileNode)MarshalJSON

func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2FindMissingBlobsRequest

type BuildBazelRemoteExecutionV2FindMissingBlobsRequest struct {// BlobDigests: A list of the blobs to check.BlobDigests []*BuildBazelRemoteExecutionV2Digest `json:"blobDigests,omitempty"`// ForceSendFields is a list of field names (e.g. "BlobDigests") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BlobDigests") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2FindMissingBlobsRequest: A request messagefor ContentAddressableStorage.FindMissingBlobs.

func (*BuildBazelRemoteExecutionV2FindMissingBlobsRequest)MarshalJSON

typeBuildBazelRemoteExecutionV2FindMissingBlobsResponse

type BuildBazelRemoteExecutionV2FindMissingBlobsResponse struct {// MissingBlobDigests: A list of the blobs requested *not* present in// the storage.MissingBlobDigests []*BuildBazelRemoteExecutionV2Digest `json:"missingBlobDigests,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "MissingBlobDigests")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MissingBlobDigests") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2FindMissingBlobsResponse: A responsemessage for ContentAddressableStorage.FindMissingBlobs.

func (*BuildBazelRemoteExecutionV2FindMissingBlobsResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2GetTreeResponse

type BuildBazelRemoteExecutionV2GetTreeResponse struct {// Directories: The directories descended from the requested root.Directories []*BuildBazelRemoteExecutionV2Directory `json:"directories,omitempty"`// NextPageToken: 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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Directories") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Directories") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2GetTreeResponse: A response message forContentAddressableStorage.GetTree.

func (*BuildBazelRemoteExecutionV2GetTreeResponse)MarshalJSON

typeBuildBazelRemoteExecutionV2LogFile

type BuildBazelRemoteExecutionV2LogFile struct {// Digest: The digest of the log contents.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// HumanReadable: 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.HumanReadablebool `json:"humanReadable,omitempty"`// ForceSendFields is a list of field names (e.g. "Digest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digest") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored inthe CAS.

func (*BuildBazelRemoteExecutionV2LogFile)MarshalJSON

func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2NodePropertiesadded inv0.41.0

type BuildBazelRemoteExecutionV2NodeProperties struct {// Mtime: The file's last modification timestamp.Mtimestring `json:"mtime,omitempty"`// Properties: A list of string-based NodeProperties.Properties []*BuildBazelRemoteExecutionV2NodeProperty `json:"properties,omitempty"`// UnixMode: The UNIX file mode, e.g., 0755.UnixModeint64 `json:"unixMode,omitempty"`// ForceSendFields is a list of field names (e.g. "Mtime") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Mtime") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2NodeProperties: Node properties forFileNodes, DirectoryNodes, and SymlinkNodes. The server isresponsible for specifying the properties that it accepts.

func (*BuildBazelRemoteExecutionV2NodeProperties)MarshalJSONadded inv0.41.0

typeBuildBazelRemoteExecutionV2NodePropertyadded inv0.21.0

type BuildBazelRemoteExecutionV2NodeProperty struct {// Name: The property name.Namestring `json:"name,omitempty"`// Value: The property value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2NodeProperty: A single property forFileNodes, DirectoryNodes, and SymlinkNodes. The server isresponsible for specifying the property `name`s that it accepts. Ifpermitted by the server, the same `name` may occur multiple times.

func (*BuildBazelRemoteExecutionV2NodeProperty)MarshalJSONadded inv0.21.0

typeBuildBazelRemoteExecutionV2OutputDirectory

type BuildBazelRemoteExecutionV2OutputDirectory struct {// Path: 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.Pathstring `json:"path,omitempty"`// TreeDigest: The digest of the encoded Tree proto containing the// directory's contents.TreeDigest *BuildBazelRemoteExecutionV2Digest `json:"treeDigest,omitempty"`// ForceSendFields is a list of field names (e.g. "Path") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Path") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` isthe output in an `ActionResult` corresponding to a directory's fullcontents rather than a single file.

func (*BuildBazelRemoteExecutionV2OutputDirectory)MarshalJSON

typeBuildBazelRemoteExecutionV2OutputFile

type BuildBazelRemoteExecutionV2OutputFile struct {// Contents: 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.Contentsstring `json:"contents,omitempty"`// Digest: The digest of the file's content.Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`// IsExecutable: True if file is executable, false otherwise.IsExecutablebool `json:"isExecutable,omitempty"`NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`// Path: 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.Pathstring `json:"path,omitempty"`// ForceSendFields is a list of field names (e.g. "Contents") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Contents") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar toa FileNode, but it is used as an output in an `ActionResult`. Itallows a full file path rather than only a name.

func (*BuildBazelRemoteExecutionV2OutputFile)MarshalJSON

typeBuildBazelRemoteExecutionV2OutputSymlink

type BuildBazelRemoteExecutionV2OutputSymlink struct {NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`// Path: 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.Pathstring `json:"path,omitempty"`// Target: 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.Targetstring `json:"target,omitempty"`// ForceSendFields is a list of field names (e.g. "NodeProperties") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NodeProperties") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` issimilar to a Symlink, but it is used as an output in an`ActionResult`. `OutputSymlink` is binary-compatible with`SymlinkNode`.

func (*BuildBazelRemoteExecutionV2OutputSymlink)MarshalJSON

typeBuildBazelRemoteExecutionV2Platform

type BuildBazelRemoteExecutionV2Platform struct {// Properties: 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.Properties []*BuildBazelRemoteExecutionV2PlatformProperty `json:"properties,omitempty"`// ForceSendFields is a list of field names (e.g. "Properties") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Properties") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2Platform: A `Platform` is a set ofrequirements, such as hardware, operating system, or compilertoolchain, for an Action's execution environment. A `Platform` isrepresented as a series of key-value pairs representing theproperties that are required of the platform.

func (*BuildBazelRemoteExecutionV2Platform)MarshalJSON

func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2PlatformProperty

type BuildBazelRemoteExecutionV2PlatformProperty struct {// Name: The property name.Namestring `json:"name,omitempty"`// Value: The property value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2PlatformProperty: A single property forthe environment. The server is responsible for specifying theproperty `name`s that it accepts. If an unknown `name` is provided inthe requirements for an Action, the server SHOULD reject theexecution request. If permitted by the server, the same `name` mayoccur multiple times. The server is also responsible for specifyingthe interpretation of property `value`s. For instance, a propertydescribing how much RAM must be available may be interpreted asallowing a worker with 16GB to fulfill a request for 8GB, while aproperty describing the OS environment on which the action must beperformed may require an exact match with the worker's OS. The serverMAY use the `value` of one or more properties to determine how itsets up the execution environment, such as by making specific systemfiles available to the worker. Both names and values are typicallycase-sensitive. Note that the platform is implicitly part of theaction digest, so even tiny changes in the names or values (likechanging case) may result in different action cache entries.

func (*BuildBazelRemoteExecutionV2PlatformProperty)MarshalJSON

typeBuildBazelRemoteExecutionV2PriorityCapabilities

type BuildBazelRemoteExecutionV2PriorityCapabilities struct {Priorities []*BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange `json:"priorities,omitempty"`// ForceSendFields is a list of field names (e.g. "Priorities") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Priorities") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2PriorityCapabilities: Allowed values forpriority in ResultsCachePolicy and ExecutionPolicy Used for queryingboth cache and execution valid priority ranges.

func (*BuildBazelRemoteExecutionV2PriorityCapabilities)MarshalJSON

typeBuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange

type BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange struct {// MaxPriority: The maximum numeric value for this priority range, which// represents the least urgent task or shortest retained item.MaxPriorityint64 `json:"maxPriority,omitempty"`// MinPriority: The minimum numeric value for this priority range, which// represents the most urgent task or longest retained item.MinPriorityint64 `json:"minPriority,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxPriority") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxPriority") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange:Supported range of priorities, including boundaries.

func (*BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange)MarshalJSON

typeBuildBazelRemoteExecutionV2RequestMetadata

type BuildBazelRemoteExecutionV2RequestMetadata struct {// ActionId: 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.ActionIdstring `json:"actionId,omitempty"`// ActionMnemonic: 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.ActionMnemonicstring `json:"actionMnemonic,omitempty"`// ConfigurationId: 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.ConfigurationIdstring `json:"configurationId,omitempty"`// CorrelatedInvocationsId: 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.CorrelatedInvocationsIdstring `json:"correlatedInvocationsId,omitempty"`// TargetId: An identifier for the target which produced this action. No// guarantees are made around how many actions may relate to a single// target.TargetIdstring `json:"targetId,omitempty"`// ToolDetails: The details for the tool invoking the requests.ToolDetails *BuildBazelRemoteExecutionV2ToolDetails `json:"toolDetails,omitempty"`// ToolInvocationId: An identifier that ties multiple actions together// to a final result. For example, multiple actions are required to// build and run foo_test.ToolInvocationIdstring `json:"toolInvocationId,omitempty"`// ForceSendFields is a list of field names (e.g. "ActionId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata toattach to any RPC request to tell the server about an externalcontext of the request. The server may use this for logging or otherpurposes. To use it, the client attaches the header to the call usingthe canonical proto serialization: * name:`build.bazel.remote.execution.v2.requestmetadata-bin` * contents: thebase64 encoded binary `RequestMetadata` message. Note: the gRPClibrary 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 thismetadata, the user may ignore the base64 encoding and assume it issimply serialized as a binary message.

func (*BuildBazelRemoteExecutionV2RequestMetadata)MarshalJSON

typeBuildBazelRemoteExecutionV2ResultsCachePolicy

type BuildBazelRemoteExecutionV2ResultsCachePolicy struct {// Priority: 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.Priorityint64 `json:"priority,omitempty"`// ForceSendFields is a list of field names (e.g. "Priority") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Priority") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ResultsCachePolicy: A `ResultsCachePolicy`is used for fine-grained control over how action outputs are storedin the CAS and Action Cache.

func (*BuildBazelRemoteExecutionV2ResultsCachePolicy)MarshalJSON

typeBuildBazelRemoteExecutionV2ServerCapabilities

type BuildBazelRemoteExecutionV2ServerCapabilities struct {// CacheCapabilities: Capabilities of the remote cache system.CacheCapabilities *BuildBazelRemoteExecutionV2CacheCapabilities `json:"cacheCapabilities,omitempty"`// DeprecatedApiVersion: Earliest RE API version supported, including// deprecated versions.DeprecatedApiVersion *BuildBazelSemverSemVer `json:"deprecatedApiVersion,omitempty"`// ExecutionCapabilities: Capabilities of the remote execution system.ExecutionCapabilities *BuildBazelRemoteExecutionV2ExecutionCapabilities `json:"executionCapabilities,omitempty"`// HighApiVersion: Latest RE API version supported.HighApiVersion *BuildBazelSemverSemVer `json:"highApiVersion,omitempty"`// LowApiVersion: Earliest non-deprecated RE API version supported.LowApiVersion *BuildBazelSemverSemVer `json:"lowApiVersion,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CacheCapabilities")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CacheCapabilities") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ServerCapabilities: A response message forCapabilities.GetCapabilities.

func (*BuildBazelRemoteExecutionV2ServerCapabilities)MarshalJSON

typeBuildBazelRemoteExecutionV2SymlinkNode

type BuildBazelRemoteExecutionV2SymlinkNode struct {// Name: The name of the symlink.Namestring `json:"name,omitempty"`NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`// Target: 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.Targetstring `json:"target,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents asymbolic link.

func (*BuildBazelRemoteExecutionV2SymlinkNode)MarshalJSON

typeBuildBazelRemoteExecutionV2ToolDetails

type BuildBazelRemoteExecutionV2ToolDetails struct {// ToolName: Name of the tool, e.g. bazel.ToolNamestring `json:"toolName,omitempty"`// ToolVersion: Version of the tool used for the request, e.g. 5.0.3.ToolVersionstring `json:"toolVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "ToolName") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ToolName") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used tocall the API.

func (*BuildBazelRemoteExecutionV2ToolDetails)MarshalJSON

typeBuildBazelRemoteExecutionV2Tree

type BuildBazelRemoteExecutionV2Tree struct {// Children: 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`.Children []*BuildBazelRemoteExecutionV2Directory `json:"children,omitempty"`// Root: The root directory in the tree.Root *BuildBazelRemoteExecutionV2Directory `json:"root,omitempty"`// ForceSendFields is a list of field names (e.g. "Children") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Children") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directoryprotos in a single directory Merkle tree, compressed into onemessage.

func (*BuildBazelRemoteExecutionV2Tree)MarshalJSON

func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte,error)

typeBuildBazelRemoteExecutionV2WaitExecutionRequest

type BuildBazelRemoteExecutionV2WaitExecutionRequest struct {}

BuildBazelRemoteExecutionV2WaitExecutionRequest: A request messagefor WaitExecution.

typeBuildBazelSemverSemVer

type BuildBazelSemverSemVer struct {// Major: The major version, e.g 10 for 10.2.3.Majorint64 `json:"major,omitempty"`// Minor: The minor version, e.g. 2 for 10.2.3.Minorint64 `json:"minor,omitempty"`// Patch: The patch version, e.g 3 for 10.2.3.Patchint64 `json:"patch,omitempty"`// Prerelease: 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.Prereleasestring `json:"prerelease,omitempty"`// ForceSendFields is a list of field names (e.g. "Major") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Major") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

BuildBazelSemverSemVer: The full version of a given tool.

func (*BuildBazelSemverSemVer)MarshalJSON

func (s *BuildBazelSemverSemVer) MarshalJSON() ([]byte,error)

typeGoogleDevtoolsRemotebuildbotCommandDurations

type GoogleDevtoolsRemotebuildbotCommandDurations struct {// CasRelease: The time spent to release the CAS blobs used by the task.CasReleasestring `json:"casRelease,omitempty"`// CmWaitForAssignment: The time spent waiting for Container Manager to// assign an asynchronous container for execution.CmWaitForAssignmentstring `json:"cmWaitForAssignment,omitempty"`// DockerPrep: The time spent preparing the command to be run in a// Docker container (includes pulling the Docker image, if necessary).DockerPrepstring `json:"dockerPrep,omitempty"`// DockerPrepStartTime: The timestamp when docker preparation begins.DockerPrepStartTimestring `json:"dockerPrepStartTime,omitempty"`// Download: The time spent downloading the input files and constructing// the working directory.Downloadstring `json:"download,omitempty"`// DownloadStartTime: The timestamp when downloading the input files// begins.DownloadStartTimestring `json:"downloadStartTime,omitempty"`// ExecStartTime: The timestamp when execution begins.ExecStartTimestring `json:"execStartTime,omitempty"`// Execution: The time spent executing the command (i.e., doing useful// work).Executionstring `json:"execution,omitempty"`// IsoPrepDone: The timestamp when preparation is done and bot starts// downloading files.IsoPrepDonestring `json:"isoPrepDone,omitempty"`// Overall: The time spent completing the command, in total.Overallstring `json:"overall,omitempty"`// Stdout: The time spent uploading the stdout logs.Stdoutstring `json:"stdout,omitempty"`// Upload: The time spent uploading the output files.Uploadstring `json:"upload,omitempty"`// UploadStartTime: The timestamp when uploading the output files// begins.UploadStartTimestring `json:"uploadStartTime,omitempty"`// ForceSendFields is a list of field names (e.g. "CasRelease") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CasRelease") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildbotCommandDurations: CommandDurationcontains the various duration metrics tracked when a bot performs acommand.

func (*GoogleDevtoolsRemotebuildbotCommandDurations)MarshalJSON

typeGoogleDevtoolsRemotebuildbotCommandEvents

type GoogleDevtoolsRemotebuildbotCommandEvents struct {// CmUsage: Indicates if and how Container Manager is being used for// task execution.//// Possible values://   "CONFIG_NONE" - Container Manager is disabled or not running for// this execution.//   "CONFIG_MATCH" - Container Manager is enabled and there was a// matching container available for use during execution.//   "CONFIG_MISMATCH" - Container Manager is enabled, but there was no// matching container available for execution.CmUsagestring `json:"cmUsage,omitempty"`// DockerCacheHit: Indicates whether we are using a cached Docker image// (true) or had to pull the Docker image (false) for this command.DockerCacheHitbool `json:"dockerCacheHit,omitempty"`// DockerImageName: Docker Image name.DockerImageNamestring `json:"dockerImageName,omitempty"`// InputCacheMiss: The input cache miss ratio.InputCacheMissfloat64 `json:"inputCacheMiss,omitempty"`// NumErrors: The number of errors reported.NumErrorsuint64 `json:"numErrors,omitempty,string"`// NumWarnings: The number of warnings reported.NumWarningsuint64 `json:"numWarnings,omitempty,string"`// OutputLocation: 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.//// Possible values://   "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for// tasks where the working directorty is not specified or is identical// to the execution root directory.//   "LOCATION_NONE" - No output files or directories were found neither// relative to the execution root directory nor relative to the working// directory.//   "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were// found relative to the execution root directory but not relative to// the working directory.//   "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were// found relative to the working directory but not relative to the// execution root directory.//   "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE" - Output files or// directories were found both relative to the execution root directory// and relative to the working directory.//   "LOCATION_EXEC_ROOT_RELATIVE_OUTPUT_OUTSIDE_WORKING_DIR" - 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 `..`.//// "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE_OUTPUT_OUTSIDE_WORKING_DI// R" - 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// `..`.OutputLocationstring `json:"outputLocation,omitempty"`// UsedAsyncContainer: Indicates whether an asynchronous container was// used for execution.UsedAsyncContainerbool `json:"usedAsyncContainer,omitempty"`// ForceSendFields is a list of field names (e.g. "CmUsage") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CmUsage") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents containscounters for the number of warnings and errors that occurred duringthe execution of a command.

func (*GoogleDevtoolsRemotebuildbotCommandEvents)MarshalJSON

func (*GoogleDevtoolsRemotebuildbotCommandEvents)UnmarshalJSON

typeGoogleDevtoolsRemotebuildbotCommandStatusadded inv0.6.0

type GoogleDevtoolsRemotebuildbotCommandStatus struct {// Code: The status code.//// Possible values://   "OK" - The command succeeded.//   "INVALID_ARGUMENT" - The command input was invalid.//   "DEADLINE_EXCEEDED" - The command had passed its expiry time while// it was still running.//   "NOT_FOUND" - The resources requested by the command were not// found.//   "PERMISSION_DENIED" - The command failed due to permission errors.//   "INTERNAL" - The command failed because of some invariants expected// by the underlying system have been broken. This usually indicates a// bug wit the system.//   "ABORTED" - The command was aborted.//   "FAILED_PRECONDITION" - 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.//   "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to// delete the command working directory or the command process.//   "DOWNLOAD_INPUTS_ERROR" - The bot failed to download the inputs.//   "UNKNOWN" - Unknown error.//   "UPLOAD_OUTPUTS_ERROR" - The bot failed to upload the outputs.//   "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload// files having a total size that is too large.//   "DOCKER_LOGIN_ERROR" - The bot failed to login to docker.//   "DOCKER_IMAGE_PULL_ERROR" - The bot failed to pull docker image.//   "DOCKER_IMAGE_EXIST_ERROR" - The bot failed to check docker images.//   "DUPLICATE_INPUTS" - The inputs contain duplicate files.//   "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the// permissions to pull docker images.//   "DOCKER_IMAGE_NOT_FOUND" - The docker image cannot be found.//   "WORKING_DIR_NOT_FOUND" - Working directory is not found.//   "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the// base directory//   "DOCKER_UNAVAILABLE" - There are issues with docker// service/runtime.//   "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable// device is detected" error.//   "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from// remote CAS when downloading blobs.//   "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote// CAS when uploading blobs.//   "LOCAL_CASPROXY_NOT_RUNNING" - The local casproxy is not running.//   "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the// container.//   "DOCKER_INVALID_ULIMIT" - The docker ulimit is not valid.//   "DOCKER_UNKNOWN_RUNTIME" - The docker runtime is unknown.//   "DOCKER_UNKNOWN_CAPABILITY" - The docker capability is unknown.//   "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker// errors.//   "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run// containers with CreateComputeSystem error.//   "DOCKER_PREPARELAYER_ERROR" - Docker failed to run containers with// hcsshim::PrepareLayer error.//   "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating// system error.//   "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create// OCI runtime because of file not found.//   "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create// OCI runtime because of permission denied.//   "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create// process because of file not found.//   "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - 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).//   "DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS" - Docker failed to create an// overlay mount because of too many levels of symbolic links.//   "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager// is not running.//   "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a// request was denied by the organization's policy.//   "WORKING_DIR_NOT_RELATIVE" - Working directory is not relative//   "DOCKER_MISSING_CONTAINER" - 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.Codestring `json:"code,omitempty"`// Message: The error message.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildbotCommandStatus: The internal status of thecommand result.

func (*GoogleDevtoolsRemotebuildbotCommandStatus)MarshalJSONadded inv0.6.0

typeGoogleDevtoolsRemotebuildbotResourceUsageadded inv0.15.0

type GoogleDevtoolsRemotebuildbotResourceUsage struct {CpuUsedPercentfloat64 `json:"cpuUsedPercent,omitempty"`DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"`MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"`TotalDiskIoStats *GoogleDevtoolsRemotebuildbotResourceUsageIOStats `json:"totalDiskIoStats,omitempty"`// ForceSendFields is a list of field names (e.g. "CpuUsedPercent") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CpuUsedPercent") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is thesystem resource usage of the host machine.

func (*GoogleDevtoolsRemotebuildbotResourceUsage)MarshalJSONadded inv0.15.0

func (*GoogleDevtoolsRemotebuildbotResourceUsage)UnmarshalJSONadded inv0.15.0

typeGoogleDevtoolsRemotebuildbotResourceUsageIOStatsadded inv0.48.0

type GoogleDevtoolsRemotebuildbotResourceUsageIOStats struct {ReadBytesCountuint64 `json:"readBytesCount,omitempty,string"`ReadCountuint64 `json:"readCount,omitempty,string"`ReadTimeMsuint64 `json:"readTimeMs,omitempty,string"`WriteBytesCountuint64 `json:"writeBytesCount,omitempty,string"`WriteCountuint64 `json:"writeCount,omitempty,string"`WriteTimeMsuint64 `json:"writeTimeMs,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ReadBytesCount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ReadBytesCount") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*GoogleDevtoolsRemotebuildbotResourceUsageIOStats)MarshalJSONadded inv0.48.0

typeGoogleDevtoolsRemotebuildbotResourceUsageStatadded inv0.15.0

type GoogleDevtoolsRemotebuildbotResourceUsageStat struct {Totaluint64 `json:"total,omitempty,string"`Useduint64 `json:"used,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Total") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Total") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*GoogleDevtoolsRemotebuildbotResourceUsageStat)MarshalJSONadded inv0.15.0

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfigadded inv0.8.0

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig struct {// AcceleratorCount: The number of guest accelerator cards exposed to// each VM.AcceleratorCountint64 `json:"acceleratorCount,omitempty,string"`// AcceleratorType: The type of accelerator to attach to each VM, e.g.// "nvidia-tesla-k80" for nVidia Tesla K80.AcceleratorTypestring `json:"acceleratorType,omitempty"`// ForceSendFields is a list of field names (e.g. "AcceleratorCount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcceleratorCount") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig:AcceleratorConfig defines the accelerator cards to attach to the VM.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig)MarshalJSONadded inv0.8.0

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscaleadded inv0.23.0

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale struct {// MaxSize: The maximal number of workers. Must be equal to or greater// than min_size.MaxSizeint64 `json:"maxSize,omitempty,string"`// MinSize: The minimal number of workers. Must be greater than 0.MinSizeint64 `json:"minSize,omitempty,string"`// ForceSendFields is a list of field names (e.g. "MaxSize") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxSize") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscaledefines the autoscaling policy of a worker pool.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale)MarshalJSONadded inv0.23.0

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest struct {// Instance: Specifies the instance to create. The name in the instance,// if specified in the instance, is ignored.Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"`// InstanceId: 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.InstanceIdstring `json:"instanceId,omitempty"`// Parent: Resource name of the project containing the instance. Format:// `projects/[PROJECT_ID]`.Parentstring `json:"parent,omitempty"`// ForceSendFields is a list of field names (e.g. "Instance") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Instance") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest:The request used for `CreateInstance`.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct {// Parent: Resource name of the instance in which to create the new// worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.Parentstring `json:"parent,omitempty"`// PoolId: 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.PoolIdstring `json:"poolId,omitempty"`// WorkerPool: Specifies the worker pool to create. The name in the// worker pool, if specified, is ignored.WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"`// ForceSendFields is a list of field names (e.g. "Parent") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Parent") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest:

The request used for `CreateWorkerPool`.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct {// Name: Name of the instance to delete. Format:// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest:The request used for `DeleteInstance`.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct {// Name: Name of the worker pool to delete. Format:// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest:

The request used for DeleteWorkerPool.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyadded inv0.31.0

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy struct {// ContainerImageSources: 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.ContainerImageSources *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"containerImageSources,omitempty"`// DockerAddCapabilities: Whether dockerAddCapabilities can be used or// what capabilities are allowed.DockerAddCapabilities *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerAddCapabilities,omitempty"`// DockerChrootPath: Whether dockerChrootPath can be used.DockerChrootPath *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerChrootPath,omitempty"`// DockerNetwork: Whether dockerNetwork can be used or what network// modes are allowed. E.g. one may allow `off` value only via// `allowed_values`.DockerNetwork *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerNetwork,omitempty"`// DockerPrivileged: Whether dockerPrivileged can be used.DockerPrivileged *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerPrivileged,omitempty"`// DockerRunAsRoot: Whether dockerRunAsRoot can be used.DockerRunAsRoot *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRunAsRoot,omitempty"`// DockerRuntime: 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.DockerRuntime *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRuntime,omitempty"`// DockerSiblingContainers: Whether dockerSiblingContainers can be used.DockerSiblingContainers *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerSiblingContainers,omitempty"`// LinuxIsolation: linux_isolation allows overriding the docker runtime// used for containers started on Linux.//// Possible values://   "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux// default runtime.//   "GVISOR" - Use gVisor runsc runtime.//   "OFF" - Use stardard Linux runtime. This has the same behaviour as// unspecified, but it can be used to revert back from gVisor.LinuxIsolationstring `json:"linuxIsolation,omitempty"`// ForceSendFields is a list of field names (e.g.// "ContainerImageSources") to unconditionally include in API requests.// By default, fields with empty values are omitted from API requests.// However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContainerImageSources") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy:FeaturePolicy defines features allowed to be used on RBE instances,as well as instance-wide behavior changes that take effect withoutopt-in or opt-out at usage time.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy)MarshalJSONadded inv0.31.0

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureadded inv0.31.0

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature struct {// AllowedValues: A list of acceptable values. Only effective when the// policy is `RESTRICTED`.AllowedValues []string `json:"allowedValues,omitempty"`// Policy: The policy of the feature.//// Possible values://   "POLICY_UNSPECIFIED" - Default value, if not explicitly set.// Equivalent to FORBIDDEN, unless otherwise documented on a specific// Feature.//   "ALLOWED" - Feature is explicitly allowed.//   "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage// it will get an FailedPrecondition error, with a message like:// "Feature forbidden by FeaturePolicy: Feature on instance "//   "RESTRICTED" - Only the values specified in the `allowed_values`// are allowed.Policystring `json:"policy,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowedValues") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowedValues") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature:Defines whether a feature can be used or what values are accepted.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature)MarshalJSONadded inv0.31.0

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct {// Name: Name of the instance to retrieve. Format:// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: Therequest used for `GetInstance`.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct {// Name: Name of the worker pool to retrieve. Format:// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest:The request used for GetWorkerPool.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct {// FeaturePolicy: The policy to define whether or not RBE features can// be used or how they can be used.FeaturePolicy *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy `json:"featurePolicy,omitempty"`// Location: The location is a GCP region. Currently only `us-central1`// is supported.Locationstring `json:"location,omitempty"`// LoggingEnabled: Output only. Whether stack driver logging is enabled// for the instance.LoggingEnabledbool `json:"loggingEnabled,omitempty"`// Name: 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.Namestring `json:"name,omitempty"`// State: Output only. State of the instance.//// Possible values://   "STATE_UNSPECIFIED" - Not a valid state, but the default value of// the enum.//   "CREATING" - The instance is in state `CREATING` once// `CreateInstance` is called and before the instance is ready for use.//   "RUNNING" - The instance is in state `RUNNING` when it is ready for// use.//   "INACTIVE" - 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.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "FeaturePolicy") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FeaturePolicy") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instanceconceptually encapsulates all Remote Build Execution resources forremote builds. An instance consists of storage and compute resources(for example, `ContentAddressableStorage`, `ActionCache`,`WorkerPools`) used for running remote builds. All Remote BuildExecution API calls are scoped to an instance.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct {// Parent: Resource name of the project. Format:// `projects/[PROJECT_ID]`.Parentstring `json:"parent,omitempty"`// ForceSendFields is a list of field names (e.g. "Parent") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Parent") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse struct {// Instances: The list of instances in a given project.Instances []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instances,omitempty"`// ForceSendFields is a list of field names (e.g. "Instances") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Instances") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct {// Filter: 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`Filterstring `json:"filter,omitempty"`// Parent: Resource name of the instance. Format:// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.Parentstring `json:"parent,omitempty"`// ForceSendFields is a list of field names (e.g. "Filter") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Filter") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse struct {// WorkerPools: The list of worker pools in a given instance.WorkerPools []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPools,omitempty"`// ForceSendFields is a list of field names (e.g. "WorkerPools") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WorkerPools") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequestadded inv0.15.0

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest struct {// Instance: Specifies the instance to update.Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"`// LoggingEnabled: Deprecated, use instance.logging_enabled instead.// Whether to enable Stackdriver logging for this instance.LoggingEnabledbool `json:"loggingEnabled,omitempty"`// Name: Deprecated, use instance.Name instead. Name of the instance to// update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.Namestring `json:"name,omitempty"`// UpdateMask: 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.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Instance") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Instance") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest:The request used for `UpdateInstance`.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest)MarshalJSONadded inv0.15.0

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest struct {// UpdateMask: 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.UpdateMaskstring `json:"updateMask,omitempty"`// WorkerPool: Specifies the worker pool to update.WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"`// ForceSendFields is a list of field names (e.g. "UpdateMask") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UpdateMask") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest:

The request used for UpdateWorkerPool.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct {// Accelerator: The accelerator card attached to each VM.Accelerator *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig `json:"accelerator,omitempty"`// DiskSizeGb: Required. Size of the disk attached to the worker, in GB.// Seehttps://cloud.google.com/compute/docs/disks/DiskSizeGbint64 `json:"diskSizeGb,omitempty,string"`// DiskType: 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.DiskTypestring `json:"diskType,omitempty"`// Labels: 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.Labels map[string]string `json:"labels,omitempty"`// MachineType: 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.MachineTypestring `json:"machineType,omitempty"`// MaxConcurrentActions: The maximum number of actions a worker can// execute concurrently.MaxConcurrentActionsint64 `json:"maxConcurrentActions,omitempty,string"`// MinCpuPlatform: Minimum CPU platform to use when creating the worker.// See CPU Platforms// (https://cloud.google.com/compute/docs/cpu-platforms).MinCpuPlatformstring `json:"minCpuPlatform,omitempty"`// NetworkAccess: 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`).NetworkAccessstring `json:"networkAccess,omitempty"`// Reserved: 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.Reservedbool `json:"reserved,omitempty"`// SoleTenantNodeType: The node type name to be used for sole-tenant// nodes.SoleTenantNodeTypestring `json:"soleTenantNodeType,omitempty"`// VmImage: The name of the image used by each VM.VmImagestring `json:"vmImage,omitempty"`// ForceSendFields is a list of field names (e.g. "Accelerator") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Accelerator") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Definesthe configuration to be used for creating workers in the worker pool.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig)MarshalJSON

typeGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct {// Autoscale: The autoscale policy to apply on a pool.Autoscale *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale `json:"autoscale,omitempty"`// Channel: Channel specifies the release channel of the pool.Channelstring `json:"channel,omitempty"`// Name: 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.Namestring `json:"name,omitempty"`// State: Output only. State of the worker pool.//// Possible values://   "STATE_UNSPECIFIED" - Not a valid state, but the default value of// the enum.//   "CREATING" - The worker pool is in state `CREATING` once// `CreateWorkerPool` is called and before all requested workers are// ready.//   "RUNNING" - The worker pool is in state `RUNNING` when all its// workers are ready for use.//   "UPDATING" - 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`.//   "DELETING" - The worker pool is in state `DELETING` once the// `Delete` method is called and before the deletion completes.//   "INACTIVE" - The worker pool is in state `INACTIVE` when the// instance hosting the worker pool in not running.Statestring `json:"state,omitempty"`// WorkerConfig: Specifies the properties, such as machine type and disk// size, used for creating workers in a worker pool.WorkerConfig *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig `json:"workerConfig,omitempty"`// WorkerCount: The desired number of workers in the worker pool. Must// be a value between 0 and 15000.WorkerCountint64 `json:"workerCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Autoscale") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Autoscale") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A workerpool resource in the Remote Build Execution API.

func (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2AdminTemp

type GoogleDevtoolsRemoteworkersV1test2AdminTemp struct {// Arg: The argument to the admin action; see `Command` for semantics.Argstring `json:"arg,omitempty"`// Command: The admin action; see `Command` for legal values.//// Possible values://   "UNSPECIFIED" - Illegal value.//   "BOT_UPDATE" - Download and run a new version of the bot. `arg`// will be a resource accessible via `ByteStream.Read` to obtain the new// bot code.//   "BOT_RESTART" - Restart the bot without downloading a new version.// `arg` will be a message to log.//   "BOT_TERMINATE" - 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.//   "HOST_RESTART" - Restart the host computer. `arg` will be a message// to log.Commandstring `json:"command,omitempty"`// ForceSendFields is a list of field names (e.g. "Arg") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Arg") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is aprelimiary set of administration tasks. It's called "Temp" because wedo not yet know the best way to represent admin tasks; it's possiblethat this will be entirely replaced in later versions of this API. Ifthis message proves to be sufficient, it will be renamed in the alphaor beta release of this API. This message (suitably marshalled into aprotobuf.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 fromthe LUCI project (http://github.com/luci/luci-py/appengine/swarming).

func (*GoogleDevtoolsRemoteworkersV1test2AdminTemp)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2Blob

type GoogleDevtoolsRemoteworkersV1test2Blob struct {// Contents: The contents of the blob.Contentsstring `json:"contents,omitempty"`// Digest: The digest of the blob. This should be verified by the// receiver.Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`// ForceSendFields is a list of field names (e.g. "Contents") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Contents") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binarycontent with its digest.

func (*GoogleDevtoolsRemoteworkersV1test2Blob)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandOutputs

type GoogleDevtoolsRemoteworkersV1test2CommandOutputs struct {// ExitCode: 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.ExitCodeint64 `json:"exitCode,omitempty"`// Outputs: 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 fileOutputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"`// ForceSendFields is a list of field names (e.g. "ExitCode") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExitCode") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandOutputs: DEPRECATED - useCommandResult instead. Describes the actual outputs from the task.

func (*GoogleDevtoolsRemoteworkersV1test2CommandOutputs)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandOverhead

type GoogleDevtoolsRemoteworkersV1test2CommandOverhead struct {// Duration: 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.Durationstring `json:"duration,omitempty"`// Overhead: The amount of time *not* spent executing the command (ie// uploading/downloading files).Overheadstring `json:"overhead,omitempty"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandOverhead: DEPRECATED - useCommandResult instead. Can be used as part ofCompleteRequest.metadata, or are part of a more sophisticatedmessage.

func (*GoogleDevtoolsRemoteworkersV1test2CommandOverhead)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandResult

type GoogleDevtoolsRemoteworkersV1test2CommandResult struct {// Duration: 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.Durationstring `json:"duration,omitempty"`// ExitCode: 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).ExitCodeint64 `json:"exitCode,omitempty"`// Metadata: 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.Metadata []googleapi.RawMessage `json:"metadata,omitempty"`// Outputs: 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 fileOutputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"`// Overhead: The amount of time *not* spent executing the command (ie// uploading/downloading files).Overheadstring `json:"overhead,omitempty"`// Status: 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.Status *GoogleRpcStatus `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandResult: All informationabout the execution of a command, suitable for providing as the Botsinterface's `Lease.result` field.

func (*GoogleDevtoolsRemoteworkersV1test2CommandResult)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandTask

type GoogleDevtoolsRemoteworkersV1test2CommandTask struct {// ExpectedOutputs: The expected outputs from the task.ExpectedOutputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs `json:"expectedOutputs,omitempty"`// Inputs: The inputs to the task.Inputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs `json:"inputs,omitempty"`// Timeouts: The timeouts of this task.Timeouts *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts `json:"timeouts,omitempty"`// ForceSendFields is a list of field names (e.g. "ExpectedOutputs") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExpectedOutputs") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes ashell-style task to execute, suitable for providing as the Botsinterface's `Lease.payload` field.

func (*GoogleDevtoolsRemoteworkersV1test2CommandTask)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs

type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs struct {// Arguments: 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.Arguments []string `json:"arguments,omitempty"`// EnvironmentVariables: All environment variables required by the task.EnvironmentVariables []*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable `json:"environmentVariables,omitempty"`// Files: 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).Files []*GoogleDevtoolsRemoteworkersV1test2Digest `json:"files,omitempty"`// InlineBlobs: 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.InlineBlobs []*GoogleDevtoolsRemoteworkersV1test2Blob `json:"inlineBlobs,omitempty"`// WorkingDirectory: 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.WorkingDirectorystring `json:"workingDirectory,omitempty"`// ForceSendFields is a list of field names (e.g. "Arguments") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Arguments") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes theinputs to a shell-style task.

func (*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable

type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable struct {// Name: The envvar name.Namestring `json:"name,omitempty"`// Value: The envvar value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable: An environment variable required by this task.

func (*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs

type GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs struct {// Directories: A list of expected directories, relative to the// execution root. All paths MUST be delimited by forward slashes.Directories []string `json:"directories,omitempty"`// Files: A list of expected files, relative to the execution root. All// paths MUST be delimited by forward slashes.Files []string `json:"files,omitempty"`// StderrDestination: 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.StderrDestinationstring `json:"stderrDestination,omitempty"`// StdoutDestination: 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.StdoutDestinationstring `json:"stdoutDestination,omitempty"`// ForceSendFields is a list of field names (e.g. "Directories") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Directories") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes theexpected outputs of the command.

func (*GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts

type GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts struct {// Execution: 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.Executionstring `json:"execution,omitempty"`// Idle: 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.Idlestring `json:"idle,omitempty"`// Shutdown: 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).Shutdownstring `json:"shutdown,omitempty"`// ForceSendFields is a list of field names (e.g. "Execution") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Execution") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts: Describes thetimeouts associated with this task.

func (*GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2Digest

type GoogleDevtoolsRemoteworkersV1test2Digest struct {// Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a,// 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg// SHA-256).Hashstring `json:"hash,omitempty"`// SizeBytes: 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.SizeBytesint64 `json:"sizeBytes,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Hash") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Hash") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask andCommandResult messages assume the existence of a service that canserve blobs of content, identified by a hash and size known as a"digest." The method by which these blobs may be retrieved is notspecified here, but a model implementation is in the Remote ExecutionAPI's "ContentAddressibleStorage" interface. In the context of theRWAPI, a Digest will virtually always refer to the contents of a fileor a directory. The latter is represented by the byte-encodedDirectory message.

func (*GoogleDevtoolsRemoteworkersV1test2Digest)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2Directory

type GoogleDevtoolsRemoteworkersV1test2Directory struct {// Directories: Any subdirectoriesDirectories []*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata `json:"directories,omitempty"`// Files: The files in this directoryFiles []*GoogleDevtoolsRemoteworkersV1test2FileMetadata `json:"files,omitempty"`// ForceSendFields is a list of field names (e.g. "Directories") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Directories") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2Directory: The contents of adirectory. Similar to the equivalent message in the Remote ExecutionAPI.

func (*GoogleDevtoolsRemoteworkersV1test2Directory)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2DirectoryMetadata

type GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata struct {// Digest: A pointer to the contents of the directory, in the form of a// marshalled Directory message.Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`// Path: The path of the directory, as in FileMetadata.path.Pathstring `json:"path,omitempty"`// ForceSendFields is a list of field names (e.g. "Digest") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digest") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata fora directory. Similar to the equivalent message in the RemoteExecution API.

func (*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata)MarshalJSON

typeGoogleDevtoolsRemoteworkersV1test2FileMetadata

type GoogleDevtoolsRemoteworkersV1test2FileMetadata struct {// Contents: If the file is small enough, its contents may also or// alternatively be listed here.Contentsstring `json:"contents,omitempty"`// Digest: 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.Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`// IsExecutable: Properties of the fileIsExecutablebool `json:"isExecutable,omitempty"`// Path: 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.Pathstring `json:"path,omitempty"`// ForceSendFields is a list of field names (e.g. "Contents") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Contents") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for afile. Similar to the equivalent message in the Remote Execution API.

func (*GoogleDevtoolsRemoteworkersV1test2FileMetadata)MarshalJSON

typeGoogleLongrunningOperation

type GoogleLongrunningOperation struct {// Done: 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.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or// cancellation.Error *GoogleRpcStatus `json:"error,omitempty"`// Metadata: 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.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: 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}`.Namestring `json:"name,omitempty"`// Response: 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`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleLongrunningOperation: This resource represents a long-runningoperation that is the result of a network API call.

func (*GoogleLongrunningOperation)MarshalJSON

func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte,error)

typeGoogleRpcStatus

type GoogleRpcStatus struct {// Code: The status code, which should be an enum value of// google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a// common set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: 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.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

GoogleRpcStatus: The `Status` type defines a logical error model thatis suitable for different programming environments, including RESTAPIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each`Status` message contains three pieces of data: error code, errormessage, and error details. You can find out more about this errormodel and how to work with it in the API Design Guide(https://cloud.google.com/apis/design/errors).

func (*GoogleRpcStatus)MarshalJSON

func (s *GoogleRpcStatus) MarshalJSON() ([]byte,error)

typeOperationsService

type OperationsService struct {// contains filtered or unexported fields}

funcNewOperationsService

func NewOperationsService(s *Service) *OperationsService

func (*OperationsService)WaitExecution

func (r *OperationsService) WaitExecution(namestring, buildbazelremoteexecutionv2waitexecutionrequest *BuildBazelRemoteExecutionV2WaitExecutionRequest) *OperationsWaitExecutionCall

WaitExecution: Wait for an execution operation to complete. When theclient initially makes the request, the server immediately respondswith the current status of the execution. The server will leave therequest stream open until the operation completes, and then respondwith the completed operation. The server MAY choose to streamadditional updates as execution progresses, such as to provide anupdate as to the state of the execution.

- name: The name of the Operation returned by Execute.

typeOperationsWaitExecutionCall

type OperationsWaitExecutionCall struct {// contains filtered or unexported fields}

func (*OperationsWaitExecutionCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OperationsWaitExecutionCall)Do

Do executes the "remotebuildexecution.operations.waitExecution" call.Exactly one of *GoogleLongrunningOperation or error will be non-nil.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OperationsWaitExecutionCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OperationsWaitExecutionCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentActionResults *ActionResultsServiceActions *ActionsServiceBlobs *BlobsServiceOperations *OperationsServiceV2 *V2Service// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewServiceadded inv0.3.0

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeV2GetCapabilitiesCall

type V2GetCapabilitiesCall struct {// contains filtered or unexported fields}

func (*V2GetCapabilitiesCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*V2GetCapabilitiesCall)Do

Do executes the "remotebuildexecution.getCapabilities" call.Exactly one of *BuildBazelRemoteExecutionV2ServerCapabilities orerror will be non-nil. Any non-2xx status code is an error. Responseheaders are in either*BuildBazelRemoteExecutionV2ServerCapabilities.ServerResponse.Headeror (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*V2GetCapabilitiesCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*V2GetCapabilitiesCall)Header

Header returns an http.Header that can be modified by the caller toadd HTTP headers to the request.

func (*V2GetCapabilitiesCall)IfNoneMatch

func (c *V2GetCapabilitiesCall) IfNoneMatch(entityTagstring) *V2GetCapabilitiesCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeV2Service

type V2Service struct {// contains filtered or unexported fields}

funcNewV2Service

func NewV2Service(s *Service) *V2Service

func (*V2Service)GetCapabilities

func (r *V2Service) GetCapabilities(instanceNamestring) *V2GetCapabilitiesCall

GetCapabilities: GetCapabilities returns the server capabilitiesconfiguration of the remote endpoint. Only the capabilities of theservices supported by the endpoint will be returned: * Execution +CAS + Action Cache endpoints should return both CacheCapabilities andExecutionCapabilities. * Execution only endpoints should returnExecutionCapabilities. * CAS + Action Cache only endpoints shouldreturn CacheCapabilities.

  • instanceName: The instance of the execution system to operateagainst. A server may support multiple instances of the executionsystem (with their own workers, storage, caches, etc.). The serverMAY require use of this field to select between them in animplementation-defined fashion, otherwise it can be omitted.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp