blob: 2cbc3a402d68f7863902cee8068fd7c26c0fdc91 [file] [log] [blame]
// Copyright 2019 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package remotebuildexecution provides access to the Remote Build Execution API.
//
// See https://cloud.google.com/remote-build-execution/docs/
//
// Usage example:
//
// import "google.golang.org/api/remotebuildexecution/v2"
// ...
// remotebuildexecutionService, err := remotebuildexecution.New(oauthHttpClient)
package remotebuildexecution // import "google.golang.org/api/remotebuildexecution/v2"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "remotebuildexecution:v2"
const apiName = "remotebuildexecution"
const apiVersion = "v2"
const basePath = "https://remotebuildexecution.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.ActionResults = NewActionResultsService(s)
s.Actions = NewActionsService(s)
s.Blobs = NewBlobsService(s)
s.Operations = NewOperationsService(s)
s.V2 = NewV2Service(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
ActionResults *ActionResultsService
Actions *ActionsService
Blobs *BlobsService
Operations *OperationsService
V2 *V2Service
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewActionResultsService(s *Service) *ActionResultsService {
rs := &ActionResultsService{s: s}
return rs
}
type ActionResultsService struct {
s *Service
}
func NewActionsService(s *Service) *ActionsService {
rs := &ActionsService{s: s}
return rs
}
type ActionsService struct {
s *Service
}
func NewBlobsService(s *Service) *BlobsService {
rs := &BlobsService{s: s}
return rs
}
type BlobsService struct {
s *Service
}
func NewOperationsService(s *Service) *OperationsService {
rs := &OperationsService{s: s}
return rs
}
type OperationsService struct {
s *Service
}
func NewV2Service(s *Service) *V2Service {
rs := &V2Service{s: s}
return rs
}
type V2Service struct {
s *Service
}
// BuildBazelRemoteExecutionV2Action: An `Action` captures all the
// information about an execution which is required
// to reproduce it.
//
// `Action`s are the core component of the [Execution] service. A
// single
// `Action` represents a repeatable action that can be performed by
// the
// execution service. `Action`s can be succinctly identified by the
// digest of
// their wire format encoding and, once an `Action` has been executed,
// will be
// cached in the action cache. Future requests can then use the cached
// result
// rather than needing to run afresh.
//
// When a server completes execution of an
// Action, it MAY choose to
// cache the result in
// the ActionCache unless
// `do_not_cache` is `true`. Clients SHOULD expect the server to do so.
// By
// default, future calls to
// Execute the same
// `Action` will also serve their results from the cache. Clients must
// take care
// to understand the caching behaviour. Ideally, all `Action`s will
// be
// reproducible so that serving a result from cache is always desirable
// and
// correct.
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.
DoNotCache bool `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"`
// 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.
Timeout string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2Action
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities: Describes
// the server/instance capabilities for updating the action cache.
type BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities struct {
UpdateEnabled bool `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents
// the result of an
// Action being run.
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.
ExitCode int64 `json:"exitCode,omitempty"`
// OutputDirectories: The output directories of the action. For each
// output directory requested
// in the `output_directories` 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
// }
// ]
// }
// }
// ```
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 file 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 the action does not produce the requested output, or produces
// a
// file where a directory is expected or vice versa, 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.
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` 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 the action does not produce the requested output, or produces
// a
// directory where a regular file is expected or vice versa, 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.
OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"`
// OutputFiles: The output files of the action. For each output file
// requested in the
// `output_files` 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_file_symlinks field, if the file was a symbolic link
// to
// another file.
//
// If the action does not produce the requested output, or produces
// a
// directory where a regular file is expected or vice versa, 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"`
// StderrDigest: The digest for a blob containing the standard error of
// the action, which
// can be retrieved from the
// ContentAddressableStorage.
// See `stderr_raw` for when this will be set.
StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"`
// StderrRaw: The standard error buffer of the action. The server will
// determine, based
// on the size of the buffer, whether to return it in raw form or to
// return
// a digest in `stderr_digest` that points to the buffer. If neither is
// set,
// then the buffer is empty. The client SHOULD NOT assume it will get
// one of
// the raw buffer or a digest on any given request and should be
// prepared to
// handle either.
StderrRaw string `json:"stderrRaw,omitempty"`
// StdoutDigest: The digest for a blob containing the standard output of
// the action, which
// can be retrieved from the
// ContentAddressableStorage.
// See `stdout_raw` for when this will be set.
StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"`
// StdoutRaw: The standard output buffer of the action. The server will
// determine, based
// on the size of the buffer, whether to return it in raw form or to
// return
// a digest in `stdout_digest` that points to the buffer. If neither is
// set,
// then the buffer is empty. The client SHOULD NOT assume it will get
// one of
// the raw buffer or a digest on any given request and should be
// prepared to
// handle either.
StdoutRaw string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ActionResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchReadBlobsRequest: A request message
// for
// ContentAddressableStorage.BatchReadBlobs.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchReadBlobsRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchReadBlobsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchReadBlobsResponse: A response message
// for
// ContentAddressableStorage.BatchReadBlobs.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchReadBlobsResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchReadBlobsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse: A response
// corresponding to a single blob that the client tried to upload.
type BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse struct {
// Data: The raw binary data.
Data string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest: A request message
// for
// ContentAddressableStorage.BatchUpdateBlobs.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest: A request
// corresponding to a single blob that the client wants to upload.
type BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest struct {
// Data: The raw binary data.
Data string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse: A response
// message for
// ContentAddressableStorage.BatchUpdateBlobs.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse: A
// response corresponding to a single blob that the client tried to
// upload.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2CacheCapabilities: Capabilities of the
// remote cache system.
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"
// "SHA256"
// "SHA1"
// "MD5"
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.
MaxBatchTotalSizeBytes int64 `json:"maxBatchTotalSizeBytes,omitempty,string"`
// SymlinkAbsolutePathStrategy: Whether absolute symlink targets are
// supported.
//
// Possible values:
// "UNKNOWN"
// "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.
SymlinkAbsolutePathStrategy string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2CacheCapabilities) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2CacheCapabilities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2Command: A `Command` is the actual command
// executed by a worker running an
// Action and specifications of its
// environment.
//
// Except as otherwise required, the environment (such as which
// system
// libraries or binaries are available, and what filesystems are mounted
// where)
// is defined by and specific to the implementation of the remote
// execution API.
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 `Command`s 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 contents of the indicated directories
// (recursively
// including the contents of their subdirectories) will be
// returned, as well as files listed in `output_files`. Other files 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, be a parent of another
// output
// directory, be a parent of a listed output file, or have the same path
// as
// any of the listed output files.
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 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, be
// a child of a listed output directory, or have the same path as any of
// the
// listed output directories.
OutputFiles []string `json:"outputFiles,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.
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.
WorkingDirectory string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2Command
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An
// `EnvironmentVariable` is one variable to set in the running
// program's
// environment.
type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct {
// Name: The variable name.
Name string `json:"name,omitempty"`
// Value: The variable value.
Value string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2CommandEnvironmentVariable
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a
// given blob consists of the size of the blob
// and its hash. The hash algorithm to use is defined by the server, but
// servers
// SHOULD use SHA-256.
//
// The size is considered to be an integral part of the digest and
// cannot be
// separated. That is, even if the `hash` field is correctly specified
// but
// `size_bytes` is not, the server MUST reject the request.
//
// The reason for including the size in the digest is as follows: in a
// great
// many cases, the server needs to know the size of the blob it is about
// to work
// with prior to starting an operation with it, such as flattening
// Merkle tree
// structures or streaming it to a worker. Technically, the server
// could
// implement a separate metadata store, but this results in a
// significantly more
// complicated implementation as opposed to having the client specify
// the size
// up-front (or storing the size along with the digest in every message
// where
// digests are embedded). This does mean that the API leaks some
// implementation
// details of (what we consider to be) a reasonable server
// implementation, but
// we consider this to be a worthwhile tradeoff.
//
// When a `Digest` is used to refer to a proto message, it always refers
// to the
// message in binary encoded form. To ensure consistent hashing, clients
// and
// servers MUST ensure that they serialize messages according to the
// following
// rules, even if there are alternate valid encodings for the same
// message.
// - Fields are serialized in tag order.
// - There are no unknown fields.
// - There are no duplicate fields.
// - Fields are serialized according to the default semantics for their
// type.
//
// Most protocol buffer implementations will always follow these rules
// when
// serializing, but care should be taken to avoid shortcuts. For
// instance,
// concatenating two messages to merge them may produce duplicate
// fields.
type BuildBazelRemoteExecutionV2Digest struct {
// Hash: The hash. In the case of SHA-256, it will always be a lowercase
// hex string
// exactly 64 characters long.
Hash string `json:"hash,omitempty"`
// SizeBytes: The size of the blob, in bytes.
SizeBytes int64 `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2Digest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a
// directory node in a file tree, containing zero or
// more children FileNodes,
// DirectoryNodes and
// SymlinkNodes.
// Each `Node` contains its name in the directory, either the digest of
// its
// content (either a file blob or a `Directory` proto) or a symlink
// target, as
// well as possibly some metadata about the file or directory.
//
// In order to ensure that two equivalent directory trees hash to the
// same
// value, the following restrictions MUST be obeyed when constructing
// a
// a `Directory`:
// - Every child in the directory must have a path of exactly one
// segment.
// Multiple levels of directory hierarchy may not be collapsed.
// - Each child in the directory must have a unique path segment (file
// name).
// - The files, directories and symlinks in the directory must each be
// sorted
// in lexicographical order by path. The path strings must be sorted
// by code
// point, equivalently, by UTF-8 bytes.
//
// A `Directory` that obeys the restrictions is said to be in canonical
// form.
//
// As an example, the following could be used for a file named `bar` and
// a
// directory named `foo` with an executable file named `baz` (hashes
// shortened
// for readability):
//
// ```json
// // (Directory proto)
// {
// files: [
// {
// name: "bar",
// digest: {
// hash: "4a73bc9d03...",
// size: 65534
// }
// }
// ],
// 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
// }
// ]
// }
// ```
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"`
// 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:"-"`
}
func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2Directory
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode`
// represents a child of a
// Directory which is itself
// a `Directory` and its associated metadata.
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.
Name string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2DirectoryNode
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about
// an ongoing
// execution, which
// will be contained in the metadata
// field of the
// Operation.
type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct {
// ActionDigest: The digest of the Action
// being executed.
ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"`
// Possible values:
// "UNKNOWN"
// "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.
Stage string `json:"stage,omitempty"`
// StderrStreamName: If set, the client can use this name
// with
// ByteStream.Read to stream the
// standard error.
StderrStreamName string `json:"stderrStreamName,omitempty"`
// StdoutStreamName: If set, the client can use this name
// with
// ByteStream.Read to stream the
// standard output.
StdoutStreamName string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ExecuteOperationMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ExecuteRequest: A request message
// for
// Execution.Execute.
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 anew even if
// its result was already
// present in the cache. If false, the result may be served from
// the
// ActionCache.
SkipCacheLookup bool `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ExecuteRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ExecuteRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ExecuteResponse: The response message
// for
// Execution.Execute,
// which will be contained in the response
// field of the
// Operation.
type BuildBazelRemoteExecutionV2ExecuteResponse struct {
// CachedResult: True if the result was served from cache, false if it
// was executed.
CachedResult bool `json:"cachedResult,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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ExecuteResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ExecutedActionMetadata:
// ExecutedActionMetadata contains details about a completed execution.
type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct {
// ExecutionCompletedTimestamp: When the worker completed executing the
// action command.
ExecutionCompletedTimestamp string `json:"executionCompletedTimestamp,omitempty"`
// ExecutionStartTimestamp: When the worker started executing the action
// command.
ExecutionStartTimestamp string `json:"executionStartTimestamp,omitempty"`
// InputFetchCompletedTimestamp: When the worker finished fetching
// action inputs.
InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"`
// InputFetchStartTimestamp: When the worker started fetching action
// inputs.
InputFetchStartTimestamp string `json:"inputFetchStartTimestamp,omitempty"`
// OutputUploadCompletedTimestamp: When the worker finished uploading
// action outputs.
OutputUploadCompletedTimestamp string `json:"outputUploadCompletedTimestamp,omitempty"`
// OutputUploadStartTimestamp: When the worker started uploading action
// outputs.
OutputUploadStartTimestamp string `json:"outputUploadStartTimestamp,omitempty"`
// QueuedTimestamp: When was the action added to the queue.
QueuedTimestamp string `json:"queuedTimestamp,omitempty"`
// Worker: The name of the worker which ran the execution.
Worker string `json:"worker,omitempty"`
// WorkerCompletedTimestamp: When the worker completed the action,
// including all stages.
WorkerCompletedTimestamp string `json:"workerCompletedTimestamp,omitempty"`
// WorkerStartTimestamp: When the worker received the action.
WorkerStartTimestamp string `json:"workerStartTimestamp,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ExecutionCompletedTimestamp") 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.
// "ExecutionCompletedTimestamp") 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 (s *BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ExecutedActionMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ExecutionCapabilities: Capabilities of the
// remote execution system.
type BuildBazelRemoteExecutionV2ExecutionCapabilities struct {
// DigestFunction: Remote execution may only support a single digest
// function.
//
// Possible values:
// "UNKNOWN"
// "SHA256"
// "SHA1"
// "MD5"
DigestFunction string `json:"digestFunction,omitempty"`
// ExecEnabled: Whether remote execution is enabled for the particular
// server/instance.
ExecEnabled bool `json:"execEnabled,omitempty"`
// ExecutionPriorityCapabilities: Supported execution priority range.
ExecutionPriorityCapabilities *BuildBazelRemoteExecutionV2PriorityCapabilities `json:"executionPriorityCapabilities,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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ExecutionCapabilities) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ExecutionCapabilities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ExecutionPolicy: An `ExecutionPolicy` can
// be used to control the scheduling of the action.
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.
Priority int64 `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ExecutionPolicy) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ExecutionPolicy
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single
// file and associated metadata.
type BuildBazelRemoteExecutionV2FileNode struct {
// Digest: The digest of the file's content.
Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
// IsExecutable: True if file is executable, false otherwise.
IsExecutable bool `json:"isExecutable,omitempty"`
// Name: The name of the file.
Name string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2FileNode
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2FindMissingBlobsRequest: A request message
// for
// ContentAddressableStorage.FindMissingBlobs.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2FindMissingBlobsRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2FindMissingBlobsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2FindMissingBlobsResponse: A response
// message for
// ContentAddressableStorage.FindMissingBlobs.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2FindMissingBlobsResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2FindMissingBlobsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2GetTreeResponse: A response message
// for
// ContentAddressableStorage.GetTree.
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.
NextPageToken string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2GetTreeResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2GetTreeResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in
// the CAS.
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.
HumanReadable bool `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2LogFile
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is
// the output in an `ActionResult` corresponding to a
// directory's full contents rather than a single file.
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.
Path string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2OutputDirectory
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to
// a
// FileNode, but it is used as an
// output in an `ActionResult`. It allows a full file path rather
// than
// only a name.
//
// `OutputFile` is binary-compatible with `FileNode`.
type BuildBazelRemoteExecutionV2OutputFile struct {
// Digest: The digest of the file's content.
Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
// IsExecutable: True if file is executable, false otherwise.
IsExecutable bool `json:"isExecutable,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.
Path string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2OutputFile
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is
// similar to a
// Symlink, but it is used as an
// output in an `ActionResult`.
//
// `OutputSymlink` is binary-compatible with `SymlinkNode`.
type BuildBazelRemoteExecutionV2OutputSymlink struct {
// 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.
Path string `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. The canonical form forbids the substrings `/./` and `//` in the
// target
// path. `..` components are allowed anywhere in the target path.
Target string `json:"target,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:"-"`
}
func (s *BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2OutputSymlink
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of
// requirements, such as hardware, operating system, or
// compiler toolchain, for an
// Action's execution
// environment. A `Platform` is represented as a series of key-value
// pairs
// representing the properties that are required of the platform.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2Platform
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2PlatformProperty: A single property for
// the environment. The server is responsible for
// specifying the property `name`s that it accepts. If an unknown `name`
// is
// provided in the requirements for an
// Action, the server SHOULD
// reject the execution request. If permitted by the server, the same
// `name`
// may occur multiple times.
//
// The server is also responsible for specifying the interpretation
// of
// property `value`s. For instance, a property describing how much RAM
// must be
// available may be interpreted as allowing a worker with 16GB to
// fulfill a
// request for 8GB, while a property describing the OS environment on
// which
// the action must be performed may require an exact match with the
// worker's
// OS.
//
// The server MAY use the `value` of one or more properties to determine
// how
// it sets up the execution environment, such as by making specific
// system
// files available to the worker.
type BuildBazelRemoteExecutionV2PlatformProperty struct {
// Name: The property name.
Name string `json:"name,omitempty"`
// Value: The property value.
Value string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2PlatformProperty
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2PriorityCapabilities: Allowed values for
// priority in
// ResultsCachePolicy
// Used for querying both cache and execution valid priority ranges.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2PriorityCapabilities) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2PriorityCapabilities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange:
// Supported range of priorities, including boundaries.
type BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange struct {
MaxPriority int64 `json:"maxPriority,omitempty"`
MinPriority int64 `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to
// attach to any RPC request to tell the server about an
// external context of the request. The server may use this for logging
// or other
// purposes. To use it, the client attaches the header to the call using
// the
// canonical proto serialization:
// name: build.bazel.remote.execution.v2.requestmetadata-bin
// contents: the base64 encoded binary RequestMetadata message.
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.
ActionId string `json:"actionId,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.
CorrelatedInvocationsId string `json:"correlatedInvocationsId,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.
ToolInvocationId string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2RequestMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ResultsCachePolicy: A `ResultsCachePolicy`
// is used for fine-grained control over how action
// outputs are stored in the CAS and Action Cache.
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.
Priority int64 `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ResultsCachePolicy) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ResultsCachePolicy
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ServerCapabilities: A response message
// for
// Capabilities.GetCapabilities.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ServerCapabilities) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ServerCapabilities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents a
// symbolic link.
type BuildBazelRemoteExecutionV2SymlinkNode struct {
// Name: The name of the symlink.
Name string `json:"name,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. The canonical form forbids the substrings `/./` and `//` in the
// target
// path. `..` components are allowed anywhere in the target path.
Target string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2SymlinkNode
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to
// call the API.
type BuildBazelRemoteExecutionV2ToolDetails struct {
// ToolName: Name of the tool, e.g. bazel.
ToolName string `json:"toolName,omitempty"`
// ToolVersion: Version of the tool used for the request, e.g. 5.0.3.
ToolVersion string `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:"-"`
}
func (s *BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2ToolDetails
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the
// Directory protos in a
// single directory Merkle tree, compressed into one message.
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:"-"`
}
func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelRemoteExecutionV2Tree
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildBazelRemoteExecutionV2WaitExecutionRequest: A request message
// for
// WaitExecution.
type BuildBazelRemoteExecutionV2WaitExecutionRequest struct {
}
type BuildBazelSemverSemVer struct {
Major int64 `json:"major,omitempty"`
Minor int64 `json:"minor,omitempty"`
Patch int64 `json:"patch,omitempty"`
Prerelease string `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:"-"`
}
func (s *BuildBazelSemverSemVer) MarshalJSON() ([]byte, error) {
type NoMethod BuildBazelSemverSemVer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration
// contains the various duration metrics tracked when a bot
// performs a command.
type GoogleDevtoolsRemotebuildbotCommandDurations struct {
// DockerPrep: The time spent preparing the command to be run in a
// Docker container
// (includes pulling the Docker image, if necessary).
DockerPrep string `json:"dockerPrep,omitempty"`
// Download: The time spent downloading the input files and constructing
// the working
// directory.
Download string `json:"download,omitempty"`
// Execution: The time spent executing the command (i.e., doing useful
// work).
Execution string `json:"execution,omitempty"`
// IsoPrepDone: The timestamp when preparation is done and bot starts
// downloading files.
IsoPrepDone string `json:"isoPrepDone,omitempty"`
// Overall: The time spent completing the command, in total.
Overall string `json:"overall,omitempty"`
// Stdout: The time spent uploading the stdout logs.
Stdout string `json:"stdout,omitempty"`
// Upload: The time spent uploading the output files.
Upload string `json:"upload,omitempty"`
// ForceSendFields is a list of field names (e.g. "DockerPrep") 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. "DockerPrep") 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 (s *GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildbotCommandDurations
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains
// counters for the number of warnings and errors
// that occurred during the execution of a command.
type GoogleDevtoolsRemotebuildbotCommandEvents struct {
// DockerCacheHit: Indicates whether we are using a cached Docker image
// (true) or had to pull
// the Docker image (false) for this command.
DockerCacheHit bool `json:"dockerCacheHit,omitempty"`
// NumErrors: The number of errors reported.
NumErrors uint64 `json:"numErrors,omitempty,string"`
// NumWarnings: The number of warnings reported.
NumWarnings uint64 `json:"numWarnings,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "DockerCacheHit") 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. "DockerCacheHit") 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 (s *GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest:
// The request used for `CreateInstance`.
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,
// contains only lowercase letters, digits, hyphens and
// underscores,
// start with a lowercase letter, and
// end with a lowercase letter or a digit.
InstanceId string `json:"instanceId,omitempty"`
// Parent: Resource name of the project containing the instance.
// Format: `projects/[PROJECT_ID]`.
Parent string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest:
// The request used for `CreateWorkerPool`.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct {
// Parent: Resource name of the instance in which to create the new
// worker pool.
// Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
Parent string `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.
PoolId string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest:
// The request used for `DeleteInstance`.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct {
// Name: Name of the instance to delete.
// Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
Name string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest:
// The request used for DeleteWorkerPool.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct {
// Name: Name of the worker pool to
// delete.
// Format:
// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerp
// ools/[POOL_ID]`.
Name string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: The
// request used for `GetInstance`.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct {
// Name: Name of the instance to retrieve.
// Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
Name string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest:
// The request used for GetWorkerPool.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct {
// Name: Name of the worker pool to
// retrieve.
// Format:
// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/worke
// rpools/[POOL_ID]`.
Name string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instance
// conceptually encapsulates all Remote Build Execution resources
// for remote builds.
// An instance consists of storage and compute resources (for
// example,
// `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used
// for
// running remote builds.
// All Remote Build Execution API calls are scoped to an instance.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct {
// Location: The location is a GCP region. Currently only `us-central1`
// is supported.
Location string `json:"location,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.
Name string `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.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct {
// Parent: Resource name of the project.
// Format: `projects/[PROJECT_ID]`.
Parent string `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 (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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 (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct {
// Parent: Resource name of the instance.
// Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
Parent string `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 (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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 (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest:
// The request used for UpdateWorkerPool.
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.
UpdateMask string `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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines
// the configuration to be used for a creating workers in
// the worker pool.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct {
// DiskSizeGb: Required. Size of the disk attached to the worker, in
// GB.
// See https://cloud.google.com/compute/docs/disks/
DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
// DiskType: Required. Disk Type to use for the worker.
// See [Storage
// options](https://cloud.google.com/compute/docs/disks/#introduction).
// C
// urrently only `pd-standard` is supported.
DiskType string `json:"diskType,omitempty"`
// MachineType: Required. Machine type of the worker, such as
// n1-standard-2.
// See https://cloud.google.com/compute/docs/machine-types for a list
// of
// supported machine types.
MachineType string `json:"machineType,omitempty"`
// MinCpuPlatform: Minimum CPU platform to use when creating the
// worker.
// See [CPU
// Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
// Reserved: Output only. `reserved=true` means the worker is reserved
// and won't be
// preempted.
Reserved bool `json:"reserved,omitempty"`
// ForceSendFields is a list of field names (e.g. "DiskSizeGb") 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. "DiskSizeGb") 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 (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker
// pool resource in the Remote Build Execution API.
type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct {
// Name: WorkerPool resource name formatted
// as:
// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_I
// D]`.
// name should not be populated when creating a worker pool since it
// is
// provided in the `poolId` field.
Name string `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.
State string `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 1000.
WorkerCount int64 `json:"workerCount,omitempty,string"`
// 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:"-"`
}
func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testActionResult: An ActionResult
// represents the result of an
// Action being run.
type GoogleDevtoolsRemoteexecutionV1testActionResult struct {
// ExitCode: The exit code of the command.
ExitCode int64 `json:"exitCode,omitempty"`
// OutputDirectories: The output directories of the action. For each
// output directory requested
// in the `output_directories` 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
// }
// ]
// }
// }
// ```
OutputDirectories []*GoogleDevtoolsRemoteexecutionV1testOutputDirectory `json:"outputDirectories,omitempty"`
// OutputFiles: The output files of the action. For each output file
// requested in the
// `output_files` field of the Action, if the corresponding file existed
// after
// the action completed, a single entry will be present in the output
// list.
//
// If the action does not produce the requested output, or produces
// a
// directory where a regular file is expected or vice versa, 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 []*GoogleDevtoolsRemoteexecutionV1testOutputFile `json:"outputFiles,omitempty"`
// StderrDigest: The digest for a blob containing the standard error of
// the action, which
// can be retrieved from the
// ContentAddressableStorage.
// See `stderr_raw` for when this will be set.
StderrDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"stderrDigest,omitempty"`
// StderrRaw: The standard error buffer of the action. The server will
// determine, based
// on the size of the buffer, whether to return it in raw form or to
// return
// a digest in `stderr_digest` that points to the buffer. If neither is
// set,
// then the buffer is empty. The client SHOULD NOT assume it will get
// one of
// the raw buffer or a digest on any given request and should be
// prepared to
// handle either.
StderrRaw string `json:"stderrRaw,omitempty"`
// StdoutDigest: The digest for a blob containing the standard output of
// the action, which
// can be retrieved from the
// ContentAddressableStorage.
// See `stdout_raw` for when this will be set.
StdoutDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"stdoutDigest,omitempty"`
// StdoutRaw: The standard output buffer of the action. The server will
// determine, based
// on the size of the buffer, whether to return it in raw form or to
// return
// a digest in `stdout_digest` that points to the buffer. If neither is
// set,
// then the buffer is empty. The client SHOULD NOT assume it will get
// one of
// the raw buffer or a digest on any given request and should be
// prepared to
// handle either.
StdoutRaw string `json:"stdoutRaw,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:"-"`
}
func (s *GoogleDevtoolsRemoteexecutionV1testActionResult) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemoteexecutionV1testActionResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testCommand: A `Command` is the actual
// command executed by a worker running an
// Action.
//
// Except as otherwise required, the environment (such as which
// system
// libraries or binaries are available, and what filesystems are mounted
// where)
// is defined by and specific to the implementation of the remote
// execution API.
type GoogleDevtoolsRemoteexecutionV1testCommand 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.
//
// The working directory will always be the input root.
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 `Command`s 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 []*GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable `json:"environmentVariables,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:"-"`
}
func (s *GoogleDevtoolsRemoteexecutionV1testCommand) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemoteexecutionV1testCommand
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable: An
// `EnvironmentVariable` is one variable to set in the running
// program's
// environment.
type GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable struct {
// Name: The variable name.
Name string `json:"name,omitempty"`
// Value: The variable value.
Value string `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:"-"`
}
func (s *GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testDigest: A content digest. A digest
// for a given blob consists of the size of the blob
// and its hash. The hash algorithm to use is defined by the server, but
// servers
// SHOULD use SHA-256.
//
// The size is considered to be an integral part of the digest and
// cannot be
// separated. That is, even if the `hash` field is correctly specified
// but
// `size_bytes` is not, the server MUST reject the request.
//
// The reason for including the size in the digest is as follows: in a
// great
// many cases, the server needs to know the size of the blob it is about
// to work
// with prior to starting an operation with it, such as flattening
// Merkle tree
// structures or streaming it to a worker. Technically, the server
// could
// implement a separate metadata store, but this results in a
// significantly more
// complicated implementation as opposed to having the client specify
// the size
// up-front (or storing the size along with the digest in every message
// where
// digests are embedded). This does mean that the API leaks some
// implementation
// details of (what we consider to be) a reasonable server
// implementation, but
// we consider this to be a worthwhile tradeoff.
//
// When a `Digest` is used to refer to a proto message, it always refers
// to the
// message in binary encoded form. To ensure consistent hashing, clients
// and
// servers MUST ensure that they serialize messages according to the
// following
// rules, even if there are alternate valid encodings for the same
// message.
// - Fields are serialized in tag order.
// - There are no unknown fields.
// - There are no duplicate fields.
// - Fields are serialized according to the default semantics for their
// type.
//
// Most protocol buffer implementations will always follow these rules
// when
// serializing, but care should be taken to avoid shortcuts. For
// instance,
// concatenating two messages to merge them may produce duplicate
// fields.
type GoogleDevtoolsRemoteexecutionV1testDigest struct {
// Hash: The hash. In the case of SHA-256, it will always be a lowercase
// hex string
// exactly 64 characters long.
Hash string `json:"hash,omitempty"`
// SizeBytes: The size of the blob, in bytes.
SizeBytes int64 `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:"-"`
}
func (s *GoogleDevtoolsRemoteexecutionV1testDigest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemoteexecutionV1testDigest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testDirectory: A `Directory`
// represents a directory node in a file tree, containing zero or
// more children FileNodes
// and DirectoryNodes.
// Each `Node` contains its name in the directory, the digest of its
// content
// (either a file blob or a `Directory` proto), as well as possibly
// some
// metadata about the file or directory.
//
// In order to ensure that two equivalent directory trees hash to the
// same
// value, the following restrictions MUST be obeyed when constructing
// a
// a `Directory`:
// - Every child in the directory must have a path of exactly one
// segment.
// Multiple levels of directory hierarchy may not be collapsed.
// - Each child in the directory must have a unique path segment (file
// name).
// - The files and directories in the directory must each be sorted
// in
// lexicographical order by path. The path strings must be sorted by
// code
// point, equivalently, by UTF-8 bytes.
//
// A `Directory` that obeys the restrictions is said to be in canonical
// form.
//
// As an example, the following could be used for a file named `bar` and
// a
// directory named `foo` with an executable file named `baz` (hashes
// shortened
// for readability):
//
// ```json
// // (Directory proto)
// {
// files: [
// {
// name: "bar",
// digest: {
// hash: "4a73bc9d03...",
// size: 65534
// }
// }
// ],
// 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
// }
// ]
// }
// ```
type GoogleDevtoolsRemoteexecutionV1testDirectory struct {
// Directories: The subdirectories in the directory.
Directories []*GoogleDevtoolsRemoteexecutionV1testDirectoryNode `json:"directories,omitempty"`
// Files: The files in the directory.
Files []*GoogleDevtoolsRemoteexecutionV1testFileNode `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:"-"`
}
func (s *GoogleDevtoolsRemoteexecutionV1testDirectory) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemoteexecutionV1testDirectory
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testDirectoryNode: A `DirectoryNode`
// represents a child of a
// Directory which is itself
// a `Directory` and its associated metadata.
type GoogleDevtoolsRemoteexecutionV1testDirectoryNode struct {
// Digest: The digest of the
// Directory object
// represented. See Digest
// for information about how to take the digest of a proto message.
Digest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"digest,omitempty"`
// Name: The name of the directory.
Name string `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:"-"`
}
func (s *GoogleDevtoolsRemoteexecutionV1testDirectoryNode) MarshalJSON() ([]byte, error) {
type NoMethod GoogleDevtoolsRemoteexecutionV1testDirectoryNode
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata: Metadata
// about an ongoing
// execution, which
// will be contained in the metadata
// field of the
// Operation.
type GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata struct {
// ActionDigest: The digest of the Action
// being executed.
ActionDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"actionDigest,omitempty"`
// Possible values:
// "UNKNOWN"
// "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.
Stage string `json:"stage,omitempty"`
// StderrStreamName: If set, the client can use this name
// with
// ByteStream.Read to stream the
// standard error.
StderrStreamName string `json:"stderrStreamName,omitempty"`
// StdoutStreamName: If set, the client can use this name
// with
// ByteStream.Read to stream the
// standard output.
StdoutStreamName string `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