1// Copyright 2021 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package remotebuildexecution provides access to the Remote Build Execution API.
8//
9// For product documentation, see: https://cloud.google.com/remote-build-execution/docs/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/remotebuildexecution/v1"
16//   ...
17//   ctx := context.Background()
18//   remotebuildexecutionService, err := remotebuildexecution.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package remotebuildexecution // import "google.golang.org/api/remotebuildexecution/v1"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	googleapi "google.golang.org/api/googleapi"
53	gensupport "google.golang.org/api/internal/gensupport"
54	option "google.golang.org/api/option"
55	internaloption "google.golang.org/api/option/internaloption"
56	htransport "google.golang.org/api/transport/http"
57)
58
59// Always reference these packages, just in case the auto-generated code
60// below doesn't.
61var _ = bytes.NewBuffer
62var _ = strconv.Itoa
63var _ = fmt.Sprintf
64var _ = json.NewDecoder
65var _ = io.Copy
66var _ = url.Parse
67var _ = gensupport.MarshalJSON
68var _ = googleapi.Version
69var _ = errors.New
70var _ = strings.Replace
71var _ = context.Canceled
72var _ = internaloption.WithDefaultEndpoint
73
74const apiId = "remotebuildexecution:v1"
75const apiName = "remotebuildexecution"
76const apiVersion = "v1"
77const basePath = "https://remotebuildexecution.googleapis.com/"
78const mtlsBasePath = "https://remotebuildexecution.mtls.googleapis.com/"
79
80// OAuth2 scopes used by this API.
81const (
82	// View and manage your data across Google Cloud Platform services
83	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
84)
85
86// NewService creates a new Service.
87func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
88	scopesOption := option.WithScopes(
89		"https://www.googleapis.com/auth/cloud-platform",
90	)
91	// NOTE: prepend, so we don't override user-specified scopes.
92	opts = append([]option.ClientOption{scopesOption}, opts...)
93	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
94	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
95	client, endpoint, err := htransport.NewClient(ctx, opts...)
96	if err != nil {
97		return nil, err
98	}
99	s, err := New(client)
100	if err != nil {
101		return nil, err
102	}
103	if endpoint != "" {
104		s.BasePath = endpoint
105	}
106	return s, nil
107}
108
109// New creates a new Service. It uses the provided http.Client for requests.
110//
111// Deprecated: please use NewService instead.
112// To provide a custom HTTP client, use option.WithHTTPClient.
113// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
114func New(client *http.Client) (*Service, error) {
115	if client == nil {
116		return nil, errors.New("client is nil")
117	}
118	s := &Service{client: client, BasePath: basePath}
119	s.Media = NewMediaService(s)
120	s.Operations = NewOperationsService(s)
121	s.Projects = NewProjectsService(s)
122	return s, nil
123}
124
125type Service struct {
126	client    *http.Client
127	BasePath  string // API endpoint base URL
128	UserAgent string // optional additional User-Agent fragment
129
130	Media *MediaService
131
132	Operations *OperationsService
133
134	Projects *ProjectsService
135}
136
137func (s *Service) userAgent() string {
138	if s.UserAgent == "" {
139		return googleapi.UserAgent
140	}
141	return googleapi.UserAgent + " " + s.UserAgent
142}
143
144func NewMediaService(s *Service) *MediaService {
145	rs := &MediaService{s: s}
146	return rs
147}
148
149type MediaService struct {
150	s *Service
151}
152
153func NewOperationsService(s *Service) *OperationsService {
154	rs := &OperationsService{s: s}
155	return rs
156}
157
158type OperationsService struct {
159	s *Service
160}
161
162func NewProjectsService(s *Service) *ProjectsService {
163	rs := &ProjectsService{s: s}
164	rs.Operations = NewProjectsOperationsService(s)
165	return rs
166}
167
168type ProjectsService struct {
169	s *Service
170
171	Operations *ProjectsOperationsService
172}
173
174func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
175	rs := &ProjectsOperationsService{s: s}
176	return rs
177}
178
179type ProjectsOperationsService struct {
180	s *Service
181}
182
183// BuildBazelRemoteExecutionV2Action: An `Action` captures all the
184// information about an execution which is required to reproduce it.
185// `Action`s are the core component of the [Execution] service. A single
186// `Action` represents a repeatable action that can be performed by the
187// execution service. `Action`s can be succinctly identified by the
188// digest of their wire format encoding and, once an `Action` has been
189// executed, will be cached in the action cache. Future requests can
190// then use the cached result rather than needing to run afresh. When a
191// server completes execution of an Action, it MAY choose to cache the
192// result in the ActionCache unless `do_not_cache` is `true`. Clients
193// SHOULD expect the server to do so. By default, future calls to
194// Execute the same `Action` will also serve their results from the
195// cache. Clients must take care to understand the caching behaviour.
196// Ideally, all `Action`s will be reproducible so that serving a result
197// from cache is always desirable and correct.
198type BuildBazelRemoteExecutionV2Action struct {
199	// CommandDigest: The digest of the Command to run, which MUST be
200	// present in the ContentAddressableStorage.
201	CommandDigest *BuildBazelRemoteExecutionV2Digest `json:"commandDigest,omitempty"`
202
203	// DoNotCache: If true, then the `Action`'s result cannot be cached, and
204	// in-flight requests for the same `Action` may not be merged.
205	DoNotCache bool `json:"doNotCache,omitempty"`
206
207	// InputRootDigest: The digest of the root Directory for the input
208	// files. The files in the directory tree are available in the correct
209	// location on the build machine before the command is executed. The
210	// root directory, as well as every subdirectory and content blob
211	// referred to, MUST be in the ContentAddressableStorage.
212	InputRootDigest *BuildBazelRemoteExecutionV2Digest `json:"inputRootDigest,omitempty"`
213
214	// Platform: The optional platform requirements for the execution
215	// environment. The server MAY choose to execute the action on any
216	// worker satisfying the requirements, so the client SHOULD ensure that
217	// running the action on any such worker will have the same result. A
218	// detailed lexicon for this can be found in the accompanying
219	// platform.md. New in version 2.2: clients SHOULD set these platform
220	// properties as well as those in the Command. Servers SHOULD prefer
221	// those set here.
222	Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"`
223
224	// Salt: An optional additional salt value used to place this `Action`
225	// into a separate cache namespace from other instances having the same
226	// field contents. This salt typically comes from operational
227	// configuration specific to sources such as repo and service
228	// configuration, and allows disowning an entire set of ActionResults
229	// that might have been poisoned by buggy software or tool failures.
230	Salt string `json:"salt,omitempty"`
231
232	// Timeout: A timeout after which the execution should be killed. If the
233	// timeout is absent, then the client is specifying that the execution
234	// should continue as long as the server will let it. The server SHOULD
235	// impose a timeout if the client does not specify one, however, if the
236	// client does specify a timeout that is longer than the server's
237	// maximum timeout, the server MUST reject the request. The timeout is a
238	// part of the Action message, and therefore two `Actions` with
239	// different timeouts are different, even if they are otherwise
240	// identical. This is because, if they were not, running an `Action`
241	// with a lower timeout than is required might result in a cache hit
242	// from an execution run with a longer timeout, hiding the fact that the
243	// timeout is too short. By encoding it directly in the `Action`, a
244	// lower timeout will result in a cache miss and the execution timeout
245	// will fail immediately, rather than whenever the cache entry gets
246	// evicted.
247	Timeout string `json:"timeout,omitempty"`
248
249	// ForceSendFields is a list of field names (e.g. "CommandDigest") to
250	// unconditionally include in API requests. By default, fields with
251	// empty values are omitted from API requests. However, any non-pointer,
252	// non-interface field appearing in ForceSendFields will be sent to the
253	// server regardless of whether the field is empty or not. This may be
254	// used to include empty fields in Patch requests.
255	ForceSendFields []string `json:"-"`
256
257	// NullFields is a list of field names (e.g. "CommandDigest") to include
258	// in API requests with the JSON null value. By default, fields with
259	// empty values are omitted from API requests. However, any field with
260	// an empty value appearing in NullFields will be sent to the server as
261	// null. It is an error if a field in this list has a non-empty value.
262	// This may be used to include null fields in Patch requests.
263	NullFields []string `json:"-"`
264}
265
266func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) {
267	type NoMethod BuildBazelRemoteExecutionV2Action
268	raw := NoMethod(*s)
269	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
270}
271
272// BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents
273// the result of an Action being run. It is advised that at least one
274// field (for example `ActionResult.execution_metadata.Worker`) have a
275// non-default value, to ensure that the serialized value is non-empty,
276// which can then be used as a basic data sanity check.
277type BuildBazelRemoteExecutionV2ActionResult struct {
278	// ExecutionMetadata: The details of the execution that originally
279	// produced this result.
280	ExecutionMetadata *BuildBazelRemoteExecutionV2ExecutedActionMetadata `json:"executionMetadata,omitempty"`
281
282	// ExitCode: The exit code of the command.
283	ExitCode int64 `json:"exitCode,omitempty"`
284
285	// OutputDirectories: The output directories of the action. For each
286	// output directory requested in the `output_directories` or
287	// `output_paths` field of the Action, if the corresponding directory
288	// existed after the action completed, a single entry will be present in
289	// the output list, which will contain the digest of a Tree message
290	// containing the directory tree, and the path equal exactly to the
291	// corresponding Action output_directories member. As an example,
292	// suppose the Action had an output directory `a/b/dir` and the
293	// execution produced the following contents in `a/b/dir`: a file named
294	// `bar` and a directory named `foo` with an executable file named
295	// `baz`. Then, output_directory will contain (hashes shortened for
296	// readability): ```json // OutputDirectory proto: { path: "a/b/dir"
297	// tree_digest: { hash: "4a73bc9d03...", size: 55 } } // Tree proto with
298	// hash "4a73bc9d03..." and size 55: { root: { files: [ { name: "bar",
299	// digest: { hash: "4a73bc9d03...", size: 65534 } } ], directories: [ {
300	// name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] }
301	// children : { // (Directory proto with hash "4cf2eda940..." and size
302	// 43) files: [ { name: "baz", digest: { hash: "b2c941073e...", size:
303	// 1294, }, is_executable: true } ] } } ``` If an output of the same
304	// name as listed in `output_files` of the Command was found in
305	// `output_directories`, but was not a directory, the server will return
306	// a FAILED_PRECONDITION.
307	OutputDirectories []*BuildBazelRemoteExecutionV2OutputDirectory `json:"outputDirectories,omitempty"`
308
309	// OutputDirectorySymlinks: The output directories of the action that
310	// are symbolic links to other directories. Those may be links to other
311	// output directories, or input directories, or even absolute paths
312	// outside of the working directory, if the server supports
313	// SymlinkAbsolutePathStrategy.ALLOWED. For each output directory
314	// requested in the `output_directories` field of the Action, if the
315	// directory existed after the action completed, a single entry will be
316	// present either in this field, or in the `output_directories` field,
317	// if the directory was not a symbolic link. If an output of the same
318	// name was found, but was a symbolic link to a file instead of a
319	// directory, the server will return a FAILED_PRECONDITION. If the
320	// action does not produce the requested output, then that output will
321	// be omitted from the list. The server is free to arrange the output
322	// list as desired; clients MUST NOT assume that the output list is
323	// sorted. DEPRECATED as of v2.1. Servers that wish to be compatible
324	// with v2.0 API should still populate this field in addition to
325	// `output_symlinks`.
326	OutputDirectorySymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputDirectorySymlinks,omitempty"`
327
328	// OutputFileSymlinks: The output files of the action that are symbolic
329	// links to other files. Those may be links to other output files, or
330	// input files, or even absolute paths outside of the working directory,
331	// if the server supports SymlinkAbsolutePathStrategy.ALLOWED. For each
332	// output file requested in the `output_files` or `output_paths` field
333	// of the Action, if the corresponding file existed after the action
334	// completed, a single entry will be present either in this field, or in
335	// the `output_files` field, if the file was not a symbolic link. If an
336	// output symbolic link of the same name as listed in `output_files` of
337	// the Command was found, but its target type was not a regular file,
338	// the server will return a FAILED_PRECONDITION. If the action does not
339	// produce the requested output, then that output will be omitted from
340	// the list. The server is free to arrange the output list as desired;
341	// clients MUST NOT assume that the output list is sorted. DEPRECATED as
342	// of v2.1. Servers that wish to be compatible with v2.0 API should
343	// still populate this field in addition to `output_symlinks`.
344	OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"`
345
346	// OutputFiles: The output files of the action. For each output file
347	// requested in the `output_files` or `output_paths` field of the
348	// Action, if the corresponding file existed after the action completed,
349	// a single entry will be present either in this field, or the
350	// `output_file_symlinks` field if the file was a symbolic link to
351	// another file (`output_symlinks` field after v2.1). If an output
352	// listed in `output_files` was found, but was a directory rather than a
353	// regular file, the server will return a FAILED_PRECONDITION. If the
354	// action does not produce the requested output, then that output will
355	// be omitted from the list. The server is free to arrange the output
356	// list as desired; clients MUST NOT assume that the output list is
357	// sorted.
358	OutputFiles []*BuildBazelRemoteExecutionV2OutputFile `json:"outputFiles,omitempty"`
359
360	// OutputSymlinks: New in v2.1: this field will only be populated if the
361	// command `output_paths` field was used, and not the pre v2.1
362	// `output_files` or `output_directories` fields. The output paths of
363	// the action that are symbolic links to other paths. Those may be links
364	// to other outputs, or inputs, or even absolute paths outside of the
365	// working directory, if the server supports
366	// SymlinkAbsolutePathStrategy.ALLOWED. A single entry for each output
367	// requested in `output_paths` field of the Action, if the corresponding
368	// path existed after the action completed and was a symbolic link. If
369	// the action does not produce a requested output, then that output will
370	// be omitted from the list. The server is free to arrange the output
371	// list as desired; clients MUST NOT assume that the output list is
372	// sorted.
373	OutputSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputSymlinks,omitempty"`
374
375	// StderrDigest: The digest for a blob containing the standard error of
376	// the action, which can be retrieved from the
377	// ContentAddressableStorage.
378	StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"`
379
380	// StderrRaw: The standard error buffer of the action. The server SHOULD
381	// NOT inline stderr unless requested by the client in the
382	// GetActionResultRequest message. The server MAY omit inlining, even if
383	// requested, and MUST do so if inlining would cause the response to
384	// exceed message size limits.
385	StderrRaw string `json:"stderrRaw,omitempty"`
386
387	// StdoutDigest: The digest for a blob containing the standard output of
388	// the action, which can be retrieved from the
389	// ContentAddressableStorage.
390	StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"`
391
392	// StdoutRaw: The standard output buffer of the action. The server
393	// SHOULD NOT inline stdout unless requested by the client in the
394	// GetActionResultRequest message. The server MAY omit inlining, even if
395	// requested, and MUST do so if inlining would cause the response to
396	// exceed message size limits.
397	StdoutRaw string `json:"stdoutRaw,omitempty"`
398
399	// ForceSendFields is a list of field names (e.g. "ExecutionMetadata")
400	// to unconditionally include in API requests. By default, fields with
401	// empty values are omitted from API requests. However, any non-pointer,
402	// non-interface field appearing in ForceSendFields will be sent to the
403	// server regardless of whether the field is empty or not. This may be
404	// used to include empty fields in Patch requests.
405	ForceSendFields []string `json:"-"`
406
407	// NullFields is a list of field names (e.g. "ExecutionMetadata") to
408	// include in API requests with the JSON null value. By default, fields
409	// with empty values are omitted from API requests. However, any field
410	// with an empty value appearing in NullFields will be sent to the
411	// server as null. It is an error if a field in this list has a
412	// non-empty value. This may be used to include null fields in Patch
413	// requests.
414	NullFields []string `json:"-"`
415}
416
417func (s *BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) {
418	type NoMethod BuildBazelRemoteExecutionV2ActionResult
419	raw := NoMethod(*s)
420	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
421}
422
423// BuildBazelRemoteExecutionV2Command: A `Command` is the actual command
424// executed by a worker running an Action and specifications of its
425// environment. Except as otherwise required, the environment (such as
426// which system libraries or binaries are available, and what
427// filesystems are mounted where) is defined by and specific to the
428// implementation of the remote execution API.
429type BuildBazelRemoteExecutionV2Command struct {
430	// Arguments: The arguments to the command. The first argument must be
431	// the path to the executable, which must be either a relative path, in
432	// which case it is evaluated with respect to the input root, or an
433	// absolute path.
434	Arguments []string `json:"arguments,omitempty"`
435
436	// EnvironmentVariables: The environment variables to set when running
437	// the program. The worker may provide its own default environment
438	// variables; these defaults can be overridden using this field.
439	// Additional variables can also be specified. In order to ensure that
440	// equivalent Commands always hash to the same value, the environment
441	// variables MUST be lexicographically sorted by name. Sorting of
442	// strings is done by code point, equivalently, by the UTF-8 bytes.
443	EnvironmentVariables []*BuildBazelRemoteExecutionV2CommandEnvironmentVariable `json:"environmentVariables,omitempty"`
444
445	// OutputDirectories: A list of the output directories that the client
446	// expects to retrieve from the action. Only the listed directories will
447	// be returned (an entire directory structure will be returned as a Tree
448	// message digest, see OutputDirectory), as well as files listed in
449	// `output_files`. Other files or directories that may be created during
450	// command execution are discarded. The paths are relative to the
451	// working directory of the action execution. The paths are specified
452	// using a single forward slash (`/`) as a path separator, even if the
453	// execution platform natively uses a different separator. The path MUST
454	// NOT include a trailing slash, nor a leading slash, being a relative
455	// path. The special value of empty string is allowed, although not
456	// recommended, and can be used to capture the entire working directory
457	// tree, including inputs. In order to ensure consistent hashing of the
458	// same Action, the output paths MUST be sorted lexicographically by
459	// code point (or, equivalently, by UTF-8 bytes). An output directory
460	// cannot be duplicated or have the same path as any of the listed
461	// output files. An output directory is allowed to be a parent of
462	// another output directory. Directories leading up to the output
463	// directories (but not the output directories themselves) are created
464	// by the worker prior to execution, even if they are not explicitly
465	// part of the input root. DEPRECATED since 2.1: Use `output_paths`
466	// instead.
467	OutputDirectories []string `json:"outputDirectories,omitempty"`
468
469	// OutputFiles: A list of the output files that the client expects to
470	// retrieve from the action. Only the listed files, as well as
471	// directories listed in `output_directories`, will be returned to the
472	// client as output. Other files or directories that may be created
473	// during command execution are discarded. The paths are relative to the
474	// working directory of the action execution. The paths are specified
475	// using a single forward slash (`/`) as a path separator, even if the
476	// execution platform natively uses a different separator. The path MUST
477	// NOT include a trailing slash, nor a leading slash, being a relative
478	// path. In order to ensure consistent hashing of the same Action, the
479	// output paths MUST be sorted lexicographically by code point (or,
480	// equivalently, by UTF-8 bytes). An output file cannot be duplicated,
481	// be a parent of another output file, or have the same path as any of
482	// the listed output directories. Directories leading up to the output
483	// files are created by the worker prior to execution, even if they are
484	// not explicitly part of the input root. DEPRECATED since v2.1: Use
485	// `output_paths` instead.
486	OutputFiles []string `json:"outputFiles,omitempty"`
487
488	// OutputNodeProperties: A list of keys for node properties the client
489	// expects to retrieve for output files and directories. Keys are either
490	// names of string-based NodeProperty or names of fields in
491	// NodeProperties. In order to ensure that equivalent `Action`s always
492	// hash to the same value, the node properties MUST be lexicographically
493	// sorted by name. Sorting of strings is done by code point,
494	// equivalently, by the UTF-8 bytes. The interpretation of string-based
495	// properties is server-dependent. If a property is not recognized by
496	// the server, the server will return an `INVALID_ARGUMENT`.
497	OutputNodeProperties []string `json:"outputNodeProperties,omitempty"`
498
499	// OutputPaths: A list of the output paths that the client expects to
500	// retrieve from the action. Only the listed paths will be returned to
501	// the client as output. The type of the output (file or directory) is
502	// not specified, and will be determined by the server after action
503	// execution. If the resulting path is a file, it will be returned in an
504	// OutputFile) typed field. If the path is a directory, the entire
505	// directory structure will be returned as a Tree message digest, see
506	// OutputDirectory) Other files or directories that may be created
507	// during command execution are discarded. The paths are relative to the
508	// working directory of the action execution. The paths are specified
509	// using a single forward slash (`/`) as a path separator, even if the
510	// execution platform natively uses a different separator. The path MUST
511	// NOT include a trailing slash, nor a leading slash, being a relative
512	// path. In order to ensure consistent hashing of the same Action, the
513	// output paths MUST be deduplicated and sorted lexicographically by
514	// code point (or, equivalently, by UTF-8 bytes). Directories leading up
515	// to the output paths are created by the worker prior to execution,
516	// even if they are not explicitly part of the input root. New in v2.1:
517	// this field supersedes the DEPRECATED `output_files` and
518	// `output_directories` fields. If `output_paths` is used,
519	// `output_files` and `output_directories` will be ignored!
520	OutputPaths []string `json:"outputPaths,omitempty"`
521
522	// Platform: The platform requirements for the execution environment.
523	// The server MAY choose to execute the action on any worker satisfying
524	// the requirements, so the client SHOULD ensure that running the action
525	// on any such worker will have the same result. A detailed lexicon for
526	// this can be found in the accompanying platform.md. DEPRECATED as of
527	// v2.2: platform properties are now specified directly in the action.
528	// See documentation note in the Action for migration.
529	Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"`
530
531	// WorkingDirectory: The working directory, relative to the input root,
532	// for the command to run in. It must be a directory which exists in the
533	// input tree. If it is left empty, then the action is run in the input
534	// root.
535	WorkingDirectory string `json:"workingDirectory,omitempty"`
536
537	// ForceSendFields is a list of field names (e.g. "Arguments") to
538	// unconditionally include in API requests. By default, fields with
539	// empty values are omitted from API requests. However, any non-pointer,
540	// non-interface field appearing in ForceSendFields will be sent to the
541	// server regardless of whether the field is empty or not. This may be
542	// used to include empty fields in Patch requests.
543	ForceSendFields []string `json:"-"`
544
545	// NullFields is a list of field names (e.g. "Arguments") to include in
546	// API requests with the JSON null value. By default, fields with empty
547	// values are omitted from API requests. However, any field with an
548	// empty value appearing in NullFields will be sent to the server as
549	// null. It is an error if a field in this list has a non-empty value.
550	// This may be used to include null fields in Patch requests.
551	NullFields []string `json:"-"`
552}
553
554func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) {
555	type NoMethod BuildBazelRemoteExecutionV2Command
556	raw := NoMethod(*s)
557	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
558}
559
560// BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An
561// `EnvironmentVariable` is one variable to set in the running program's
562// environment.
563type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct {
564	// Name: The variable name.
565	Name string `json:"name,omitempty"`
566
567	// Value: The variable value.
568	Value string `json:"value,omitempty"`
569
570	// ForceSendFields is a list of field names (e.g. "Name") to
571	// unconditionally include in API requests. By default, fields with
572	// empty values are omitted from API requests. However, any non-pointer,
573	// non-interface field appearing in ForceSendFields will be sent to the
574	// server regardless of whether the field is empty or not. This may be
575	// used to include empty fields in Patch requests.
576	ForceSendFields []string `json:"-"`
577
578	// NullFields is a list of field names (e.g. "Name") to include in API
579	// requests with the JSON null value. By default, fields with empty
580	// values are omitted from API requests. However, any field with an
581	// empty value appearing in NullFields will be sent to the server as
582	// null. It is an error if a field in this list has a non-empty value.
583	// This may be used to include null fields in Patch requests.
584	NullFields []string `json:"-"`
585}
586
587func (s *BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) {
588	type NoMethod BuildBazelRemoteExecutionV2CommandEnvironmentVariable
589	raw := NoMethod(*s)
590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
591}
592
593// BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a
594// given blob consists of the size of the blob and its hash. The hash
595// algorithm to use is defined by the server. The size is considered to
596// be an integral part of the digest and cannot be separated. That is,
597// even if the `hash` field is correctly specified but `size_bytes` is
598// not, the server MUST reject the request. The reason for including the
599// size in the digest is as follows: in a great many cases, the server
600// needs to know the size of the blob it is about to work with prior to
601// starting an operation with it, such as flattening Merkle tree
602// structures or streaming it to a worker. Technically, the server could
603// implement a separate metadata store, but this results in a
604// significantly more complicated implementation as opposed to having
605// the client specify the size up-front (or storing the size along with
606// the digest in every message where digests are embedded). This does
607// mean that the API leaks some implementation details of (what we
608// consider to be) a reasonable server implementation, but we consider
609// this to be a worthwhile tradeoff. When a `Digest` is used to refer to
610// a proto message, it always refers to the message in binary encoded
611// form. To ensure consistent hashing, clients and servers MUST ensure
612// that they serialize messages according to the following rules, even
613// if there are alternate valid encodings for the same message: * Fields
614// are serialized in tag order. * There are no unknown fields. * There
615// are no duplicate fields. * Fields are serialized according to the
616// default semantics for their type. Most protocol buffer
617// implementations will always follow these rules when serializing, but
618// care should be taken to avoid shortcuts. For instance, concatenating
619// two messages to merge them may produce duplicate fields.
620type BuildBazelRemoteExecutionV2Digest struct {
621	// Hash: The hash. In the case of SHA-256, it will always be a lowercase
622	// hex string exactly 64 characters long.
623	Hash string `json:"hash,omitempty"`
624
625	// SizeBytes: The size of the blob, in bytes.
626	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
627
628	// ForceSendFields is a list of field names (e.g. "Hash") to
629	// unconditionally include in API requests. By default, fields with
630	// empty values are omitted from API requests. However, any non-pointer,
631	// non-interface field appearing in ForceSendFields will be sent to the
632	// server regardless of whether the field is empty or not. This may be
633	// used to include empty fields in Patch requests.
634	ForceSendFields []string `json:"-"`
635
636	// NullFields is a list of field names (e.g. "Hash") to include in API
637	// requests with the JSON null value. By default, fields with empty
638	// values are omitted from API requests. However, any field with an
639	// empty value appearing in NullFields will be sent to the server as
640	// null. It is an error if a field in this list has a non-empty value.
641	// This may be used to include null fields in Patch requests.
642	NullFields []string `json:"-"`
643}
644
645func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) {
646	type NoMethod BuildBazelRemoteExecutionV2Digest
647	raw := NoMethod(*s)
648	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
649}
650
651// BuildBazelRemoteExecutionV2Directory: A `Directory` represents a
652// directory node in a file tree, containing zero or more children
653// FileNodes, DirectoryNodes and SymlinkNodes. Each `Node` contains its
654// name in the directory, either the digest of its content (either a
655// file blob or a `Directory` proto) or a symlink target, as well as
656// possibly some metadata about the file or directory. In order to
657// ensure that two equivalent directory trees hash to the same value,
658// the following restrictions MUST be obeyed when constructing a a
659// `Directory`: * Every child in the directory must have a path of
660// exactly one segment. Multiple levels of directory hierarchy may not
661// be collapsed. * Each child in the directory must have a unique path
662// segment (file name). Note that while the API itself is
663// case-sensitive, the environment where the Action is executed may or
664// may not be case-sensitive. That is, it is legal to call the API with
665// a Directory that has both "Foo" and "foo" as children, but the Action
666// may be rejected by the remote system upon execution. * The files,
667// directories and symlinks in the directory must each be sorted in
668// lexicographical order by path. The path strings must be sorted by
669// code point, equivalently, by UTF-8 bytes. * The NodeProperties of
670// files, directories, and symlinks must be sorted in lexicographical
671// order by property name. A `Directory` that obeys the restrictions is
672// said to be in canonical form. As an example, the following could be
673// used for a file named `bar` and a directory named `foo` with an
674// executable file named `baz` (hashes shortened for readability):
675// ```json // (Directory proto) { files: [ { name: "bar", digest: {
676// hash: "4a73bc9d03...", size: 65534 }, node_properties: [ { "name":
677// "MTime", "value": "2017-01-15T01:30:15.01Z" } ] } ], directories: [ {
678// name: "foo", digest: { hash: "4cf2eda940...", size: 43 } } ] } //
679// (Directory proto with hash "4cf2eda940..." and size 43) { files: [ {
680// name: "baz", digest: { hash: "b2c941073e...", size: 1294, },
681// is_executable: true } ] } ```
682type BuildBazelRemoteExecutionV2Directory struct {
683	// Directories: The subdirectories in the directory.
684	Directories []*BuildBazelRemoteExecutionV2DirectoryNode `json:"directories,omitempty"`
685
686	// Files: The files in the directory.
687	Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"`
688
689	NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`
690
691	// Symlinks: The symlinks in the directory.
692	Symlinks []*BuildBazelRemoteExecutionV2SymlinkNode `json:"symlinks,omitempty"`
693
694	// ForceSendFields is a list of field names (e.g. "Directories") to
695	// unconditionally include in API requests. By default, fields with
696	// empty values are omitted from API requests. However, any non-pointer,
697	// non-interface field appearing in ForceSendFields will be sent to the
698	// server regardless of whether the field is empty or not. This may be
699	// used to include empty fields in Patch requests.
700	ForceSendFields []string `json:"-"`
701
702	// NullFields is a list of field names (e.g. "Directories") to include
703	// in API requests with the JSON null value. By default, fields with
704	// empty values are omitted from API requests. However, any field with
705	// an empty value appearing in NullFields will be sent to the server as
706	// null. It is an error if a field in this list has a non-empty value.
707	// This may be used to include null fields in Patch requests.
708	NullFields []string `json:"-"`
709}
710
711func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) {
712	type NoMethod BuildBazelRemoteExecutionV2Directory
713	raw := NoMethod(*s)
714	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
715}
716
717// BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode`
718// represents a child of a Directory which is itself a `Directory` and
719// its associated metadata.
720type BuildBazelRemoteExecutionV2DirectoryNode struct {
721	// Digest: The digest of the Directory object represented. See Digest
722	// for information about how to take the digest of a proto message.
723	Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
724
725	// Name: The name of the directory.
726	Name string `json:"name,omitempty"`
727
728	// ForceSendFields is a list of field names (e.g. "Digest") to
729	// unconditionally include in API requests. By default, fields with
730	// empty values are omitted from API requests. However, any non-pointer,
731	// non-interface field appearing in ForceSendFields will be sent to the
732	// server regardless of whether the field is empty or not. This may be
733	// used to include empty fields in Patch requests.
734	ForceSendFields []string `json:"-"`
735
736	// NullFields is a list of field names (e.g. "Digest") to include in API
737	// requests with the JSON null value. By default, fields with empty
738	// values are omitted from API requests. However, any field with an
739	// empty value appearing in NullFields will be sent to the server as
740	// null. It is an error if a field in this list has a non-empty value.
741	// This may be used to include null fields in Patch requests.
742	NullFields []string `json:"-"`
743}
744
745func (s *BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) {
746	type NoMethod BuildBazelRemoteExecutionV2DirectoryNode
747	raw := NoMethod(*s)
748	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
749}
750
751// BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about
752// an ongoing execution, which will be contained in the metadata field
753// of the Operation.
754type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct {
755	// ActionDigest: The digest of the Action being executed.
756	ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"`
757
758	// Stage: The current stage of execution.
759	//
760	// Possible values:
761	//   "UNKNOWN" - Invalid value.
762	//   "CACHE_CHECK" - Checking the result against the cache.
763	//   "QUEUED" - Currently idle, awaiting a free machine to execute.
764	//   "EXECUTING" - Currently being executed by a worker.
765	//   "COMPLETED" - Finished execution.
766	Stage string `json:"stage,omitempty"`
767
768	// StderrStreamName: If set, the client can use this resource name with
769	// ByteStream.Read to stream the standard error from the endpoint
770	// hosting streamed responses.
771	StderrStreamName string `json:"stderrStreamName,omitempty"`
772
773	// StdoutStreamName: If set, the client can use this resource name with
774	// ByteStream.Read to stream the standard output from the endpoint
775	// hosting streamed responses.
776	StdoutStreamName string `json:"stdoutStreamName,omitempty"`
777
778	// ForceSendFields is a list of field names (e.g. "ActionDigest") to
779	// unconditionally include in API requests. By default, fields with
780	// empty values are omitted from API requests. However, any non-pointer,
781	// non-interface field appearing in ForceSendFields will be sent to the
782	// server regardless of whether the field is empty or not. This may be
783	// used to include empty fields in Patch requests.
784	ForceSendFields []string `json:"-"`
785
786	// NullFields is a list of field names (e.g. "ActionDigest") to include
787	// in API requests with the JSON null value. By default, fields with
788	// empty values are omitted from API requests. However, any field with
789	// an empty value appearing in NullFields will be sent to the server as
790	// null. It is an error if a field in this list has a non-empty value.
791	// This may be used to include null fields in Patch requests.
792	NullFields []string `json:"-"`
793}
794
795func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) {
796	type NoMethod BuildBazelRemoteExecutionV2ExecuteOperationMetadata
797	raw := NoMethod(*s)
798	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
799}
800
801// BuildBazelRemoteExecutionV2ExecuteResponse: The response message for
802// Execution.Execute, which will be contained in the response field of
803// the Operation.
804type BuildBazelRemoteExecutionV2ExecuteResponse struct {
805	// CachedResult: True if the result was served from cache, false if it
806	// was executed.
807	CachedResult bool `json:"cachedResult,omitempty"`
808
809	// Message: Freeform informational message with details on the execution
810	// of the action that may be displayed to the user upon failure or when
811	// requested explicitly.
812	Message string `json:"message,omitempty"`
813
814	// Result: The result of the action.
815	Result *BuildBazelRemoteExecutionV2ActionResult `json:"result,omitempty"`
816
817	// ServerLogs: An optional list of additional log outputs the server
818	// wishes to provide. A server can use this to return execution-specific
819	// logs however it wishes. This is intended primarily to make it easier
820	// for users to debug issues that may be outside of the actual job
821	// execution, such as by identifying the worker executing the action or
822	// by providing logs from the worker's setup phase. The keys SHOULD be
823	// human readable so that a client can display them to a user.
824	ServerLogs map[string]BuildBazelRemoteExecutionV2LogFile `json:"serverLogs,omitempty"`
825
826	// Status: If the status has a code other than `OK`, it indicates that
827	// the action did not finish execution. For example, if the operation
828	// times out during execution, the status will have a
829	// `DEADLINE_EXCEEDED` code. Servers MUST use this field for errors in
830	// execution, rather than the error field on the `Operation` object. If
831	// the status code is other than `OK`, then the result MUST NOT be
832	// cached. For an error status, the `result` field is optional; the
833	// server may populate the output-, stdout-, and stderr-related fields
834	// if it has any information available, such as the stdout and stderr of
835	// a timed-out action.
836	Status *GoogleRpcStatus `json:"status,omitempty"`
837
838	// ForceSendFields is a list of field names (e.g. "CachedResult") to
839	// unconditionally include in API requests. By default, fields with
840	// empty values are omitted from API requests. However, any non-pointer,
841	// non-interface field appearing in ForceSendFields will be sent to the
842	// server regardless of whether the field is empty or not. This may be
843	// used to include empty fields in Patch requests.
844	ForceSendFields []string `json:"-"`
845
846	// NullFields is a list of field names (e.g. "CachedResult") to include
847	// in API requests with the JSON null value. By default, fields with
848	// empty values are omitted from API requests. However, any field with
849	// an empty value appearing in NullFields will be sent to the server as
850	// null. It is an error if a field in this list has a non-empty value.
851	// This may be used to include null fields in Patch requests.
852	NullFields []string `json:"-"`
853}
854
855func (s *BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) {
856	type NoMethod BuildBazelRemoteExecutionV2ExecuteResponse
857	raw := NoMethod(*s)
858	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
859}
860
861// BuildBazelRemoteExecutionV2ExecutedActionMetadata:
862// ExecutedActionMetadata contains details about a completed execution.
863type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct {
864	// AuxiliaryMetadata: Details that are specific to the kind of worker
865	// used. For example, on POSIX-like systems this could contain a message
866	// with getrusage(2) statistics.
867	AuxiliaryMetadata []googleapi.RawMessage `json:"auxiliaryMetadata,omitempty"`
868
869	// ExecutionCompletedTimestamp: When the worker completed executing the
870	// action command.
871	ExecutionCompletedTimestamp string `json:"executionCompletedTimestamp,omitempty"`
872
873	// ExecutionStartTimestamp: When the worker started executing the action
874	// command.
875	ExecutionStartTimestamp string `json:"executionStartTimestamp,omitempty"`
876
877	// InputFetchCompletedTimestamp: When the worker finished fetching
878	// action inputs.
879	InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"`
880
881	// InputFetchStartTimestamp: When the worker started fetching action
882	// inputs.
883	InputFetchStartTimestamp string `json:"inputFetchStartTimestamp,omitempty"`
884
885	// OutputUploadCompletedTimestamp: When the worker finished uploading
886	// action outputs.
887	OutputUploadCompletedTimestamp string `json:"outputUploadCompletedTimestamp,omitempty"`
888
889	// OutputUploadStartTimestamp: When the worker started uploading action
890	// outputs.
891	OutputUploadStartTimestamp string `json:"outputUploadStartTimestamp,omitempty"`
892
893	// QueuedTimestamp: When was the action added to the queue.
894	QueuedTimestamp string `json:"queuedTimestamp,omitempty"`
895
896	// Worker: The name of the worker which ran the execution.
897	Worker string `json:"worker,omitempty"`
898
899	// WorkerCompletedTimestamp: When the worker completed the action,
900	// including all stages.
901	WorkerCompletedTimestamp string `json:"workerCompletedTimestamp,omitempty"`
902
903	// WorkerStartTimestamp: When the worker received the action.
904	WorkerStartTimestamp string `json:"workerStartTimestamp,omitempty"`
905
906	// ForceSendFields is a list of field names (e.g. "AuxiliaryMetadata")
907	// to unconditionally include in API requests. By default, fields with
908	// empty values are omitted from API requests. However, any non-pointer,
909	// non-interface field appearing in ForceSendFields will be sent to the
910	// server regardless of whether the field is empty or not. This may be
911	// used to include empty fields in Patch requests.
912	ForceSendFields []string `json:"-"`
913
914	// NullFields is a list of field names (e.g. "AuxiliaryMetadata") to
915	// include in API requests with the JSON null value. By default, fields
916	// with empty values are omitted from API requests. However, any field
917	// with an empty value appearing in NullFields will be sent to the
918	// server as null. It is an error if a field in this list has a
919	// non-empty value. This may be used to include null fields in Patch
920	// requests.
921	NullFields []string `json:"-"`
922}
923
924func (s *BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) {
925	type NoMethod BuildBazelRemoteExecutionV2ExecutedActionMetadata
926	raw := NoMethod(*s)
927	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
928}
929
930// BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single
931// file and associated metadata.
932type BuildBazelRemoteExecutionV2FileNode struct {
933	// Digest: The digest of the file's content.
934	Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
935
936	// IsExecutable: True if file is executable, false otherwise.
937	IsExecutable bool `json:"isExecutable,omitempty"`
938
939	// Name: The name of the file.
940	Name string `json:"name,omitempty"`
941
942	NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`
943
944	// ForceSendFields is a list of field names (e.g. "Digest") to
945	// unconditionally include in API requests. By default, fields with
946	// empty values are omitted from API requests. However, any non-pointer,
947	// non-interface field appearing in ForceSendFields will be sent to the
948	// server regardless of whether the field is empty or not. This may be
949	// used to include empty fields in Patch requests.
950	ForceSendFields []string `json:"-"`
951
952	// NullFields is a list of field names (e.g. "Digest") to include in API
953	// requests with the JSON null value. By default, fields with empty
954	// values are omitted from API requests. However, any field with an
955	// empty value appearing in NullFields will be sent to the server as
956	// null. It is an error if a field in this list has a non-empty value.
957	// This may be used to include null fields in Patch requests.
958	NullFields []string `json:"-"`
959}
960
961func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) {
962	type NoMethod BuildBazelRemoteExecutionV2FileNode
963	raw := NoMethod(*s)
964	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
965}
966
967// BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in
968// the CAS.
969type BuildBazelRemoteExecutionV2LogFile struct {
970	// Digest: The digest of the log contents.
971	Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
972
973	// HumanReadable: This is a hint as to the purpose of the log, and is
974	// set to true if the log is human-readable text that can be usefully
975	// displayed to a user, and false otherwise. For instance, if a
976	// command-line client wishes to print the server logs to the terminal
977	// for a failed action, this allows it to avoid displaying a binary
978	// file.
979	HumanReadable bool `json:"humanReadable,omitempty"`
980
981	// ForceSendFields is a list of field names (e.g. "Digest") to
982	// unconditionally include in API requests. By default, fields with
983	// empty values are omitted from API requests. However, any non-pointer,
984	// non-interface field appearing in ForceSendFields will be sent to the
985	// server regardless of whether the field is empty or not. This may be
986	// used to include empty fields in Patch requests.
987	ForceSendFields []string `json:"-"`
988
989	// NullFields is a list of field names (e.g. "Digest") to include in API
990	// requests with the JSON null value. By default, fields with empty
991	// values are omitted from API requests. However, any field with an
992	// empty value appearing in NullFields will be sent to the server as
993	// null. It is an error if a field in this list has a non-empty value.
994	// This may be used to include null fields in Patch requests.
995	NullFields []string `json:"-"`
996}
997
998func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) {
999	type NoMethod BuildBazelRemoteExecutionV2LogFile
1000	raw := NoMethod(*s)
1001	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1002}
1003
1004// BuildBazelRemoteExecutionV2NodeProperties: Node properties for
1005// FileNodes, DirectoryNodes, and SymlinkNodes. The server is
1006// responsible for specifying the properties that it accepts.
1007type BuildBazelRemoteExecutionV2NodeProperties struct {
1008	// Mtime: The file's last modification timestamp.
1009	Mtime string `json:"mtime,omitempty"`
1010
1011	// Properties: A list of string-based NodeProperties.
1012	Properties []*BuildBazelRemoteExecutionV2NodeProperty `json:"properties,omitempty"`
1013
1014	// UnixMode: The UNIX file mode, e.g., 0755.
1015	UnixMode int64 `json:"unixMode,omitempty"`
1016
1017	// ForceSendFields is a list of field names (e.g. "Mtime") to
1018	// unconditionally include in API requests. By default, fields with
1019	// empty values are omitted from API requests. However, any non-pointer,
1020	// non-interface field appearing in ForceSendFields will be sent to the
1021	// server regardless of whether the field is empty or not. This may be
1022	// used to include empty fields in Patch requests.
1023	ForceSendFields []string `json:"-"`
1024
1025	// NullFields is a list of field names (e.g. "Mtime") to include in API
1026	// requests with the JSON null value. By default, fields with empty
1027	// values are omitted from API requests. However, any field with an
1028	// empty value appearing in NullFields will be sent to the server as
1029	// null. It is an error if a field in this list has a non-empty value.
1030	// This may be used to include null fields in Patch requests.
1031	NullFields []string `json:"-"`
1032}
1033
1034func (s *BuildBazelRemoteExecutionV2NodeProperties) MarshalJSON() ([]byte, error) {
1035	type NoMethod BuildBazelRemoteExecutionV2NodeProperties
1036	raw := NoMethod(*s)
1037	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1038}
1039
1040// BuildBazelRemoteExecutionV2NodeProperty: A single property for
1041// FileNodes, DirectoryNodes, and SymlinkNodes. The server is
1042// responsible for specifying the property `name`s that it accepts. If
1043// permitted by the server, the same `name` may occur multiple times.
1044type BuildBazelRemoteExecutionV2NodeProperty struct {
1045	// Name: The property name.
1046	Name string `json:"name,omitempty"`
1047
1048	// Value: The property value.
1049	Value string `json:"value,omitempty"`
1050
1051	// ForceSendFields is a list of field names (e.g. "Name") to
1052	// unconditionally include in API requests. By default, fields with
1053	// empty values are omitted from API requests. However, any non-pointer,
1054	// non-interface field appearing in ForceSendFields will be sent to the
1055	// server regardless of whether the field is empty or not. This may be
1056	// used to include empty fields in Patch requests.
1057	ForceSendFields []string `json:"-"`
1058
1059	// NullFields is a list of field names (e.g. "Name") to include in API
1060	// requests with the JSON null value. By default, fields with empty
1061	// values are omitted from API requests. However, any field with an
1062	// empty value appearing in NullFields will be sent to the server as
1063	// null. It is an error if a field in this list has a non-empty value.
1064	// This may be used to include null fields in Patch requests.
1065	NullFields []string `json:"-"`
1066}
1067
1068func (s *BuildBazelRemoteExecutionV2NodeProperty) MarshalJSON() ([]byte, error) {
1069	type NoMethod BuildBazelRemoteExecutionV2NodeProperty
1070	raw := NoMethod(*s)
1071	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1072}
1073
1074// BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is
1075// the output in an `ActionResult` corresponding to a directory's full
1076// contents rather than a single file.
1077type BuildBazelRemoteExecutionV2OutputDirectory struct {
1078	// Path: The full path of the directory relative to the working
1079	// directory. The path separator is a forward slash `/`. Since this is a
1080	// relative path, it MUST NOT begin with a leading forward slash. The
1081	// empty string value is allowed, and it denotes the entire working
1082	// directory.
1083	Path string `json:"path,omitempty"`
1084
1085	// TreeDigest: The digest of the encoded Tree proto containing the
1086	// directory's contents.
1087	TreeDigest *BuildBazelRemoteExecutionV2Digest `json:"treeDigest,omitempty"`
1088
1089	// ForceSendFields is a list of field names (e.g. "Path") to
1090	// unconditionally include in API requests. By default, fields with
1091	// empty values are omitted from API requests. However, any non-pointer,
1092	// non-interface field appearing in ForceSendFields will be sent to the
1093	// server regardless of whether the field is empty or not. This may be
1094	// used to include empty fields in Patch requests.
1095	ForceSendFields []string `json:"-"`
1096
1097	// NullFields is a list of field names (e.g. "Path") to include in API
1098	// requests with the JSON null value. By default, fields with empty
1099	// values are omitted from API requests. However, any field with an
1100	// empty value appearing in NullFields will be sent to the server as
1101	// null. It is an error if a field in this list has a non-empty value.
1102	// This may be used to include null fields in Patch requests.
1103	NullFields []string `json:"-"`
1104}
1105
1106func (s *BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) {
1107	type NoMethod BuildBazelRemoteExecutionV2OutputDirectory
1108	raw := NoMethod(*s)
1109	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1110}
1111
1112// BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to
1113// a FileNode, but it is used as an output in an `ActionResult`. It
1114// allows a full file path rather than only a name.
1115type BuildBazelRemoteExecutionV2OutputFile struct {
1116	// Contents: The contents of the file if inlining was requested. The
1117	// server SHOULD NOT inline file contents unless requested by the client
1118	// in the GetActionResultRequest message. The server MAY omit inlining,
1119	// even if requested, and MUST do so if inlining would cause the
1120	// response to exceed message size limits.
1121	Contents string `json:"contents,omitempty"`
1122
1123	// Digest: The digest of the file's content.
1124	Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
1125
1126	// IsExecutable: True if file is executable, false otherwise.
1127	IsExecutable bool `json:"isExecutable,omitempty"`
1128
1129	NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`
1130
1131	// Path: The full path of the file relative to the working directory,
1132	// including the filename. The path separator is a forward slash `/`.
1133	// Since this is a relative path, it MUST NOT begin with a leading
1134	// forward slash.
1135	Path string `json:"path,omitempty"`
1136
1137	// ForceSendFields is a list of field names (e.g. "Contents") to
1138	// unconditionally include in API requests. By default, fields with
1139	// empty values are omitted from API requests. However, any non-pointer,
1140	// non-interface field appearing in ForceSendFields will be sent to the
1141	// server regardless of whether the field is empty or not. This may be
1142	// used to include empty fields in Patch requests.
1143	ForceSendFields []string `json:"-"`
1144
1145	// NullFields is a list of field names (e.g. "Contents") to include in
1146	// API requests with the JSON null value. By default, fields with empty
1147	// values are omitted from API requests. However, any field with an
1148	// empty value appearing in NullFields will be sent to the server as
1149	// null. It is an error if a field in this list has a non-empty value.
1150	// This may be used to include null fields in Patch requests.
1151	NullFields []string `json:"-"`
1152}
1153
1154func (s *BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) {
1155	type NoMethod BuildBazelRemoteExecutionV2OutputFile
1156	raw := NoMethod(*s)
1157	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1158}
1159
1160// BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is
1161// similar to a Symlink, but it is used as an output in an
1162// `ActionResult`. `OutputSymlink` is binary-compatible with
1163// `SymlinkNode`.
1164type BuildBazelRemoteExecutionV2OutputSymlink struct {
1165	NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`
1166
1167	// Path: The full path of the symlink relative to the working directory,
1168	// including the filename. The path separator is a forward slash `/`.
1169	// Since this is a relative path, it MUST NOT begin with a leading
1170	// forward slash.
1171	Path string `json:"path,omitempty"`
1172
1173	// Target: The target path of the symlink. The path separator is a
1174	// forward slash `/`. The target path can be relative to the parent
1175	// directory of the symlink or it can be an absolute path starting with
1176	// `/`. Support for absolute paths can be checked using the Capabilities
1177	// API. `..` components are allowed anywhere in the target path.
1178	Target string `json:"target,omitempty"`
1179
1180	// ForceSendFields is a list of field names (e.g. "NodeProperties") to
1181	// unconditionally include in API requests. By default, fields with
1182	// empty values are omitted from API requests. However, any non-pointer,
1183	// non-interface field appearing in ForceSendFields will be sent to the
1184	// server regardless of whether the field is empty or not. This may be
1185	// used to include empty fields in Patch requests.
1186	ForceSendFields []string `json:"-"`
1187
1188	// NullFields is a list of field names (e.g. "NodeProperties") to
1189	// include in API requests with the JSON null value. By default, fields
1190	// with empty values are omitted from API requests. However, any field
1191	// with an empty value appearing in NullFields will be sent to the
1192	// server as null. It is an error if a field in this list has a
1193	// non-empty value. This may be used to include null fields in Patch
1194	// requests.
1195	NullFields []string `json:"-"`
1196}
1197
1198func (s *BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) {
1199	type NoMethod BuildBazelRemoteExecutionV2OutputSymlink
1200	raw := NoMethod(*s)
1201	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1202}
1203
1204// BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of
1205// requirements, such as hardware, operating system, or compiler
1206// toolchain, for an Action's execution environment. A `Platform` is
1207// represented as a series of key-value pairs representing the
1208// properties that are required of the platform.
1209type BuildBazelRemoteExecutionV2Platform struct {
1210	// Properties: The properties that make up this platform. In order to
1211	// ensure that equivalent `Platform`s always hash to the same value, the
1212	// properties MUST be lexicographically sorted by name, and then by
1213	// value. Sorting of strings is done by code point, equivalently, by the
1214	// UTF-8 bytes.
1215	Properties []*BuildBazelRemoteExecutionV2PlatformProperty `json:"properties,omitempty"`
1216
1217	// ForceSendFields is a list of field names (e.g. "Properties") to
1218	// unconditionally include in API requests. By default, fields with
1219	// empty values are omitted from API requests. However, any non-pointer,
1220	// non-interface field appearing in ForceSendFields will be sent to the
1221	// server regardless of whether the field is empty or not. This may be
1222	// used to include empty fields in Patch requests.
1223	ForceSendFields []string `json:"-"`
1224
1225	// NullFields is a list of field names (e.g. "Properties") to include in
1226	// API requests with the JSON null value. By default, fields with empty
1227	// values are omitted from API requests. However, any field with an
1228	// empty value appearing in NullFields will be sent to the server as
1229	// null. It is an error if a field in this list has a non-empty value.
1230	// This may be used to include null fields in Patch requests.
1231	NullFields []string `json:"-"`
1232}
1233
1234func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) {
1235	type NoMethod BuildBazelRemoteExecutionV2Platform
1236	raw := NoMethod(*s)
1237	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1238}
1239
1240// BuildBazelRemoteExecutionV2PlatformProperty: A single property for
1241// the environment. The server is responsible for specifying the
1242// property `name`s that it accepts. If an unknown `name` is provided in
1243// the requirements for an Action, the server SHOULD reject the
1244// execution request. If permitted by the server, the same `name` may
1245// occur multiple times. The server is also responsible for specifying
1246// the interpretation of property `value`s. For instance, a property
1247// describing how much RAM must be available may be interpreted as
1248// allowing a worker with 16GB to fulfill a request for 8GB, while a
1249// property describing the OS environment on which the action must be
1250// performed may require an exact match with the worker's OS. The server
1251// MAY use the `value` of one or more properties to determine how it
1252// sets up the execution environment, such as by making specific system
1253// files available to the worker. Both names and values are typically
1254// case-sensitive. Note that the platform is implicitly part of the
1255// action digest, so even tiny changes in the names or values (like
1256// changing case) may result in different action cache entries.
1257type BuildBazelRemoteExecutionV2PlatformProperty struct {
1258	// Name: The property name.
1259	Name string `json:"name,omitempty"`
1260
1261	// Value: The property value.
1262	Value string `json:"value,omitempty"`
1263
1264	// ForceSendFields is a list of field names (e.g. "Name") to
1265	// unconditionally include in API requests. By default, fields with
1266	// empty values are omitted from API requests. However, any non-pointer,
1267	// non-interface field appearing in ForceSendFields will be sent to the
1268	// server regardless of whether the field is empty or not. This may be
1269	// used to include empty fields in Patch requests.
1270	ForceSendFields []string `json:"-"`
1271
1272	// NullFields is a list of field names (e.g. "Name") to include in API
1273	// requests with the JSON null value. By default, fields with empty
1274	// values are omitted from API requests. However, any field with an
1275	// empty value appearing in NullFields will be sent to the server as
1276	// null. It is an error if a field in this list has a non-empty value.
1277	// This may be used to include null fields in Patch requests.
1278	NullFields []string `json:"-"`
1279}
1280
1281func (s *BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) {
1282	type NoMethod BuildBazelRemoteExecutionV2PlatformProperty
1283	raw := NoMethod(*s)
1284	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1285}
1286
1287// BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to
1288// attach to any RPC request to tell the server about an external
1289// context of the request. The server may use this for logging or other
1290// purposes. To use it, the client attaches the header to the call using
1291// the canonical proto serialization: * name:
1292// `build.bazel.remote.execution.v2.requestmetadata-bin` * contents: the
1293// base64 encoded binary `RequestMetadata` message. Note: the gRPC
1294// library serializes binary headers encoded in base 64 by default
1295// (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests).
1296// Therefore, if the gRPC library is used to pass/retrieve this
1297// metadata, the user may ignore the base64 encoding and assume it is
1298// simply serialized as a binary message.
1299type BuildBazelRemoteExecutionV2RequestMetadata struct {
1300	// ActionId: An identifier that ties multiple requests to the same
1301	// action. For example, multiple requests to the CAS, Action Cache, and
1302	// Execution API are used in order to compile foo.cc.
1303	ActionId string `json:"actionId,omitempty"`
1304
1305	// ActionMnemonic: A brief description of the kind of action, for
1306	// example, CppCompile or GoLink. There is no standard agreed set of
1307	// values for this, and they are expected to vary between different
1308	// client tools.
1309	ActionMnemonic string `json:"actionMnemonic,omitempty"`
1310
1311	// ConfigurationId: An identifier for the configuration in which the
1312	// target was built, e.g. for differentiating building host tools or
1313	// different target platforms. There is no expectation that this value
1314	// will have any particular structure, or equality across invocations,
1315	// though some client tools may offer these guarantees.
1316	ConfigurationId string `json:"configurationId,omitempty"`
1317
1318	// CorrelatedInvocationsId: An identifier to tie multiple tool
1319	// invocations together. For example, runs of foo_test, bar_test and
1320	// baz_test on a post-submit of a given patch.
1321	CorrelatedInvocationsId string `json:"correlatedInvocationsId,omitempty"`
1322
1323	// TargetId: An identifier for the target which produced this action. No
1324	// guarantees are made around how many actions may relate to a single
1325	// target.
1326	TargetId string `json:"targetId,omitempty"`
1327
1328	// ToolDetails: The details for the tool invoking the requests.
1329	ToolDetails *BuildBazelRemoteExecutionV2ToolDetails `json:"toolDetails,omitempty"`
1330
1331	// ToolInvocationId: An identifier that ties multiple actions together
1332	// to a final result. For example, multiple actions are required to
1333	// build and run foo_test.
1334	ToolInvocationId string `json:"toolInvocationId,omitempty"`
1335
1336	// ForceSendFields is a list of field names (e.g. "ActionId") to
1337	// unconditionally include in API requests. By default, fields with
1338	// empty values are omitted from API requests. However, any non-pointer,
1339	// non-interface field appearing in ForceSendFields will be sent to the
1340	// server regardless of whether the field is empty or not. This may be
1341	// used to include empty fields in Patch requests.
1342	ForceSendFields []string `json:"-"`
1343
1344	// NullFields is a list of field names (e.g. "ActionId") to include in
1345	// API requests with the JSON null value. By default, fields with empty
1346	// values are omitted from API requests. However, any field with an
1347	// empty value appearing in NullFields will be sent to the server as
1348	// null. It is an error if a field in this list has a non-empty value.
1349	// This may be used to include null fields in Patch requests.
1350	NullFields []string `json:"-"`
1351}
1352
1353func (s *BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) {
1354	type NoMethod BuildBazelRemoteExecutionV2RequestMetadata
1355	raw := NoMethod(*s)
1356	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1357}
1358
1359// BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents a
1360// symbolic link.
1361type BuildBazelRemoteExecutionV2SymlinkNode struct {
1362	// Name: The name of the symlink.
1363	Name string `json:"name,omitempty"`
1364
1365	NodeProperties *BuildBazelRemoteExecutionV2NodeProperties `json:"nodeProperties,omitempty"`
1366
1367	// Target: The target path of the symlink. The path separator is a
1368	// forward slash `/`. The target path can be relative to the parent
1369	// directory of the symlink or it can be an absolute path starting with
1370	// `/`. Support for absolute paths can be checked using the Capabilities
1371	// API. `..` components are allowed anywhere in the target path as
1372	// logical canonicalization may lead to different behavior in the
1373	// presence of directory symlinks (e.g. `foo/../bar` may not be the same
1374	// as `bar`). To reduce potential cache misses, canonicalization is
1375	// still recommended where this is possible without impacting
1376	// correctness.
1377	Target string `json:"target,omitempty"`
1378
1379	// ForceSendFields is a list of field names (e.g. "Name") to
1380	// unconditionally include in API requests. By default, fields with
1381	// empty values are omitted from API requests. However, any non-pointer,
1382	// non-interface field appearing in ForceSendFields will be sent to the
1383	// server regardless of whether the field is empty or not. This may be
1384	// used to include empty fields in Patch requests.
1385	ForceSendFields []string `json:"-"`
1386
1387	// NullFields is a list of field names (e.g. "Name") to include in API
1388	// requests with the JSON null value. By default, fields with empty
1389	// values are omitted from API requests. However, any field with an
1390	// empty value appearing in NullFields will be sent to the server as
1391	// null. It is an error if a field in this list has a non-empty value.
1392	// This may be used to include null fields in Patch requests.
1393	NullFields []string `json:"-"`
1394}
1395
1396func (s *BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) {
1397	type NoMethod BuildBazelRemoteExecutionV2SymlinkNode
1398	raw := NoMethod(*s)
1399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1400}
1401
1402// BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to
1403// call the API.
1404type BuildBazelRemoteExecutionV2ToolDetails struct {
1405	// ToolName: Name of the tool, e.g. bazel.
1406	ToolName string `json:"toolName,omitempty"`
1407
1408	// ToolVersion: Version of the tool used for the request, e.g. 5.0.3.
1409	ToolVersion string `json:"toolVersion,omitempty"`
1410
1411	// ForceSendFields is a list of field names (e.g. "ToolName") to
1412	// unconditionally include in API requests. By default, fields with
1413	// empty values are omitted from API requests. However, any non-pointer,
1414	// non-interface field appearing in ForceSendFields will be sent to the
1415	// server regardless of whether the field is empty or not. This may be
1416	// used to include empty fields in Patch requests.
1417	ForceSendFields []string `json:"-"`
1418
1419	// NullFields is a list of field names (e.g. "ToolName") to include in
1420	// API requests with the JSON null value. By default, fields with empty
1421	// values are omitted from API requests. However, any field with an
1422	// empty value appearing in NullFields will be sent to the server as
1423	// null. It is an error if a field in this list has a non-empty value.
1424	// This may be used to include null fields in Patch requests.
1425	NullFields []string `json:"-"`
1426}
1427
1428func (s *BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) {
1429	type NoMethod BuildBazelRemoteExecutionV2ToolDetails
1430	raw := NoMethod(*s)
1431	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1432}
1433
1434// BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the Directory
1435// protos in a single directory Merkle tree, compressed into one
1436// message.
1437type BuildBazelRemoteExecutionV2Tree struct {
1438	// Children: All the child directories: the directories referred to by
1439	// the root and, recursively, all its children. In order to reconstruct
1440	// the directory tree, the client must take the digests of each of the
1441	// child directories and then build up a tree starting from the `root`.
1442	Children []*BuildBazelRemoteExecutionV2Directory `json:"children,omitempty"`
1443
1444	// Root: The root directory in the tree.
1445	Root *BuildBazelRemoteExecutionV2Directory `json:"root,omitempty"`
1446
1447	// ForceSendFields is a list of field names (e.g. "Children") to
1448	// unconditionally include in API requests. By default, fields with
1449	// empty values are omitted from API requests. However, any non-pointer,
1450	// non-interface field appearing in ForceSendFields will be sent to the
1451	// server regardless of whether the field is empty or not. This may be
1452	// used to include empty fields in Patch requests.
1453	ForceSendFields []string `json:"-"`
1454
1455	// NullFields is a list of field names (e.g. "Children") to include in
1456	// API requests with the JSON null value. By default, fields with empty
1457	// values are omitted from API requests. However, any field with an
1458	// empty value appearing in NullFields will be sent to the server as
1459	// null. It is an error if a field in this list has a non-empty value.
1460	// This may be used to include null fields in Patch requests.
1461	NullFields []string `json:"-"`
1462}
1463
1464func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) {
1465	type NoMethod BuildBazelRemoteExecutionV2Tree
1466	raw := NoMethod(*s)
1467	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1468}
1469
1470// GoogleBytestreamMedia: Media resource.
1471type GoogleBytestreamMedia struct {
1472	// ResourceName: Name of the media resource.
1473	ResourceName string `json:"resourceName,omitempty"`
1474
1475	// ServerResponse contains the HTTP response code and headers from the
1476	// server.
1477	googleapi.ServerResponse `json:"-"`
1478
1479	// ForceSendFields is a list of field names (e.g. "ResourceName") to
1480	// unconditionally include in API requests. By default, fields with
1481	// empty values are omitted from API requests. However, any non-pointer,
1482	// non-interface field appearing in ForceSendFields will be sent to the
1483	// server regardless of whether the field is empty or not. This may be
1484	// used to include empty fields in Patch requests.
1485	ForceSendFields []string `json:"-"`
1486
1487	// NullFields is a list of field names (e.g. "ResourceName") to include
1488	// in API requests with the JSON null value. By default, fields with
1489	// empty values are omitted from API requests. However, any field with
1490	// an empty value appearing in NullFields will be sent to the server as
1491	// null. It is an error if a field in this list has a non-empty value.
1492	// This may be used to include null fields in Patch requests.
1493	NullFields []string `json:"-"`
1494}
1495
1496func (s *GoogleBytestreamMedia) MarshalJSON() ([]byte, error) {
1497	type NoMethod GoogleBytestreamMedia
1498	raw := NoMethod(*s)
1499	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1500}
1501
1502// GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration
1503// contains the various duration metrics tracked when a bot performs a
1504// command.
1505type GoogleDevtoolsRemotebuildbotCommandDurations struct {
1506	// CasRelease: The time spent to release the CAS blobs used by the task.
1507	CasRelease string `json:"casRelease,omitempty"`
1508
1509	// CmWaitForAssignment: The time spent waiting for Container Manager to
1510	// assign an asynchronous container for execution.
1511	CmWaitForAssignment string `json:"cmWaitForAssignment,omitempty"`
1512
1513	// DockerPrep: The time spent preparing the command to be run in a
1514	// Docker container (includes pulling the Docker image, if necessary).
1515	DockerPrep string `json:"dockerPrep,omitempty"`
1516
1517	// DockerPrepStartTime: The timestamp when docker preparation begins.
1518	DockerPrepStartTime string `json:"dockerPrepStartTime,omitempty"`
1519
1520	// Download: The time spent downloading the input files and constructing
1521	// the working directory.
1522	Download string `json:"download,omitempty"`
1523
1524	// DownloadStartTime: The timestamp when downloading the input files
1525	// begins.
1526	DownloadStartTime string `json:"downloadStartTime,omitempty"`
1527
1528	// ExecStartTime: The timestamp when execution begins.
1529	ExecStartTime string `json:"execStartTime,omitempty"`
1530
1531	// Execution: The time spent executing the command (i.e., doing useful
1532	// work).
1533	Execution string `json:"execution,omitempty"`
1534
1535	// IsoPrepDone: The timestamp when preparation is done and bot starts
1536	// downloading files.
1537	IsoPrepDone string `json:"isoPrepDone,omitempty"`
1538
1539	// Overall: The time spent completing the command, in total.
1540	Overall string `json:"overall,omitempty"`
1541
1542	// Stdout: The time spent uploading the stdout logs.
1543	Stdout string `json:"stdout,omitempty"`
1544
1545	// Upload: The time spent uploading the output files.
1546	Upload string `json:"upload,omitempty"`
1547
1548	// UploadStartTime: The timestamp when uploading the output files
1549	// begins.
1550	UploadStartTime string `json:"uploadStartTime,omitempty"`
1551
1552	// ForceSendFields is a list of field names (e.g. "CasRelease") to
1553	// unconditionally include in API requests. By default, fields with
1554	// empty values are omitted from API requests. However, any non-pointer,
1555	// non-interface field appearing in ForceSendFields will be sent to the
1556	// server regardless of whether the field is empty or not. This may be
1557	// used to include empty fields in Patch requests.
1558	ForceSendFields []string `json:"-"`
1559
1560	// NullFields is a list of field names (e.g. "CasRelease") to include in
1561	// API requests with the JSON null value. By default, fields with empty
1562	// values are omitted from API requests. However, any field with an
1563	// empty value appearing in NullFields will be sent to the server as
1564	// null. It is an error if a field in this list has a non-empty value.
1565	// This may be used to include null fields in Patch requests.
1566	NullFields []string `json:"-"`
1567}
1568
1569func (s *GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) {
1570	type NoMethod GoogleDevtoolsRemotebuildbotCommandDurations
1571	raw := NoMethod(*s)
1572	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1573}
1574
1575// GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains
1576// counters for the number of warnings and errors that occurred during
1577// the execution of a command.
1578type GoogleDevtoolsRemotebuildbotCommandEvents struct {
1579	// CmUsage: Indicates if and how Container Manager is being used for
1580	// task execution.
1581	//
1582	// Possible values:
1583	//   "CONFIG_NONE" - Container Manager is disabled or not running for
1584	// this execution.
1585	//   "CONFIG_MATCH" - Container Manager is enabled and there was a
1586	// matching container available for use during execution.
1587	//   "CONFIG_MISMATCH" - Container Manager is enabled, but there was no
1588	// matching container available for execution.
1589	CmUsage string `json:"cmUsage,omitempty"`
1590
1591	// DockerCacheHit: Indicates whether we are using a cached Docker image
1592	// (true) or had to pull the Docker image (false) for this command.
1593	DockerCacheHit bool `json:"dockerCacheHit,omitempty"`
1594
1595	// DockerImageName: Docker Image name.
1596	DockerImageName string `json:"dockerImageName,omitempty"`
1597
1598	// InputCacheMiss: The input cache miss ratio.
1599	InputCacheMiss float64 `json:"inputCacheMiss,omitempty"`
1600
1601	// NumErrors: The number of errors reported.
1602	NumErrors uint64 `json:"numErrors,omitempty,string"`
1603
1604	// NumWarnings: The number of warnings reported.
1605	NumWarnings uint64 `json:"numWarnings,omitempty,string"`
1606
1607	// OutputLocation: Indicates whether output files and/or output
1608	// directories were found relative to the execution root or to the user
1609	// provided work directory or both or none.
1610	//
1611	// Possible values:
1612	//   "LOCATION_UNDEFINED" - Location is set to LOCATION_UNDEFINED for
1613	// tasks where the working directorty is not specified or is identical
1614	// to the execution root directory.
1615	//   "LOCATION_NONE" - No output files or directories were found neither
1616	// relative to the execution root directory nor relative to the working
1617	// directory.
1618	//   "LOCATION_EXEC_ROOT_RELATIVE" - Output files or directories were
1619	// found relative to the execution root directory but not relative to
1620	// the working directory.
1621	//   "LOCATION_WORKING_DIR_RELATIVE" - Output files or directories were
1622	// found relative to the working directory but not relative to the
1623	// execution root directory.
1624	//   "LOCATION_EXEC_ROOT_AND_WORKING_DIR_RELATIVE" - Output files or
1625	// directories were found both relative to the execution root directory
1626	// and relative to the working directory.
1627	OutputLocation string `json:"outputLocation,omitempty"`
1628
1629	// UsedAsyncContainer: Indicates whether an asynchronous container was
1630	// used for execution.
1631	UsedAsyncContainer bool `json:"usedAsyncContainer,omitempty"`
1632
1633	// ForceSendFields is a list of field names (e.g. "CmUsage") to
1634	// unconditionally include in API requests. By default, fields with
1635	// empty values are omitted from API requests. However, any non-pointer,
1636	// non-interface field appearing in ForceSendFields will be sent to the
1637	// server regardless of whether the field is empty or not. This may be
1638	// used to include empty fields in Patch requests.
1639	ForceSendFields []string `json:"-"`
1640
1641	// NullFields is a list of field names (e.g. "CmUsage") to include in
1642	// API requests with the JSON null value. By default, fields with empty
1643	// values are omitted from API requests. However, any field with an
1644	// empty value appearing in NullFields will be sent to the server as
1645	// null. It is an error if a field in this list has a non-empty value.
1646	// This may be used to include null fields in Patch requests.
1647	NullFields []string `json:"-"`
1648}
1649
1650func (s *GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) {
1651	type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents
1652	raw := NoMethod(*s)
1653	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1654}
1655
1656func (s *GoogleDevtoolsRemotebuildbotCommandEvents) UnmarshalJSON(data []byte) error {
1657	type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents
1658	var s1 struct {
1659		InputCacheMiss gensupport.JSONFloat64 `json:"inputCacheMiss"`
1660		*NoMethod
1661	}
1662	s1.NoMethod = (*NoMethod)(s)
1663	if err := json.Unmarshal(data, &s1); err != nil {
1664		return err
1665	}
1666	s.InputCacheMiss = float64(s1.InputCacheMiss)
1667	return nil
1668}
1669
1670// GoogleDevtoolsRemotebuildbotCommandStatus: The internal status of the
1671// command result.
1672type GoogleDevtoolsRemotebuildbotCommandStatus struct {
1673	// Code: The status code.
1674	//
1675	// Possible values:
1676	//   "OK" - The command succeeded.
1677	//   "INVALID_ARGUMENT" - The command input was invalid.
1678	//   "DEADLINE_EXCEEDED" - The command had passed its expiry time while
1679	// it was still running.
1680	//   "NOT_FOUND" - The resources requested by the command were not
1681	// found.
1682	//   "PERMISSION_DENIED" - The command failed due to permission errors.
1683	//   "INTERNAL" - The command failed because of some invariants expected
1684	// by the underlying system have been broken. This usually indicates a
1685	// bug wit the system.
1686	//   "ABORTED" - The command was aborted.
1687	//   "FAILED_PRECONDITION" - The command failed because the system is
1688	// not in a state required for the command, e.g. the command inputs
1689	// cannot be found on the server.
1690	//   "CLEANUP_ERROR" - The bot failed to do the cleanup, e.g. unable to
1691	// delete the command working directory or the command process.
1692	//   "DOWNLOAD_INPUTS_ERROR" - The bot failed to download the inputs.
1693	//   "UNKNOWN" - Unknown error.
1694	//   "UPLOAD_OUTPUTS_ERROR" - The bot failed to upload the outputs.
1695	//   "UPLOAD_OUTPUTS_BYTES_LIMIT_EXCEEDED" - The bot tried to upload
1696	// files having a total size that is too large.
1697	//   "DOCKER_LOGIN_ERROR" - The bot failed to login to docker.
1698	//   "DOCKER_IMAGE_PULL_ERROR" - The bot failed to pull docker image.
1699	//   "DOCKER_IMAGE_EXIST_ERROR" - The bot failed to check docker images.
1700	//   "DUPLICATE_INPUTS" - The inputs contain duplicate files.
1701	//   "DOCKER_IMAGE_PERMISSION_DENIED" - The bot doesn't have the
1702	// permissions to pull docker images.
1703	//   "DOCKER_IMAGE_NOT_FOUND" - The docker image cannot be found.
1704	//   "WORKING_DIR_NOT_FOUND" - Working directory is not found.
1705	//   "WORKING_DIR_NOT_IN_BASE_DIR" - Working directory is not under the
1706	// base directory
1707	//   "DOCKER_UNAVAILABLE" - There are issues with docker
1708	// service/runtime.
1709	//   "NO_CUDA_CAPABLE_DEVICE" - The command failed with "no cuda-capable
1710	// device is detected" error.
1711	//   "REMOTE_CAS_DOWNLOAD_ERROR" - The bot encountered errors from
1712	// remote CAS when downloading blobs.
1713	//   "REMOTE_CAS_UPLOAD_ERROR" - The bot encountered errors from remote
1714	// CAS when uploading blobs.
1715	//   "LOCAL_CASPROXY_NOT_RUNNING" - The local casproxy is not running.
1716	//   "DOCKER_CREATE_CONTAINER_ERROR" - The bot couldn't start the
1717	// container.
1718	//   "DOCKER_INVALID_ULIMIT" - The docker ulimit is not valid.
1719	//   "DOCKER_UNKNOWN_RUNTIME" - The docker runtime is unknown.
1720	//   "DOCKER_UNKNOWN_CAPABILITY" - The docker capability is unknown.
1721	//   "DOCKER_UNKNOWN_ERROR" - The command failed with unknown docker
1722	// errors.
1723	//   "DOCKER_CREATE_COMPUTE_SYSTEM_ERROR" - Docker failed to run
1724	// containers with CreateComputeSystem error.
1725	//   "DOCKER_PREPARELAYER_ERROR" - Docker failed to run containers with
1726	// hcsshim::PrepareLayer error.
1727	//   "DOCKER_INCOMPATIBLE_OS_ERROR" - Docker incompatible operating
1728	// system error.
1729	//   "DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND" - Docker failed to create
1730	// OCI runtime because of file not found.
1731	//   "DOCKER_CREATE_RUNTIME_PERMISSION_DENIED" - Docker failed to create
1732	// OCI runtime because of permission denied.
1733	//   "DOCKER_CREATE_PROCESS_FILE_NOT_FOUND" - Docker failed to create
1734	// process because of file not found.
1735	//   "DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR" - Docker
1736	// failed to run containers with CreateComputeSystem error that involves
1737	// an incorrect parameter (more specific version of
1738	// DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused).
1739	//   "DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS" - Docker failed to create an
1740	// overlay mount because of too many levels of symbolic links.
1741	//   "LOCAL_CONTAINER_MANAGER_NOT_RUNNING" - The local Container Manager
1742	// is not running.
1743	//   "DOCKER_IMAGE_VPCSC_PERMISSION_DENIED" - Docker failed because a
1744	// request was denied by the organization's policy.
1745	Code string `json:"code,omitempty"`
1746
1747	// Message: The error message.
1748	Message string `json:"message,omitempty"`
1749
1750	// ForceSendFields is a list of field names (e.g. "Code") to
1751	// unconditionally include in API requests. By default, fields with
1752	// empty values are omitted from API requests. However, any non-pointer,
1753	// non-interface field appearing in ForceSendFields will be sent to the
1754	// server regardless of whether the field is empty or not. This may be
1755	// used to include empty fields in Patch requests.
1756	ForceSendFields []string `json:"-"`
1757
1758	// NullFields is a list of field names (e.g. "Code") to include in API
1759	// requests with the JSON null value. By default, fields with empty
1760	// values are omitted from API requests. However, any field with an
1761	// empty value appearing in NullFields will be sent to the server as
1762	// null. It is an error if a field in this list has a non-empty value.
1763	// This may be used to include null fields in Patch requests.
1764	NullFields []string `json:"-"`
1765}
1766
1767func (s *GoogleDevtoolsRemotebuildbotCommandStatus) MarshalJSON() ([]byte, error) {
1768	type NoMethod GoogleDevtoolsRemotebuildbotCommandStatus
1769	raw := NoMethod(*s)
1770	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1771}
1772
1773// GoogleDevtoolsRemotebuildbotResourceUsage: ResourceUsage is the
1774// system resource usage of the host machine.
1775type GoogleDevtoolsRemotebuildbotResourceUsage struct {
1776	CpuUsedPercent float64 `json:"cpuUsedPercent,omitempty"`
1777
1778	DiskUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"diskUsage,omitempty"`
1779
1780	MemoryUsage *GoogleDevtoolsRemotebuildbotResourceUsageStat `json:"memoryUsage,omitempty"`
1781
1782	// ForceSendFields is a list of field names (e.g. "CpuUsedPercent") to
1783	// unconditionally include in API requests. By default, fields with
1784	// empty values are omitted from API requests. However, any non-pointer,
1785	// non-interface field appearing in ForceSendFields will be sent to the
1786	// server regardless of whether the field is empty or not. This may be
1787	// used to include empty fields in Patch requests.
1788	ForceSendFields []string `json:"-"`
1789
1790	// NullFields is a list of field names (e.g. "CpuUsedPercent") to
1791	// include in API requests with the JSON null value. By default, fields
1792	// with empty values are omitted from API requests. However, any field
1793	// with an empty value appearing in NullFields will be sent to the
1794	// server as null. It is an error if a field in this list has a
1795	// non-empty value. This may be used to include null fields in Patch
1796	// requests.
1797	NullFields []string `json:"-"`
1798}
1799
1800func (s *GoogleDevtoolsRemotebuildbotResourceUsage) MarshalJSON() ([]byte, error) {
1801	type NoMethod GoogleDevtoolsRemotebuildbotResourceUsage
1802	raw := NoMethod(*s)
1803	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1804}
1805
1806func (s *GoogleDevtoolsRemotebuildbotResourceUsage) UnmarshalJSON(data []byte) error {
1807	type NoMethod GoogleDevtoolsRemotebuildbotResourceUsage
1808	var s1 struct {
1809		CpuUsedPercent gensupport.JSONFloat64 `json:"cpuUsedPercent"`
1810		*NoMethod
1811	}
1812	s1.NoMethod = (*NoMethod)(s)
1813	if err := json.Unmarshal(data, &s1); err != nil {
1814		return err
1815	}
1816	s.CpuUsedPercent = float64(s1.CpuUsedPercent)
1817	return nil
1818}
1819
1820type GoogleDevtoolsRemotebuildbotResourceUsageStat struct {
1821	Total uint64 `json:"total,omitempty,string"`
1822
1823	Used uint64 `json:"used,omitempty,string"`
1824
1825	// ForceSendFields is a list of field names (e.g. "Total") to
1826	// unconditionally include in API requests. By default, fields with
1827	// empty values are omitted from API requests. However, any non-pointer,
1828	// non-interface field appearing in ForceSendFields will be sent to the
1829	// server regardless of whether the field is empty or not. This may be
1830	// used to include empty fields in Patch requests.
1831	ForceSendFields []string `json:"-"`
1832
1833	// NullFields is a list of field names (e.g. "Total") to include in API
1834	// requests with the JSON null value. By default, fields with empty
1835	// values are omitted from API requests. However, any field with an
1836	// empty value appearing in NullFields will be sent to the server as
1837	// null. It is an error if a field in this list has a non-empty value.
1838	// This may be used to include null fields in Patch requests.
1839	NullFields []string `json:"-"`
1840}
1841
1842func (s *GoogleDevtoolsRemotebuildbotResourceUsageStat) MarshalJSON() ([]byte, error) {
1843	type NoMethod GoogleDevtoolsRemotebuildbotResourceUsageStat
1844	raw := NoMethod(*s)
1845	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1846}
1847
1848// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig:
1849// AcceleratorConfig defines the accelerator cards to attach to the VM.
1850type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig struct {
1851	// AcceleratorCount: The number of guest accelerator cards exposed to
1852	// each VM.
1853	AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"`
1854
1855	// AcceleratorType: The type of accelerator to attach to each VM, e.g.
1856	// "nvidia-tesla-k80" for nVidia Tesla K80.
1857	AcceleratorType string `json:"acceleratorType,omitempty"`
1858
1859	// ForceSendFields is a list of field names (e.g. "AcceleratorCount") to
1860	// unconditionally include in API requests. By default, fields with
1861	// empty values are omitted from API requests. However, any non-pointer,
1862	// non-interface field appearing in ForceSendFields will be sent to the
1863	// server regardless of whether the field is empty or not. This may be
1864	// used to include empty fields in Patch requests.
1865	ForceSendFields []string `json:"-"`
1866
1867	// NullFields is a list of field names (e.g. "AcceleratorCount") to
1868	// include in API requests with the JSON null value. By default, fields
1869	// with empty values are omitted from API requests. However, any field
1870	// with an empty value appearing in NullFields will be sent to the
1871	// server as null. It is an error if a field in this list has a
1872	// non-empty value. This may be used to include null fields in Patch
1873	// requests.
1874	NullFields []string `json:"-"`
1875}
1876
1877func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig) MarshalJSON() ([]byte, error) {
1878	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
1879	raw := NoMethod(*s)
1880	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1881}
1882
1883// GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale: Autoscale
1884// defines the autoscaling policy of a worker pool.
1885type GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale struct {
1886	// MaxSize: The maximal number of workers. Must be equal to or greater
1887	// than min_size.
1888	MaxSize int64 `json:"maxSize,omitempty,string"`
1889
1890	// MinSize: The minimal number of workers. Must be greater than 0.
1891	MinSize int64 `json:"minSize,omitempty,string"`
1892
1893	// ForceSendFields is a list of field names (e.g. "MaxSize") to
1894	// unconditionally include in API requests. By default, fields with
1895	// empty values are omitted from API requests. However, any non-pointer,
1896	// non-interface field appearing in ForceSendFields will be sent to the
1897	// server regardless of whether the field is empty or not. This may be
1898	// used to include empty fields in Patch requests.
1899	ForceSendFields []string `json:"-"`
1900
1901	// NullFields is a list of field names (e.g. "MaxSize") to include in
1902	// API requests with the JSON null value. By default, fields with empty
1903	// values are omitted from API requests. However, any field with an
1904	// empty value appearing in NullFields will be sent to the server as
1905	// null. It is an error if a field in this list has a non-empty value.
1906	// This may be used to include null fields in Patch requests.
1907	NullFields []string `json:"-"`
1908}
1909
1910func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale) MarshalJSON() ([]byte, error) {
1911	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
1912	raw := NoMethod(*s)
1913	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1914}
1915
1916// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest:
1917// The request used for `CreateInstance`.
1918type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest struct {
1919	// Instance: Specifies the instance to create. The name in the instance,
1920	// if specified in the instance, is ignored.
1921	Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"`
1922
1923	// InstanceId: ID of the created instance. A valid `instance_id` must:
1924	// be 6-50 characters long, contain only lowercase letters, digits,
1925	// hyphens and underscores, start with a lowercase letter, and end with
1926	// a lowercase letter or a digit.
1927	InstanceId string `json:"instanceId,omitempty"`
1928
1929	// Parent: Resource name of the project containing the instance. Format:
1930	// `projects/[PROJECT_ID]`.
1931	Parent string `json:"parent,omitempty"`
1932
1933	// ForceSendFields is a list of field names (e.g. "Instance") to
1934	// unconditionally include in API requests. By default, fields with
1935	// empty values are omitted from API requests. However, any non-pointer,
1936	// non-interface field appearing in ForceSendFields will be sent to the
1937	// server regardless of whether the field is empty or not. This may be
1938	// used to include empty fields in Patch requests.
1939	ForceSendFields []string `json:"-"`
1940
1941	// NullFields is a list of field names (e.g. "Instance") to include in
1942	// API requests with the JSON null value. By default, fields with empty
1943	// values are omitted from API requests. However, any field with an
1944	// empty value appearing in NullFields will be sent to the server as
1945	// null. It is an error if a field in this list has a non-empty value.
1946	// This may be used to include null fields in Patch requests.
1947	NullFields []string `json:"-"`
1948}
1949
1950func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) {
1951	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest
1952	raw := NoMethod(*s)
1953	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1954}
1955
1956// GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest:
1957//  The request used for `CreateWorkerPool`.
1958type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct {
1959	// Parent: Resource name of the instance in which to create the new
1960	// worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
1961	Parent string `json:"parent,omitempty"`
1962
1963	// PoolId: ID of the created worker pool. A valid pool ID must: be 6-50
1964	// characters long, contain only lowercase letters, digits, hyphens and
1965	// underscores, start with a lowercase letter, and end with a lowercase
1966	// letter or a digit.
1967	PoolId string `json:"poolId,omitempty"`
1968
1969	// WorkerPool: Specifies the worker pool to create. The name in the
1970	// worker pool, if specified, is ignored.
1971	WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"`
1972
1973	// ForceSendFields is a list of field names (e.g. "Parent") to
1974	// unconditionally include in API requests. By default, fields with
1975	// empty values are omitted from API requests. However, any non-pointer,
1976	// non-interface field appearing in ForceSendFields will be sent to the
1977	// server regardless of whether the field is empty or not. This may be
1978	// used to include empty fields in Patch requests.
1979	ForceSendFields []string `json:"-"`
1980
1981	// NullFields is a list of field names (e.g. "Parent") to include in API
1982	// requests with the JSON null value. By default, fields with empty
1983	// values are omitted from API requests. However, any field with an
1984	// empty value appearing in NullFields will be sent to the server as
1985	// null. It is an error if a field in this list has a non-empty value.
1986	// This may be used to include null fields in Patch requests.
1987	NullFields []string `json:"-"`
1988}
1989
1990func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) {
1991	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest
1992	raw := NoMethod(*s)
1993	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1994}
1995
1996// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest:
1997// The request used for `DeleteInstance`.
1998type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct {
1999	// Name: Name of the instance to delete. Format:
2000	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
2001	Name string `json:"name,omitempty"`
2002
2003	// ForceSendFields is a list of field names (e.g. "Name") to
2004	// unconditionally include in API requests. By default, fields with
2005	// empty values are omitted from API requests. However, any non-pointer,
2006	// non-interface field appearing in ForceSendFields will be sent to the
2007	// server regardless of whether the field is empty or not. This may be
2008	// used to include empty fields in Patch requests.
2009	ForceSendFields []string `json:"-"`
2010
2011	// NullFields is a list of field names (e.g. "Name") to include in API
2012	// requests with the JSON null value. By default, fields with empty
2013	// values are omitted from API requests. However, any field with an
2014	// empty value appearing in NullFields will be sent to the server as
2015	// null. It is an error if a field in this list has a non-empty value.
2016	// This may be used to include null fields in Patch requests.
2017	NullFields []string `json:"-"`
2018}
2019
2020func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) {
2021	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest
2022	raw := NoMethod(*s)
2023	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2024}
2025
2026// GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest:
2027//  The request used for DeleteWorkerPool.
2028type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct {
2029	// Name: Name of the worker pool to delete. Format:
2030	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
2031	Name string `json:"name,omitempty"`
2032
2033	// ForceSendFields is a list of field names (e.g. "Name") to
2034	// unconditionally include in API requests. By default, fields with
2035	// empty values are omitted from API requests. However, any non-pointer,
2036	// non-interface field appearing in ForceSendFields will be sent to the
2037	// server regardless of whether the field is empty or not. This may be
2038	// used to include empty fields in Patch requests.
2039	ForceSendFields []string `json:"-"`
2040
2041	// NullFields is a list of field names (e.g. "Name") to include in API
2042	// requests with the JSON null value. By default, fields with empty
2043	// values are omitted from API requests. However, any field with an
2044	// empty value appearing in NullFields will be sent to the server as
2045	// null. It is an error if a field in this list has a non-empty value.
2046	// This may be used to include null fields in Patch requests.
2047	NullFields []string `json:"-"`
2048}
2049
2050func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) {
2051	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest
2052	raw := NoMethod(*s)
2053	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2054}
2055
2056// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy:
2057// FeaturePolicy defines features allowed to be used on RBE instances,
2058// as well as instance-wide behavior changes that take effect without
2059// opt-in or opt-out at usage time.
2060type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy struct {
2061	// ContainerImageSources: Which container image sources are allowed.
2062	// Currently only RBE-supported registry (gcr.io) is allowed. One can
2063	// allow all repositories under a project or one specific repository
2064	// only. E.g. container_image_sources { policy: RESTRICTED
2065	// allowed_values: [ "gcr.io/project-foo",
2066	// "gcr.io/project-bar/repo-baz", ] } will allow any repositories under
2067	// "gcr.io/project-foo" plus the repository
2068	// "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to
2069	// any source is allowed.
2070	ContainerImageSources *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"containerImageSources,omitempty"`
2071
2072	// DockerAddCapabilities: Whether dockerAddCapabilities can be used or
2073	// what capabilities are allowed.
2074	DockerAddCapabilities *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerAddCapabilities,omitempty"`
2075
2076	// DockerChrootPath: Whether dockerChrootPath can be used.
2077	DockerChrootPath *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerChrootPath,omitempty"`
2078
2079	// DockerNetwork: Whether dockerNetwork can be used or what network
2080	// modes are allowed. E.g. one may allow `off` value only via
2081	// `allowed_values`.
2082	DockerNetwork *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerNetwork,omitempty"`
2083
2084	// DockerPrivileged: Whether dockerPrivileged can be used.
2085	DockerPrivileged *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerPrivileged,omitempty"`
2086
2087	// DockerRunAsRoot: Whether dockerRunAsRoot can be used.
2088	DockerRunAsRoot *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRunAsRoot,omitempty"`
2089
2090	// DockerRuntime: Whether dockerRuntime is allowed to be set or what
2091	// runtimes are allowed. Note linux_isolation takes precedence, and if
2092	// set, docker_runtime values may be rejected if they are incompatible
2093	// with the selected isolation.
2094	DockerRuntime *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerRuntime,omitempty"`
2095
2096	// DockerSiblingContainers: Whether dockerSiblingContainers can be used.
2097	DockerSiblingContainers *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature `json:"dockerSiblingContainers,omitempty"`
2098
2099	// LinuxIsolation: linux_isolation allows overriding the docker runtime
2100	// used for containers started on Linux.
2101	//
2102	// Possible values:
2103	//   "LINUX_ISOLATION_UNSPECIFIED" - Default value. Will be using Linux
2104	// default runtime.
2105	//   "GVISOR" - Use gVisor runsc runtime.
2106	//   "OFF" - Use stardard Linux runtime. This has the same behaviour as
2107	// unspecified, but it can be used to revert back from gVisor.
2108	LinuxIsolation string `json:"linuxIsolation,omitempty"`
2109
2110	// ForceSendFields is a list of field names (e.g.
2111	// "ContainerImageSources") to unconditionally include in API requests.
2112	// By default, fields with empty values are omitted from API requests.
2113	// However, any non-pointer, non-interface field appearing in
2114	// ForceSendFields will be sent to the server regardless of whether the
2115	// field is empty or not. This may be used to include empty fields in
2116	// Patch requests.
2117	ForceSendFields []string `json:"-"`
2118
2119	// NullFields is a list of field names (e.g. "ContainerImageSources") to
2120	// include in API requests with the JSON null value. By default, fields
2121	// with empty values are omitted from API requests. However, any field
2122	// with an empty value appearing in NullFields will be sent to the
2123	// server as null. It is an error if a field in this list has a
2124	// non-empty value. This may be used to include null fields in Patch
2125	// requests.
2126	NullFields []string `json:"-"`
2127}
2128
2129func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy) MarshalJSON() ([]byte, error) {
2130	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy
2131	raw := NoMethod(*s)
2132	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2133}
2134
2135// GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature:
2136// Defines whether a feature can be used or what values are accepted.
2137type GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature struct {
2138	// AllowedValues: A list of acceptable values. Only effective when the
2139	// policy is `RESTRICTED`.
2140	AllowedValues []string `json:"allowedValues,omitempty"`
2141
2142	// Policy: The policy of the feature.
2143	//
2144	// Possible values:
2145	//   "POLICY_UNSPECIFIED" - Default value, if not explicitly set.
2146	// Equivalent to FORBIDDEN, unless otherwise documented on a specific
2147	// Feature.
2148	//   "ALLOWED" - Feature is explicitly allowed.
2149	//   "FORBIDDEN" - Feature is forbidden. Requests attempting to leverage
2150	// it will get an FailedPrecondition error, with a message like:
2151	// "Feature forbidden by FeaturePolicy: Feature on instance "
2152	//   "RESTRICTED" - Only the values specified in the `allowed_values`
2153	// are allowed.
2154	Policy string `json:"policy,omitempty"`
2155
2156	// ForceSendFields is a list of field names (e.g. "AllowedValues") to
2157	// unconditionally include in API requests. By default, fields with
2158	// empty values are omitted from API requests. However, any non-pointer,
2159	// non-interface field appearing in ForceSendFields will be sent to the
2160	// server regardless of whether the field is empty or not. This may be
2161	// used to include empty fields in Patch requests.
2162	ForceSendFields []string `json:"-"`
2163
2164	// NullFields is a list of field names (e.g. "AllowedValues") to include
2165	// in API requests with the JSON null value. By default, fields with
2166	// empty values are omitted from API requests. However, any field with
2167	// an empty value appearing in NullFields will be sent to the server as
2168	// null. It is an error if a field in this list has a non-empty value.
2169	// This may be used to include null fields in Patch requests.
2170	NullFields []string `json:"-"`
2171}
2172
2173func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature) MarshalJSON() ([]byte, error) {
2174	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature
2175	raw := NoMethod(*s)
2176	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2177}
2178
2179// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: The
2180// request used for `GetInstance`.
2181type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct {
2182	// Name: Name of the instance to retrieve. Format:
2183	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
2184	Name string `json:"name,omitempty"`
2185
2186	// ForceSendFields is a list of field names (e.g. "Name") to
2187	// unconditionally include in API requests. By default, fields with
2188	// empty values are omitted from API requests. However, any non-pointer,
2189	// non-interface field appearing in ForceSendFields will be sent to the
2190	// server regardless of whether the field is empty or not. This may be
2191	// used to include empty fields in Patch requests.
2192	ForceSendFields []string `json:"-"`
2193
2194	// NullFields is a list of field names (e.g. "Name") to include in API
2195	// requests with the JSON null value. By default, fields with empty
2196	// values are omitted from API requests. However, any field with an
2197	// empty value appearing in NullFields will be sent to the server as
2198	// null. It is an error if a field in this list has a non-empty value.
2199	// This may be used to include null fields in Patch requests.
2200	NullFields []string `json:"-"`
2201}
2202
2203func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) {
2204	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
2205	raw := NoMethod(*s)
2206	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2207}
2208
2209// GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest:
2210// The request used for GetWorkerPool.
2211type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct {
2212	// Name: Name of the worker pool to retrieve. Format:
2213	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
2214	Name string `json:"name,omitempty"`
2215
2216	// ForceSendFields is a list of field names (e.g. "Name") to
2217	// unconditionally include in API requests. By default, fields with
2218	// empty values are omitted from API requests. However, any non-pointer,
2219	// non-interface field appearing in ForceSendFields will be sent to the
2220	// server regardless of whether the field is empty or not. This may be
2221	// used to include empty fields in Patch requests.
2222	ForceSendFields []string `json:"-"`
2223
2224	// NullFields is a list of field names (e.g. "Name") to include in API
2225	// requests with the JSON null value. By default, fields with empty
2226	// values are omitted from API requests. However, any field with an
2227	// empty value appearing in NullFields will be sent to the server as
2228	// null. It is an error if a field in this list has a non-empty value.
2229	// This may be used to include null fields in Patch requests.
2230	NullFields []string `json:"-"`
2231}
2232
2233func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) {
2234	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest
2235	raw := NoMethod(*s)
2236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2237}
2238
2239// GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instance
2240// conceptually encapsulates all Remote Build Execution resources for
2241// remote builds. An instance consists of storage and compute resources
2242// (for example, `ContentAddressableStorage`, `ActionCache`,
2243// `WorkerPools`) used for running remote builds. All Remote Build
2244// Execution API calls are scoped to an instance.
2245type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct {
2246	// FeaturePolicy: The policy to define whether or not RBE features can
2247	// be used or how they can be used.
2248	FeaturePolicy *GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy `json:"featurePolicy,omitempty"`
2249
2250	// Location: The location is a GCP region. Currently only `us-central1`
2251	// is supported.
2252	Location string `json:"location,omitempty"`
2253
2254	// LoggingEnabled: Output only. Whether stack driver logging is enabled
2255	// for the instance.
2256	LoggingEnabled bool `json:"loggingEnabled,omitempty"`
2257
2258	// Name: Output only. Instance resource name formatted as:
2259	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be
2260	// populated when creating an instance since it is provided in the
2261	// `instance_id` field.
2262	Name string `json:"name,omitempty"`
2263
2264	// State: Output only. State of the instance.
2265	//
2266	// Possible values:
2267	//   "STATE_UNSPECIFIED" - Not a valid state, but the default value of
2268	// the enum.
2269	//   "CREATING" - The instance is in state `CREATING` once
2270	// `CreateInstance` is called and before the instance is ready for use.
2271	//   "RUNNING" - The instance is in state `RUNNING` when it is ready for
2272	// use.
2273	//   "INACTIVE" - An `INACTIVE` instance indicates that there is a
2274	// problem that needs to be fixed. Such instances cannot be used for
2275	// execution and instances that remain in this state for a significant
2276	// period of time will be removed permanently.
2277	State string `json:"state,omitempty"`
2278
2279	// ForceSendFields is a list of field names (e.g. "FeaturePolicy") to
2280	// unconditionally include in API requests. By default, fields with
2281	// empty values are omitted from API requests. However, any non-pointer,
2282	// non-interface field appearing in ForceSendFields will be sent to the
2283	// server regardless of whether the field is empty or not. This may be
2284	// used to include empty fields in Patch requests.
2285	ForceSendFields []string `json:"-"`
2286
2287	// NullFields is a list of field names (e.g. "FeaturePolicy") to include
2288	// in API requests with the JSON null value. By default, fields with
2289	// empty values are omitted from API requests. However, any field with
2290	// an empty value appearing in NullFields will be sent to the server as
2291	// null. It is an error if a field in this list has a non-empty value.
2292	// This may be used to include null fields in Patch requests.
2293	NullFields []string `json:"-"`
2294}
2295
2296func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) {
2297	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
2298	raw := NoMethod(*s)
2299	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2300}
2301
2302type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct {
2303	// Parent: Resource name of the project. Format:
2304	// `projects/[PROJECT_ID]`.
2305	Parent string `json:"parent,omitempty"`
2306
2307	// ForceSendFields is a list of field names (e.g. "Parent") to
2308	// unconditionally include in API requests. By default, fields with
2309	// empty values are omitted from API requests. However, any non-pointer,
2310	// non-interface field appearing in ForceSendFields will be sent to the
2311	// server regardless of whether the field is empty or not. This may be
2312	// used to include empty fields in Patch requests.
2313	ForceSendFields []string `json:"-"`
2314
2315	// NullFields is a list of field names (e.g. "Parent") to include in API
2316	// requests with the JSON null value. By default, fields with empty
2317	// values are omitted from API requests. However, any field with an
2318	// empty value appearing in NullFields will be sent to the server as
2319	// null. It is an error if a field in this list has a non-empty value.
2320	// This may be used to include null fields in Patch requests.
2321	NullFields []string `json:"-"`
2322}
2323
2324func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) {
2325	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest
2326	raw := NoMethod(*s)
2327	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2328}
2329
2330type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse struct {
2331	// Instances: The list of instances in a given project.
2332	Instances []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instances,omitempty"`
2333
2334	// ForceSendFields is a list of field names (e.g. "Instances") to
2335	// unconditionally include in API requests. By default, fields with
2336	// empty values are omitted from API requests. However, any non-pointer,
2337	// non-interface field appearing in ForceSendFields will be sent to the
2338	// server regardless of whether the field is empty or not. This may be
2339	// used to include empty fields in Patch requests.
2340	ForceSendFields []string `json:"-"`
2341
2342	// NullFields is a list of field names (e.g. "Instances") to include in
2343	// API requests with the JSON null value. By default, fields with empty
2344	// values are omitted from API requests. However, any field with an
2345	// empty value appearing in NullFields will be sent to the server as
2346	// null. It is an error if a field in this list has a non-empty value.
2347	// This may be used to include null fields in Patch requests.
2348	NullFields []string `json:"-"`
2349}
2350
2351func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) {
2352	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
2353	raw := NoMethod(*s)
2354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2355}
2356
2357type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct {
2358	// Filter: Optional. A filter expression that filters resources listed
2359	// in the response. The expression must specify the field name, a
2360	// comparison operator, and the value that you want to use for
2361	// filtering. The value must be a string, a number, or a boolean. String
2362	// values are case-insensitive. The comparison operator must be either
2363	// `:`, `=`, `!=`, `>`, `>=`, `<=` or `<`. The `:` operator can be used
2364	// with string fields to match substrings. For non-string fields it is
2365	// equivalent to the `=` operator. The `:*` comparison can be used to
2366	// test whether a key has been defined. You can also filter on nested
2367	// fields. To filter on multiple expressions, you can separate
2368	// expression using `AND` and `OR` operators, using parentheses to
2369	// specify precedence. If neither operator is specified, `AND` is
2370	// assumed. Examples: Include only pools with more than 100 reserved
2371	// workers: `(worker_count > 100) (worker_config.reserved = true)`
2372	// Include only pools with a certain label or machines of the
2373	// e2-standard family: `worker_config.labels.key1 : * OR
2374	// worker_config.machine_type: e2-standard`
2375	Filter string `json:"filter,omitempty"`
2376
2377	// Parent: Resource name of the instance. Format:
2378	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
2379	Parent string `json:"parent,omitempty"`
2380
2381	// ForceSendFields is a list of field names (e.g. "Filter") to
2382	// unconditionally include in API requests. By default, fields with
2383	// empty values are omitted from API requests. However, any non-pointer,
2384	// non-interface field appearing in ForceSendFields will be sent to the
2385	// server regardless of whether the field is empty or not. This may be
2386	// used to include empty fields in Patch requests.
2387	ForceSendFields []string `json:"-"`
2388
2389	// NullFields is a list of field names (e.g. "Filter") to include in API
2390	// requests with the JSON null value. By default, fields with empty
2391	// values are omitted from API requests. However, any field with an
2392	// empty value appearing in NullFields will be sent to the server as
2393	// null. It is an error if a field in this list has a non-empty value.
2394	// This may be used to include null fields in Patch requests.
2395	NullFields []string `json:"-"`
2396}
2397
2398func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) {
2399	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest
2400	raw := NoMethod(*s)
2401	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2402}
2403
2404type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse struct {
2405	// WorkerPools: The list of worker pools in a given instance.
2406	WorkerPools []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPools,omitempty"`
2407
2408	// ForceSendFields is a list of field names (e.g. "WorkerPools") to
2409	// unconditionally include in API requests. By default, fields with
2410	// empty values are omitted from API requests. However, any non-pointer,
2411	// non-interface field appearing in ForceSendFields will be sent to the
2412	// server regardless of whether the field is empty or not. This may be
2413	// used to include empty fields in Patch requests.
2414	ForceSendFields []string `json:"-"`
2415
2416	// NullFields is a list of field names (e.g. "WorkerPools") to include
2417	// in API requests with the JSON null value. By default, fields with
2418	// empty values are omitted from API requests. However, any field with
2419	// an empty value appearing in NullFields will be sent to the server as
2420	// null. It is an error if a field in this list has a non-empty value.
2421	// This may be used to include null fields in Patch requests.
2422	NullFields []string `json:"-"`
2423}
2424
2425func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) {
2426	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
2427	raw := NoMethod(*s)
2428	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2429}
2430
2431// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest:
2432// The request used for `UpdateInstance`.
2433type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest struct {
2434	// Instance: Specifies the instance to update.
2435	Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"`
2436
2437	// LoggingEnabled: Deprecated, use instance.logging_enabled instead.
2438	// Whether to enable Stackdriver logging for this instance.
2439	LoggingEnabled bool `json:"loggingEnabled,omitempty"`
2440
2441	// Name: Deprecated, use instance.Name instead. Name of the instance to
2442	// update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
2443	Name string `json:"name,omitempty"`
2444
2445	// UpdateMask: The update mask applies to instance. For the `FieldMask`
2446	// definition, see
2447	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
2448	// If an empty update_mask is provided, only the non-default valued
2449	// field in the worker pool field will be updated. Note that in order to
2450	// update a field to the default value (zero, false, empty string) an
2451	// explicit update_mask must be provided.
2452	UpdateMask string `json:"updateMask,omitempty"`
2453
2454	// ForceSendFields is a list of field names (e.g. "Instance") to
2455	// unconditionally include in API requests. By default, fields with
2456	// empty values are omitted from API requests. However, any non-pointer,
2457	// non-interface field appearing in ForceSendFields will be sent to the
2458	// server regardless of whether the field is empty or not. This may be
2459	// used to include empty fields in Patch requests.
2460	ForceSendFields []string `json:"-"`
2461
2462	// NullFields is a list of field names (e.g. "Instance") to include in
2463	// API requests with the JSON null value. By default, fields with empty
2464	// values are omitted from API requests. However, any field with an
2465	// empty value appearing in NullFields will be sent to the server as
2466	// null. It is an error if a field in this list has a non-empty value.
2467	// This may be used to include null fields in Patch requests.
2468	NullFields []string `json:"-"`
2469}
2470
2471func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest) MarshalJSON() ([]byte, error) {
2472	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest
2473	raw := NoMethod(*s)
2474	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2475}
2476
2477// GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest:
2478//  The request used for UpdateWorkerPool.
2479type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest struct {
2480	// UpdateMask: The update mask applies to worker_pool. For the
2481	// `FieldMask` definition, see
2482	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
2483	// If an empty update_mask is provided, only the non-default valued
2484	// field in the worker pool field will be updated. Note that in order to
2485	// update a field to the default value (zero, false, empty string) an
2486	// explicit update_mask must be provided.
2487	UpdateMask string `json:"updateMask,omitempty"`
2488
2489	// WorkerPool: Specifies the worker pool to update.
2490	WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"`
2491
2492	// ForceSendFields is a list of field names (e.g. "UpdateMask") to
2493	// unconditionally include in API requests. By default, fields with
2494	// empty values are omitted from API requests. However, any non-pointer,
2495	// non-interface field appearing in ForceSendFields will be sent to the
2496	// server regardless of whether the field is empty or not. This may be
2497	// used to include empty fields in Patch requests.
2498	ForceSendFields []string `json:"-"`
2499
2500	// NullFields is a list of field names (e.g. "UpdateMask") to include in
2501	// API requests with the JSON null value. By default, fields with empty
2502	// values are omitted from API requests. However, any field with an
2503	// empty value appearing in NullFields will be sent to the server as
2504	// null. It is an error if a field in this list has a non-empty value.
2505	// This may be used to include null fields in Patch requests.
2506	NullFields []string `json:"-"`
2507}
2508
2509func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) {
2510	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
2511	raw := NoMethod(*s)
2512	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2513}
2514
2515// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines
2516// the configuration to be used for creating workers in the worker pool.
2517type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct {
2518	// Accelerator: The accelerator card attached to each VM.
2519	Accelerator *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig `json:"accelerator,omitempty"`
2520
2521	// DiskSizeGb: Required. Size of the disk attached to the worker, in GB.
2522	// See https://cloud.google.com/compute/docs/disks/
2523	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
2524
2525	// DiskType: Required. Disk Type to use for the worker. See Storage
2526	// options (https://cloud.google.com/compute/docs/disks/#introduction).
2527	// Currently only `pd-standard` and `pd-ssd` are supported.
2528	DiskType string `json:"diskType,omitempty"`
2529
2530	// Labels: Labels associated with the workers. Label keys and values can
2531	// be no longer than 63 characters, can only contain lowercase letters,
2532	// numeric characters, underscores and dashes. International letters are
2533	// permitted. Label keys must start with a letter. Label values are
2534	// optional. There can not be more than 64 labels per resource.
2535	Labels map[string]string `json:"labels,omitempty"`
2536
2537	// MachineType: Required. Machine type of the worker, such as
2538	// `e2-standard-2`. See
2539	// https://cloud.google.com/compute/docs/machine-types for a list of
2540	// supported machine types. Note that `f1-micro` and `g1-small` are not
2541	// yet supported.
2542	MachineType string `json:"machineType,omitempty"`
2543
2544	// MaxConcurrentActions: The maximum number of actions a worker can
2545	// execute concurrently.
2546	MaxConcurrentActions int64 `json:"maxConcurrentActions,omitempty,string"`
2547
2548	// MinCpuPlatform: Minimum CPU platform to use when creating the worker.
2549	// See CPU Platforms
2550	// (https://cloud.google.com/compute/docs/cpu-platforms).
2551	MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
2552
2553	// NetworkAccess: Determines the type of network access granted to
2554	// workers. Possible values: - "public": Workers can connect to the
2555	// public internet. - "private": Workers can only connect to Google APIs
2556	// and services. - "restricted-private": Workers can only connect to
2557	// Google APIs that are reachable through `restricted.googleapis.com`
2558	// (`199.36.153.4/30`).
2559	NetworkAccess string `json:"networkAccess,omitempty"`
2560
2561	// Reserved: Determines whether the worker is reserved (equivalent to a
2562	// Compute Engine on-demand VM and therefore won't be preempted). See
2563	// Preemptible VMs (https://cloud.google.com/preemptible-vms/) for more
2564	// details.
2565	Reserved bool `json:"reserved,omitempty"`
2566
2567	// SoleTenantNodeType: The node type name to be used for sole-tenant
2568	// nodes.
2569	SoleTenantNodeType string `json:"soleTenantNodeType,omitempty"`
2570
2571	// VmImage: The name of the image used by each VM.
2572	VmImage string `json:"vmImage,omitempty"`
2573
2574	// ForceSendFields is a list of field names (e.g. "Accelerator") to
2575	// unconditionally include in API requests. By default, fields with
2576	// empty values are omitted from API requests. However, any non-pointer,
2577	// non-interface field appearing in ForceSendFields will be sent to the
2578	// server regardless of whether the field is empty or not. This may be
2579	// used to include empty fields in Patch requests.
2580	ForceSendFields []string `json:"-"`
2581
2582	// NullFields is a list of field names (e.g. "Accelerator") to include
2583	// in API requests with the JSON null value. By default, fields with
2584	// empty values are omitted from API requests. However, any field with
2585	// an empty value appearing in NullFields will be sent to the server as
2586	// null. It is an error if a field in this list has a non-empty value.
2587	// This may be used to include null fields in Patch requests.
2588	NullFields []string `json:"-"`
2589}
2590
2591func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) {
2592	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
2593	raw := NoMethod(*s)
2594	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2595}
2596
2597// GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker
2598// pool resource in the Remote Build Execution API.
2599type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct {
2600	// Autoscale: The autoscale policy to apply on a pool.
2601	Autoscale *GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale `json:"autoscale,omitempty"`
2602
2603	// Channel: Channel specifies the release channel of the pool.
2604	Channel string `json:"channel,omitempty"`
2605
2606	// Name: WorkerPool resource name formatted as:
2607	// `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
2608	//  name should not be populated when creating a worker pool since it is
2609	// provided in the `poolId` field.
2610	Name string `json:"name,omitempty"`
2611
2612	// State: Output only. State of the worker pool.
2613	//
2614	// Possible values:
2615	//   "STATE_UNSPECIFIED" - Not a valid state, but the default value of
2616	// the enum.
2617	//   "CREATING" - The worker pool is in state `CREATING` once
2618	// `CreateWorkerPool` is called and before all requested workers are
2619	// ready.
2620	//   "RUNNING" - The worker pool is in state `RUNNING` when all its
2621	// workers are ready for use.
2622	//   "UPDATING" - The worker pool is in state `UPDATING` once
2623	// `UpdateWorkerPool` is called and before the new configuration has all
2624	// the requested workers ready for use, and no older configuration has
2625	// any workers. At that point the state transitions to `RUNNING`.
2626	//   "DELETING" - The worker pool is in state `DELETING` once the
2627	// `Delete` method is called and before the deletion completes.
2628	//   "INACTIVE" - The worker pool is in state `INACTIVE` when the
2629	// instance hosting the worker pool in not running.
2630	State string `json:"state,omitempty"`
2631
2632	// WorkerConfig: Specifies the properties, such as machine type and disk
2633	// size, used for creating workers in a worker pool.
2634	WorkerConfig *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig `json:"workerConfig,omitempty"`
2635
2636	// WorkerCount: The desired number of workers in the worker pool. Must
2637	// be a value between 0 and 15000.
2638	WorkerCount int64 `json:"workerCount,omitempty,string"`
2639
2640	// ForceSendFields is a list of field names (e.g. "Autoscale") to
2641	// unconditionally include in API requests. By default, fields with
2642	// empty values are omitted from API requests. However, any non-pointer,
2643	// non-interface field appearing in ForceSendFields will be sent to the
2644	// server regardless of whether the field is empty or not. This may be
2645	// used to include empty fields in Patch requests.
2646	ForceSendFields []string `json:"-"`
2647
2648	// NullFields is a list of field names (e.g. "Autoscale") to include in
2649	// API requests with the JSON null value. By default, fields with empty
2650	// values are omitted from API requests. However, any field with an
2651	// empty value appearing in NullFields will be sent to the server as
2652	// null. It is an error if a field in this list has a non-empty value.
2653	// This may be used to include null fields in Patch requests.
2654	NullFields []string `json:"-"`
2655}
2656
2657func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) {
2658	type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
2659	raw := NoMethod(*s)
2660	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2661}
2662
2663// GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a
2664// prelimiary set of administration tasks. It's called "Temp" because we
2665// do not yet know the best way to represent admin tasks; it's possible
2666// that this will be entirely replaced in later versions of this API. If
2667// this message proves to be sufficient, it will be renamed in the alpha
2668// or beta release of this API. This message (suitably marshalled into a
2669// protobuf.Any) can be used as the inline_assignment field in a lease;
2670// the lease assignment field should simply be "admin" in these cases.
2671// This message is heavily based on Swarming administration tasks from
2672// the LUCI project (http://github.com/luci/luci-py/appengine/swarming).
2673type GoogleDevtoolsRemoteworkersV1test2AdminTemp struct {
2674	// Arg: The argument to the admin action; see `Command` for semantics.
2675	Arg string `json:"arg,omitempty"`
2676
2677	// Command: The admin action; see `Command` for legal values.
2678	//
2679	// Possible values:
2680	//   "UNSPECIFIED" - Illegal value.
2681	//   "BOT_UPDATE" - Download and run a new version of the bot. `arg`
2682	// will be a resource accessible via `ByteStream.Read` to obtain the new
2683	// bot code.
2684	//   "BOT_RESTART" - Restart the bot without downloading a new version.
2685	// `arg` will be a message to log.
2686	//   "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource
2687	// name (similar to those in tasks.proto) that the bot can use to tell
2688	// the server that it is terminating.
2689	//   "HOST_RESTART" - Restart the host computer. `arg` will be a message
2690	// to log.
2691	Command string `json:"command,omitempty"`
2692
2693	// ForceSendFields is a list of field names (e.g. "Arg") to
2694	// unconditionally include in API requests. By default, fields with
2695	// empty values are omitted from API requests. However, any non-pointer,
2696	// non-interface field appearing in ForceSendFields will be sent to the
2697	// server regardless of whether the field is empty or not. This may be
2698	// used to include empty fields in Patch requests.
2699	ForceSendFields []string `json:"-"`
2700
2701	// NullFields is a list of field names (e.g. "Arg") to include in API
2702	// requests with the JSON null value. By default, fields with empty
2703	// values are omitted from API requests. However, any field with an
2704	// empty value appearing in NullFields will be sent to the server as
2705	// null. It is an error if a field in this list has a non-empty value.
2706	// This may be used to include null fields in Patch requests.
2707	NullFields []string `json:"-"`
2708}
2709
2710func (s *GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) {
2711	type NoMethod GoogleDevtoolsRemoteworkersV1test2AdminTemp
2712	raw := NoMethod(*s)
2713	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2714}
2715
2716// GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary
2717// content with its digest.
2718type GoogleDevtoolsRemoteworkersV1test2Blob struct {
2719	// Contents: The contents of the blob.
2720	Contents string `json:"contents,omitempty"`
2721
2722	// Digest: The digest of the blob. This should be verified by the
2723	// receiver.
2724	Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`
2725
2726	// ForceSendFields is a list of field names (e.g. "Contents") to
2727	// unconditionally include in API requests. By default, fields with
2728	// empty values are omitted from API requests. However, any non-pointer,
2729	// non-interface field appearing in ForceSendFields will be sent to the
2730	// server regardless of whether the field is empty or not. This may be
2731	// used to include empty fields in Patch requests.
2732	ForceSendFields []string `json:"-"`
2733
2734	// NullFields is a list of field names (e.g. "Contents") to include in
2735	// API requests with the JSON null value. By default, fields with empty
2736	// values are omitted from API requests. However, any field with an
2737	// empty value appearing in NullFields will be sent to the server as
2738	// null. It is an error if a field in this list has a non-empty value.
2739	// This may be used to include null fields in Patch requests.
2740	NullFields []string `json:"-"`
2741}
2742
2743func (s *GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) {
2744	type NoMethod GoogleDevtoolsRemoteworkersV1test2Blob
2745	raw := NoMethod(*s)
2746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2747}
2748
2749// GoogleDevtoolsRemoteworkersV1test2CommandOutputs: DEPRECATED - use
2750// CommandResult instead. Describes the actual outputs from the task.
2751type GoogleDevtoolsRemoteworkersV1test2CommandOutputs struct {
2752	// ExitCode: exit_code is only fully reliable if the status' code is OK.
2753	// If the task exceeded its deadline or was cancelled, the process may
2754	// still produce an exit code as it is cancelled, and this will be
2755	// populated, but a successful (zero) is unlikely to be correct unless
2756	// the status code is OK.
2757	ExitCode int64 `json:"exitCode,omitempty"`
2758
2759	// Outputs: The output files. The blob referenced by the digest should
2760	// contain one of the following (implementation-dependent): * A
2761	// marshalled DirectoryMetadata of the returned filesystem * A
2762	// LUCI-style .isolated file
2763	Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"`
2764
2765	// ForceSendFields is a list of field names (e.g. "ExitCode") to
2766	// unconditionally include in API requests. By default, fields with
2767	// empty values are omitted from API requests. However, any non-pointer,
2768	// non-interface field appearing in ForceSendFields will be sent to the
2769	// server regardless of whether the field is empty or not. This may be
2770	// used to include empty fields in Patch requests.
2771	ForceSendFields []string `json:"-"`
2772
2773	// NullFields is a list of field names (e.g. "ExitCode") to include in
2774	// API requests with the JSON null value. By default, fields with empty
2775	// values are omitted from API requests. However, any field with an
2776	// empty value appearing in NullFields will be sent to the server as
2777	// null. It is an error if a field in this list has a non-empty value.
2778	// This may be used to include null fields in Patch requests.
2779	NullFields []string `json:"-"`
2780}
2781
2782func (s *GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) {
2783	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOutputs
2784	raw := NoMethod(*s)
2785	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2786}
2787
2788// GoogleDevtoolsRemoteworkersV1test2CommandOverhead: DEPRECATED - use
2789// CommandResult instead. Can be used as part of
2790// CompleteRequest.metadata, or are part of a more sophisticated
2791// message.
2792type GoogleDevtoolsRemoteworkersV1test2CommandOverhead struct {
2793	// Duration: The elapsed time between calling Accept and Complete. The
2794	// server will also have its own idea of what this should be, but this
2795	// excludes the overhead of the RPCs and the bot response time.
2796	Duration string `json:"duration,omitempty"`
2797
2798	// Overhead: The amount of time *not* spent executing the command (ie
2799	// uploading/downloading files).
2800	Overhead string `json:"overhead,omitempty"`
2801
2802	// ForceSendFields is a list of field names (e.g. "Duration") to
2803	// unconditionally include in API requests. By default, fields with
2804	// empty values are omitted from API requests. However, any non-pointer,
2805	// non-interface field appearing in ForceSendFields will be sent to the
2806	// server regardless of whether the field is empty or not. This may be
2807	// used to include empty fields in Patch requests.
2808	ForceSendFields []string `json:"-"`
2809
2810	// NullFields is a list of field names (e.g. "Duration") to include in
2811	// API requests with the JSON null value. By default, fields with empty
2812	// values are omitted from API requests. However, any field with an
2813	// empty value appearing in NullFields will be sent to the server as
2814	// null. It is an error if a field in this list has a non-empty value.
2815	// This may be used to include null fields in Patch requests.
2816	NullFields []string `json:"-"`
2817}
2818
2819func (s *GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) {
2820	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOverhead
2821	raw := NoMethod(*s)
2822	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2823}
2824
2825// GoogleDevtoolsRemoteworkersV1test2CommandResult: All information
2826// about the execution of a command, suitable for providing as the Bots
2827// interface's `Lease.result` field.
2828type GoogleDevtoolsRemoteworkersV1test2CommandResult struct {
2829	// Duration: The elapsed time between calling Accept and Complete. The
2830	// server will also have its own idea of what this should be, but this
2831	// excludes the overhead of the RPCs and the bot response time.
2832	Duration string `json:"duration,omitempty"`
2833
2834	// ExitCode: The exit code of the process. An exit code of "0" should
2835	// only be trusted if `status` has a code of OK (otherwise it may simply
2836	// be unset).
2837	ExitCode int64 `json:"exitCode,omitempty"`
2838
2839	// Metadata: Implementation-dependent metadata about the task. Both
2840	// servers and bots may define messages which can be encoded here; bots
2841	// are free to provide metadata in multiple formats, and servers are
2842	// free to choose one or more of the values to process and ignore
2843	// others. In particular, it is *not* considered an error for the bot to
2844	// provide the server with a field that it doesn't know about.
2845	Metadata []googleapi.RawMessage `json:"metadata,omitempty"`
2846
2847	// Outputs: The output files. The blob referenced by the digest should
2848	// contain one of the following (implementation-dependent): * A
2849	// marshalled DirectoryMetadata of the returned filesystem * A
2850	// LUCI-style .isolated file
2851	Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"`
2852
2853	// Overhead: The amount of time *not* spent executing the command (ie
2854	// uploading/downloading files).
2855	Overhead string `json:"overhead,omitempty"`
2856
2857	// Status: An overall status for the command. For example, if the
2858	// command timed out, this might have a code of DEADLINE_EXCEEDED; if it
2859	// was killed by the OS for memory exhaustion, it might have a code of
2860	// RESOURCE_EXHAUSTED.
2861	Status *GoogleRpcStatus `json:"status,omitempty"`
2862
2863	// ForceSendFields is a list of field names (e.g. "Duration") to
2864	// unconditionally include in API requests. By default, fields with
2865	// empty values are omitted from API requests. However, any non-pointer,
2866	// non-interface field appearing in ForceSendFields will be sent to the
2867	// server regardless of whether the field is empty or not. This may be
2868	// used to include empty fields in Patch requests.
2869	ForceSendFields []string `json:"-"`
2870
2871	// NullFields is a list of field names (e.g. "Duration") to include in
2872	// API requests with the JSON null value. By default, fields with empty
2873	// values are omitted from API requests. However, any field with an
2874	// empty value appearing in NullFields will be sent to the server as
2875	// null. It is an error if a field in this list has a non-empty value.
2876	// This may be used to include null fields in Patch requests.
2877	NullFields []string `json:"-"`
2878}
2879
2880func (s *GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) {
2881	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandResult
2882	raw := NoMethod(*s)
2883	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2884}
2885
2886// GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a
2887// shell-style task to execute, suitable for providing as the Bots
2888// interface's `Lease.payload` field.
2889type GoogleDevtoolsRemoteworkersV1test2CommandTask struct {
2890	// ExpectedOutputs: The expected outputs from the task.
2891	ExpectedOutputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs `json:"expectedOutputs,omitempty"`
2892
2893	// Inputs: The inputs to the task.
2894	Inputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs `json:"inputs,omitempty"`
2895
2896	// Timeouts: The timeouts of this task.
2897	Timeouts *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts `json:"timeouts,omitempty"`
2898
2899	// ForceSendFields is a list of field names (e.g. "ExpectedOutputs") to
2900	// unconditionally include in API requests. By default, fields with
2901	// empty values are omitted from API requests. However, any non-pointer,
2902	// non-interface field appearing in ForceSendFields will be sent to the
2903	// server regardless of whether the field is empty or not. This may be
2904	// used to include empty fields in Patch requests.
2905	ForceSendFields []string `json:"-"`
2906
2907	// NullFields is a list of field names (e.g. "ExpectedOutputs") to
2908	// include in API requests with the JSON null value. By default, fields
2909	// with empty values are omitted from API requests. However, any field
2910	// with an empty value appearing in NullFields will be sent to the
2911	// server as null. It is an error if a field in this list has a
2912	// non-empty value. This may be used to include null fields in Patch
2913	// requests.
2914	NullFields []string `json:"-"`
2915}
2916
2917func (s *GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) {
2918	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTask
2919	raw := NoMethod(*s)
2920	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2921}
2922
2923// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the
2924// inputs to a shell-style task.
2925type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs struct {
2926	// Arguments: The command itself to run (e.g., argv). This field should
2927	// be passed directly to the underlying operating system, and so it must
2928	// be sensible to that operating system. For example, on Windows, the
2929	// first argument might be "C:\Windows\System32\ping.exe" - that is,
2930	// using drive letters and backslashes. A command for a *nix system, on
2931	// the other hand, would use forward slashes. All other fields in the
2932	// RWAPI must consistently use forward slashes, since those fields may
2933	// be interpretted by both the service and the bot.
2934	Arguments []string `json:"arguments,omitempty"`
2935
2936	// EnvironmentVariables: All environment variables required by the task.
2937	EnvironmentVariables []*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable `json:"environmentVariables,omitempty"`
2938
2939	// Files: The input filesystem to be set up prior to the task beginning.
2940	// The contents should be a repeated set of FileMetadata messages though
2941	// other formats are allowed if better for the implementation (eg, a
2942	// LUCI-style .isolated file). This field is repeated since
2943	// implementations might want to cache the metadata, in which case it
2944	// may be useful to break up portions of the filesystem that change
2945	// frequently (eg, specific input files) from those that don't (eg,
2946	// standard header files).
2947	Files []*GoogleDevtoolsRemoteworkersV1test2Digest `json:"files,omitempty"`
2948
2949	// InlineBlobs: Inline contents for blobs expected to be needed by the
2950	// bot to execute the task. For example, contents of entries in `files`
2951	// or blobs that are indirectly referenced by an entry there. The bot
2952	// should check against this list before downloading required task
2953	// inputs to reduce the number of communications between itself and the
2954	// remote CAS server.
2955	InlineBlobs []*GoogleDevtoolsRemoteworkersV1test2Blob `json:"inlineBlobs,omitempty"`
2956
2957	// WorkingDirectory: Directory from which a command is executed. It is a
2958	// relative directory with respect to the bot's working directory (i.e.,
2959	// "./"). If it is non-empty, then it must exist under "./". Otherwise,
2960	// "./" will be used.
2961	WorkingDirectory string `json:"workingDirectory,omitempty"`
2962
2963	// ForceSendFields is a list of field names (e.g. "Arguments") to
2964	// unconditionally include in API requests. By default, fields with
2965	// empty values are omitted from API requests. However, any non-pointer,
2966	// non-interface field appearing in ForceSendFields will be sent to the
2967	// server regardless of whether the field is empty or not. This may be
2968	// used to include empty fields in Patch requests.
2969	ForceSendFields []string `json:"-"`
2970
2971	// NullFields is a list of field names (e.g. "Arguments") to include in
2972	// API requests with the JSON null value. By default, fields with empty
2973	// values are omitted from API requests. However, any field with an
2974	// empty value appearing in NullFields will be sent to the server as
2975	// null. It is an error if a field in this list has a non-empty value.
2976	// This may be used to include null fields in Patch requests.
2977	NullFields []string `json:"-"`
2978}
2979
2980func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) {
2981	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs
2982	raw := NoMethod(*s)
2983	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2984}
2985
2986// GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable
2987// : An environment variable required by this task.
2988type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable struct {
2989	// Name: The envvar name.
2990	Name string `json:"name,omitempty"`
2991
2992	// Value: The envvar value.
2993	Value string `json:"value,omitempty"`
2994
2995	// ForceSendFields is a list of field names (e.g. "Name") to
2996	// unconditionally include in API requests. By default, fields with
2997	// empty values are omitted from API requests. However, any non-pointer,
2998	// non-interface field appearing in ForceSendFields will be sent to the
2999	// server regardless of whether the field is empty or not. This may be
3000	// used to include empty fields in Patch requests.
3001	ForceSendFields []string `json:"-"`
3002
3003	// NullFields is a list of field names (e.g. "Name") to include in API
3004	// requests with the JSON null value. By default, fields with empty
3005	// values are omitted from API requests. However, any field with an
3006	// empty value appearing in NullFields will be sent to the server as
3007	// null. It is an error if a field in this list has a non-empty value.
3008	// This may be used to include null fields in Patch requests.
3009	NullFields []string `json:"-"`
3010}
3011
3012func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) {
3013	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable
3014	raw := NoMethod(*s)
3015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3016}
3017
3018// GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the
3019// expected outputs of the command.
3020type GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs struct {
3021	// Directories: A list of expected directories, relative to the
3022	// execution root. All paths MUST be delimited by forward slashes.
3023	Directories []string `json:"directories,omitempty"`
3024
3025	// Files: A list of expected files, relative to the execution root. All
3026	// paths MUST be delimited by forward slashes.
3027	Files []string `json:"files,omitempty"`
3028
3029	// StderrDestination: The destination to which any stderr should be
3030	// sent. The method by which the bot should send the stream contents to
3031	// that destination is not defined in this API. As examples, the
3032	// destination could be a file referenced in the `files` field in this
3033	// message, or it could be a URI that must be written via the ByteStream
3034	// API.
3035	StderrDestination string `json:"stderrDestination,omitempty"`
3036
3037	// StdoutDestination: The destination to which any stdout should be
3038	// sent. The method by which the bot should send the stream contents to
3039	// that destination is not defined in this API. As examples, the
3040	// destination could be a file referenced in the `files` field in this
3041	// message, or it could be a URI that must be written via the ByteStream
3042	// API.
3043	StdoutDestination string `json:"stdoutDestination,omitempty"`
3044
3045	// ForceSendFields is a list of field names (e.g. "Directories") to
3046	// unconditionally include in API requests. By default, fields with
3047	// empty values are omitted from API requests. However, any non-pointer,
3048	// non-interface field appearing in ForceSendFields will be sent to the
3049	// server regardless of whether the field is empty or not. This may be
3050	// used to include empty fields in Patch requests.
3051	ForceSendFields []string `json:"-"`
3052
3053	// NullFields is a list of field names (e.g. "Directories") to include
3054	// in API requests with the JSON null value. By default, fields with
3055	// empty values are omitted from API requests. However, any field with
3056	// an empty value appearing in NullFields will be sent to the server as
3057	// null. It is an error if a field in this list has a non-empty value.
3058	// This may be used to include null fields in Patch requests.
3059	NullFields []string `json:"-"`
3060}
3061
3062func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) {
3063	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs
3064	raw := NoMethod(*s)
3065	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3066}
3067
3068// GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts: Describes the
3069// timeouts associated with this task.
3070type GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts struct {
3071	// Execution: This specifies the maximum time that the task can run,
3072	// excluding the time required to download inputs or upload outputs.
3073	// That is, the worker will terminate the task if it runs longer than
3074	// this.
3075	Execution string `json:"execution,omitempty"`
3076
3077	// Idle: This specifies the maximum amount of time the task can be idle
3078	// - that is, go without generating some output in either stdout or
3079	// stderr. If the process is silent for more than the specified time,
3080	// the worker will terminate the task.
3081	Idle string `json:"idle,omitempty"`
3082
3083	// Shutdown: If the execution or IO timeouts are exceeded, the worker
3084	// will try to gracefully terminate the task and return any existing
3085	// logs. However, tasks may be hard-frozen in which case this process
3086	// will fail. This timeout specifies how long to wait for a terminated
3087	// task to shut down gracefully (e.g. via SIGTERM) before we bring down
3088	// the hammer (e.g. SIGKILL on *nix, CTRL_BREAK_EVENT on Windows).
3089	Shutdown string `json:"shutdown,omitempty"`
3090
3091	// ForceSendFields is a list of field names (e.g. "Execution") to
3092	// unconditionally include in API requests. By default, fields with
3093	// empty values are omitted from API requests. However, any non-pointer,
3094	// non-interface field appearing in ForceSendFields will be sent to the
3095	// server regardless of whether the field is empty or not. This may be
3096	// used to include empty fields in Patch requests.
3097	ForceSendFields []string `json:"-"`
3098
3099	// NullFields is a list of field names (e.g. "Execution") to include in
3100	// API requests with the JSON null value. By default, fields with empty
3101	// values are omitted from API requests. However, any field with an
3102	// empty value appearing in NullFields will be sent to the server as
3103	// null. It is an error if a field in this list has a non-empty value.
3104	// This may be used to include null fields in Patch requests.
3105	NullFields []string `json:"-"`
3106}
3107
3108func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) {
3109	type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts
3110	raw := NoMethod(*s)
3111	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3112}
3113
3114// GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and
3115// CommandResult messages assume the existence of a service that can
3116// serve blobs of content, identified by a hash and size known as a
3117// "digest." The method by which these blobs may be retrieved is not
3118// specified here, but a model implementation is in the Remote Execution
3119// API's "ContentAddressibleStorage" interface. In the context of the
3120// RWAPI, a Digest will virtually always refer to the contents of a file
3121// or a directory. The latter is represented by the byte-encoded
3122// Directory message.
3123type GoogleDevtoolsRemoteworkersV1test2Digest struct {
3124	// Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a,
3125	// 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg
3126	// SHA-256).
3127	Hash string `json:"hash,omitempty"`
3128
3129	// SizeBytes: The size of the contents. While this is not strictly
3130	// required as part of an identifier (after all, any given hash will
3131	// have exactly one canonical size), it's useful in almost all cases
3132	// when one might want to send or retrieve blobs of content and is
3133	// included here for this reason.
3134	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
3135
3136	// ForceSendFields is a list of field names (e.g. "Hash") to
3137	// unconditionally include in API requests. By default, fields with
3138	// empty values are omitted from API requests. However, any non-pointer,
3139	// non-interface field appearing in ForceSendFields will be sent to the
3140	// server regardless of whether the field is empty or not. This may be
3141	// used to include empty fields in Patch requests.
3142	ForceSendFields []string `json:"-"`
3143
3144	// NullFields is a list of field names (e.g. "Hash") to include in API
3145	// requests with the JSON null value. By default, fields with empty
3146	// values are omitted from API requests. However, any field with an
3147	// empty value appearing in NullFields will be sent to the server as
3148	// null. It is an error if a field in this list has a non-empty value.
3149	// This may be used to include null fields in Patch requests.
3150	NullFields []string `json:"-"`
3151}
3152
3153func (s *GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) {
3154	type NoMethod GoogleDevtoolsRemoteworkersV1test2Digest
3155	raw := NoMethod(*s)
3156	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3157}
3158
3159// GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a
3160// directory. Similar to the equivalent message in the Remote Execution
3161// API.
3162type GoogleDevtoolsRemoteworkersV1test2Directory struct {
3163	// Directories: Any subdirectories
3164	Directories []*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata `json:"directories,omitempty"`
3165
3166	// Files: The files in this directory
3167	Files []*GoogleDevtoolsRemoteworkersV1test2FileMetadata `json:"files,omitempty"`
3168
3169	// ForceSendFields is a list of field names (e.g. "Directories") to
3170	// unconditionally include in API requests. By default, fields with
3171	// empty values are omitted from API requests. However, any non-pointer,
3172	// non-interface field appearing in ForceSendFields will be sent to the
3173	// server regardless of whether the field is empty or not. This may be
3174	// used to include empty fields in Patch requests.
3175	ForceSendFields []string `json:"-"`
3176
3177	// NullFields is a list of field names (e.g. "Directories") to include
3178	// in API requests with the JSON null value. By default, fields with
3179	// empty values are omitted from API requests. However, any field with
3180	// an empty value appearing in NullFields will be sent to the server as
3181	// null. It is an error if a field in this list has a non-empty value.
3182	// This may be used to include null fields in Patch requests.
3183	NullFields []string `json:"-"`
3184}
3185
3186func (s *GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) {
3187	type NoMethod GoogleDevtoolsRemoteworkersV1test2Directory
3188	raw := NoMethod(*s)
3189	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3190}
3191
3192// GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for
3193// a directory. Similar to the equivalent message in the Remote
3194// Execution API.
3195type GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata struct {
3196	// Digest: A pointer to the contents of the directory, in the form of a
3197	// marshalled Directory message.
3198	Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`
3199
3200	// Path: The path of the directory, as in FileMetadata.path.
3201	Path string `json:"path,omitempty"`
3202
3203	// ForceSendFields is a list of field names (e.g. "Digest") to
3204	// unconditionally include in API requests. By default, fields with
3205	// empty values are omitted from API requests. However, any non-pointer,
3206	// non-interface field appearing in ForceSendFields will be sent to the
3207	// server regardless of whether the field is empty or not. This may be
3208	// used to include empty fields in Patch requests.
3209	ForceSendFields []string `json:"-"`
3210
3211	// NullFields is a list of field names (e.g. "Digest") to include in API
3212	// requests with the JSON null value. By default, fields with empty
3213	// values are omitted from API requests. However, any field with an
3214	// empty value appearing in NullFields will be sent to the server as
3215	// null. It is an error if a field in this list has a non-empty value.
3216	// This may be used to include null fields in Patch requests.
3217	NullFields []string `json:"-"`
3218}
3219
3220func (s *GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) {
3221	type NoMethod GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata
3222	raw := NoMethod(*s)
3223	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3224}
3225
3226// GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a
3227// file. Similar to the equivalent message in the Remote Execution API.
3228type GoogleDevtoolsRemoteworkersV1test2FileMetadata struct {
3229	// Contents: If the file is small enough, its contents may also or
3230	// alternatively be listed here.
3231	Contents string `json:"contents,omitempty"`
3232
3233	// Digest: A pointer to the contents of the file. The method by which a
3234	// client retrieves the contents from a CAS system is not defined here.
3235	Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`
3236
3237	// IsExecutable: Properties of the file
3238	IsExecutable bool `json:"isExecutable,omitempty"`
3239
3240	// Path: The path of this file. If this message is part of the
3241	// CommandOutputs.outputs fields, the path is relative to the execution
3242	// root and must correspond to an entry in CommandTask.outputs.files. If
3243	// this message is part of a Directory message, then the path is
3244	// relative to the root of that directory. All paths MUST be delimited
3245	// by forward slashes.
3246	Path string `json:"path,omitempty"`
3247
3248	// ForceSendFields is a list of field names (e.g. "Contents") to
3249	// unconditionally include in API requests. By default, fields with
3250	// empty values are omitted from API requests. However, any non-pointer,
3251	// non-interface field appearing in ForceSendFields will be sent to the
3252	// server regardless of whether the field is empty or not. This may be
3253	// used to include empty fields in Patch requests.
3254	ForceSendFields []string `json:"-"`
3255
3256	// NullFields is a list of field names (e.g. "Contents") to include in
3257	// API requests with the JSON null value. By default, fields with empty
3258	// values are omitted from API requests. However, any field with an
3259	// empty value appearing in NullFields will be sent to the server as
3260	// null. It is an error if a field in this list has a non-empty value.
3261	// This may be used to include null fields in Patch requests.
3262	NullFields []string `json:"-"`
3263}
3264
3265func (s *GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) {
3266	type NoMethod GoogleDevtoolsRemoteworkersV1test2FileMetadata
3267	raw := NoMethod(*s)
3268	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3269}
3270
3271// GoogleLongrunningCancelOperationRequest: The request message for
3272// Operations.CancelOperation.
3273type GoogleLongrunningCancelOperationRequest struct {
3274}
3275
3276// GoogleLongrunningListOperationsResponse: The response message for
3277// Operations.ListOperations.
3278type GoogleLongrunningListOperationsResponse struct {
3279	// NextPageToken: The standard List next-page token.
3280	NextPageToken string `json:"nextPageToken,omitempty"`
3281
3282	// Operations: A list of operations that matches the specified filter in
3283	// the request.
3284	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
3285
3286	// ServerResponse contains the HTTP response code and headers from the
3287	// server.
3288	googleapi.ServerResponse `json:"-"`
3289
3290	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
3291	// unconditionally include in API requests. By default, fields with
3292	// empty values are omitted from API requests. However, any non-pointer,
3293	// non-interface field appearing in ForceSendFields will be sent to the
3294	// server regardless of whether the field is empty or not. This may be
3295	// used to include empty fields in Patch requests.
3296	ForceSendFields []string `json:"-"`
3297
3298	// NullFields is a list of field names (e.g. "NextPageToken") to include
3299	// in API requests with the JSON null value. By default, fields with
3300	// empty values are omitted from API requests. However, any field with
3301	// an empty value appearing in NullFields will be sent to the server as
3302	// null. It is an error if a field in this list has a non-empty value.
3303	// This may be used to include null fields in Patch requests.
3304	NullFields []string `json:"-"`
3305}
3306
3307func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
3308	type NoMethod GoogleLongrunningListOperationsResponse
3309	raw := NoMethod(*s)
3310	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3311}
3312
3313// GoogleLongrunningOperation: This resource represents a long-running
3314// operation that is the result of a network API call.
3315type GoogleLongrunningOperation struct {
3316	// Done: If the value is `false`, it means the operation is still in
3317	// progress. If `true`, the operation is completed, and either `error`
3318	// or `response` is available.
3319	Done bool `json:"done,omitempty"`
3320
3321	// Error: The error result of the operation in case of failure or
3322	// cancellation.
3323	Error *GoogleRpcStatus `json:"error,omitempty"`
3324
3325	// Metadata: Service-specific metadata associated with the operation. It
3326	// typically contains progress information and common metadata such as
3327	// create time. Some services might not provide such metadata. Any
3328	// method that returns a long-running operation should document the
3329	// metadata type, if any.
3330	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3331
3332	// Name: The server-assigned name, which is only unique within the same
3333	// service that originally returns it. If you use the default HTTP
3334	// mapping, the `name` should be a resource name ending with
3335	// `operations/{unique_id}`.
3336	Name string `json:"name,omitempty"`
3337
3338	// Response: The normal response of the operation in case of success. If
3339	// the original method returns no data on success, such as `Delete`, the
3340	// response is `google.protobuf.Empty`. If the original method is
3341	// standard `Get`/`Create`/`Update`, the response should be the
3342	// resource. For other methods, the response should have the type
3343	// `XxxResponse`, where `Xxx` is the original method name. For example,
3344	// if the original method name is `TakeSnapshot()`, the inferred
3345	// response type is `TakeSnapshotResponse`.
3346	Response googleapi.RawMessage `json:"response,omitempty"`
3347
3348	// ServerResponse contains the HTTP response code and headers from the
3349	// server.
3350	googleapi.ServerResponse `json:"-"`
3351
3352	// ForceSendFields is a list of field names (e.g. "Done") to
3353	// unconditionally include in API requests. By default, fields with
3354	// empty values are omitted from API requests. However, any non-pointer,
3355	// non-interface field appearing in ForceSendFields will be sent to the
3356	// server regardless of whether the field is empty or not. This may be
3357	// used to include empty fields in Patch requests.
3358	ForceSendFields []string `json:"-"`
3359
3360	// NullFields is a list of field names (e.g. "Done") to include in API
3361	// requests with the JSON null value. By default, fields with empty
3362	// values are omitted from API requests. However, any field with an
3363	// empty value appearing in NullFields will be sent to the server as
3364	// null. It is an error if a field in this list has a non-empty value.
3365	// This may be used to include null fields in Patch requests.
3366	NullFields []string `json:"-"`
3367}
3368
3369func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
3370	type NoMethod GoogleLongrunningOperation
3371	raw := NoMethod(*s)
3372	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3373}
3374
3375// GoogleProtobufEmpty: A generic empty message that you can re-use to
3376// avoid defining duplicated empty messages in your APIs. A typical
3377// example is to use it as the request or the response type of an API
3378// method. For instance: service Foo { rpc Bar(google.protobuf.Empty)
3379// returns (google.protobuf.Empty); } The JSON representation for
3380// `Empty` is empty JSON object `{}`.
3381type GoogleProtobufEmpty struct {
3382	// ServerResponse contains the HTTP response code and headers from the
3383	// server.
3384	googleapi.ServerResponse `json:"-"`
3385}
3386
3387// GoogleRpcStatus: The `Status` type defines a logical error model that
3388// is suitable for different programming environments, including REST
3389// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each
3390// `Status` message contains three pieces of data: error code, error
3391// message, and error details. You can find out more about this error
3392// model and how to work with it in the API Design Guide
3393// (https://cloud.google.com/apis/design/errors).
3394type GoogleRpcStatus struct {
3395	// Code: The status code, which should be an enum value of
3396	// google.rpc.Code.
3397	Code int64 `json:"code,omitempty"`
3398
3399	// Details: A list of messages that carry the error details. There is a
3400	// common set of message types for APIs to use.
3401	Details []googleapi.RawMessage `json:"details,omitempty"`
3402
3403	// Message: A developer-facing error message, which should be in
3404	// English. Any user-facing error message should be localized and sent
3405	// in the google.rpc.Status.details field, or localized by the client.
3406	Message string `json:"message,omitempty"`
3407
3408	// ForceSendFields is a list of field names (e.g. "Code") to
3409	// unconditionally include in API requests. By default, fields with
3410	// empty values are omitted from API requests. However, any non-pointer,
3411	// non-interface field appearing in ForceSendFields will be sent to the
3412	// server regardless of whether the field is empty or not. This may be
3413	// used to include empty fields in Patch requests.
3414	ForceSendFields []string `json:"-"`
3415
3416	// NullFields is a list of field names (e.g. "Code") to include in API
3417	// requests with the JSON null value. By default, fields with empty
3418	// values are omitted from API requests. However, any field with an
3419	// empty value appearing in NullFields will be sent to the server as
3420	// null. It is an error if a field in this list has a non-empty value.
3421	// This may be used to include null fields in Patch requests.
3422	NullFields []string `json:"-"`
3423}
3424
3425func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
3426	type NoMethod GoogleRpcStatus
3427	raw := NoMethod(*s)
3428	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3429}
3430
3431// method id "remotebuildexecution.media.download":
3432
3433type MediaDownloadCall struct {
3434	s            *Service
3435	resourceName string
3436	urlParams_   gensupport.URLParams
3437	ifNoneMatch_ string
3438	ctx_         context.Context
3439	header_      http.Header
3440}
3441
3442// Download: Downloads media. Download is supported on the URI
3443// `/v1/media/{+name}?alt=media`.
3444func (r *MediaService) Download(resourceName string) *MediaDownloadCall {
3445	c := &MediaDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3446	c.resourceName = resourceName
3447	return c
3448}
3449
3450// Fields allows partial responses to be retrieved. See
3451// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
3452// for more information.
3453func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall {
3454	c.urlParams_.Set("fields", googleapi.CombineFields(s))
3455	return c
3456}
3457
3458// IfNoneMatch sets the optional parameter which makes the operation
3459// fail if the object's ETag matches the given value. This is useful for
3460// getting updates only after the object has changed since the last
3461// request. Use googleapi.IsNotModified to check whether the response
3462// error from Do is the result of In-None-Match.
3463func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall {
3464	c.ifNoneMatch_ = entityTag
3465	return c
3466}
3467
3468// Context sets the context to be used in this call's Do and Download
3469// methods. Any pending HTTP request will be aborted if the provided
3470// context is canceled.
3471func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall {
3472	c.ctx_ = ctx
3473	return c
3474}
3475
3476// Header returns an http.Header that can be modified by the caller to
3477// add HTTP headers to the request.
3478func (c *MediaDownloadCall) Header() http.Header {
3479	if c.header_ == nil {
3480		c.header_ = make(http.Header)
3481	}
3482	return c.header_
3483}
3484
3485func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) {
3486	reqHeaders := make(http.Header)
3487	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
3488	for k, v := range c.header_ {
3489		reqHeaders[k] = v
3490	}
3491	reqHeaders.Set("User-Agent", c.s.userAgent())
3492	if c.ifNoneMatch_ != "" {
3493		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3494	}
3495	var body io.Reader = nil
3496	c.urlParams_.Set("alt", alt)
3497	c.urlParams_.Set("prettyPrint", "false")
3498	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/media/{+resourceName}")
3499	urls += "?" + c.urlParams_.Encode()
3500	req, err := http.NewRequest("GET", urls, body)
3501	if err != nil {
3502		return nil, err
3503	}
3504	req.Header = reqHeaders
3505	googleapi.Expand(req.URL, map[string]string{
3506		"resourceName": c.resourceName,
3507	})
3508	return gensupport.SendRequest(c.ctx_, c.s.client, req)
3509}
3510
3511// Download fetches the API endpoint's "media" value, instead of the normal
3512// API response value. If the returned error is nil, the Response is guaranteed to
3513// have a 2xx status code. Callers must close the Response.Body as usual.
3514func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
3515	gensupport.SetOptions(c.urlParams_, opts...)
3516	res, err := c.doRequest("media")
3517	if err != nil {
3518		return nil, err
3519	}
3520	if err := googleapi.CheckResponse(res); err != nil {
3521		res.Body.Close()
3522		return nil, err
3523	}
3524	return res, nil
3525}
3526
3527// Do executes the "remotebuildexecution.media.download" call.
3528// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any
3529// non-2xx status code is an error. Response headers are in either
3530// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was
3531// returned at all) in error.(*googleapi.Error).Header. Use
3532// googleapi.IsNotModified to check whether the returned error was
3533// because http.StatusNotModified was returned.
3534func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) {
3535	gensupport.SetOptions(c.urlParams_, opts...)
3536	res, err := c.doRequest("json")
3537	if res != nil && res.StatusCode == http.StatusNotModified {
3538		if res.Body != nil {
3539			res.Body.Close()
3540		}
3541		return nil, &googleapi.Error{
3542			Code:   res.StatusCode,
3543			Header: res.Header,
3544		}
3545	}
3546	if err != nil {
3547		return nil, err
3548	}
3549	defer googleapi.CloseBody(res)
3550	if err := googleapi.CheckResponse(res); err != nil {
3551		return nil, err
3552	}
3553	ret := &GoogleBytestreamMedia{
3554		ServerResponse: googleapi.ServerResponse{
3555			Header:         res.Header,
3556			HTTPStatusCode: res.StatusCode,
3557		},
3558	}
3559	target := &ret
3560	if err := gensupport.DecodeResponse(target, res); err != nil {
3561		return nil, err
3562	}
3563	return ret, nil
3564	// {
3565	//   "description": "Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`.",
3566	//   "flatPath": "v1/media/{mediaId}",
3567	//   "httpMethod": "GET",
3568	//   "id": "remotebuildexecution.media.download",
3569	//   "parameterOrder": [
3570	//     "resourceName"
3571	//   ],
3572	//   "parameters": {
3573	//     "resourceName": {
3574	//       "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.",
3575	//       "location": "path",
3576	//       "pattern": "^.*$",
3577	//       "required": true,
3578	//       "type": "string"
3579	//     }
3580	//   },
3581	//   "path": "v1/media/{+resourceName}",
3582	//   "response": {
3583	//     "$ref": "GoogleBytestreamMedia"
3584	//   },
3585	//   "scopes": [
3586	//     "https://www.googleapis.com/auth/cloud-platform"
3587	//   ],
3588	//   "supportsMediaDownload": true
3589	// }
3590
3591}
3592
3593// method id "remotebuildexecution.media.upload":
3594
3595type MediaUploadCall struct {
3596	s                     *Service
3597	resourceName          string
3598	googlebytestreammedia *GoogleBytestreamMedia
3599	urlParams_            gensupport.URLParams
3600	mediaInfo_            *gensupport.MediaInfo
3601	ctx_                  context.Context
3602	header_               http.Header
3603}
3604
3605// Upload: Uploads media. Upload is supported on the URI
3606// `/upload/v1/media/{+name}`.
3607func (r *MediaService) Upload(resourceName string, googlebytestreammedia *GoogleBytestreamMedia) *MediaUploadCall {
3608	c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3609	c.resourceName = resourceName
3610	c.googlebytestreammedia = googlebytestreammedia
3611	return c
3612}
3613
3614// Media specifies the media to upload in one or more chunks. The chunk
3615// size may be controlled by supplying a MediaOption generated by
3616// googleapi.ChunkSize. The chunk size defaults to
3617// googleapi.DefaultUploadChunkSize.The Content-Type header used in the
3618// upload request will be determined by sniffing the contents of r,
3619// unless a MediaOption generated by googleapi.ContentType is
3620// supplied.
3621// At most one of Media and ResumableMedia may be set.
3622func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall {
3623	c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
3624	return c
3625}
3626
3627// ResumableMedia specifies the media to upload in chunks and can be
3628// canceled with ctx.
3629//
3630// Deprecated: use Media instead.
3631//
3632// At most one of Media and ResumableMedia may be set. mediaType
3633// identifies the MIME media type of the upload, such as "image/png". If
3634// mediaType is "", it will be auto-detected. The provided ctx will
3635// supersede any context previously provided to the Context method.
3636func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall {
3637	c.ctx_ = ctx
3638	c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
3639	return c
3640}
3641
3642// ProgressUpdater provides a callback function that will be called
3643// after every chunk. It should be a low-latency function in order to
3644// not slow down the upload operation. This should only be called when
3645// using ResumableMedia (as opposed to Media).
3646func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall {
3647	c.mediaInfo_.SetProgressUpdater(pu)
3648	return c
3649}
3650
3651// Fields allows partial responses to be retrieved. See
3652// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
3653// for more information.
3654func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall {
3655	c.urlParams_.Set("fields", googleapi.CombineFields(s))
3656	return c
3657}
3658
3659// Context sets the context to be used in this call's Do method. Any
3660// pending HTTP request will be aborted if the provided context is
3661// canceled.
3662// This context will supersede any context previously provided to the
3663// ResumableMedia method.
3664func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall {
3665	c.ctx_ = ctx
3666	return c
3667}
3668
3669// Header returns an http.Header that can be modified by the caller to
3670// add HTTP headers to the request.
3671func (c *MediaUploadCall) Header() http.Header {
3672	if c.header_ == nil {
3673		c.header_ = make(http.Header)
3674	}
3675	return c.header_
3676}
3677
3678func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) {
3679	reqHeaders := make(http.Header)
3680	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
3681	for k, v := range c.header_ {
3682		reqHeaders[k] = v
3683	}
3684	reqHeaders.Set("User-Agent", c.s.userAgent())
3685	var body io.Reader = nil
3686	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlebytestreammedia)
3687	if err != nil {
3688		return nil, err
3689	}
3690	reqHeaders.Set("Content-Type", "application/json")
3691	c.urlParams_.Set("alt", alt)
3692	c.urlParams_.Set("prettyPrint", "false")
3693	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/media/{+resourceName}")
3694	if c.mediaInfo_ != nil {
3695		urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/media/{+resourceName}")
3696		c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
3697	}
3698	if body == nil {
3699		body = new(bytes.Buffer)
3700		reqHeaders.Set("Content-Type", "application/json")
3701	}
3702	body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
3703	defer cleanup()
3704	urls += "?" + c.urlParams_.Encode()
3705	req, err := http.NewRequest("POST", urls, body)
3706	if err != nil {
3707		return nil, err
3708	}
3709	req.Header = reqHeaders
3710	req.GetBody = getBody
3711	googleapi.Expand(req.URL, map[string]string{
3712		"resourceName": c.resourceName,
3713	})
3714	return gensupport.SendRequest(c.ctx_, c.s.client, req)
3715}
3716
3717// Do executes the "remotebuildexecution.media.upload" call.
3718// Exactly one of *GoogleBytestreamMedia or error will be non-nil. Any
3719// non-2xx status code is an error. Response headers are in either
3720// *GoogleBytestreamMedia.ServerResponse.Header or (if a response was
3721// returned at all) in error.(*googleapi.Error).Header. Use
3722// googleapi.IsNotModified to check whether the returned error was
3723// because http.StatusNotModified was returned.
3724func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleBytestreamMedia, error) {
3725	gensupport.SetOptions(c.urlParams_, opts...)
3726	res, err := c.doRequest("json")
3727	if res != nil && res.StatusCode == http.StatusNotModified {
3728		if res.Body != nil {
3729			res.Body.Close()
3730		}
3731		return nil, &googleapi.Error{
3732			Code:   res.StatusCode,
3733			Header: res.Header,
3734		}
3735	}
3736	if err != nil {
3737		return nil, err
3738	}
3739	defer googleapi.CloseBody(res)
3740	if err := googleapi.CheckResponse(res); err != nil {
3741		return nil, err
3742	}
3743	rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
3744	if rx != nil {
3745		rx.Client = c.s.client
3746		rx.UserAgent = c.s.userAgent()
3747		ctx := c.ctx_
3748		if ctx == nil {
3749			ctx = context.TODO()
3750		}
3751		res, err = rx.Upload(ctx)
3752		if err != nil {
3753			return nil, err
3754		}
3755		defer res.Body.Close()
3756		if err := googleapi.CheckResponse(res); err != nil {
3757			return nil, err
3758		}
3759	}
3760	ret := &GoogleBytestreamMedia{
3761		ServerResponse: googleapi.ServerResponse{
3762			Header:         res.Header,
3763			HTTPStatusCode: res.StatusCode,
3764		},
3765	}
3766	target := &ret
3767	if err := gensupport.DecodeResponse(target, res); err != nil {
3768		return nil, err
3769	}
3770	return ret, nil
3771	// {
3772	//   "description": "Uploads media. Upload is supported on the URI `/upload/v1/media/{+name}`.",
3773	//   "flatPath": "v1/media/{mediaId}",
3774	//   "httpMethod": "POST",
3775	//   "id": "remotebuildexecution.media.upload",
3776	//   "mediaUpload": {
3777	//     "accept": [
3778	//       "*/*"
3779	//     ],
3780	//     "protocols": {
3781	//       "simple": {
3782	//         "multipart": true,
3783	//         "path": "/upload/v1/media/{+resourceName}"
3784	//       }
3785	//     }
3786	//   },
3787	//   "parameterOrder": [
3788	//     "resourceName"
3789	//   ],
3790	//   "parameters": {
3791	//     "resourceName": {
3792	//       "description": "Name of the media that is being downloaded. See ReadRequest.resource_name.",
3793	//       "location": "path",
3794	//       "pattern": "^.*$",
3795	//       "required": true,
3796	//       "type": "string"
3797	//     }
3798	//   },
3799	//   "path": "v1/media/{+resourceName}",
3800	//   "request": {
3801	//     "$ref": "GoogleBytestreamMedia"
3802	//   },
3803	//   "response": {
3804	//     "$ref": "GoogleBytestreamMedia"
3805	//   },
3806	//   "scopes": [
3807	//     "https://www.googleapis.com/auth/cloud-platform"
3808	//   ],
3809	//   "supportsMediaUpload": true
3810	// }
3811
3812}
3813
3814// method id "remotebuildexecution.operations.cancel":
3815
3816type OperationsCancelCall struct {
3817	s                                       *Service
3818	name                                    string
3819	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
3820	urlParams_                              gensupport.URLParams
3821	ctx_                                    context.Context
3822	header_                                 http.Header
3823}
3824
3825// Cancel: Starts asynchronous cancellation on a long-running operation.
3826// The server makes a best effort to cancel the operation, but success
3827// is not guaranteed. If the server doesn't support this method, it
3828// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use
3829// Operations.GetOperation or other methods to check whether the
3830// cancellation succeeded or whether the operation completed despite
3831// cancellation. On successful cancellation, the operation is not
3832// deleted; instead, it becomes an operation with an Operation.error
3833// value with a google.rpc.Status.code of 1, corresponding to
3834// `Code.CANCELLED`.
3835func (r *OperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OperationsCancelCall {
3836	c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3837	c.name = name
3838	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
3839	return c
3840}
3841
3842// Fields allows partial responses to be retrieved. See
3843// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
3844// for more information.
3845func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall {
3846	c.urlParams_.Set("fields", googleapi.CombineFields(s))
3847	return c
3848}
3849
3850// Context sets the context to be used in this call's Do method. Any
3851// pending HTTP request will be aborted if the provided context is
3852// canceled.
3853func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall {
3854	c.ctx_ = ctx
3855	return c
3856}
3857
3858// Header returns an http.Header that can be modified by the caller to
3859// add HTTP headers to the request.
3860func (c *OperationsCancelCall) Header() http.Header {
3861	if c.header_ == nil {
3862		c.header_ = make(http.Header)
3863	}
3864	return c.header_
3865}
3866
3867func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) {
3868	reqHeaders := make(http.Header)
3869	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
3870	for k, v := range c.header_ {
3871		reqHeaders[k] = v
3872	}
3873	reqHeaders.Set("User-Agent", c.s.userAgent())
3874	var body io.Reader = nil
3875	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
3876	if err != nil {
3877		return nil, err
3878	}
3879	reqHeaders.Set("Content-Type", "application/json")
3880	c.urlParams_.Set("alt", alt)
3881	c.urlParams_.Set("prettyPrint", "false")
3882	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
3883	urls += "?" + c.urlParams_.Encode()
3884	req, err := http.NewRequest("POST", urls, body)
3885	if err != nil {
3886		return nil, err
3887	}
3888	req.Header = reqHeaders
3889	googleapi.Expand(req.URL, map[string]string{
3890		"name": c.name,
3891	})
3892	return gensupport.SendRequest(c.ctx_, c.s.client, req)
3893}
3894
3895// Do executes the "remotebuildexecution.operations.cancel" call.
3896// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
3897// non-2xx status code is an error. Response headers are in either
3898// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
3899// returned at all) in error.(*googleapi.Error).Header. Use
3900// googleapi.IsNotModified to check whether the returned error was
3901// because http.StatusNotModified was returned.
3902func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
3903	gensupport.SetOptions(c.urlParams_, opts...)
3904	res, err := c.doRequest("json")
3905	if res != nil && res.StatusCode == http.StatusNotModified {
3906		if res.Body != nil {
3907			res.Body.Close()
3908		}
3909		return nil, &googleapi.Error{
3910			Code:   res.StatusCode,
3911			Header: res.Header,
3912		}
3913	}
3914	if err != nil {
3915		return nil, err
3916	}
3917	defer googleapi.CloseBody(res)
3918	if err := googleapi.CheckResponse(res); err != nil {
3919		return nil, err
3920	}
3921	ret := &GoogleProtobufEmpty{
3922		ServerResponse: googleapi.ServerResponse{
3923			Header:         res.Header,
3924			HTTPStatusCode: res.StatusCode,
3925		},
3926	}
3927	target := &ret
3928	if err := gensupport.DecodeResponse(target, res); err != nil {
3929		return nil, err
3930	}
3931	return ret, nil
3932	// {
3933	//   "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
3934	//   "flatPath": "v1/operations/{operationsId}:cancel",
3935	//   "httpMethod": "POST",
3936	//   "id": "remotebuildexecution.operations.cancel",
3937	//   "parameterOrder": [
3938	//     "name"
3939	//   ],
3940	//   "parameters": {
3941	//     "name": {
3942	//       "description": "The name of the operation resource to be cancelled.",
3943	//       "location": "path",
3944	//       "pattern": "^operations/.*$",
3945	//       "required": true,
3946	//       "type": "string"
3947	//     }
3948	//   },
3949	//   "path": "v1/{+name}:cancel",
3950	//   "request": {
3951	//     "$ref": "GoogleLongrunningCancelOperationRequest"
3952	//   },
3953	//   "response": {
3954	//     "$ref": "GoogleProtobufEmpty"
3955	//   },
3956	//   "scopes": [
3957	//     "https://www.googleapis.com/auth/cloud-platform"
3958	//   ]
3959	// }
3960
3961}
3962
3963// method id "remotebuildexecution.operations.delete":
3964
3965type OperationsDeleteCall struct {
3966	s          *Service
3967	name       string
3968	urlParams_ gensupport.URLParams
3969	ctx_       context.Context
3970	header_    http.Header
3971}
3972
3973// Delete: Deletes a long-running operation. This method indicates that
3974// the client is no longer interested in the operation result. It does
3975// not cancel the operation. If the server doesn't support this method,
3976// it returns `google.rpc.Code.UNIMPLEMENTED`.
3977func (r *OperationsService) Delete(name string) *OperationsDeleteCall {
3978	c := &OperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3979	c.name = name
3980	return c
3981}
3982
3983// Fields allows partial responses to be retrieved. See
3984// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
3985// for more information.
3986func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall {
3987	c.urlParams_.Set("fields", googleapi.CombineFields(s))
3988	return c
3989}
3990
3991// Context sets the context to be used in this call's Do method. Any
3992// pending HTTP request will be aborted if the provided context is
3993// canceled.
3994func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall {
3995	c.ctx_ = ctx
3996	return c
3997}
3998
3999// Header returns an http.Header that can be modified by the caller to
4000// add HTTP headers to the request.
4001func (c *OperationsDeleteCall) Header() http.Header {
4002	if c.header_ == nil {
4003		c.header_ = make(http.Header)
4004	}
4005	return c.header_
4006}
4007
4008func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
4009	reqHeaders := make(http.Header)
4010	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
4011	for k, v := range c.header_ {
4012		reqHeaders[k] = v
4013	}
4014	reqHeaders.Set("User-Agent", c.s.userAgent())
4015	var body io.Reader = nil
4016	c.urlParams_.Set("alt", alt)
4017	c.urlParams_.Set("prettyPrint", "false")
4018	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4019	urls += "?" + c.urlParams_.Encode()
4020	req, err := http.NewRequest("DELETE", urls, body)
4021	if err != nil {
4022		return nil, err
4023	}
4024	req.Header = reqHeaders
4025	googleapi.Expand(req.URL, map[string]string{
4026		"name": c.name,
4027	})
4028	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4029}
4030
4031// Do executes the "remotebuildexecution.operations.delete" call.
4032// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
4033// non-2xx status code is an error. Response headers are in either
4034// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
4035// returned at all) in error.(*googleapi.Error).Header. Use
4036// googleapi.IsNotModified to check whether the returned error was
4037// because http.StatusNotModified was returned.
4038func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
4039	gensupport.SetOptions(c.urlParams_, opts...)
4040	res, err := c.doRequest("json")
4041	if res != nil && res.StatusCode == http.StatusNotModified {
4042		if res.Body != nil {
4043			res.Body.Close()
4044		}
4045		return nil, &googleapi.Error{
4046			Code:   res.StatusCode,
4047			Header: res.Header,
4048		}
4049	}
4050	if err != nil {
4051		return nil, err
4052	}
4053	defer googleapi.CloseBody(res)
4054	if err := googleapi.CheckResponse(res); err != nil {
4055		return nil, err
4056	}
4057	ret := &GoogleProtobufEmpty{
4058		ServerResponse: googleapi.ServerResponse{
4059			Header:         res.Header,
4060			HTTPStatusCode: res.StatusCode,
4061		},
4062	}
4063	target := &ret
4064	if err := gensupport.DecodeResponse(target, res); err != nil {
4065		return nil, err
4066	}
4067	return ret, nil
4068	// {
4069	//   "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
4070	//   "flatPath": "v1/operations/{operationsId}",
4071	//   "httpMethod": "DELETE",
4072	//   "id": "remotebuildexecution.operations.delete",
4073	//   "parameterOrder": [
4074	//     "name"
4075	//   ],
4076	//   "parameters": {
4077	//     "name": {
4078	//       "description": "The name of the operation resource to be deleted.",
4079	//       "location": "path",
4080	//       "pattern": "^operations/.*$",
4081	//       "required": true,
4082	//       "type": "string"
4083	//     }
4084	//   },
4085	//   "path": "v1/{+name}",
4086	//   "response": {
4087	//     "$ref": "GoogleProtobufEmpty"
4088	//   },
4089	//   "scopes": [
4090	//     "https://www.googleapis.com/auth/cloud-platform"
4091	//   ]
4092	// }
4093
4094}
4095
4096// method id "remotebuildexecution.operations.list":
4097
4098type OperationsListCall struct {
4099	s            *Service
4100	name         string
4101	urlParams_   gensupport.URLParams
4102	ifNoneMatch_ string
4103	ctx_         context.Context
4104	header_      http.Header
4105}
4106
4107// List: Lists operations that match the specified filter in the
4108// request. If the server doesn't support this method, it returns
4109// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
4110// override the binding to use different resource name schemes, such as
4111// `users/*/operations`. To override the binding, API services can add a
4112// binding such as "/v1/{name=users/*}/operations" to their service
4113// configuration. For backwards compatibility, the default name includes
4114// the operations collection id, however overriding users must ensure
4115// the name binding is the parent resource, without the operations
4116// collection id.
4117func (r *OperationsService) List(name string) *OperationsListCall {
4118	c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4119	c.name = name
4120	return c
4121}
4122
4123// Filter sets the optional parameter "filter": The standard list
4124// filter.
4125func (c *OperationsListCall) Filter(filter string) *OperationsListCall {
4126	c.urlParams_.Set("filter", filter)
4127	return c
4128}
4129
4130// PageSize sets the optional parameter "pageSize": The standard list
4131// page size.
4132func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall {
4133	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4134	return c
4135}
4136
4137// PageToken sets the optional parameter "pageToken": The standard list
4138// page token.
4139func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall {
4140	c.urlParams_.Set("pageToken", pageToken)
4141	return c
4142}
4143
4144// Fields allows partial responses to be retrieved. See
4145// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4146// for more information.
4147func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall {
4148	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4149	return c
4150}
4151
4152// IfNoneMatch sets the optional parameter which makes the operation
4153// fail if the object's ETag matches the given value. This is useful for
4154// getting updates only after the object has changed since the last
4155// request. Use googleapi.IsNotModified to check whether the response
4156// error from Do is the result of In-None-Match.
4157func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall {
4158	c.ifNoneMatch_ = entityTag
4159	return c
4160}
4161
4162// Context sets the context to be used in this call's Do method. Any
4163// pending HTTP request will be aborted if the provided context is
4164// canceled.
4165func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall {
4166	c.ctx_ = ctx
4167	return c
4168}
4169
4170// Header returns an http.Header that can be modified by the caller to
4171// add HTTP headers to the request.
4172func (c *OperationsListCall) Header() http.Header {
4173	if c.header_ == nil {
4174		c.header_ = make(http.Header)
4175	}
4176	return c.header_
4177}
4178
4179func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) {
4180	reqHeaders := make(http.Header)
4181	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
4182	for k, v := range c.header_ {
4183		reqHeaders[k] = v
4184	}
4185	reqHeaders.Set("User-Agent", c.s.userAgent())
4186	if c.ifNoneMatch_ != "" {
4187		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4188	}
4189	var body io.Reader = nil
4190	c.urlParams_.Set("alt", alt)
4191	c.urlParams_.Set("prettyPrint", "false")
4192	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4193	urls += "?" + c.urlParams_.Encode()
4194	req, err := http.NewRequest("GET", urls, body)
4195	if err != nil {
4196		return nil, err
4197	}
4198	req.Header = reqHeaders
4199	googleapi.Expand(req.URL, map[string]string{
4200		"name": c.name,
4201	})
4202	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4203}
4204
4205// Do executes the "remotebuildexecution.operations.list" call.
4206// Exactly one of *GoogleLongrunningListOperationsResponse or error will
4207// be non-nil. Any non-2xx status code is an error. Response headers are
4208// in either
4209// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
4210// a response was returned at all) in error.(*googleapi.Error).Header.
4211// Use googleapi.IsNotModified to check whether the returned error was
4212// because http.StatusNotModified was returned.
4213func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
4214	gensupport.SetOptions(c.urlParams_, opts...)
4215	res, err := c.doRequest("json")
4216	if res != nil && res.StatusCode == http.StatusNotModified {
4217		if res.Body != nil {
4218			res.Body.Close()
4219		}
4220		return nil, &googleapi.Error{
4221			Code:   res.StatusCode,
4222			Header: res.Header,
4223		}
4224	}
4225	if err != nil {
4226		return nil, err
4227	}
4228	defer googleapi.CloseBody(res)
4229	if err := googleapi.CheckResponse(res); err != nil {
4230		return nil, err
4231	}
4232	ret := &GoogleLongrunningListOperationsResponse{
4233		ServerResponse: googleapi.ServerResponse{
4234			Header:         res.Header,
4235			HTTPStatusCode: res.StatusCode,
4236		},
4237	}
4238	target := &ret
4239	if err := gensupport.DecodeResponse(target, res); err != nil {
4240		return nil, err
4241	}
4242	return ret, nil
4243	// {
4244	//   "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
4245	//   "flatPath": "v1/operations",
4246	//   "httpMethod": "GET",
4247	//   "id": "remotebuildexecution.operations.list",
4248	//   "parameterOrder": [
4249	//     "name"
4250	//   ],
4251	//   "parameters": {
4252	//     "filter": {
4253	//       "description": "The standard list filter.",
4254	//       "location": "query",
4255	//       "type": "string"
4256	//     },
4257	//     "name": {
4258	//       "description": "The name of the operation's parent resource.",
4259	//       "location": "path",
4260	//       "pattern": "^operations$",
4261	//       "required": true,
4262	//       "type": "string"
4263	//     },
4264	//     "pageSize": {
4265	//       "description": "The standard list page size.",
4266	//       "format": "int32",
4267	//       "location": "query",
4268	//       "type": "integer"
4269	//     },
4270	//     "pageToken": {
4271	//       "description": "The standard list page token.",
4272	//       "location": "query",
4273	//       "type": "string"
4274	//     }
4275	//   },
4276	//   "path": "v1/{+name}",
4277	//   "response": {
4278	//     "$ref": "GoogleLongrunningListOperationsResponse"
4279	//   },
4280	//   "scopes": [
4281	//     "https://www.googleapis.com/auth/cloud-platform"
4282	//   ]
4283	// }
4284
4285}
4286
4287// Pages invokes f for each page of results.
4288// A non-nil error returned from f will halt the iteration.
4289// The provided context supersedes any context provided to the Context method.
4290func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
4291	c.ctx_ = ctx
4292	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
4293	for {
4294		x, err := c.Do()
4295		if err != nil {
4296			return err
4297		}
4298		if err := f(x); err != nil {
4299			return err
4300		}
4301		if x.NextPageToken == "" {
4302			return nil
4303		}
4304		c.PageToken(x.NextPageToken)
4305	}
4306}
4307
4308// method id "remotebuildexecution.projects.operations.get":
4309
4310type ProjectsOperationsGetCall struct {
4311	s            *Service
4312	name         string
4313	urlParams_   gensupport.URLParams
4314	ifNoneMatch_ string
4315	ctx_         context.Context
4316	header_      http.Header
4317}
4318
4319// Get: Gets the latest state of a long-running operation. Clients can
4320// use this method to poll the operation result at intervals as
4321// recommended by the API service.
4322func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
4323	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4324	c.name = name
4325	return c
4326}
4327
4328// Fields allows partial responses to be retrieved. See
4329// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4330// for more information.
4331func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
4332	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4333	return c
4334}
4335
4336// IfNoneMatch sets the optional parameter which makes the operation
4337// fail if the object's ETag matches the given value. This is useful for
4338// getting updates only after the object has changed since the last
4339// request. Use googleapi.IsNotModified to check whether the response
4340// error from Do is the result of In-None-Match.
4341func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
4342	c.ifNoneMatch_ = entityTag
4343	return c
4344}
4345
4346// Context sets the context to be used in this call's Do method. Any
4347// pending HTTP request will be aborted if the provided context is
4348// canceled.
4349func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
4350	c.ctx_ = ctx
4351	return c
4352}
4353
4354// Header returns an http.Header that can be modified by the caller to
4355// add HTTP headers to the request.
4356func (c *ProjectsOperationsGetCall) Header() http.Header {
4357	if c.header_ == nil {
4358		c.header_ = make(http.Header)
4359	}
4360	return c.header_
4361}
4362
4363func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
4364	reqHeaders := make(http.Header)
4365	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
4366	for k, v := range c.header_ {
4367		reqHeaders[k] = v
4368	}
4369	reqHeaders.Set("User-Agent", c.s.userAgent())
4370	if c.ifNoneMatch_ != "" {
4371		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4372	}
4373	var body io.Reader = nil
4374	c.urlParams_.Set("alt", alt)
4375	c.urlParams_.Set("prettyPrint", "false")
4376	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4377	urls += "?" + c.urlParams_.Encode()
4378	req, err := http.NewRequest("GET", urls, body)
4379	if err != nil {
4380		return nil, err
4381	}
4382	req.Header = reqHeaders
4383	googleapi.Expand(req.URL, map[string]string{
4384		"name": c.name,
4385	})
4386	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4387}
4388
4389// Do executes the "remotebuildexecution.projects.operations.get" call.
4390// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
4391// Any non-2xx status code is an error. Response headers are in either
4392// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
4393// was returned at all) in error.(*googleapi.Error).Header. Use
4394// googleapi.IsNotModified to check whether the returned error was
4395// because http.StatusNotModified was returned.
4396func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
4397	gensupport.SetOptions(c.urlParams_, opts...)
4398	res, err := c.doRequest("json")
4399	if res != nil && res.StatusCode == http.StatusNotModified {
4400		if res.Body != nil {
4401			res.Body.Close()
4402		}
4403		return nil, &googleapi.Error{
4404			Code:   res.StatusCode,
4405			Header: res.Header,
4406		}
4407	}
4408	if err != nil {
4409		return nil, err
4410	}
4411	defer googleapi.CloseBody(res)
4412	if err := googleapi.CheckResponse(res); err != nil {
4413		return nil, err
4414	}
4415	ret := &GoogleLongrunningOperation{
4416		ServerResponse: googleapi.ServerResponse{
4417			Header:         res.Header,
4418			HTTPStatusCode: res.StatusCode,
4419		},
4420	}
4421	target := &ret
4422	if err := gensupport.DecodeResponse(target, res); err != nil {
4423		return nil, err
4424	}
4425	return ret, nil
4426	// {
4427	//   "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
4428	//   "flatPath": "v1/projects/{projectsId}/operations/{operationsId}",
4429	//   "httpMethod": "GET",
4430	//   "id": "remotebuildexecution.projects.operations.get",
4431	//   "parameterOrder": [
4432	//     "name"
4433	//   ],
4434	//   "parameters": {
4435	//     "name": {
4436	//       "description": "The name of the operation resource.",
4437	//       "location": "path",
4438	//       "pattern": "^projects/[^/]+/operations/[^/]+$",
4439	//       "required": true,
4440	//       "type": "string"
4441	//     }
4442	//   },
4443	//   "path": "v1/{+name}",
4444	//   "response": {
4445	//     "$ref": "GoogleLongrunningOperation"
4446	//   },
4447	//   "scopes": [
4448	//     "https://www.googleapis.com/auth/cloud-platform"
4449	//   ]
4450	// }
4451
4452}
4453