...

Source file src/google.golang.org/api/cloudbuild/v1/cloudbuild-gen.go

Documentation: google.golang.org/api/cloudbuild/v1

     1  // Copyright 2024 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 cloudbuild provides access to the Cloud Build API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/cloud-build/docs/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/cloudbuild/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	cloudbuildService, err := cloudbuild.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	cloudbuildService, err := cloudbuild.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	cloudbuildService, err := cloudbuild.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package cloudbuild // import "google.golang.org/api/cloudbuild/v1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "cloudbuild:v1"
    90  const apiName = "cloudbuild"
    91  const apiVersion = "v1"
    92  const basePath = "https://cloudbuild.googleapis.com/"
    93  const basePathTemplate = "https://cloudbuild.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://cloudbuild.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.GithubDotComWebhook = NewGithubDotComWebhookService(s)
   139  	s.Locations = NewLocationsService(s)
   140  	s.Operations = NewOperationsService(s)
   141  	s.Projects = NewProjectsService(s)
   142  	s.V1 = NewV1Service(s)
   143  	return s, nil
   144  }
   145  
   146  type Service struct {
   147  	client    *http.Client
   148  	BasePath  string // API endpoint base URL
   149  	UserAgent string // optional additional User-Agent fragment
   150  
   151  	GithubDotComWebhook *GithubDotComWebhookService
   152  
   153  	Locations *LocationsService
   154  
   155  	Operations *OperationsService
   156  
   157  	Projects *ProjectsService
   158  
   159  	V1 *V1Service
   160  }
   161  
   162  func (s *Service) userAgent() string {
   163  	if s.UserAgent == "" {
   164  		return googleapi.UserAgent
   165  	}
   166  	return googleapi.UserAgent + " " + s.UserAgent
   167  }
   168  
   169  func NewGithubDotComWebhookService(s *Service) *GithubDotComWebhookService {
   170  	rs := &GithubDotComWebhookService{s: s}
   171  	return rs
   172  }
   173  
   174  type GithubDotComWebhookService struct {
   175  	s *Service
   176  }
   177  
   178  func NewLocationsService(s *Service) *LocationsService {
   179  	rs := &LocationsService{s: s}
   180  	return rs
   181  }
   182  
   183  type LocationsService struct {
   184  	s *Service
   185  }
   186  
   187  func NewOperationsService(s *Service) *OperationsService {
   188  	rs := &OperationsService{s: s}
   189  	return rs
   190  }
   191  
   192  type OperationsService struct {
   193  	s *Service
   194  }
   195  
   196  func NewProjectsService(s *Service) *ProjectsService {
   197  	rs := &ProjectsService{s: s}
   198  	rs.Builds = NewProjectsBuildsService(s)
   199  	rs.GithubEnterpriseConfigs = NewProjectsGithubEnterpriseConfigsService(s)
   200  	rs.Locations = NewProjectsLocationsService(s)
   201  	rs.Triggers = NewProjectsTriggersService(s)
   202  	return rs
   203  }
   204  
   205  type ProjectsService struct {
   206  	s *Service
   207  
   208  	Builds *ProjectsBuildsService
   209  
   210  	GithubEnterpriseConfigs *ProjectsGithubEnterpriseConfigsService
   211  
   212  	Locations *ProjectsLocationsService
   213  
   214  	Triggers *ProjectsTriggersService
   215  }
   216  
   217  func NewProjectsBuildsService(s *Service) *ProjectsBuildsService {
   218  	rs := &ProjectsBuildsService{s: s}
   219  	return rs
   220  }
   221  
   222  type ProjectsBuildsService struct {
   223  	s *Service
   224  }
   225  
   226  func NewProjectsGithubEnterpriseConfigsService(s *Service) *ProjectsGithubEnterpriseConfigsService {
   227  	rs := &ProjectsGithubEnterpriseConfigsService{s: s}
   228  	return rs
   229  }
   230  
   231  type ProjectsGithubEnterpriseConfigsService struct {
   232  	s *Service
   233  }
   234  
   235  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   236  	rs := &ProjectsLocationsService{s: s}
   237  	rs.BitbucketServerConfigs = NewProjectsLocationsBitbucketServerConfigsService(s)
   238  	rs.Builds = NewProjectsLocationsBuildsService(s)
   239  	rs.GitLabConfigs = NewProjectsLocationsGitLabConfigsService(s)
   240  	rs.GithubEnterpriseConfigs = NewProjectsLocationsGithubEnterpriseConfigsService(s)
   241  	rs.Operations = NewProjectsLocationsOperationsService(s)
   242  	rs.Triggers = NewProjectsLocationsTriggersService(s)
   243  	rs.WorkerPools = NewProjectsLocationsWorkerPoolsService(s)
   244  	return rs
   245  }
   246  
   247  type ProjectsLocationsService struct {
   248  	s *Service
   249  
   250  	BitbucketServerConfigs *ProjectsLocationsBitbucketServerConfigsService
   251  
   252  	Builds *ProjectsLocationsBuildsService
   253  
   254  	GitLabConfigs *ProjectsLocationsGitLabConfigsService
   255  
   256  	GithubEnterpriseConfigs *ProjectsLocationsGithubEnterpriseConfigsService
   257  
   258  	Operations *ProjectsLocationsOperationsService
   259  
   260  	Triggers *ProjectsLocationsTriggersService
   261  
   262  	WorkerPools *ProjectsLocationsWorkerPoolsService
   263  }
   264  
   265  func NewProjectsLocationsBitbucketServerConfigsService(s *Service) *ProjectsLocationsBitbucketServerConfigsService {
   266  	rs := &ProjectsLocationsBitbucketServerConfigsService{s: s}
   267  	rs.ConnectedRepositories = NewProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService(s)
   268  	rs.Repos = NewProjectsLocationsBitbucketServerConfigsReposService(s)
   269  	return rs
   270  }
   271  
   272  type ProjectsLocationsBitbucketServerConfigsService struct {
   273  	s *Service
   274  
   275  	ConnectedRepositories *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService
   276  
   277  	Repos *ProjectsLocationsBitbucketServerConfigsReposService
   278  }
   279  
   280  func NewProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService(s *Service) *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService {
   281  	rs := &ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService{s: s}
   282  	return rs
   283  }
   284  
   285  type ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService struct {
   286  	s *Service
   287  }
   288  
   289  func NewProjectsLocationsBitbucketServerConfigsReposService(s *Service) *ProjectsLocationsBitbucketServerConfigsReposService {
   290  	rs := &ProjectsLocationsBitbucketServerConfigsReposService{s: s}
   291  	return rs
   292  }
   293  
   294  type ProjectsLocationsBitbucketServerConfigsReposService struct {
   295  	s *Service
   296  }
   297  
   298  func NewProjectsLocationsBuildsService(s *Service) *ProjectsLocationsBuildsService {
   299  	rs := &ProjectsLocationsBuildsService{s: s}
   300  	return rs
   301  }
   302  
   303  type ProjectsLocationsBuildsService struct {
   304  	s *Service
   305  }
   306  
   307  func NewProjectsLocationsGitLabConfigsService(s *Service) *ProjectsLocationsGitLabConfigsService {
   308  	rs := &ProjectsLocationsGitLabConfigsService{s: s}
   309  	rs.ConnectedRepositories = NewProjectsLocationsGitLabConfigsConnectedRepositoriesService(s)
   310  	rs.Repos = NewProjectsLocationsGitLabConfigsReposService(s)
   311  	return rs
   312  }
   313  
   314  type ProjectsLocationsGitLabConfigsService struct {
   315  	s *Service
   316  
   317  	ConnectedRepositories *ProjectsLocationsGitLabConfigsConnectedRepositoriesService
   318  
   319  	Repos *ProjectsLocationsGitLabConfigsReposService
   320  }
   321  
   322  func NewProjectsLocationsGitLabConfigsConnectedRepositoriesService(s *Service) *ProjectsLocationsGitLabConfigsConnectedRepositoriesService {
   323  	rs := &ProjectsLocationsGitLabConfigsConnectedRepositoriesService{s: s}
   324  	return rs
   325  }
   326  
   327  type ProjectsLocationsGitLabConfigsConnectedRepositoriesService struct {
   328  	s *Service
   329  }
   330  
   331  func NewProjectsLocationsGitLabConfigsReposService(s *Service) *ProjectsLocationsGitLabConfigsReposService {
   332  	rs := &ProjectsLocationsGitLabConfigsReposService{s: s}
   333  	return rs
   334  }
   335  
   336  type ProjectsLocationsGitLabConfigsReposService struct {
   337  	s *Service
   338  }
   339  
   340  func NewProjectsLocationsGithubEnterpriseConfigsService(s *Service) *ProjectsLocationsGithubEnterpriseConfigsService {
   341  	rs := &ProjectsLocationsGithubEnterpriseConfigsService{s: s}
   342  	return rs
   343  }
   344  
   345  type ProjectsLocationsGithubEnterpriseConfigsService struct {
   346  	s *Service
   347  }
   348  
   349  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   350  	rs := &ProjectsLocationsOperationsService{s: s}
   351  	return rs
   352  }
   353  
   354  type ProjectsLocationsOperationsService struct {
   355  	s *Service
   356  }
   357  
   358  func NewProjectsLocationsTriggersService(s *Service) *ProjectsLocationsTriggersService {
   359  	rs := &ProjectsLocationsTriggersService{s: s}
   360  	return rs
   361  }
   362  
   363  type ProjectsLocationsTriggersService struct {
   364  	s *Service
   365  }
   366  
   367  func NewProjectsLocationsWorkerPoolsService(s *Service) *ProjectsLocationsWorkerPoolsService {
   368  	rs := &ProjectsLocationsWorkerPoolsService{s: s}
   369  	return rs
   370  }
   371  
   372  type ProjectsLocationsWorkerPoolsService struct {
   373  	s *Service
   374  }
   375  
   376  func NewProjectsTriggersService(s *Service) *ProjectsTriggersService {
   377  	rs := &ProjectsTriggersService{s: s}
   378  	return rs
   379  }
   380  
   381  type ProjectsTriggersService struct {
   382  	s *Service
   383  }
   384  
   385  func NewV1Service(s *Service) *V1Service {
   386  	rs := &V1Service{s: s}
   387  	return rs
   388  }
   389  
   390  type V1Service struct {
   391  	s *Service
   392  }
   393  
   394  // ApprovalConfig: ApprovalConfig describes configuration for manual approval
   395  // of a build.
   396  type ApprovalConfig struct {
   397  	// ApprovalRequired: Whether or not approval is needed. If this is set on a
   398  	// build, it will become pending when created, and will need to be explicitly
   399  	// approved to start.
   400  	ApprovalRequired bool `json:"approvalRequired,omitempty"`
   401  	// ForceSendFields is a list of field names (e.g. "ApprovalRequired") to
   402  	// unconditionally include in API requests. By default, fields with empty or
   403  	// default values are omitted from API requests. See
   404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   405  	// details.
   406  	ForceSendFields []string `json:"-"`
   407  	// NullFields is a list of field names (e.g. "ApprovalRequired") to include in
   408  	// API requests with the JSON null value. By default, fields with empty values
   409  	// are omitted from API requests. See
   410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   411  	NullFields []string `json:"-"`
   412  }
   413  
   414  func (s *ApprovalConfig) MarshalJSON() ([]byte, error) {
   415  	type NoMethod ApprovalConfig
   416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   417  }
   418  
   419  // ApprovalResult: ApprovalResult describes the decision and associated
   420  // metadata of a manual approval of a build.
   421  type ApprovalResult struct {
   422  	// ApprovalTime: Output only. The time when the approval decision was made.
   423  	ApprovalTime string `json:"approvalTime,omitempty"`
   424  	// ApproverAccount: Output only. Email of the user that called the ApproveBuild
   425  	// API to approve or reject a build at the time that the API was called.
   426  	ApproverAccount string `json:"approverAccount,omitempty"`
   427  	// Comment: Optional. An optional comment for this manual approval result.
   428  	Comment string `json:"comment,omitempty"`
   429  	// Decision: Required. The decision of this manual approval.
   430  	//
   431  	// Possible values:
   432  	//   "DECISION_UNSPECIFIED" - Default enum type. This should not be used.
   433  	//   "APPROVED" - Build is approved.
   434  	//   "REJECTED" - Build is rejected.
   435  	Decision string `json:"decision,omitempty"`
   436  	// Url: Optional. An optional URL tied to this manual approval result. This
   437  	// field is essentially the same as comment, except that it will be rendered by
   438  	// the UI differently. An example use case is a link to an external job that
   439  	// approved this Build.
   440  	Url string `json:"url,omitempty"`
   441  	// ForceSendFields is a list of field names (e.g. "ApprovalTime") to
   442  	// unconditionally include in API requests. By default, fields with empty or
   443  	// default values are omitted from API requests. See
   444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   445  	// details.
   446  	ForceSendFields []string `json:"-"`
   447  	// NullFields is a list of field names (e.g. "ApprovalTime") to include in API
   448  	// requests with the JSON null value. By default, fields with empty values are
   449  	// omitted from API requests. See
   450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   451  	NullFields []string `json:"-"`
   452  }
   453  
   454  func (s *ApprovalResult) MarshalJSON() ([]byte, error) {
   455  	type NoMethod ApprovalResult
   456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   457  }
   458  
   459  // ApproveBuildRequest: Request to approve or reject a pending build.
   460  type ApproveBuildRequest struct {
   461  	// ApprovalResult: Approval decision and metadata.
   462  	ApprovalResult *ApprovalResult `json:"approvalResult,omitempty"`
   463  	// ForceSendFields is a list of field names (e.g. "ApprovalResult") to
   464  	// unconditionally include in API requests. By default, fields with empty or
   465  	// default values are omitted from API requests. See
   466  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   467  	// details.
   468  	ForceSendFields []string `json:"-"`
   469  	// NullFields is a list of field names (e.g. "ApprovalResult") to include in
   470  	// API requests with the JSON null value. By default, fields with empty values
   471  	// are omitted from API requests. See
   472  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   473  	NullFields []string `json:"-"`
   474  }
   475  
   476  func (s *ApproveBuildRequest) MarshalJSON() ([]byte, error) {
   477  	type NoMethod ApproveBuildRequest
   478  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   479  }
   480  
   481  // ArtifactObjects: Files in the workspace to upload to Cloud Storage upon
   482  // successful completion of all build steps.
   483  type ArtifactObjects struct {
   484  	// Location: Cloud Storage bucket and optional object path, in the form
   485  	// "gs://bucket/path/to/somewhere/". (see Bucket Name Requirements
   486  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files
   487  	// in the workspace matching any path pattern will be uploaded to Cloud Storage
   488  	// with this location as a prefix.
   489  	Location string `json:"location,omitempty"`
   490  	// Paths: Path globs used to match files in the build's workspace.
   491  	Paths []string `json:"paths,omitempty"`
   492  	// Timing: Output only. Stores timing information for pushing all artifact
   493  	// objects.
   494  	Timing *TimeSpan `json:"timing,omitempty"`
   495  	// ForceSendFields is a list of field names (e.g. "Location") to
   496  	// unconditionally include in API requests. By default, fields with empty or
   497  	// default values are omitted from API requests. See
   498  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   499  	// details.
   500  	ForceSendFields []string `json:"-"`
   501  	// NullFields is a list of field names (e.g. "Location") to include in API
   502  	// requests with the JSON null value. By default, fields with empty values are
   503  	// omitted from API requests. See
   504  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   505  	NullFields []string `json:"-"`
   506  }
   507  
   508  func (s *ArtifactObjects) MarshalJSON() ([]byte, error) {
   509  	type NoMethod ArtifactObjects
   510  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   511  }
   512  
   513  // ArtifactResult: An artifact that was uploaded during a build. This is a
   514  // single record in the artifact manifest JSON file.
   515  type ArtifactResult struct {
   516  	// FileHash: The file hash of the artifact.
   517  	FileHash []*FileHashes `json:"fileHash,omitempty"`
   518  	// Location: The path of an artifact in a Cloud Storage bucket, with the
   519  	// generation number. For example,
   520  	// `gs://mybucket/path/to/output.jar#generation`.
   521  	Location string `json:"location,omitempty"`
   522  	// ForceSendFields is a list of field names (e.g. "FileHash") to
   523  	// unconditionally include in API requests. By default, fields with empty or
   524  	// default values are omitted from API requests. See
   525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   526  	// details.
   527  	ForceSendFields []string `json:"-"`
   528  	// NullFields is a list of field names (e.g. "FileHash") to include in API
   529  	// requests with the JSON null value. By default, fields with empty values are
   530  	// omitted from API requests. See
   531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   532  	NullFields []string `json:"-"`
   533  }
   534  
   535  func (s *ArtifactResult) MarshalJSON() ([]byte, error) {
   536  	type NoMethod ArtifactResult
   537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   538  }
   539  
   540  // Artifacts: Artifacts produced by a build that should be uploaded upon
   541  // successful completion of all build steps.
   542  type Artifacts struct {
   543  	// Images: A list of images to be pushed upon the successful completion of all
   544  	// build steps. The images will be pushed using the builder service account's
   545  	// credentials. The digests of the pushed images will be stored in the Build
   546  	// resource's results field. If any of the images fail to be pushed, the build
   547  	// is marked FAILURE.
   548  	Images []string `json:"images,omitempty"`
   549  	// MavenArtifacts: A list of Maven artifacts to be uploaded to Artifact
   550  	// Registry upon successful completion of all build steps. Artifacts in the
   551  	// workspace matching specified paths globs will be uploaded to the specified
   552  	// Artifact Registry repository using the builder service account's
   553  	// credentials. If any artifacts fail to be pushed, the build is marked
   554  	// FAILURE.
   555  	MavenArtifacts []*MavenArtifact `json:"mavenArtifacts,omitempty"`
   556  	// NpmPackages: A list of npm packages to be uploaded to Artifact Registry upon
   557  	// successful completion of all build steps. Npm packages in the specified
   558  	// paths will be uploaded to the specified Artifact Registry repository using
   559  	// the builder service account's credentials. If any packages fail to be
   560  	// pushed, the build is marked FAILURE.
   561  	NpmPackages []*NpmPackage `json:"npmPackages,omitempty"`
   562  	// Objects: A list of objects to be uploaded to Cloud Storage upon successful
   563  	// completion of all build steps. Files in the workspace matching specified
   564  	// paths globs will be uploaded to the specified Cloud Storage location using
   565  	// the builder service account's credentials. The location and generation of
   566  	// the uploaded objects will be stored in the Build resource's results field.
   567  	// If any objects fail to be pushed, the build is marked FAILURE.
   568  	Objects *ArtifactObjects `json:"objects,omitempty"`
   569  	// PythonPackages: A list of Python packages to be uploaded to Artifact
   570  	// Registry upon successful completion of all build steps. The build service
   571  	// account credentials will be used to perform the upload. If any objects fail
   572  	// to be pushed, the build is marked FAILURE.
   573  	PythonPackages []*PythonPackage `json:"pythonPackages,omitempty"`
   574  	// ForceSendFields is a list of field names (e.g. "Images") to unconditionally
   575  	// include in API requests. By default, fields with empty or default values are
   576  	// omitted from API requests. See
   577  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   578  	// details.
   579  	ForceSendFields []string `json:"-"`
   580  	// NullFields is a list of field names (e.g. "Images") to include in API
   581  	// requests with the JSON null value. By default, fields with empty values are
   582  	// omitted from API requests. See
   583  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   584  	NullFields []string `json:"-"`
   585  }
   586  
   587  func (s *Artifacts) MarshalJSON() ([]byte, error) {
   588  	type NoMethod Artifacts
   589  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   590  }
   591  
   592  // BatchCreateBitbucketServerConnectedRepositoriesRequest: RPC request object
   593  // accepted by BatchCreateBitbucketServerConnectedRepositories RPC method.
   594  type BatchCreateBitbucketServerConnectedRepositoriesRequest struct {
   595  	// Requests: Required. Requests to connect Bitbucket Server repositories.
   596  	Requests []*CreateBitbucketServerConnectedRepositoryRequest `json:"requests,omitempty"`
   597  	// ForceSendFields is a list of field names (e.g. "Requests") to
   598  	// unconditionally include in API requests. By default, fields with empty or
   599  	// default values are omitted from API requests. See
   600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   601  	// details.
   602  	ForceSendFields []string `json:"-"`
   603  	// NullFields is a list of field names (e.g. "Requests") to include in API
   604  	// requests with the JSON null value. By default, fields with empty values are
   605  	// omitted from API requests. See
   606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   607  	NullFields []string `json:"-"`
   608  }
   609  
   610  func (s *BatchCreateBitbucketServerConnectedRepositoriesRequest) MarshalJSON() ([]byte, error) {
   611  	type NoMethod BatchCreateBitbucketServerConnectedRepositoriesRequest
   612  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   613  }
   614  
   615  // BatchCreateBitbucketServerConnectedRepositoriesResponse: Response of
   616  // BatchCreateBitbucketServerConnectedRepositories RPC method including all
   617  // successfully connected Bitbucket Server repositories.
   618  type BatchCreateBitbucketServerConnectedRepositoriesResponse struct {
   619  	// BitbucketServerConnectedRepositories: The connected Bitbucket Server
   620  	// repositories.
   621  	BitbucketServerConnectedRepositories []*BitbucketServerConnectedRepository `json:"bitbucketServerConnectedRepositories,omitempty"`
   622  	// ForceSendFields is a list of field names (e.g.
   623  	// "BitbucketServerConnectedRepositories") to unconditionally include in API
   624  	// requests. By default, fields with empty or default values are omitted from
   625  	// API requests. See
   626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   627  	// details.
   628  	ForceSendFields []string `json:"-"`
   629  	// NullFields is a list of field names (e.g.
   630  	// "BitbucketServerConnectedRepositories") to include in API requests with the
   631  	// JSON null value. By default, fields with empty values are omitted from API
   632  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
   633  	// more details.
   634  	NullFields []string `json:"-"`
   635  }
   636  
   637  func (s *BatchCreateBitbucketServerConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) {
   638  	type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponse
   639  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   640  }
   641  
   642  // BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata: Metadata
   643  // for `BatchCreateBitbucketServerConnectedRepositories` operation.
   644  type BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata struct {
   645  	// CompleteTime: Time the operation was completed.
   646  	CompleteTime string `json:"completeTime,omitempty"`
   647  	// Config: The name of the `BitbucketServerConfig` that added connected
   648  	// repositories. Format:
   649  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
   650  	Config string `json:"config,omitempty"`
   651  	// CreateTime: Time the operation was created.
   652  	CreateTime string `json:"createTime,omitempty"`
   653  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
   654  	// unconditionally include in API requests. By default, fields with empty or
   655  	// default values are omitted from API requests. See
   656  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   657  	// details.
   658  	ForceSendFields []string `json:"-"`
   659  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
   660  	// requests with the JSON null value. By default, fields with empty values are
   661  	// omitted from API requests. See
   662  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   663  	NullFields []string `json:"-"`
   664  }
   665  
   666  func (s *BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) {
   667  	type NoMethod BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata
   668  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   669  }
   670  
   671  // BatchCreateGitLabConnectedRepositoriesRequest: RPC request object accepted
   672  // by BatchCreateGitLabConnectedRepositories RPC method.
   673  type BatchCreateGitLabConnectedRepositoriesRequest struct {
   674  	// Requests: Required. Requests to connect GitLab repositories.
   675  	Requests []*CreateGitLabConnectedRepositoryRequest `json:"requests,omitempty"`
   676  	// ForceSendFields is a list of field names (e.g. "Requests") to
   677  	// unconditionally include in API requests. By default, fields with empty or
   678  	// default values are omitted from API requests. See
   679  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   680  	// details.
   681  	ForceSendFields []string `json:"-"`
   682  	// NullFields is a list of field names (e.g. "Requests") to include in API
   683  	// requests with the JSON null value. By default, fields with empty values are
   684  	// omitted from API requests. See
   685  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   686  	NullFields []string `json:"-"`
   687  }
   688  
   689  func (s *BatchCreateGitLabConnectedRepositoriesRequest) MarshalJSON() ([]byte, error) {
   690  	type NoMethod BatchCreateGitLabConnectedRepositoriesRequest
   691  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   692  }
   693  
   694  // BatchCreateGitLabConnectedRepositoriesResponse: Response of
   695  // BatchCreateGitLabConnectedRepositories RPC method.
   696  type BatchCreateGitLabConnectedRepositoriesResponse struct {
   697  	// GitlabConnectedRepositories: The GitLab connected repository requests'
   698  	// responses.
   699  	GitlabConnectedRepositories []*GitLabConnectedRepository `json:"gitlabConnectedRepositories,omitempty"`
   700  	// ForceSendFields is a list of field names (e.g.
   701  	// "GitlabConnectedRepositories") to unconditionally include in API requests.
   702  	// By default, fields with empty or default values are omitted from API
   703  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
   704  	// for more details.
   705  	ForceSendFields []string `json:"-"`
   706  	// NullFields is a list of field names (e.g. "GitlabConnectedRepositories") to
   707  	// include in API requests with the JSON null value. By default, fields with
   708  	// empty values are omitted from API requests. See
   709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   710  	NullFields []string `json:"-"`
   711  }
   712  
   713  func (s *BatchCreateGitLabConnectedRepositoriesResponse) MarshalJSON() ([]byte, error) {
   714  	type NoMethod BatchCreateGitLabConnectedRepositoriesResponse
   715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   716  }
   717  
   718  // BatchCreateGitLabConnectedRepositoriesResponseMetadata: Metadata for
   719  // `BatchCreateGitLabConnectedRepositories` operation.
   720  type BatchCreateGitLabConnectedRepositoriesResponseMetadata struct {
   721  	// CompleteTime: Time the operation was completed.
   722  	CompleteTime string `json:"completeTime,omitempty"`
   723  	// Config: The name of the `GitLabConfig` that added connected repositories.
   724  	// Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}`
   725  	Config string `json:"config,omitempty"`
   726  	// CreateTime: Time the operation was created.
   727  	CreateTime string `json:"createTime,omitempty"`
   728  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
   729  	// unconditionally include in API requests. By default, fields with empty or
   730  	// default values are omitted from API requests. See
   731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   732  	// details.
   733  	ForceSendFields []string `json:"-"`
   734  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
   735  	// requests with the JSON null value. By default, fields with empty values are
   736  	// omitted from API requests. See
   737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   738  	NullFields []string `json:"-"`
   739  }
   740  
   741  func (s *BatchCreateGitLabConnectedRepositoriesResponseMetadata) MarshalJSON() ([]byte, error) {
   742  	type NoMethod BatchCreateGitLabConnectedRepositoriesResponseMetadata
   743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   744  }
   745  
   746  // BitbucketServerConfig: BitbucketServerConfig represents the configuration
   747  // for a Bitbucket Server.
   748  type BitbucketServerConfig struct {
   749  	// ApiKey: Required. Immutable. API Key that will be attached to webhook. Once
   750  	// this field has been set, it cannot be changed. If you need to change it,
   751  	// please create another BitbucketServerConfig.
   752  	ApiKey string `json:"apiKey,omitempty"`
   753  	// ConnectedRepositories: Output only. Connected Bitbucket Server repositories
   754  	// for this config.
   755  	ConnectedRepositories []*BitbucketServerRepositoryId `json:"connectedRepositories,omitempty"`
   756  	// CreateTime: Time when the config was created.
   757  	CreateTime string `json:"createTime,omitempty"`
   758  	// HostUri: Required. Immutable. The URI of the Bitbucket Server host. Once
   759  	// this field has been set, it cannot be changed. If you need to change it,
   760  	// please create another BitbucketServerConfig.
   761  	HostUri string `json:"hostUri,omitempty"`
   762  	// Name: The resource name for the config.
   763  	Name string `json:"name,omitempty"`
   764  	// PeeredNetwork: Optional. The network to be used when reaching out to the
   765  	// Bitbucket Server instance. The VPC network must be enabled for private
   766  	// service connection. This should be set if the Bitbucket Server instance is
   767  	// hosted on-premises and not reachable by public internet. If this field is
   768  	// left empty, no network peering will occur and calls to the Bitbucket Server
   769  	// instance will be made over the public internet. Must be in the format
   770  	// `projects/{project}/global/networks/{network}`, where {project} is a project
   771  	// number or id and {network} is the name of a VPC network in the project.
   772  	PeeredNetwork string `json:"peeredNetwork,omitempty"`
   773  	// PeeredNetworkIpRange: Immutable. IP range within the peered network. This is
   774  	// specified in CIDR notation with a slash and the subnet prefix size. You can
   775  	// optionally specify an IP address before the subnet prefix value. e.g.
   776  	// `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a 29
   777  	// bit prefix size. `/16` would specify a prefix size of 16 bits, with an
   778  	// automatically determined IP within the peered VPC. If unspecified, a value
   779  	// of `/24` will be used. The field only has an effect if peered_network is
   780  	// set.
   781  	PeeredNetworkIpRange string `json:"peeredNetworkIpRange,omitempty"`
   782  	// Secrets: Required. Secret Manager secrets needed by the config.
   783  	Secrets *BitbucketServerSecrets `json:"secrets,omitempty"`
   784  	// SslCa: Optional. SSL certificate to use for requests to Bitbucket Server.
   785  	// The format should be PEM format but the extension can be one of .pem, .cer,
   786  	// or .crt.
   787  	SslCa string `json:"sslCa,omitempty"`
   788  	// Username: Username of the account Cloud Build will use on Bitbucket Server.
   789  	Username string `json:"username,omitempty"`
   790  	// WebhookKey: Output only. UUID included in webhook requests. The UUID is used
   791  	// to look up the corresponding config.
   792  	WebhookKey string `json:"webhookKey,omitempty"`
   793  
   794  	// ServerResponse contains the HTTP response code and headers from the server.
   795  	googleapi.ServerResponse `json:"-"`
   796  	// ForceSendFields is a list of field names (e.g. "ApiKey") to unconditionally
   797  	// include in API requests. By default, fields with empty or default values are
   798  	// omitted from API requests. See
   799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   800  	// details.
   801  	ForceSendFields []string `json:"-"`
   802  	// NullFields is a list of field names (e.g. "ApiKey") to include in API
   803  	// requests with the JSON null value. By default, fields with empty values are
   804  	// omitted from API requests. See
   805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   806  	NullFields []string `json:"-"`
   807  }
   808  
   809  func (s *BitbucketServerConfig) MarshalJSON() ([]byte, error) {
   810  	type NoMethod BitbucketServerConfig
   811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   812  }
   813  
   814  // BitbucketServerConnectedRepository: / BitbucketServerConnectedRepository
   815  // represents a connected Bitbucket Server / repository.
   816  type BitbucketServerConnectedRepository struct {
   817  	// Parent: The name of the `BitbucketServerConfig` that added connected
   818  	// repository. Format:
   819  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
   820  	Parent string `json:"parent,omitempty"`
   821  	// Repo: The Bitbucket Server repositories to connect.
   822  	Repo *BitbucketServerRepositoryId `json:"repo,omitempty"`
   823  	// Status: Output only. The status of the repo connection request.
   824  	Status *Status `json:"status,omitempty"`
   825  	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
   826  	// include in API requests. By default, fields with empty or default values are
   827  	// omitted from API requests. See
   828  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   829  	// details.
   830  	ForceSendFields []string `json:"-"`
   831  	// NullFields is a list of field names (e.g. "Parent") to include in API
   832  	// requests with the JSON null value. By default, fields with empty values are
   833  	// omitted from API requests. See
   834  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   835  	NullFields []string `json:"-"`
   836  }
   837  
   838  func (s *BitbucketServerConnectedRepository) MarshalJSON() ([]byte, error) {
   839  	type NoMethod BitbucketServerConnectedRepository
   840  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   841  }
   842  
   843  // BitbucketServerRepository: BitbucketServerRepository represents a repository
   844  // hosted on a Bitbucket Server.
   845  type BitbucketServerRepository struct {
   846  	// BrowseUri: Link to the browse repo page on the Bitbucket Server instance.
   847  	BrowseUri string `json:"browseUri,omitempty"`
   848  	// Description: Description of the repository.
   849  	Description string `json:"description,omitempty"`
   850  	// DisplayName: Display name of the repository.
   851  	DisplayName string `json:"displayName,omitempty"`
   852  	// Name: The resource name of the repository.
   853  	Name string `json:"name,omitempty"`
   854  	// RepoId: Identifier for a repository hosted on a Bitbucket Server.
   855  	RepoId *BitbucketServerRepositoryId `json:"repoId,omitempty"`
   856  	// ForceSendFields is a list of field names (e.g. "BrowseUri") to
   857  	// unconditionally include in API requests. By default, fields with empty or
   858  	// default values are omitted from API requests. See
   859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   860  	// details.
   861  	ForceSendFields []string `json:"-"`
   862  	// NullFields is a list of field names (e.g. "BrowseUri") to include in API
   863  	// requests with the JSON null value. By default, fields with empty values are
   864  	// omitted from API requests. See
   865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   866  	NullFields []string `json:"-"`
   867  }
   868  
   869  func (s *BitbucketServerRepository) MarshalJSON() ([]byte, error) {
   870  	type NoMethod BitbucketServerRepository
   871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   872  }
   873  
   874  // BitbucketServerRepositoryId: BitbucketServerRepositoryId identifies a
   875  // specific repository hosted on a Bitbucket Server.
   876  type BitbucketServerRepositoryId struct {
   877  	// ProjectKey: Required. Identifier for the project storing the repository.
   878  	ProjectKey string `json:"projectKey,omitempty"`
   879  	// RepoSlug: Required. Identifier for the repository.
   880  	RepoSlug string `json:"repoSlug,omitempty"`
   881  	// WebhookId: Output only. The ID of the webhook that was created for receiving
   882  	// events from this repo. We only create and manage a single webhook for each
   883  	// repo.
   884  	WebhookId int64 `json:"webhookId,omitempty"`
   885  	// ForceSendFields is a list of field names (e.g. "ProjectKey") to
   886  	// unconditionally include in API requests. By default, fields with empty or
   887  	// default values are omitted from API requests. See
   888  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   889  	// details.
   890  	ForceSendFields []string `json:"-"`
   891  	// NullFields is a list of field names (e.g. "ProjectKey") to include in API
   892  	// requests with the JSON null value. By default, fields with empty values are
   893  	// omitted from API requests. See
   894  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   895  	NullFields []string `json:"-"`
   896  }
   897  
   898  func (s *BitbucketServerRepositoryId) MarshalJSON() ([]byte, error) {
   899  	type NoMethod BitbucketServerRepositoryId
   900  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   901  }
   902  
   903  // BitbucketServerSecrets: BitbucketServerSecrets represents the secrets in
   904  // Secret Manager for a Bitbucket Server.
   905  type BitbucketServerSecrets struct {
   906  	// AdminAccessTokenVersionName: Required. The resource name for the admin
   907  	// access token's secret version.
   908  	AdminAccessTokenVersionName string `json:"adminAccessTokenVersionName,omitempty"`
   909  	// ReadAccessTokenVersionName: Required. The resource name for the read access
   910  	// token's secret version.
   911  	ReadAccessTokenVersionName string `json:"readAccessTokenVersionName,omitempty"`
   912  	// WebhookSecretVersionName: Required. Immutable. The resource name for the
   913  	// webhook secret's secret version. Once this field has been set, it cannot be
   914  	// changed. If you need to change it, please create another
   915  	// BitbucketServerConfig.
   916  	WebhookSecretVersionName string `json:"webhookSecretVersionName,omitempty"`
   917  	// ForceSendFields is a list of field names (e.g.
   918  	// "AdminAccessTokenVersionName") to unconditionally include in API requests.
   919  	// By default, fields with empty or default values are omitted from API
   920  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
   921  	// for more details.
   922  	ForceSendFields []string `json:"-"`
   923  	// NullFields is a list of field names (e.g. "AdminAccessTokenVersionName") to
   924  	// include in API requests with the JSON null value. By default, fields with
   925  	// empty values are omitted from API requests. See
   926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   927  	NullFields []string `json:"-"`
   928  }
   929  
   930  func (s *BitbucketServerSecrets) MarshalJSON() ([]byte, error) {
   931  	type NoMethod BitbucketServerSecrets
   932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   933  }
   934  
   935  // BitbucketServerTriggerConfig: BitbucketServerTriggerConfig describes the
   936  // configuration of a trigger that creates a build whenever a Bitbucket Server
   937  // event is received.
   938  type BitbucketServerTriggerConfig struct {
   939  	// BitbucketServerConfig: Output only. The BitbucketServerConfig specified in
   940  	// the bitbucket_server_config_resource field.
   941  	BitbucketServerConfig *BitbucketServerConfig `json:"bitbucketServerConfig,omitempty"`
   942  	// BitbucketServerConfigResource: Required. The Bitbucket server config
   943  	// resource that this trigger config maps to.
   944  	BitbucketServerConfigResource string `json:"bitbucketServerConfigResource,omitempty"`
   945  	// ProjectKey: Required. Key of the project that the repo is in. For example:
   946  	// The key for https://mybitbucket.server/projects/TEST/repos/test-repo is
   947  	// "TEST".
   948  	ProjectKey string `json:"projectKey,omitempty"`
   949  	// PullRequest: Filter to match changes in pull requests.
   950  	PullRequest *PullRequestFilter `json:"pullRequest,omitempty"`
   951  	// Push: Filter to match changes in refs like branches, tags.
   952  	Push *PushFilter `json:"push,omitempty"`
   953  	// RepoSlug: Required. Slug of the repository. A repository slug is a
   954  	// URL-friendly version of a repository name, automatically generated by
   955  	// Bitbucket for use in the URL. For example, if the repository name is 'test
   956  	// repo', in the URL it would become 'test-repo' as in
   957  	// https://mybitbucket.server/projects/TEST/repos/test-repo.
   958  	RepoSlug string `json:"repoSlug,omitempty"`
   959  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to
   960  	// unconditionally include in API requests. By default, fields with empty or
   961  	// default values are omitted from API requests. See
   962  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   963  	// details.
   964  	ForceSendFields []string `json:"-"`
   965  	// NullFields is a list of field names (e.g. "BitbucketServerConfig") to
   966  	// include in API requests with the JSON null value. By default, fields with
   967  	// empty values are omitted from API requests. See
   968  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   969  	NullFields []string `json:"-"`
   970  }
   971  
   972  func (s *BitbucketServerTriggerConfig) MarshalJSON() ([]byte, error) {
   973  	type NoMethod BitbucketServerTriggerConfig
   974  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   975  }
   976  
   977  // Build: A build resource in the Cloud Build API. At a high level, a `Build`
   978  // describes where to find source code, how to build it (for example, the
   979  // builder image to run on the source), and where to store the built artifacts.
   980  // Fields can include the following variables, which will be expanded when the
   981  // build is created: - $PROJECT_ID: the project ID of the build. -
   982  // $PROJECT_NUMBER: the project number of the build. - $LOCATION: the
   983  // location/region of the build. - $BUILD_ID: the autogenerated ID of the
   984  // build. - $REPO_NAME: the source repository name specified by RepoSource. -
   985  // $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
   986  // name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
   987  // specified by RepoSource or resolved from the specified branch or tag. -
   988  // $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
   989  type Build struct {
   990  	// Approval: Output only. Describes this build's approval configuration,
   991  	// status, and result.
   992  	Approval *BuildApproval `json:"approval,omitempty"`
   993  	// Artifacts: Artifacts produced by the build that should be uploaded upon
   994  	// successful completion of all build steps.
   995  	Artifacts *Artifacts `json:"artifacts,omitempty"`
   996  	// AvailableSecrets: Secrets and secret environment variables.
   997  	AvailableSecrets *Secrets `json:"availableSecrets,omitempty"`
   998  	// BuildTriggerId: Output only. The ID of the `BuildTrigger` that triggered
   999  	// this build, if it was triggered automatically.
  1000  	BuildTriggerId string `json:"buildTriggerId,omitempty"`
  1001  	// CreateTime: Output only. Time at which the request to create the build was
  1002  	// received.
  1003  	CreateTime string `json:"createTime,omitempty"`
  1004  	// FailureInfo: Output only. Contains information about the build when
  1005  	// status=FAILURE.
  1006  	FailureInfo *FailureInfo `json:"failureInfo,omitempty"`
  1007  	// FinishTime: Output only. Time at which execution of the build was finished.
  1008  	// The difference between finish_time and start_time is the duration of the
  1009  	// build's execution.
  1010  	FinishTime string `json:"finishTime,omitempty"`
  1011  	// GitConfig: Optional. Configuration for git operations.
  1012  	GitConfig *GitConfig `json:"gitConfig,omitempty"`
  1013  	// Id: Output only. Unique identifier of the build.
  1014  	Id string `json:"id,omitempty"`
  1015  	// Images: A list of images to be pushed upon the successful completion of all
  1016  	// build steps. The images are pushed using the builder service account's
  1017  	// credentials. The digests of the pushed images will be stored in the `Build`
  1018  	// resource's results field. If any of the images fail to be pushed, the build
  1019  	// status is marked `FAILURE`.
  1020  	Images []string `json:"images,omitempty"`
  1021  	// LogUrl: Output only. URL to logs for this build in Google Cloud Console.
  1022  	LogUrl string `json:"logUrl,omitempty"`
  1023  	// LogsBucket: Cloud Storage bucket where logs should be written (see Bucket
  1024  	// Name Requirements
  1025  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs
  1026  	// file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
  1027  	LogsBucket string `json:"logsBucket,omitempty"`
  1028  	// Name: Output only. The 'Build' name with format:
  1029  	// `projects/{project}/locations/{location}/builds/{build}`, where {build} is a
  1030  	// unique identifier generated by the service.
  1031  	Name string `json:"name,omitempty"`
  1032  	// Options: Special options for this build.
  1033  	Options *BuildOptions `json:"options,omitempty"`
  1034  	// ProjectId: Output only. ID of the project.
  1035  	ProjectId string `json:"projectId,omitempty"`
  1036  	// QueueTtl: TTL in queue for this build. If provided and the build is enqueued
  1037  	// longer than this value, the build will expire and the build status will be
  1038  	// `EXPIRED`. The TTL starts ticking from create_time.
  1039  	QueueTtl string `json:"queueTtl,omitempty"`
  1040  	// Results: Output only. Results of the build.
  1041  	Results *Results `json:"results,omitempty"`
  1042  	// Secrets: Secrets to decrypt using Cloud Key Management Service. Note: Secret
  1043  	// Manager is the recommended technique for managing sensitive data with Cloud
  1044  	// Build. Use `available_secrets` to configure builds to access secrets from
  1045  	// Secret Manager. For instructions, see:
  1046  	// https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
  1047  	Secrets []*Secret `json:"secrets,omitempty"`
  1048  	// ServiceAccount: IAM service account whose credentials will be used at build
  1049  	// runtime. Must be of the format
  1050  	// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email
  1051  	// address or uniqueId of the service account.
  1052  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1053  	// Source: The location of the source files to build.
  1054  	Source *Source `json:"source,omitempty"`
  1055  	// SourceProvenance: Output only. A permanent fixed identifier for source.
  1056  	SourceProvenance *SourceProvenance `json:"sourceProvenance,omitempty"`
  1057  	// StartTime: Output only. Time at which execution of the build was started.
  1058  	StartTime string `json:"startTime,omitempty"`
  1059  	// Status: Output only. Status of the build.
  1060  	//
  1061  	// Possible values:
  1062  	//   "STATUS_UNKNOWN" - Status of the build is unknown.
  1063  	//   "PENDING" - Build has been created and is pending execution and queuing.
  1064  	// It has not been queued.
  1065  	//   "QUEUED" - Build or step is queued; work has not yet begun.
  1066  	//   "WORKING" - Build or step is being executed.
  1067  	//   "SUCCESS" - Build or step finished successfully.
  1068  	//   "FAILURE" - Build or step failed to complete successfully.
  1069  	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
  1070  	//   "TIMEOUT" - Build or step took longer than was allowed.
  1071  	//   "CANCELLED" - Build or step was canceled by a user.
  1072  	//   "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`.
  1073  	Status string `json:"status,omitempty"`
  1074  	// StatusDetail: Output only. Customer-readable message about the current
  1075  	// status.
  1076  	StatusDetail string `json:"statusDetail,omitempty"`
  1077  	// Steps: Required. The operations to be performed on the workspace.
  1078  	Steps []*BuildStep `json:"steps,omitempty"`
  1079  	// Substitutions: Substitutions data for `Build` resource.
  1080  	Substitutions map[string]string `json:"substitutions,omitempty"`
  1081  	// Tags: Tags for annotation of a `Build`. These are not docker tags.
  1082  	Tags []string `json:"tags,omitempty"`
  1083  	// Timeout: Amount of time that this build should be allowed to run, to second
  1084  	// granularity. If this amount of time elapses, work on the build will cease
  1085  	// and the build status will be `TIMEOUT`. `timeout` starts ticking from
  1086  	// `startTime`. Default time is 60 minutes.
  1087  	Timeout string `json:"timeout,omitempty"`
  1088  	// Timing: Output only. Stores timing information for phases of the build.
  1089  	// Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to
  1090  	// push all artifacts including docker images and non docker artifacts. *
  1091  	// FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If
  1092  	// the build does not specify source or images, these keys will not be
  1093  	// included.
  1094  	Timing map[string]TimeSpan `json:"timing,omitempty"`
  1095  	// Warnings: Output only. Non-fatal problems encountered during the execution
  1096  	// of the build.
  1097  	Warnings []*Warning `json:"warnings,omitempty"`
  1098  
  1099  	// ServerResponse contains the HTTP response code and headers from the server.
  1100  	googleapi.ServerResponse `json:"-"`
  1101  	// ForceSendFields is a list of field names (e.g. "Approval") to
  1102  	// unconditionally include in API requests. By default, fields with empty or
  1103  	// default values are omitted from API requests. See
  1104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1105  	// details.
  1106  	ForceSendFields []string `json:"-"`
  1107  	// NullFields is a list of field names (e.g. "Approval") to include in API
  1108  	// requests with the JSON null value. By default, fields with empty values are
  1109  	// omitted from API requests. See
  1110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1111  	NullFields []string `json:"-"`
  1112  }
  1113  
  1114  func (s *Build) MarshalJSON() ([]byte, error) {
  1115  	type NoMethod Build
  1116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1117  }
  1118  
  1119  // BuildApproval: BuildApproval describes a build's approval configuration,
  1120  // state, and result.
  1121  type BuildApproval struct {
  1122  	// Config: Output only. Configuration for manual approval of this build.
  1123  	Config *ApprovalConfig `json:"config,omitempty"`
  1124  	// Result: Output only. Result of manual approval for this Build.
  1125  	Result *ApprovalResult `json:"result,omitempty"`
  1126  	// State: Output only. The state of this build's approval.
  1127  	//
  1128  	// Possible values:
  1129  	//   "STATE_UNSPECIFIED" - Default enum type. This should not be used.
  1130  	//   "PENDING" - Build approval is pending.
  1131  	//   "APPROVED" - Build approval has been approved.
  1132  	//   "REJECTED" - Build approval has been rejected.
  1133  	//   "CANCELLED" - Build was cancelled while it was still pending approval.
  1134  	State string `json:"state,omitempty"`
  1135  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  1136  	// include in API requests. By default, fields with empty or default values are
  1137  	// omitted from API requests. See
  1138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1139  	// details.
  1140  	ForceSendFields []string `json:"-"`
  1141  	// NullFields is a list of field names (e.g. "Config") to include in API
  1142  	// requests with the JSON null value. By default, fields with empty values are
  1143  	// omitted from API requests. See
  1144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1145  	NullFields []string `json:"-"`
  1146  }
  1147  
  1148  func (s *BuildApproval) MarshalJSON() ([]byte, error) {
  1149  	type NoMethod BuildApproval
  1150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1151  }
  1152  
  1153  // BuildOperationMetadata: Metadata for build operations.
  1154  type BuildOperationMetadata struct {
  1155  	// Build: The build that the operation is tracking.
  1156  	Build *Build `json:"build,omitempty"`
  1157  	// ForceSendFields is a list of field names (e.g. "Build") to unconditionally
  1158  	// include in API requests. By default, fields with empty or default values are
  1159  	// omitted from API requests. See
  1160  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1161  	// details.
  1162  	ForceSendFields []string `json:"-"`
  1163  	// NullFields is a list of field names (e.g. "Build") to include in API
  1164  	// requests with the JSON null value. By default, fields with empty values are
  1165  	// omitted from API requests. See
  1166  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1167  	NullFields []string `json:"-"`
  1168  }
  1169  
  1170  func (s *BuildOperationMetadata) MarshalJSON() ([]byte, error) {
  1171  	type NoMethod BuildOperationMetadata
  1172  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1173  }
  1174  
  1175  // BuildOptions: Optional arguments to enable specific features of builds.
  1176  type BuildOptions struct {
  1177  	// AutomapSubstitutions: Option to include built-in and custom substitutions as
  1178  	// env variables for all build steps.
  1179  	AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"`
  1180  	// DefaultLogsBucketBehavior: Optional. Option to specify how default logs
  1181  	// buckets are setup.
  1182  	//
  1183  	// Possible values:
  1184  	//   "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED" - Unspecified.
  1185  	//   "REGIONAL_USER_OWNED_BUCKET" - Bucket is located in user-owned project in
  1186  	// the same region as the build. The builder service account must have access
  1187  	// to create and write to Cloud Storage buckets in the build project.
  1188  	DefaultLogsBucketBehavior string `json:"defaultLogsBucketBehavior,omitempty"`
  1189  	// DiskSizeGb: Requested disk size for the VM that runs the build. Note that
  1190  	// this is *NOT* "disk free"; some of the space will be used by the operating
  1191  	// system and build utilities. Also note that this is the minimum disk size
  1192  	// that will be allocated for the build -- the build may run with a larger disk
  1193  	// than requested. At present, the maximum disk size is 2000GB; builds that
  1194  	// request more than the maximum are rejected with an error.
  1195  	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
  1196  	// DynamicSubstitutions: Option to specify whether or not to apply bash style
  1197  	// string operations to the substitutions. NOTE: this is always enabled for
  1198  	// triggered builds and cannot be overridden in the build configuration file.
  1199  	DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"`
  1200  	// Env: A list of global environment variable definitions that will exist for
  1201  	// all build steps in this build. If a variable is defined in both globally and
  1202  	// in a build step, the variable will use the build step value. The elements
  1203  	// are of the form "KEY=VALUE" for the environment variable "KEY" being given
  1204  	// the value "VALUE".
  1205  	Env []string `json:"env,omitempty"`
  1206  	// LogStreamingOption: Option to define build log streaming behavior to Cloud
  1207  	// Storage.
  1208  	//
  1209  	// Possible values:
  1210  	//   "STREAM_DEFAULT" - Service may automatically determine build log streaming
  1211  	// behavior.
  1212  	//   "STREAM_ON" - Build logs should be streamed to Cloud Storage.
  1213  	//   "STREAM_OFF" - Build logs should not be streamed to Cloud Storage; they
  1214  	// will be written when the build is completed.
  1215  	LogStreamingOption string `json:"logStreamingOption,omitempty"`
  1216  	// Logging: Option to specify the logging mode, which determines if and where
  1217  	// build logs are stored.
  1218  	//
  1219  	// Possible values:
  1220  	//   "LOGGING_UNSPECIFIED" - The service determines the logging mode. The
  1221  	// default is `LEGACY`. Do not rely on the default logging behavior as it may
  1222  	// change in the future.
  1223  	//   "LEGACY" - Build logs are stored in Cloud Logging and Cloud Storage.
  1224  	//   "GCS_ONLY" - Build logs are stored in Cloud Storage.
  1225  	//   "STACKDRIVER_ONLY" - This option is the same as CLOUD_LOGGING_ONLY.
  1226  	//   "CLOUD_LOGGING_ONLY" - Build logs are stored in Cloud Logging. Selecting
  1227  	// this option will not allow [logs
  1228  	// streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
  1229  	//   "NONE" - Turn off all logging. No build logs will be captured.
  1230  	Logging string `json:"logging,omitempty"`
  1231  	// MachineType: Compute Engine machine type on which to run the build.
  1232  	//
  1233  	// Possible values:
  1234  	//   "UNSPECIFIED" - Standard machine type.
  1235  	//   "N1_HIGHCPU_8" - Highcpu machine with 8 CPUs.
  1236  	//   "N1_HIGHCPU_32" - Highcpu machine with 32 CPUs.
  1237  	//   "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs.
  1238  	//   "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs.
  1239  	//   "E2_MEDIUM" - E2 machine with 1 CPU.
  1240  	MachineType string `json:"machineType,omitempty"`
  1241  	// Pool: Optional. Specification for execution on a `WorkerPool`. See running
  1242  	// builds in a private pool
  1243  	// (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
  1244  	// for more information.
  1245  	Pool *PoolOption `json:"pool,omitempty"`
  1246  	// RequestedVerifyOption: Requested verifiability options.
  1247  	//
  1248  	// Possible values:
  1249  	//   "NOT_VERIFIED" - Not a verifiable build (the default).
  1250  	//   "VERIFIED" - Build must be verified.
  1251  	RequestedVerifyOption string `json:"requestedVerifyOption,omitempty"`
  1252  	// SecretEnv: A list of global environment variables, which are encrypted using
  1253  	// a Cloud Key Management Service crypto key. These values must be specified in
  1254  	// the build's `Secret`. These variables will be available to all build steps
  1255  	// in this build.
  1256  	SecretEnv []string `json:"secretEnv,omitempty"`
  1257  	// SourceProvenanceHash: Requested hash for SourceProvenance.
  1258  	//
  1259  	// Possible values:
  1260  	//   "NONE" - No hash requested.
  1261  	//   "SHA256" - Use a sha256 hash.
  1262  	//   "MD5" - Use a md5 hash.
  1263  	//   "SHA512" - Use a sha512 hash.
  1264  	SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"`
  1265  	// SubstitutionOption: Option to specify behavior when there is an error in the
  1266  	// substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered
  1267  	// builds and cannot be overridden in the build configuration file.
  1268  	//
  1269  	// Possible values:
  1270  	//   "MUST_MATCH" - Fails the build if error in substitutions checks, like
  1271  	// missing a substitution in the template or in the map.
  1272  	//   "ALLOW_LOOSE" - Do not fail the build if error in substitutions checks.
  1273  	SubstitutionOption string `json:"substitutionOption,omitempty"`
  1274  	// Volumes: Global list of volumes to mount for ALL build steps Each volume is
  1275  	// created as an empty volume prior to starting the build process. Upon
  1276  	// completion of the build, volumes and their contents are discarded. Global
  1277  	// volume names and paths cannot conflict with the volumes defined a build
  1278  	// step. Using a global volume in a build with only one step is not valid as it
  1279  	// is indicative of a build request with an incorrect configuration.
  1280  	Volumes []*Volume `json:"volumes,omitempty"`
  1281  	// WorkerPool: This field deprecated; please use `pool.name` instead.
  1282  	WorkerPool string `json:"workerPool,omitempty"`
  1283  	// ForceSendFields is a list of field names (e.g. "AutomapSubstitutions") to
  1284  	// unconditionally include in API requests. By default, fields with empty or
  1285  	// default values are omitted from API requests. See
  1286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1287  	// details.
  1288  	ForceSendFields []string `json:"-"`
  1289  	// NullFields is a list of field names (e.g. "AutomapSubstitutions") to include
  1290  	// in API requests with the JSON null value. By default, fields with empty
  1291  	// values are omitted from API requests. See
  1292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1293  	NullFields []string `json:"-"`
  1294  }
  1295  
  1296  func (s *BuildOptions) MarshalJSON() ([]byte, error) {
  1297  	type NoMethod BuildOptions
  1298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1299  }
  1300  
  1301  // BuildStep: A step in the build pipeline.
  1302  type BuildStep struct {
  1303  	// AllowExitCodes: Allow this build step to fail without failing the entire
  1304  	// build if and only if the exit code is one of the specified codes. If
  1305  	// allow_failure is also specified, this field will take precedence.
  1306  	AllowExitCodes []int64 `json:"allowExitCodes,omitempty"`
  1307  	// AllowFailure: Allow this build step to fail without failing the entire
  1308  	// build. If false, the entire build will fail if this step fails. Otherwise,
  1309  	// the build will succeed, but this step will still have a failure status.
  1310  	// Error information will be reported in the failure_detail field.
  1311  	AllowFailure bool `json:"allowFailure,omitempty"`
  1312  	// Args: A list of arguments that will be presented to the step when it is
  1313  	// started. If the image used to run the step's container has an entrypoint,
  1314  	// the `args` are used as arguments to that entrypoint. If the image does not
  1315  	// define an entrypoint, the first element in args is used as the entrypoint,
  1316  	// and the remainder will be used as arguments.
  1317  	Args []string `json:"args,omitempty"`
  1318  	// AutomapSubstitutions: Option to include built-in and custom substitutions as
  1319  	// env variables for this build step. This option will override the global
  1320  	// option in BuildOption.
  1321  	AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"`
  1322  	// Dir: Working directory to use when running this step's container. If this
  1323  	// value is a relative path, it is relative to the build's working directory.
  1324  	// If this value is absolute, it may be outside the build's working directory,
  1325  	// in which case the contents of the path may not be persisted across build
  1326  	// step executions, unless a `volume` for that path is specified. If the build
  1327  	// specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies
  1328  	// an absolute path, the `RepoSource` `dir` is ignored for the step's
  1329  	// execution.
  1330  	Dir string `json:"dir,omitempty"`
  1331  	// Entrypoint: Entrypoint to be used instead of the build step image's default
  1332  	// entrypoint. If unset, the image's default entrypoint is used.
  1333  	Entrypoint string `json:"entrypoint,omitempty"`
  1334  	// Env: A list of environment variable definitions to be used when running a
  1335  	// step. The elements are of the form "KEY=VALUE" for the environment variable
  1336  	// "KEY" being given the value "VALUE".
  1337  	Env []string `json:"env,omitempty"`
  1338  	// ExitCode: Output only. Return code from running the step.
  1339  	ExitCode int64 `json:"exitCode,omitempty"`
  1340  	// Id: Unique identifier for this build step, used in `wait_for` to reference
  1341  	// this build step as a dependency.
  1342  	Id string `json:"id,omitempty"`
  1343  	// Name: Required. The name of the container image that will run this
  1344  	// particular build step. If the image is available in the host's Docker
  1345  	// daemon's cache, it will be run directly. If not, the host will attempt to
  1346  	// pull the image first, using the builder service account's credentials if
  1347  	// necessary. The Docker daemon's cache will already have the latest versions
  1348  	// of all of the officially supported build steps
  1349  	// (https://github.com/GoogleCloudPlatform/cloud-builders
  1350  	// (https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon
  1351  	// will also have cached many of the layers for some popular images, like
  1352  	// "ubuntu", "debian", but they will be refreshed at the time you attempt to
  1353  	// use them. If you built an image in a previous build step, it will be stored
  1354  	// in the host's Docker daemon's cache and is available to use as the name for
  1355  	// a later build step.
  1356  	Name string `json:"name,omitempty"`
  1357  	// PullTiming: Output only. Stores timing information for pulling this build
  1358  	// step's builder image only.
  1359  	PullTiming *TimeSpan `json:"pullTiming,omitempty"`
  1360  	// Script: A shell script to be executed in the step. When script is provided,
  1361  	// the user cannot specify the entrypoint or args.
  1362  	Script string `json:"script,omitempty"`
  1363  	// SecretEnv: A list of environment variables which are encrypted using a Cloud
  1364  	// Key Management Service crypto key. These values must be specified in the
  1365  	// build's `Secret`.
  1366  	SecretEnv []string `json:"secretEnv,omitempty"`
  1367  	// Status: Output only. Status of the build step. At this time, build step
  1368  	// status is only updated on build completion; step status is not updated in
  1369  	// real-time as the build progresses.
  1370  	//
  1371  	// Possible values:
  1372  	//   "STATUS_UNKNOWN" - Status of the build is unknown.
  1373  	//   "PENDING" - Build has been created and is pending execution and queuing.
  1374  	// It has not been queued.
  1375  	//   "QUEUED" - Build or step is queued; work has not yet begun.
  1376  	//   "WORKING" - Build or step is being executed.
  1377  	//   "SUCCESS" - Build or step finished successfully.
  1378  	//   "FAILURE" - Build or step failed to complete successfully.
  1379  	//   "INTERNAL_ERROR" - Build or step failed due to an internal cause.
  1380  	//   "TIMEOUT" - Build or step took longer than was allowed.
  1381  	//   "CANCELLED" - Build or step was canceled by a user.
  1382  	//   "EXPIRED" - Build was enqueued for longer than the value of `queue_ttl`.
  1383  	Status string `json:"status,omitempty"`
  1384  	// Timeout: Time limit for executing this build step. If not defined, the step
  1385  	// has no time limit and will be allowed to continue to run until either it
  1386  	// completes or the build itself times out.
  1387  	Timeout string `json:"timeout,omitempty"`
  1388  	// Timing: Output only. Stores timing information for executing this build
  1389  	// step.
  1390  	Timing *TimeSpan `json:"timing,omitempty"`
  1391  	// Volumes: List of volumes to mount into the build step. Each volume is
  1392  	// created as an empty volume prior to execution of the build step. Upon
  1393  	// completion of the build, volumes and their contents are discarded. Using a
  1394  	// named volume in only one step is not valid as it is indicative of a build
  1395  	// request with an incorrect configuration.
  1396  	Volumes []*Volume `json:"volumes,omitempty"`
  1397  	// WaitFor: The ID(s) of the step(s) that this build step depends on. This
  1398  	// build step will not start until all the build steps in `wait_for` have
  1399  	// completed successfully. If `wait_for` is empty, this build step will start
  1400  	// when all previous build steps in the `Build.Steps` list have completed
  1401  	// successfully.
  1402  	WaitFor []string `json:"waitFor,omitempty"`
  1403  	// ForceSendFields is a list of field names (e.g. "AllowExitCodes") to
  1404  	// unconditionally include in API requests. By default, fields with empty or
  1405  	// default values are omitted from API requests. See
  1406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1407  	// details.
  1408  	ForceSendFields []string `json:"-"`
  1409  	// NullFields is a list of field names (e.g. "AllowExitCodes") to include in
  1410  	// API requests with the JSON null value. By default, fields with empty values
  1411  	// are omitted from API requests. See
  1412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1413  	NullFields []string `json:"-"`
  1414  }
  1415  
  1416  func (s *BuildStep) MarshalJSON() ([]byte, error) {
  1417  	type NoMethod BuildStep
  1418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1419  }
  1420  
  1421  // BuildTrigger: Configuration for an automated build in response to source
  1422  // repository changes.
  1423  type BuildTrigger struct {
  1424  	// ApprovalConfig: Configuration for manual approval to start a build
  1425  	// invocation of this BuildTrigger.
  1426  	ApprovalConfig *ApprovalConfig `json:"approvalConfig,omitempty"`
  1427  	// Autodetect: Autodetect build configuration. The following precedence is used
  1428  	// (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json
  1429  	// 4. Dockerfile Currently only available for GitHub App Triggers.
  1430  	Autodetect bool `json:"autodetect,omitempty"`
  1431  	// BitbucketServerTriggerConfig: BitbucketServerTriggerConfig describes the
  1432  	// configuration of a trigger that creates a build whenever a Bitbucket Server
  1433  	// event is received.
  1434  	BitbucketServerTriggerConfig *BitbucketServerTriggerConfig `json:"bitbucketServerTriggerConfig,omitempty"`
  1435  	// Build: Contents of the build template.
  1436  	Build *Build `json:"build,omitempty"`
  1437  	// CreateTime: Output only. Time when the trigger was created.
  1438  	CreateTime string `json:"createTime,omitempty"`
  1439  	// Description: Human-readable description of this trigger.
  1440  	Description string `json:"description,omitempty"`
  1441  	// Disabled: If true, the trigger will never automatically execute a build.
  1442  	Disabled bool `json:"disabled,omitempty"`
  1443  	// EventType: EventType allows the user to explicitly set the type of event to
  1444  	// which this BuildTrigger should respond. This field will be validated against
  1445  	// the rest of the configuration if it is set.
  1446  	//
  1447  	// Possible values:
  1448  	//   "EVENT_TYPE_UNSPECIFIED" - EVENT_TYPE_UNSPECIFIED event_types are ignored.
  1449  	//   "REPO" - REPO corresponds to the supported VCS integrations.
  1450  	//   "WEBHOOK" - WEBHOOK corresponds to webhook triggers.
  1451  	//   "PUBSUB" - PUBSUB corresponds to pubsub triggers.
  1452  	//   "MANUAL" - MANUAL corresponds to manual-only invoked triggers.
  1453  	EventType string `json:"eventType,omitempty"`
  1454  	// Filename: Path, from the source root, to the build configuration file (i.e.
  1455  	// cloudbuild.yaml).
  1456  	Filename string `json:"filename,omitempty"`
  1457  	// Filter: A Common Expression Language string.
  1458  	Filter string `json:"filter,omitempty"`
  1459  	// GitFileSource: The file source describing the local or remote Build
  1460  	// template.
  1461  	GitFileSource *GitFileSource `json:"gitFileSource,omitempty"`
  1462  	// Github: GitHubEventsConfig describes the configuration of a trigger that
  1463  	// creates a build whenever a GitHub event is received. Mutually exclusive with
  1464  	// `trigger_template`.
  1465  	Github *GitHubEventsConfig `json:"github,omitempty"`
  1466  	// GitlabEnterpriseEventsConfig: GitLabEnterpriseEventsConfig describes the
  1467  	// configuration of a trigger that creates a build whenever a GitLab Enterprise
  1468  	// event is received.
  1469  	GitlabEnterpriseEventsConfig *GitLabEventsConfig `json:"gitlabEnterpriseEventsConfig,omitempty"`
  1470  	// Id: Output only. Unique identifier of the trigger.
  1471  	Id string `json:"id,omitempty"`
  1472  	// IgnoredFiles: ignored_files and included_files are file glob matches using
  1473  	// https://golang.org/pkg/path/filepath/#Match extended with support for "**".
  1474  	// If ignored_files and changed files are both empty, then they are not used to
  1475  	// determine whether or not to trigger a build. If ignored_files is not empty,
  1476  	// then we ignore any files that match any of the ignored_file globs. If the
  1477  	// change has no files that are outside of the ignored_files globs, then we do
  1478  	// not trigger a build.
  1479  	IgnoredFiles []string `json:"ignoredFiles,omitempty"`
  1480  	// IncludeBuildLogs: If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be
  1481  	// shown on GitHub page when build status is final. Setting this field to
  1482  	// INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in
  1483  	// INVALID_ARGUMENT error.
  1484  	//
  1485  	// Possible values:
  1486  	//   "INCLUDE_BUILD_LOGS_UNSPECIFIED" - Build logs will not be shown on GitHub.
  1487  	//   "INCLUDE_BUILD_LOGS_WITH_STATUS" - Build logs will be shown on GitHub.
  1488  	IncludeBuildLogs string `json:"includeBuildLogs,omitempty"`
  1489  	// IncludedFiles: If any of the files altered in the commit pass the
  1490  	// ignored_files filter and included_files is empty, then as far as this filter
  1491  	// is concerned, we should trigger the build. If any of the files altered in
  1492  	// the commit pass the ignored_files filter and included_files is not empty,
  1493  	// then we make sure that at least one of those files matches a included_files
  1494  	// glob. If not, then we do not trigger a build.
  1495  	IncludedFiles []string `json:"includedFiles,omitempty"`
  1496  	// Name: User-assigned name of the trigger. Must be unique within the project.
  1497  	// Trigger names must meet the following requirements: + They must contain only
  1498  	// alphanumeric characters and dashes. + They can be 1-64 characters long. +
  1499  	// They must begin and end with an alphanumeric character.
  1500  	Name string `json:"name,omitempty"`
  1501  	// PubsubConfig: PubsubConfig describes the configuration of a trigger that
  1502  	// creates a build whenever a Pub/Sub message is published.
  1503  	PubsubConfig *PubsubConfig `json:"pubsubConfig,omitempty"`
  1504  	// RepositoryEventConfig: The configuration of a trigger that creates a build
  1505  	// whenever an event from Repo API is received.
  1506  	RepositoryEventConfig *RepositoryEventConfig `json:"repositoryEventConfig,omitempty"`
  1507  	// ResourceName: The `Trigger` name with format:
  1508  	// `projects/{project}/locations/{location}/triggers/{trigger}`, where
  1509  	// {trigger} is a unique identifier generated by the service.
  1510  	ResourceName string `json:"resourceName,omitempty"`
  1511  	// ServiceAccount: The service account used for all user-controlled operations
  1512  	// including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
  1513  	// If no service account is set, then the standard Cloud Build service account
  1514  	// ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format:
  1515  	// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
  1516  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1517  	// SourceToBuild: The repo and ref of the repository from which to build. This
  1518  	// field is used only for those triggers that do not respond to SCM events.
  1519  	// Triggers that respond to such events build source at whatever commit caused
  1520  	// the event. This field is currently only used by Webhook, Pub/Sub, Manual,
  1521  	// and Cron triggers.
  1522  	SourceToBuild *GitRepoSource `json:"sourceToBuild,omitempty"`
  1523  	// Substitutions: Substitutions for Build resource. The keys must match the
  1524  	// following regular expression: `^_[A-Z0-9_]+$`.
  1525  	Substitutions map[string]string `json:"substitutions,omitempty"`
  1526  	// Tags: Tags for annotation of a `BuildTrigger`
  1527  	Tags []string `json:"tags,omitempty"`
  1528  	// TriggerTemplate: Template describing the types of source changes to trigger
  1529  	// a build. Branch and tag names in trigger templates are interpreted as
  1530  	// regular expressions. Any branch or tag change that matches that regular
  1531  	// expression will trigger a build. Mutually exclusive with `github`.
  1532  	TriggerTemplate *RepoSource `json:"triggerTemplate,omitempty"`
  1533  	// WebhookConfig: WebhookConfig describes the configuration of a trigger that
  1534  	// creates a build whenever a webhook is sent to a trigger's webhook URL.
  1535  	WebhookConfig *WebhookConfig `json:"webhookConfig,omitempty"`
  1536  
  1537  	// ServerResponse contains the HTTP response code and headers from the server.
  1538  	googleapi.ServerResponse `json:"-"`
  1539  	// ForceSendFields is a list of field names (e.g. "ApprovalConfig") to
  1540  	// unconditionally include in API requests. By default, fields with empty or
  1541  	// default values are omitted from API requests. See
  1542  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1543  	// details.
  1544  	ForceSendFields []string `json:"-"`
  1545  	// NullFields is a list of field names (e.g. "ApprovalConfig") to include in
  1546  	// API requests with the JSON null value. By default, fields with empty values
  1547  	// are omitted from API requests. See
  1548  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1549  	NullFields []string `json:"-"`
  1550  }
  1551  
  1552  func (s *BuildTrigger) MarshalJSON() ([]byte, error) {
  1553  	type NoMethod BuildTrigger
  1554  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1555  }
  1556  
  1557  // BuiltImage: An image built by the pipeline.
  1558  type BuiltImage struct {
  1559  	// Digest: Docker Registry 2.0 digest.
  1560  	Digest string `json:"digest,omitempty"`
  1561  	// Name: Name used to push the container image to Google Container Registry, as
  1562  	// presented to `docker push`.
  1563  	Name string `json:"name,omitempty"`
  1564  	// PushTiming: Output only. Stores timing information for pushing the specified
  1565  	// image.
  1566  	PushTiming *TimeSpan `json:"pushTiming,omitempty"`
  1567  	// ForceSendFields is a list of field names (e.g. "Digest") to unconditionally
  1568  	// include in API requests. By default, fields with empty or default values are
  1569  	// omitted from API requests. See
  1570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1571  	// details.
  1572  	ForceSendFields []string `json:"-"`
  1573  	// NullFields is a list of field names (e.g. "Digest") to include in API
  1574  	// requests with the JSON null value. By default, fields with empty values are
  1575  	// omitted from API requests. See
  1576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1577  	NullFields []string `json:"-"`
  1578  }
  1579  
  1580  func (s *BuiltImage) MarshalJSON() ([]byte, error) {
  1581  	type NoMethod BuiltImage
  1582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1583  }
  1584  
  1585  // CancelBuildRequest: Request to cancel an ongoing build.
  1586  type CancelBuildRequest struct {
  1587  	// Id: Required. ID of the build.
  1588  	Id string `json:"id,omitempty"`
  1589  	// Name: The name of the `Build` to cancel. Format:
  1590  	// `projects/{project}/locations/{location}/builds/{build}`
  1591  	Name string `json:"name,omitempty"`
  1592  	// ProjectId: Required. ID of the project.
  1593  	ProjectId string `json:"projectId,omitempty"`
  1594  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  1595  	// include in API requests. By default, fields with empty or default values are
  1596  	// omitted from API requests. See
  1597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1598  	// details.
  1599  	ForceSendFields []string `json:"-"`
  1600  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  1601  	// with the JSON null value. By default, fields with empty values are omitted
  1602  	// from API requests. See
  1603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1604  	NullFields []string `json:"-"`
  1605  }
  1606  
  1607  func (s *CancelBuildRequest) MarshalJSON() ([]byte, error) {
  1608  	type NoMethod CancelBuildRequest
  1609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1610  }
  1611  
  1612  // CancelOperationRequest: The request message for Operations.CancelOperation.
  1613  type CancelOperationRequest struct {
  1614  }
  1615  
  1616  // ConnectedRepository: Location of the source in a 2nd-gen Google Cloud Build
  1617  // repository resource.
  1618  type ConnectedRepository struct {
  1619  	// Dir: Directory, relative to the source root, in which to run the build.
  1620  	Dir string `json:"dir,omitempty"`
  1621  	// Repository: Required. Name of the Google Cloud Build repository, formatted
  1622  	// as `projects/*/locations/*/connections/*/repositories/*`.
  1623  	Repository string `json:"repository,omitempty"`
  1624  	// Revision: The revision to fetch from the Git repository such as a branch, a
  1625  	// tag, a commit SHA, or any Git ref.
  1626  	Revision string `json:"revision,omitempty"`
  1627  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  1628  	// include in API requests. By default, fields with empty or default values are
  1629  	// omitted from API requests. See
  1630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1631  	// details.
  1632  	ForceSendFields []string `json:"-"`
  1633  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  1634  	// with the JSON null value. By default, fields with empty values are omitted
  1635  	// from API requests. See
  1636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1637  	NullFields []string `json:"-"`
  1638  }
  1639  
  1640  func (s *ConnectedRepository) MarshalJSON() ([]byte, error) {
  1641  	type NoMethod ConnectedRepository
  1642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1643  }
  1644  
  1645  // CreateBitbucketServerConfigOperationMetadata: Metadata for
  1646  // `CreateBitbucketServerConfig` operation.
  1647  type CreateBitbucketServerConfigOperationMetadata struct {
  1648  	// BitbucketServerConfig: The resource name of the BitbucketServerConfig to be
  1649  	// created. Format:
  1650  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
  1651  	BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"`
  1652  	// CompleteTime: Time the operation was completed.
  1653  	CompleteTime string `json:"completeTime,omitempty"`
  1654  	// CreateTime: Time the operation was created.
  1655  	CreateTime string `json:"createTime,omitempty"`
  1656  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to
  1657  	// unconditionally include in API requests. By default, fields with empty or
  1658  	// default values are omitted from API requests. See
  1659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1660  	// details.
  1661  	ForceSendFields []string `json:"-"`
  1662  	// NullFields is a list of field names (e.g. "BitbucketServerConfig") to
  1663  	// include in API requests with the JSON null value. By default, fields with
  1664  	// empty values are omitted from API requests. See
  1665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1666  	NullFields []string `json:"-"`
  1667  }
  1668  
  1669  func (s *CreateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  1670  	type NoMethod CreateBitbucketServerConfigOperationMetadata
  1671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1672  }
  1673  
  1674  // CreateBitbucketServerConnectedRepositoryRequest: Request to connect a
  1675  // repository from a connected Bitbucket Server host.
  1676  type CreateBitbucketServerConnectedRepositoryRequest struct {
  1677  	// BitbucketServerConnectedRepository: Required. The Bitbucket Server
  1678  	// repository to connect.
  1679  	BitbucketServerConnectedRepository *BitbucketServerConnectedRepository `json:"bitbucketServerConnectedRepository,omitempty"`
  1680  	// Parent: Required. The name of the `BitbucketServerConfig` that added
  1681  	// connected repository. Format:
  1682  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`
  1683  	Parent string `json:"parent,omitempty"`
  1684  	// ForceSendFields is a list of field names (e.g.
  1685  	// "BitbucketServerConnectedRepository") to unconditionally include in API
  1686  	// requests. By default, fields with empty or default values are omitted from
  1687  	// API requests. See
  1688  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1689  	// details.
  1690  	ForceSendFields []string `json:"-"`
  1691  	// NullFields is a list of field names (e.g.
  1692  	// "BitbucketServerConnectedRepository") to include in API requests with the
  1693  	// JSON null value. By default, fields with empty values are omitted from API
  1694  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  1695  	// more details.
  1696  	NullFields []string `json:"-"`
  1697  }
  1698  
  1699  func (s *CreateBitbucketServerConnectedRepositoryRequest) MarshalJSON() ([]byte, error) {
  1700  	type NoMethod CreateBitbucketServerConnectedRepositoryRequest
  1701  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1702  }
  1703  
  1704  // CreateGitHubEnterpriseConfigOperationMetadata: Metadata for
  1705  // `CreateGithubEnterpriseConfig` operation.
  1706  type CreateGitHubEnterpriseConfigOperationMetadata struct {
  1707  	// CompleteTime: Time the operation was completed.
  1708  	CompleteTime string `json:"completeTime,omitempty"`
  1709  	// CreateTime: Time the operation was created.
  1710  	CreateTime string `json:"createTime,omitempty"`
  1711  	// GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be
  1712  	// created. Format:
  1713  	// `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
  1714  	GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"`
  1715  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  1716  	// unconditionally include in API requests. By default, fields with empty or
  1717  	// default values are omitted from API requests. See
  1718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1719  	// details.
  1720  	ForceSendFields []string `json:"-"`
  1721  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  1722  	// requests with the JSON null value. By default, fields with empty values are
  1723  	// omitted from API requests. See
  1724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1725  	NullFields []string `json:"-"`
  1726  }
  1727  
  1728  func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  1729  	type NoMethod CreateGitHubEnterpriseConfigOperationMetadata
  1730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1731  }
  1732  
  1733  // CreateGitLabConfigOperationMetadata: Metadata for `CreateGitLabConfig`
  1734  // operation.
  1735  type CreateGitLabConfigOperationMetadata struct {
  1736  	// CompleteTime: Time the operation was completed.
  1737  	CompleteTime string `json:"completeTime,omitempty"`
  1738  	// CreateTime: Time the operation was created.
  1739  	CreateTime string `json:"createTime,omitempty"`
  1740  	// GitlabConfig: The resource name of the GitLabConfig to be created. Format:
  1741  	// `projects/{project}/locations/{location}/gitlabConfigs/{id}`.
  1742  	GitlabConfig string `json:"gitlabConfig,omitempty"`
  1743  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  1744  	// unconditionally include in API requests. By default, fields with empty or
  1745  	// default values are omitted from API requests. See
  1746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1747  	// details.
  1748  	ForceSendFields []string `json:"-"`
  1749  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  1750  	// requests with the JSON null value. By default, fields with empty values are
  1751  	// omitted from API requests. See
  1752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1753  	NullFields []string `json:"-"`
  1754  }
  1755  
  1756  func (s *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  1757  	type NoMethod CreateGitLabConfigOperationMetadata
  1758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1759  }
  1760  
  1761  // CreateGitLabConnectedRepositoryRequest: Request to connect a repository from
  1762  // a connected GitLab host.
  1763  type CreateGitLabConnectedRepositoryRequest struct {
  1764  	// GitlabConnectedRepository: Required. The GitLab repository to connect.
  1765  	GitlabConnectedRepository *GitLabConnectedRepository `json:"gitlabConnectedRepository,omitempty"`
  1766  	// Parent: Required. The name of the `GitLabConfig` that adds connected
  1767  	// repository. Format:
  1768  	// `projects/{project}/locations/{location}/gitLabConfigs/{config}`
  1769  	Parent string `json:"parent,omitempty"`
  1770  	// ForceSendFields is a list of field names (e.g. "GitlabConnectedRepository")
  1771  	// to unconditionally include in API requests. By default, fields with empty or
  1772  	// default values are omitted from API requests. See
  1773  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1774  	// details.
  1775  	ForceSendFields []string `json:"-"`
  1776  	// NullFields is a list of field names (e.g. "GitlabConnectedRepository") to
  1777  	// include in API requests with the JSON null value. By default, fields with
  1778  	// empty values are omitted from API requests. See
  1779  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1780  	NullFields []string `json:"-"`
  1781  }
  1782  
  1783  func (s *CreateGitLabConnectedRepositoryRequest) MarshalJSON() ([]byte, error) {
  1784  	type NoMethod CreateGitLabConnectedRepositoryRequest
  1785  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1786  }
  1787  
  1788  // CreateWorkerPoolOperationMetadata: Metadata for the `CreateWorkerPool`
  1789  // operation.
  1790  type CreateWorkerPoolOperationMetadata struct {
  1791  	// CompleteTime: Time the operation was completed.
  1792  	CompleteTime string `json:"completeTime,omitempty"`
  1793  	// CreateTime: Time the operation was created.
  1794  	CreateTime string `json:"createTime,omitempty"`
  1795  	// WorkerPool: The resource name of the `WorkerPool` to create. Format:
  1796  	// `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
  1797  	WorkerPool string `json:"workerPool,omitempty"`
  1798  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  1799  	// unconditionally include in API requests. By default, fields with empty or
  1800  	// default values are omitted from API requests. See
  1801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1802  	// details.
  1803  	ForceSendFields []string `json:"-"`
  1804  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  1805  	// requests with the JSON null value. By default, fields with empty values are
  1806  	// omitted from API requests. See
  1807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1808  	NullFields []string `json:"-"`
  1809  }
  1810  
  1811  func (s *CreateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
  1812  	type NoMethod CreateWorkerPoolOperationMetadata
  1813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1814  }
  1815  
  1816  // DefaultServiceAccount: The default service account used for `Builds`.
  1817  type DefaultServiceAccount struct {
  1818  	// Name: Identifier. Format:
  1819  	// `projects/{project}/locations/{location}/defaultServiceAccount
  1820  	Name string `json:"name,omitempty"`
  1821  	// ServiceAccountEmail: Output only. The email address of the service account
  1822  	// identity that will be used for a build by default. This is returned in the
  1823  	// format `projects/{project}/serviceAccounts/{service_account}` where
  1824  	// `{service_account}` could be the legacy Cloud Build SA, in the format
  1825  	// [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
  1826  	// format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com. If no service
  1827  	// account will be used by default, this will be empty.
  1828  	ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"`
  1829  
  1830  	// ServerResponse contains the HTTP response code and headers from the server.
  1831  	googleapi.ServerResponse `json:"-"`
  1832  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1833  	// include in API requests. By default, fields with empty or default values are
  1834  	// omitted from API requests. See
  1835  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1836  	// details.
  1837  	ForceSendFields []string `json:"-"`
  1838  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1839  	// with the JSON null value. By default, fields with empty values are omitted
  1840  	// from API requests. See
  1841  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1842  	NullFields []string `json:"-"`
  1843  }
  1844  
  1845  func (s *DefaultServiceAccount) MarshalJSON() ([]byte, error) {
  1846  	type NoMethod DefaultServiceAccount
  1847  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1848  }
  1849  
  1850  // DeleteBitbucketServerConfigOperationMetadata: Metadata for
  1851  // `DeleteBitbucketServerConfig` operation.
  1852  type DeleteBitbucketServerConfigOperationMetadata struct {
  1853  	// BitbucketServerConfig: The resource name of the BitbucketServerConfig to be
  1854  	// deleted. Format:
  1855  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
  1856  	BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"`
  1857  	// CompleteTime: Time the operation was completed.
  1858  	CompleteTime string `json:"completeTime,omitempty"`
  1859  	// CreateTime: Time the operation was created.
  1860  	CreateTime string `json:"createTime,omitempty"`
  1861  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to
  1862  	// unconditionally include in API requests. By default, fields with empty or
  1863  	// default values are omitted from API requests. See
  1864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1865  	// details.
  1866  	ForceSendFields []string `json:"-"`
  1867  	// NullFields is a list of field names (e.g. "BitbucketServerConfig") to
  1868  	// include in API requests with the JSON null value. By default, fields with
  1869  	// empty values are omitted from API requests. See
  1870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1871  	NullFields []string `json:"-"`
  1872  }
  1873  
  1874  func (s *DeleteBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  1875  	type NoMethod DeleteBitbucketServerConfigOperationMetadata
  1876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1877  }
  1878  
  1879  // DeleteGitHubEnterpriseConfigOperationMetadata: Metadata for
  1880  // `DeleteGitHubEnterpriseConfig` operation.
  1881  type DeleteGitHubEnterpriseConfigOperationMetadata struct {
  1882  	// CompleteTime: Time the operation was completed.
  1883  	CompleteTime string `json:"completeTime,omitempty"`
  1884  	// CreateTime: Time the operation was created.
  1885  	CreateTime string `json:"createTime,omitempty"`
  1886  	// GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be
  1887  	// deleted. Format:
  1888  	// `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
  1889  	GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"`
  1890  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  1891  	// unconditionally include in API requests. By default, fields with empty or
  1892  	// default values are omitted from API requests. See
  1893  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1894  	// details.
  1895  	ForceSendFields []string `json:"-"`
  1896  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  1897  	// requests with the JSON null value. By default, fields with empty values are
  1898  	// omitted from API requests. See
  1899  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1900  	NullFields []string `json:"-"`
  1901  }
  1902  
  1903  func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  1904  	type NoMethod DeleteGitHubEnterpriseConfigOperationMetadata
  1905  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1906  }
  1907  
  1908  // DeleteGitLabConfigOperationMetadata: Metadata for `DeleteGitLabConfig`
  1909  // operation.
  1910  type DeleteGitLabConfigOperationMetadata struct {
  1911  	// CompleteTime: Time the operation was completed.
  1912  	CompleteTime string `json:"completeTime,omitempty"`
  1913  	// CreateTime: Time the operation was created.
  1914  	CreateTime string `json:"createTime,omitempty"`
  1915  	// GitlabConfig: The resource name of the GitLabConfig to be created. Format:
  1916  	// `projects/{project}/locations/{location}/gitlabConfigs/{id}`.
  1917  	GitlabConfig string `json:"gitlabConfig,omitempty"`
  1918  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  1919  	// unconditionally include in API requests. By default, fields with empty or
  1920  	// default values are omitted from API requests. See
  1921  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1922  	// details.
  1923  	ForceSendFields []string `json:"-"`
  1924  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  1925  	// requests with the JSON null value. By default, fields with empty values are
  1926  	// omitted from API requests. See
  1927  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1928  	NullFields []string `json:"-"`
  1929  }
  1930  
  1931  func (s *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  1932  	type NoMethod DeleteGitLabConfigOperationMetadata
  1933  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1934  }
  1935  
  1936  // DeleteWorkerPoolOperationMetadata: Metadata for the `DeleteWorkerPool`
  1937  // operation.
  1938  type DeleteWorkerPoolOperationMetadata struct {
  1939  	// CompleteTime: Time the operation was completed.
  1940  	CompleteTime string `json:"completeTime,omitempty"`
  1941  	// CreateTime: Time the operation was created.
  1942  	CreateTime string `json:"createTime,omitempty"`
  1943  	// WorkerPool: The resource name of the `WorkerPool` being deleted. Format:
  1944  	// `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
  1945  	WorkerPool string `json:"workerPool,omitempty"`
  1946  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  1947  	// unconditionally include in API requests. By default, fields with empty or
  1948  	// default values are omitted from API requests. See
  1949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1950  	// details.
  1951  	ForceSendFields []string `json:"-"`
  1952  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  1953  	// requests with the JSON null value. By default, fields with empty values are
  1954  	// omitted from API requests. See
  1955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1956  	NullFields []string `json:"-"`
  1957  }
  1958  
  1959  func (s *DeleteWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
  1960  	type NoMethod DeleteWorkerPoolOperationMetadata
  1961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1962  }
  1963  
  1964  // DeveloperConnectConfig: This config defines the location of a source through
  1965  // Developer Connect.
  1966  type DeveloperConnectConfig struct {
  1967  	// Dir: Required. Directory, relative to the source root, in which to run the
  1968  	// build.
  1969  	Dir string `json:"dir,omitempty"`
  1970  	// GitRepositoryLink: Required. The Developer Connect Git repository link,
  1971  	// formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
  1972  	GitRepositoryLink string `json:"gitRepositoryLink,omitempty"`
  1973  	// Revision: Required. The revision to fetch from the Git repository such as a
  1974  	// branch, a tag, a commit SHA, or any Git ref.
  1975  	Revision string `json:"revision,omitempty"`
  1976  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  1977  	// include in API requests. By default, fields with empty or default values are
  1978  	// omitted from API requests. See
  1979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1980  	// details.
  1981  	ForceSendFields []string `json:"-"`
  1982  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  1983  	// with the JSON null value. By default, fields with empty values are omitted
  1984  	// from API requests. See
  1985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1986  	NullFields []string `json:"-"`
  1987  }
  1988  
  1989  func (s *DeveloperConnectConfig) MarshalJSON() ([]byte, error) {
  1990  	type NoMethod DeveloperConnectConfig
  1991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1992  }
  1993  
  1994  // Empty: A generic empty message that you can re-use to avoid defining
  1995  // duplicated empty messages in your APIs. A typical example is to use it as
  1996  // the request or the response type of an API method. For instance: service Foo
  1997  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  1998  type Empty struct {
  1999  	// ServerResponse contains the HTTP response code and headers from the server.
  2000  	googleapi.ServerResponse `json:"-"`
  2001  }
  2002  
  2003  // FailureInfo: A fatal problem encountered during the execution of the build.
  2004  type FailureInfo struct {
  2005  	// Detail: Explains the failure issue in more detail using hard-coded text.
  2006  	Detail string `json:"detail,omitempty"`
  2007  	// Type: The name of the failure.
  2008  	//
  2009  	// Possible values:
  2010  	//   "FAILURE_TYPE_UNSPECIFIED" - Type unspecified
  2011  	//   "PUSH_FAILED" - Unable to push the image to the repository.
  2012  	//   "PUSH_IMAGE_NOT_FOUND" - Final image not found.
  2013  	//   "PUSH_NOT_AUTHORIZED" - Unauthorized push of the final image.
  2014  	//   "LOGGING_FAILURE" - Backend logging failures. Should retry.
  2015  	//   "USER_BUILD_STEP" - A build step has failed.
  2016  	//   "FETCH_SOURCE_FAILED" - The source fetching has failed.
  2017  	Type string `json:"type,omitempty"`
  2018  	// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally
  2019  	// include in API requests. By default, fields with empty or default values are
  2020  	// omitted from API requests. See
  2021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2022  	// details.
  2023  	ForceSendFields []string `json:"-"`
  2024  	// NullFields is a list of field names (e.g. "Detail") to include in API
  2025  	// requests with the JSON null value. By default, fields with empty values are
  2026  	// omitted from API requests. See
  2027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2028  	NullFields []string `json:"-"`
  2029  }
  2030  
  2031  func (s *FailureInfo) MarshalJSON() ([]byte, error) {
  2032  	type NoMethod FailureInfo
  2033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2034  }
  2035  
  2036  // FileHashes: Container message for hashes of byte content of files, used in
  2037  // SourceProvenance messages to verify integrity of source input to the build.
  2038  type FileHashes struct {
  2039  	// FileHash: Collection of file hashes.
  2040  	FileHash []*Hash `json:"fileHash,omitempty"`
  2041  	// ForceSendFields is a list of field names (e.g. "FileHash") to
  2042  	// unconditionally include in API requests. By default, fields with empty or
  2043  	// default values are omitted from API requests. See
  2044  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2045  	// details.
  2046  	ForceSendFields []string `json:"-"`
  2047  	// NullFields is a list of field names (e.g. "FileHash") to include in API
  2048  	// requests with the JSON null value. By default, fields with empty values are
  2049  	// omitted from API requests. See
  2050  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2051  	NullFields []string `json:"-"`
  2052  }
  2053  
  2054  func (s *FileHashes) MarshalJSON() ([]byte, error) {
  2055  	type NoMethod FileHashes
  2056  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2057  }
  2058  
  2059  // GitConfig: GitConfig is a configuration for git operations.
  2060  type GitConfig struct {
  2061  	// Http: Configuration for HTTP related git operations.
  2062  	Http *HttpConfig `json:"http,omitempty"`
  2063  	// ForceSendFields is a list of field names (e.g. "Http") to unconditionally
  2064  	// include in API requests. By default, fields with empty or default values are
  2065  	// omitted from API requests. See
  2066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2067  	// details.
  2068  	ForceSendFields []string `json:"-"`
  2069  	// NullFields is a list of field names (e.g. "Http") to include in API requests
  2070  	// with the JSON null value. By default, fields with empty values are omitted
  2071  	// from API requests. See
  2072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2073  	NullFields []string `json:"-"`
  2074  }
  2075  
  2076  func (s *GitConfig) MarshalJSON() ([]byte, error) {
  2077  	type NoMethod GitConfig
  2078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2079  }
  2080  
  2081  // GitFileSource: GitFileSource describes a file within a (possibly remote)
  2082  // code repository.
  2083  type GitFileSource struct {
  2084  	// BitbucketServerConfig: The full resource name of the bitbucket server
  2085  	// config. Format:
  2086  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
  2087  	BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"`
  2088  	// GithubEnterpriseConfig: The full resource name of the github enterprise
  2089  	// config. Format:
  2090  	// `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
  2091  	// `projects/{project}/githubEnterpriseConfigs/{id}`.
  2092  	GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"`
  2093  	// Path: The path of the file, with the repo root as the root of the path.
  2094  	Path string `json:"path,omitempty"`
  2095  	// RepoType: See RepoType above.
  2096  	//
  2097  	// Possible values:
  2098  	//   "UNKNOWN" - The default, unknown repo type. Don't use it, instead use one
  2099  	// of the other repo types.
  2100  	//   "CLOUD_SOURCE_REPOSITORIES" - A Google Cloud Source Repositories-hosted
  2101  	// repo.
  2102  	//   "GITHUB" - A GitHub-hosted repo not necessarily on "github.com" (i.e.
  2103  	// GitHub Enterprise).
  2104  	//   "BITBUCKET_SERVER" - A Bitbucket Server-hosted repo.
  2105  	//   "GITLAB" - A GitLab-hosted repo.
  2106  	//   "BITBUCKET_CLOUD" - A Bitbucket Cloud-hosted repo.
  2107  	RepoType string `json:"repoType,omitempty"`
  2108  	// Repository: The fully qualified resource name of the Repos API repository.
  2109  	// Either URI or repository can be specified. If unspecified, the repo from
  2110  	// which the trigger invocation originated is assumed to be the repo from which
  2111  	// to read the specified path.
  2112  	Repository string `json:"repository,omitempty"`
  2113  	// Revision: The branch, tag, arbitrary ref, or SHA version of the repo to use
  2114  	// when resolving the filename (optional). This field respects the same
  2115  	// syntax/resolution as described here: https://git-scm.com/docs/gitrevisions
  2116  	// If unspecified, the revision from which the trigger invocation originated is
  2117  	// assumed to be the revision from which to read the specified path.
  2118  	Revision string `json:"revision,omitempty"`
  2119  	// Uri: The URI of the repo. Either uri or repository can be specified. If
  2120  	// unspecified, the repo from which the trigger invocation originated is
  2121  	// assumed to be the repo from which to read the specified path.
  2122  	Uri string `json:"uri,omitempty"`
  2123  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to
  2124  	// unconditionally include in API requests. By default, fields with empty or
  2125  	// default values are omitted from API requests. See
  2126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2127  	// details.
  2128  	ForceSendFields []string `json:"-"`
  2129  	// NullFields is a list of field names (e.g. "BitbucketServerConfig") to
  2130  	// include in API requests with the JSON null value. By default, fields with
  2131  	// empty values are omitted from API requests. See
  2132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2133  	NullFields []string `json:"-"`
  2134  }
  2135  
  2136  func (s *GitFileSource) MarshalJSON() ([]byte, error) {
  2137  	type NoMethod GitFileSource
  2138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2139  }
  2140  
  2141  // GitHubEnterpriseConfig: GitHubEnterpriseConfig represents a configuration
  2142  // for a GitHub Enterprise server.
  2143  type GitHubEnterpriseConfig struct {
  2144  	// AppId: Required. The GitHub app id of the Cloud Build app on the GitHub
  2145  	// Enterprise server.
  2146  	AppId int64 `json:"appId,omitempty,string"`
  2147  	// CreateTime: Output only. Time when the installation was associated with the
  2148  	// project.
  2149  	CreateTime string `json:"createTime,omitempty"`
  2150  	// DisplayName: Name to display for this config.
  2151  	DisplayName string `json:"displayName,omitempty"`
  2152  	// HostUrl: The URL of the github enterprise host the configuration is for.
  2153  	HostUrl string `json:"hostUrl,omitempty"`
  2154  	// Name: Optional. The full resource name for the GitHubEnterpriseConfig For
  2155  	// example:
  2156  	// "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$co
  2157  	// nfig_id}"
  2158  	Name string `json:"name,omitempty"`
  2159  	// PeeredNetwork: Optional. The network to be used when reaching out to the
  2160  	// GitHub Enterprise server. The VPC network must be enabled for private
  2161  	// service connection. This should be set if the GitHub Enterprise server is
  2162  	// hosted on-premises and not reachable by public internet. If this field is
  2163  	// left empty, no network peering will occur and calls to the GitHub Enterprise
  2164  	// server will be made over the public internet. Must be in the format
  2165  	// `projects/{project}/global/networks/{network}`, where {project} is a project
  2166  	// number or id and {network} is the name of a VPC network in the project.
  2167  	PeeredNetwork string `json:"peeredNetwork,omitempty"`
  2168  	// Secrets: Names of secrets in Secret Manager.
  2169  	Secrets *GitHubEnterpriseSecrets `json:"secrets,omitempty"`
  2170  	// SslCa: Optional. SSL certificate to use for requests to GitHub Enterprise.
  2171  	SslCa string `json:"sslCa,omitempty"`
  2172  	// WebhookKey: The key that should be attached to webhook calls to the
  2173  	// ReceiveWebhook endpoint.
  2174  	WebhookKey string `json:"webhookKey,omitempty"`
  2175  
  2176  	// ServerResponse contains the HTTP response code and headers from the server.
  2177  	googleapi.ServerResponse `json:"-"`
  2178  	// ForceSendFields is a list of field names (e.g. "AppId") to unconditionally
  2179  	// include in API requests. By default, fields with empty or default values are
  2180  	// omitted from API requests. See
  2181  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2182  	// details.
  2183  	ForceSendFields []string `json:"-"`
  2184  	// NullFields is a list of field names (e.g. "AppId") to include in API
  2185  	// requests with the JSON null value. By default, fields with empty values are
  2186  	// omitted from API requests. See
  2187  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2188  	NullFields []string `json:"-"`
  2189  }
  2190  
  2191  func (s *GitHubEnterpriseConfig) MarshalJSON() ([]byte, error) {
  2192  	type NoMethod GitHubEnterpriseConfig
  2193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2194  }
  2195  
  2196  // GitHubEnterpriseSecrets: GitHubEnterpriseSecrets represents the names of all
  2197  // necessary secrets in Secret Manager for a GitHub Enterprise server. Format
  2198  // is: projects//secrets/.
  2199  type GitHubEnterpriseSecrets struct {
  2200  	// OauthClientIdName: The resource name for the OAuth client ID secret in
  2201  	// Secret Manager.
  2202  	OauthClientIdName string `json:"oauthClientIdName,omitempty"`
  2203  	// OauthClientIdVersionName: The resource name for the OAuth client ID secret
  2204  	// version in Secret Manager.
  2205  	OauthClientIdVersionName string `json:"oauthClientIdVersionName,omitempty"`
  2206  	// OauthSecretName: The resource name for the OAuth secret in Secret Manager.
  2207  	OauthSecretName string `json:"oauthSecretName,omitempty"`
  2208  	// OauthSecretVersionName: The resource name for the OAuth secret secret
  2209  	// version in Secret Manager.
  2210  	OauthSecretVersionName string `json:"oauthSecretVersionName,omitempty"`
  2211  	// PrivateKeyName: The resource name for the private key secret.
  2212  	PrivateKeyName string `json:"privateKeyName,omitempty"`
  2213  	// PrivateKeyVersionName: The resource name for the private key secret version.
  2214  	PrivateKeyVersionName string `json:"privateKeyVersionName,omitempty"`
  2215  	// WebhookSecretName: The resource name for the webhook secret in Secret
  2216  	// Manager.
  2217  	WebhookSecretName string `json:"webhookSecretName,omitempty"`
  2218  	// WebhookSecretVersionName: The resource name for the webhook secret secret
  2219  	// version in Secret Manager.
  2220  	WebhookSecretVersionName string `json:"webhookSecretVersionName,omitempty"`
  2221  	// ForceSendFields is a list of field names (e.g. "OauthClientIdName") to
  2222  	// unconditionally include in API requests. By default, fields with empty or
  2223  	// default values are omitted from API requests. See
  2224  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2225  	// details.
  2226  	ForceSendFields []string `json:"-"`
  2227  	// NullFields is a list of field names (e.g. "OauthClientIdName") to include in
  2228  	// API requests with the JSON null value. By default, fields with empty values
  2229  	// are omitted from API requests. See
  2230  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2231  	NullFields []string `json:"-"`
  2232  }
  2233  
  2234  func (s *GitHubEnterpriseSecrets) MarshalJSON() ([]byte, error) {
  2235  	type NoMethod GitHubEnterpriseSecrets
  2236  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2237  }
  2238  
  2239  // GitHubEventsConfig: GitHubEventsConfig describes the configuration of a
  2240  // trigger that creates a build whenever a GitHub event is received.
  2241  type GitHubEventsConfig struct {
  2242  	// EnterpriseConfigResourceName: Optional. The resource name of the github
  2243  	// enterprise config that should be applied to this installation. For example:
  2244  	// "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$co
  2245  	// nfig_id}"
  2246  	EnterpriseConfigResourceName string `json:"enterpriseConfigResourceName,omitempty"`
  2247  	// InstallationId: The installationID that emits the GitHub event.
  2248  	InstallationId int64 `json:"installationId,omitempty,string"`
  2249  	// Name: Name of the repository. For example: The name for
  2250  	// https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".
  2251  	Name string `json:"name,omitempty"`
  2252  	// Owner: Owner of the repository. For example: The owner for
  2253  	// https://github.com/googlecloudplatform/cloud-builders is
  2254  	// "googlecloudplatform".
  2255  	Owner string `json:"owner,omitempty"`
  2256  	// PullRequest: filter to match changes in pull requests.
  2257  	PullRequest *PullRequestFilter `json:"pullRequest,omitempty"`
  2258  	// Push: filter to match changes in refs like branches, tags.
  2259  	Push *PushFilter `json:"push,omitempty"`
  2260  	// ForceSendFields is a list of field names (e.g.
  2261  	// "EnterpriseConfigResourceName") to unconditionally include in API requests.
  2262  	// By default, fields with empty or default values are omitted from API
  2263  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  2264  	// for more details.
  2265  	ForceSendFields []string `json:"-"`
  2266  	// NullFields is a list of field names (e.g. "EnterpriseConfigResourceName") to
  2267  	// include in API requests with the JSON null value. By default, fields with
  2268  	// empty values are omitted from API requests. See
  2269  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2270  	NullFields []string `json:"-"`
  2271  }
  2272  
  2273  func (s *GitHubEventsConfig) MarshalJSON() ([]byte, error) {
  2274  	type NoMethod GitHubEventsConfig
  2275  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2276  }
  2277  
  2278  // GitLabConfig: GitLabConfig represents the configuration for a GitLab
  2279  // integration.
  2280  type GitLabConfig struct {
  2281  	// ConnectedRepositories: Connected GitLab.com or GitLabEnterprise repositories
  2282  	// for this config.
  2283  	ConnectedRepositories []*GitLabRepositoryId `json:"connectedRepositories,omitempty"`
  2284  	// CreateTime: Output only. Time when the config was created.
  2285  	CreateTime string `json:"createTime,omitempty"`
  2286  	// EnterpriseConfig: Optional. GitLabEnterprise config.
  2287  	EnterpriseConfig *GitLabEnterpriseConfig `json:"enterpriseConfig,omitempty"`
  2288  	// Name: The resource name for the config.
  2289  	Name string `json:"name,omitempty"`
  2290  	// Secrets: Required. Secret Manager secrets needed by the config.
  2291  	Secrets *GitLabSecrets `json:"secrets,omitempty"`
  2292  	// Username: Username of the GitLab.com or GitLab Enterprise account Cloud
  2293  	// Build will use.
  2294  	Username string `json:"username,omitempty"`
  2295  	// WebhookKey: Output only. UUID included in webhook requests. The UUID is used
  2296  	// to look up the corresponding config.
  2297  	WebhookKey string `json:"webhookKey,omitempty"`
  2298  
  2299  	// ServerResponse contains the HTTP response code and headers from the server.
  2300  	googleapi.ServerResponse `json:"-"`
  2301  	// ForceSendFields is a list of field names (e.g. "ConnectedRepositories") to
  2302  	// unconditionally include in API requests. By default, fields with empty or
  2303  	// default values are omitted from API requests. See
  2304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2305  	// details.
  2306  	ForceSendFields []string `json:"-"`
  2307  	// NullFields is a list of field names (e.g. "ConnectedRepositories") to
  2308  	// include in API requests with the JSON null value. By default, fields with
  2309  	// empty values are omitted from API requests. See
  2310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2311  	NullFields []string `json:"-"`
  2312  }
  2313  
  2314  func (s *GitLabConfig) MarshalJSON() ([]byte, error) {
  2315  	type NoMethod GitLabConfig
  2316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2317  }
  2318  
  2319  // GitLabConnectedRepository: GitLabConnectedRepository represents a GitLab
  2320  // connected repository request response.
  2321  type GitLabConnectedRepository struct {
  2322  	// Parent: The name of the `GitLabConfig` that added connected repository.
  2323  	// Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}`
  2324  	Parent string `json:"parent,omitempty"`
  2325  	// Repo: The GitLab repositories to connect.
  2326  	Repo *GitLabRepositoryId `json:"repo,omitempty"`
  2327  	// Status: Output only. The status of the repo connection request.
  2328  	Status *Status `json:"status,omitempty"`
  2329  	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
  2330  	// include in API requests. By default, fields with empty or default values are
  2331  	// omitted from API requests. See
  2332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2333  	// details.
  2334  	ForceSendFields []string `json:"-"`
  2335  	// NullFields is a list of field names (e.g. "Parent") to include in API
  2336  	// requests with the JSON null value. By default, fields with empty values are
  2337  	// omitted from API requests. See
  2338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2339  	NullFields []string `json:"-"`
  2340  }
  2341  
  2342  func (s *GitLabConnectedRepository) MarshalJSON() ([]byte, error) {
  2343  	type NoMethod GitLabConnectedRepository
  2344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2345  }
  2346  
  2347  // GitLabEnterpriseConfig: GitLabEnterpriseConfig represents the configuration
  2348  // for a GitLabEnterprise integration.
  2349  type GitLabEnterpriseConfig struct {
  2350  	// HostUri: Immutable. The URI of the GitlabEnterprise host.
  2351  	HostUri string `json:"hostUri,omitempty"`
  2352  	// ServiceDirectoryConfig: The Service Directory configuration to be used when
  2353  	// reaching out to the GitLab Enterprise instance.
  2354  	ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`
  2355  	// SslCa: The SSL certificate to use in requests to GitLab Enterprise
  2356  	// instances.
  2357  	SslCa string `json:"sslCa,omitempty"`
  2358  	// ForceSendFields is a list of field names (e.g. "HostUri") to unconditionally
  2359  	// include in API requests. By default, fields with empty or default values are
  2360  	// omitted from API requests. See
  2361  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2362  	// details.
  2363  	ForceSendFields []string `json:"-"`
  2364  	// NullFields is a list of field names (e.g. "HostUri") to include in API
  2365  	// requests with the JSON null value. By default, fields with empty values are
  2366  	// omitted from API requests. See
  2367  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2368  	NullFields []string `json:"-"`
  2369  }
  2370  
  2371  func (s *GitLabEnterpriseConfig) MarshalJSON() ([]byte, error) {
  2372  	type NoMethod GitLabEnterpriseConfig
  2373  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2374  }
  2375  
  2376  // GitLabEventsConfig: GitLabEventsConfig describes the configuration of a
  2377  // trigger that creates a build whenever a GitLab event is received.
  2378  type GitLabEventsConfig struct {
  2379  	// GitlabConfig: Output only. The GitLabConfig specified in the
  2380  	// gitlab_config_resource field.
  2381  	GitlabConfig *GitLabConfig `json:"gitlabConfig,omitempty"`
  2382  	// GitlabConfigResource: The GitLab config resource that this trigger config
  2383  	// maps to.
  2384  	GitlabConfigResource string `json:"gitlabConfigResource,omitempty"`
  2385  	// ProjectNamespace: Namespace of the GitLab project.
  2386  	ProjectNamespace string `json:"projectNamespace,omitempty"`
  2387  	// PullRequest: Filter to match changes in pull requests.
  2388  	PullRequest *PullRequestFilter `json:"pullRequest,omitempty"`
  2389  	// Push: Filter to match changes in refs like branches, tags.
  2390  	Push *PushFilter `json:"push,omitempty"`
  2391  	// ForceSendFields is a list of field names (e.g. "GitlabConfig") to
  2392  	// unconditionally include in API requests. By default, fields with empty or
  2393  	// default values are omitted from API requests. See
  2394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2395  	// details.
  2396  	ForceSendFields []string `json:"-"`
  2397  	// NullFields is a list of field names (e.g. "GitlabConfig") to include in API
  2398  	// requests with the JSON null value. By default, fields with empty values are
  2399  	// omitted from API requests. See
  2400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2401  	NullFields []string `json:"-"`
  2402  }
  2403  
  2404  func (s *GitLabEventsConfig) MarshalJSON() ([]byte, error) {
  2405  	type NoMethod GitLabEventsConfig
  2406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2407  }
  2408  
  2409  // GitLabRepository: Proto Representing a GitLabRepository
  2410  type GitLabRepository struct {
  2411  	// BrowseUri: Link to the browse repo page on the GitLab instance
  2412  	BrowseUri string `json:"browseUri,omitempty"`
  2413  	// Description: Description of the repository
  2414  	Description string `json:"description,omitempty"`
  2415  	// DisplayName: Display name of the repository
  2416  	DisplayName string `json:"displayName,omitempty"`
  2417  	// Name: The resource name of the repository
  2418  	Name string `json:"name,omitempty"`
  2419  	// RepositoryId: Identifier for a repository
  2420  	RepositoryId *GitLabRepositoryId `json:"repositoryId,omitempty"`
  2421  	// ForceSendFields is a list of field names (e.g. "BrowseUri") to
  2422  	// unconditionally include in API requests. By default, fields with empty or
  2423  	// default values are omitted from API requests. See
  2424  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2425  	// details.
  2426  	ForceSendFields []string `json:"-"`
  2427  	// NullFields is a list of field names (e.g. "BrowseUri") to include in API
  2428  	// requests with the JSON null value. By default, fields with empty values are
  2429  	// omitted from API requests. See
  2430  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2431  	NullFields []string `json:"-"`
  2432  }
  2433  
  2434  func (s *GitLabRepository) MarshalJSON() ([]byte, error) {
  2435  	type NoMethod GitLabRepository
  2436  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2437  }
  2438  
  2439  // GitLabRepositoryId: GitLabRepositoryId identifies a specific repository
  2440  // hosted on GitLab.com or GitLabEnterprise
  2441  type GitLabRepositoryId struct {
  2442  	// Id: Required. Identifier for the repository. example:
  2443  	// "namespace/project-slug", namespace is usually the username or group ID
  2444  	Id string `json:"id,omitempty"`
  2445  	// WebhookId: Output only. The ID of the webhook that was created for receiving
  2446  	// events from this repo. We only create and manage a single webhook for each
  2447  	// repo.
  2448  	WebhookId int64 `json:"webhookId,omitempty"`
  2449  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  2450  	// include in API requests. By default, fields with empty or default values are
  2451  	// omitted from API requests. See
  2452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2453  	// details.
  2454  	ForceSendFields []string `json:"-"`
  2455  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  2456  	// with the JSON null value. By default, fields with empty values are omitted
  2457  	// from API requests. See
  2458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2459  	NullFields []string `json:"-"`
  2460  }
  2461  
  2462  func (s *GitLabRepositoryId) MarshalJSON() ([]byte, error) {
  2463  	type NoMethod GitLabRepositoryId
  2464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2465  }
  2466  
  2467  // GitLabSecrets: GitLabSecrets represents the secrets in Secret Manager for a
  2468  // GitLab integration.
  2469  type GitLabSecrets struct {
  2470  	// ApiAccessTokenVersion: Required. The resource name for the api access
  2471  	// token’s secret version
  2472  	ApiAccessTokenVersion string `json:"apiAccessTokenVersion,omitempty"`
  2473  	// ApiKeyVersion: Required. Immutable. API Key that will be attached to webhook
  2474  	// requests from GitLab to Cloud Build.
  2475  	ApiKeyVersion string `json:"apiKeyVersion,omitempty"`
  2476  	// ReadAccessTokenVersion: Required. The resource name for the read access
  2477  	// token’s secret version
  2478  	ReadAccessTokenVersion string `json:"readAccessTokenVersion,omitempty"`
  2479  	// WebhookSecretVersion: Required. Immutable. The resource name for the webhook
  2480  	// secret’s secret version. Once this field has been set, it cannot be
  2481  	// changed. If you need to change it, please create another GitLabConfig.
  2482  	WebhookSecretVersion string `json:"webhookSecretVersion,omitempty"`
  2483  	// ForceSendFields is a list of field names (e.g. "ApiAccessTokenVersion") to
  2484  	// unconditionally include in API requests. By default, fields with empty or
  2485  	// default values are omitted from API requests. See
  2486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2487  	// details.
  2488  	ForceSendFields []string `json:"-"`
  2489  	// NullFields is a list of field names (e.g. "ApiAccessTokenVersion") to
  2490  	// include in API requests with the JSON null value. By default, fields with
  2491  	// empty values are omitted from API requests. See
  2492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2493  	NullFields []string `json:"-"`
  2494  }
  2495  
  2496  func (s *GitLabSecrets) MarshalJSON() ([]byte, error) {
  2497  	type NoMethod GitLabSecrets
  2498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2499  }
  2500  
  2501  // GitRepoSource: GitRepoSource describes a repo and ref of a code repository.
  2502  type GitRepoSource struct {
  2503  	// BitbucketServerConfig: The full resource name of the bitbucket server
  2504  	// config. Format:
  2505  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
  2506  	BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"`
  2507  	// GithubEnterpriseConfig: The full resource name of the github enterprise
  2508  	// config. Format:
  2509  	// `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
  2510  	// `projects/{project}/githubEnterpriseConfigs/{id}`.
  2511  	GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"`
  2512  	// Ref: The branch or tag to use. Must start with "refs/" (required).
  2513  	Ref string `json:"ref,omitempty"`
  2514  	// RepoType: See RepoType below.
  2515  	//
  2516  	// Possible values:
  2517  	//   "UNKNOWN" - The default, unknown repo type. Don't use it, instead use one
  2518  	// of the other repo types.
  2519  	//   "CLOUD_SOURCE_REPOSITORIES" - A Google Cloud Source Repositories-hosted
  2520  	// repo.
  2521  	//   "GITHUB" - A GitHub-hosted repo not necessarily on "github.com" (i.e.
  2522  	// GitHub Enterprise).
  2523  	//   "BITBUCKET_SERVER" - A Bitbucket Server-hosted repo.
  2524  	//   "GITLAB" - A GitLab-hosted repo.
  2525  	//   "BITBUCKET_CLOUD" - A Bitbucket Cloud-hosted repo.
  2526  	RepoType string `json:"repoType,omitempty"`
  2527  	// Repository: The connected repository resource name, in the format
  2528  	// `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or
  2529  	// `repository` can be specified and is required.
  2530  	Repository string `json:"repository,omitempty"`
  2531  	// Uri: The URI of the repo (e.g. https://github.com/user/repo.git). Either
  2532  	// `uri` or `repository` can be specified and is required.
  2533  	Uri string `json:"uri,omitempty"`
  2534  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to
  2535  	// unconditionally include in API requests. By default, fields with empty or
  2536  	// default values are omitted from API requests. See
  2537  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2538  	// details.
  2539  	ForceSendFields []string `json:"-"`
  2540  	// NullFields is a list of field names (e.g. "BitbucketServerConfig") to
  2541  	// include in API requests with the JSON null value. By default, fields with
  2542  	// empty values are omitted from API requests. See
  2543  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2544  	NullFields []string `json:"-"`
  2545  }
  2546  
  2547  func (s *GitRepoSource) MarshalJSON() ([]byte, error) {
  2548  	type NoMethod GitRepoSource
  2549  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2550  }
  2551  
  2552  // GitSource: Location of the source in any accessible Git repository.
  2553  type GitSource struct {
  2554  	// Dir: Directory, relative to the source root, in which to run the build. This
  2555  	// must be a relative path. If a step's `dir` is specified and is an absolute
  2556  	// path, this value is ignored for that step's execution.
  2557  	Dir string `json:"dir,omitempty"`
  2558  	// Revision: The revision to fetch from the Git repository such as a branch, a
  2559  	// tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the
  2560  	// revision from the Git repository; therefore make sure that the string you
  2561  	// provide for `revision` is parsable by the command. For information on string
  2562  	// values accepted by `git fetch`, see
  2563  	// https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information
  2564  	// on `git fetch`, see https://git-scm.com/docs/git-fetch.
  2565  	Revision string `json:"revision,omitempty"`
  2566  	// Url: Location of the Git repo to build. This will be used as a `git remote`,
  2567  	// see https://git-scm.com/docs/git-remote.
  2568  	Url string `json:"url,omitempty"`
  2569  	// ForceSendFields is a list of field names (e.g. "Dir") to unconditionally
  2570  	// include in API requests. By default, fields with empty or default values are
  2571  	// omitted from API requests. See
  2572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2573  	// details.
  2574  	ForceSendFields []string `json:"-"`
  2575  	// NullFields is a list of field names (e.g. "Dir") to include in API requests
  2576  	// with the JSON null value. By default, fields with empty values are omitted
  2577  	// from API requests. See
  2578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2579  	NullFields []string `json:"-"`
  2580  }
  2581  
  2582  func (s *GitSource) MarshalJSON() ([]byte, error) {
  2583  	type NoMethod GitSource
  2584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2585  }
  2586  
  2587  // Hash: Container message for hash values.
  2588  type Hash struct {
  2589  	// Type: The type of hash that was performed.
  2590  	//
  2591  	// Possible values:
  2592  	//   "NONE" - No hash requested.
  2593  	//   "SHA256" - Use a sha256 hash.
  2594  	//   "MD5" - Use a md5 hash.
  2595  	//   "SHA512" - Use a sha512 hash.
  2596  	Type string `json:"type,omitempty"`
  2597  	// Value: The hash value.
  2598  	Value string `json:"value,omitempty"`
  2599  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  2600  	// include in API requests. By default, fields with empty or default values are
  2601  	// omitted from API requests. See
  2602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2603  	// details.
  2604  	ForceSendFields []string `json:"-"`
  2605  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  2606  	// with the JSON null value. By default, fields with empty values are omitted
  2607  	// from API requests. See
  2608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2609  	NullFields []string `json:"-"`
  2610  }
  2611  
  2612  func (s *Hash) MarshalJSON() ([]byte, error) {
  2613  	type NoMethod Hash
  2614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2615  }
  2616  
  2617  // HttpBody: Message that represents an arbitrary HTTP body. It should only be
  2618  // used for payload formats that can't be represented as JSON, such as raw
  2619  // binary or an HTML page. This message can be used both in streaming and
  2620  // non-streaming API methods in the request as well as the response. It can be
  2621  // used as a top-level request field, which is convenient if one wants to
  2622  // extract parameters from either the URL or HTTP template into the request
  2623  // fields and also want access to the raw HTTP body. Example: message
  2624  // GetResourceRequest { // A unique request id. string request_id = 1; // The
  2625  // raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
  2626  // service ResourceService { rpc GetResource(GetResourceRequest) returns
  2627  // (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
  2628  // (google.protobuf.Empty); } Example with streaming methods: service
  2629  // CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
  2630  // google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
  2631  // (stream google.api.HttpBody); } Use of this type only changes how the
  2632  // request and response bodies are handled, all other features will continue to
  2633  // work unchanged.
  2634  type HttpBody struct {
  2635  	// ContentType: The HTTP Content-Type header value specifying the content type
  2636  	// of the body.
  2637  	ContentType string `json:"contentType,omitempty"`
  2638  	// Data: The HTTP request/response body as raw binary.
  2639  	Data string `json:"data,omitempty"`
  2640  	// Extensions: Application specific response metadata. Must be set in the first
  2641  	// response for streaming APIs.
  2642  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
  2643  	// ForceSendFields is a list of field names (e.g. "ContentType") to
  2644  	// unconditionally include in API requests. By default, fields with empty or
  2645  	// default values are omitted from API requests. See
  2646  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2647  	// details.
  2648  	ForceSendFields []string `json:"-"`
  2649  	// NullFields is a list of field names (e.g. "ContentType") to include in API
  2650  	// requests with the JSON null value. By default, fields with empty values are
  2651  	// omitted from API requests. See
  2652  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2653  	NullFields []string `json:"-"`
  2654  }
  2655  
  2656  func (s *HttpBody) MarshalJSON() ([]byte, error) {
  2657  	type NoMethod HttpBody
  2658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2659  }
  2660  
  2661  // HttpConfig: HttpConfig is a configuration for HTTP related git operations.
  2662  type HttpConfig struct {
  2663  	// ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The
  2664  	// proxy URL should be in format protocol://@]proxyhost[:port].
  2665  	ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"`
  2666  	// ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to
  2667  	// unconditionally include in API requests. By default, fields with empty or
  2668  	// default values are omitted from API requests. See
  2669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2670  	// details.
  2671  	ForceSendFields []string `json:"-"`
  2672  	// NullFields is a list of field names (e.g. "ProxySecretVersionName") to
  2673  	// include in API requests with the JSON null value. By default, fields with
  2674  	// empty values are omitted from API requests. See
  2675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2676  	NullFields []string `json:"-"`
  2677  }
  2678  
  2679  func (s *HttpConfig) MarshalJSON() ([]byte, error) {
  2680  	type NoMethod HttpConfig
  2681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2682  }
  2683  
  2684  // InlineSecret: Pairs a set of secret environment variables mapped to
  2685  // encrypted values with the Cloud KMS key to use to decrypt the value.
  2686  type InlineSecret struct {
  2687  	// EnvMap: Map of environment variable name to its encrypted value. Secret
  2688  	// environment variables must be unique across all of a build's secrets, and
  2689  	// must be used by at least one build step. Values can be at most 64 KB in
  2690  	// size. There can be at most 100 secret values across all of a build's
  2691  	// secrets.
  2692  	EnvMap map[string]string `json:"envMap,omitempty"`
  2693  	// KmsKeyName: Resource name of Cloud KMS crypto key to decrypt the encrypted
  2694  	// value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
  2695  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  2696  	// ForceSendFields is a list of field names (e.g. "EnvMap") to unconditionally
  2697  	// include in API requests. By default, fields with empty or default values are
  2698  	// omitted from API requests. See
  2699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2700  	// details.
  2701  	ForceSendFields []string `json:"-"`
  2702  	// NullFields is a list of field names (e.g. "EnvMap") to include in API
  2703  	// requests with the JSON null value. By default, fields with empty values are
  2704  	// omitted from API requests. See
  2705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2706  	NullFields []string `json:"-"`
  2707  }
  2708  
  2709  func (s *InlineSecret) MarshalJSON() ([]byte, error) {
  2710  	type NoMethod InlineSecret
  2711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2712  }
  2713  
  2714  // ListBitbucketServerConfigsResponse: RPC response object returned by
  2715  // ListBitbucketServerConfigs RPC method.
  2716  type ListBitbucketServerConfigsResponse struct {
  2717  	// BitbucketServerConfigs: A list of BitbucketServerConfigs
  2718  	BitbucketServerConfigs []*BitbucketServerConfig `json:"bitbucketServerConfigs,omitempty"`
  2719  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2720  	// page. If this field is omitted, there are no subsequent pages.
  2721  	NextPageToken string `json:"nextPageToken,omitempty"`
  2722  
  2723  	// ServerResponse contains the HTTP response code and headers from the server.
  2724  	googleapi.ServerResponse `json:"-"`
  2725  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfigs") to
  2726  	// unconditionally include in API requests. By default, fields with empty or
  2727  	// default values are omitted from API requests. See
  2728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2729  	// details.
  2730  	ForceSendFields []string `json:"-"`
  2731  	// NullFields is a list of field names (e.g. "BitbucketServerConfigs") to
  2732  	// include in API requests with the JSON null value. By default, fields with
  2733  	// empty values are omitted from API requests. See
  2734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2735  	NullFields []string `json:"-"`
  2736  }
  2737  
  2738  func (s *ListBitbucketServerConfigsResponse) MarshalJSON() ([]byte, error) {
  2739  	type NoMethod ListBitbucketServerConfigsResponse
  2740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2741  }
  2742  
  2743  // ListBitbucketServerRepositoriesResponse: RPC response object returned by the
  2744  // ListBitbucketServerRepositories RPC method.
  2745  type ListBitbucketServerRepositoriesResponse struct {
  2746  	// BitbucketServerRepositories: List of Bitbucket Server repositories.
  2747  	BitbucketServerRepositories []*BitbucketServerRepository `json:"bitbucketServerRepositories,omitempty"`
  2748  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2749  	// page. If this field is omitted, there are no subsequent pages.
  2750  	NextPageToken string `json:"nextPageToken,omitempty"`
  2751  
  2752  	// ServerResponse contains the HTTP response code and headers from the server.
  2753  	googleapi.ServerResponse `json:"-"`
  2754  	// ForceSendFields is a list of field names (e.g.
  2755  	// "BitbucketServerRepositories") to unconditionally include in API requests.
  2756  	// By default, fields with empty or default values are omitted from API
  2757  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  2758  	// for more details.
  2759  	ForceSendFields []string `json:"-"`
  2760  	// NullFields is a list of field names (e.g. "BitbucketServerRepositories") to
  2761  	// include in API requests with the JSON null value. By default, fields with
  2762  	// empty values are omitted from API requests. See
  2763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2764  	NullFields []string `json:"-"`
  2765  }
  2766  
  2767  func (s *ListBitbucketServerRepositoriesResponse) MarshalJSON() ([]byte, error) {
  2768  	type NoMethod ListBitbucketServerRepositoriesResponse
  2769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2770  }
  2771  
  2772  // ListBuildTriggersResponse: Response containing existing `BuildTriggers`.
  2773  type ListBuildTriggersResponse struct {
  2774  	// NextPageToken: Token to receive the next page of results.
  2775  	NextPageToken string `json:"nextPageToken,omitempty"`
  2776  	// Triggers: `BuildTriggers` for the project, sorted by `create_time`
  2777  	// descending.
  2778  	Triggers []*BuildTrigger `json:"triggers,omitempty"`
  2779  
  2780  	// ServerResponse contains the HTTP response code and headers from the server.
  2781  	googleapi.ServerResponse `json:"-"`
  2782  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2783  	// unconditionally include in API requests. By default, fields with empty or
  2784  	// default values are omitted from API requests. See
  2785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2786  	// details.
  2787  	ForceSendFields []string `json:"-"`
  2788  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2789  	// requests with the JSON null value. By default, fields with empty values are
  2790  	// omitted from API requests. See
  2791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2792  	NullFields []string `json:"-"`
  2793  }
  2794  
  2795  func (s *ListBuildTriggersResponse) MarshalJSON() ([]byte, error) {
  2796  	type NoMethod ListBuildTriggersResponse
  2797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2798  }
  2799  
  2800  // ListBuildsResponse: Response including listed builds.
  2801  type ListBuildsResponse struct {
  2802  	// Builds: Builds will be sorted by `create_time`, descending.
  2803  	Builds []*Build `json:"builds,omitempty"`
  2804  	// NextPageToken: Token to receive the next page of results. This will be
  2805  	// absent if the end of the response list has been reached.
  2806  	NextPageToken string `json:"nextPageToken,omitempty"`
  2807  
  2808  	// ServerResponse contains the HTTP response code and headers from the server.
  2809  	googleapi.ServerResponse `json:"-"`
  2810  	// ForceSendFields is a list of field names (e.g. "Builds") to unconditionally
  2811  	// include in API requests. By default, fields with empty or default values are
  2812  	// omitted from API requests. See
  2813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2814  	// details.
  2815  	ForceSendFields []string `json:"-"`
  2816  	// NullFields is a list of field names (e.g. "Builds") to include in API
  2817  	// requests with the JSON null value. By default, fields with empty values are
  2818  	// omitted from API requests. See
  2819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2820  	NullFields []string `json:"-"`
  2821  }
  2822  
  2823  func (s *ListBuildsResponse) MarshalJSON() ([]byte, error) {
  2824  	type NoMethod ListBuildsResponse
  2825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2826  }
  2827  
  2828  // ListGitLabConfigsResponse: RPC response object returned by ListGitLabConfigs
  2829  // RPC method.
  2830  type ListGitLabConfigsResponse struct {
  2831  	// GitlabConfigs: A list of GitLabConfigs
  2832  	GitlabConfigs []*GitLabConfig `json:"gitlabConfigs,omitempty"`
  2833  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2834  	// page If this field is omitted, there are no subsequent pages.
  2835  	NextPageToken string `json:"nextPageToken,omitempty"`
  2836  
  2837  	// ServerResponse contains the HTTP response code and headers from the server.
  2838  	googleapi.ServerResponse `json:"-"`
  2839  	// ForceSendFields is a list of field names (e.g. "GitlabConfigs") to
  2840  	// unconditionally include in API requests. By default, fields with empty or
  2841  	// default values are omitted from API requests. See
  2842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2843  	// details.
  2844  	ForceSendFields []string `json:"-"`
  2845  	// NullFields is a list of field names (e.g. "GitlabConfigs") to include in API
  2846  	// requests with the JSON null value. By default, fields with empty values are
  2847  	// omitted from API requests. See
  2848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2849  	NullFields []string `json:"-"`
  2850  }
  2851  
  2852  func (s *ListGitLabConfigsResponse) MarshalJSON() ([]byte, error) {
  2853  	type NoMethod ListGitLabConfigsResponse
  2854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2855  }
  2856  
  2857  // ListGitLabRepositoriesResponse: RPC response object returned by the
  2858  // ListGitLabRepositories RPC method.
  2859  type ListGitLabRepositoriesResponse struct {
  2860  	// GitlabRepositories: List of GitLab repositories
  2861  	GitlabRepositories []*GitLabRepository `json:"gitlabRepositories,omitempty"`
  2862  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2863  	// page. If this field is omitted, there are no subsequent pages.
  2864  	NextPageToken string `json:"nextPageToken,omitempty"`
  2865  
  2866  	// ServerResponse contains the HTTP response code and headers from the server.
  2867  	googleapi.ServerResponse `json:"-"`
  2868  	// ForceSendFields is a list of field names (e.g. "GitlabRepositories") to
  2869  	// unconditionally include in API requests. By default, fields with empty or
  2870  	// default values are omitted from API requests. See
  2871  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2872  	// details.
  2873  	ForceSendFields []string `json:"-"`
  2874  	// NullFields is a list of field names (e.g. "GitlabRepositories") to include
  2875  	// in API requests with the JSON null value. By default, fields with empty
  2876  	// values are omitted from API requests. See
  2877  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2878  	NullFields []string `json:"-"`
  2879  }
  2880  
  2881  func (s *ListGitLabRepositoriesResponse) MarshalJSON() ([]byte, error) {
  2882  	type NoMethod ListGitLabRepositoriesResponse
  2883  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2884  }
  2885  
  2886  // ListGithubEnterpriseConfigsResponse: RPC response object returned by
  2887  // ListGithubEnterpriseConfigs RPC method.
  2888  type ListGithubEnterpriseConfigsResponse struct {
  2889  	// Configs: A list of GitHubEnterpriseConfigs
  2890  	Configs []*GitHubEnterpriseConfig `json:"configs,omitempty"`
  2891  
  2892  	// ServerResponse contains the HTTP response code and headers from the server.
  2893  	googleapi.ServerResponse `json:"-"`
  2894  	// ForceSendFields is a list of field names (e.g. "Configs") to unconditionally
  2895  	// include in API requests. By default, fields with empty or default values are
  2896  	// omitted from API requests. See
  2897  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2898  	// details.
  2899  	ForceSendFields []string `json:"-"`
  2900  	// NullFields is a list of field names (e.g. "Configs") to include in API
  2901  	// requests with the JSON null value. By default, fields with empty values are
  2902  	// omitted from API requests. See
  2903  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2904  	NullFields []string `json:"-"`
  2905  }
  2906  
  2907  func (s *ListGithubEnterpriseConfigsResponse) MarshalJSON() ([]byte, error) {
  2908  	type NoMethod ListGithubEnterpriseConfigsResponse
  2909  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2910  }
  2911  
  2912  // ListWorkerPoolsResponse: Response containing existing `WorkerPools`.
  2913  type ListWorkerPoolsResponse struct {
  2914  	// NextPageToken: Continuation token used to page through large result sets.
  2915  	// Provide this value in a subsequent ListWorkerPoolsRequest to return the next
  2916  	// page of results.
  2917  	NextPageToken string `json:"nextPageToken,omitempty"`
  2918  	// WorkerPools: `WorkerPools` for the specified project.
  2919  	WorkerPools []*WorkerPool `json:"workerPools,omitempty"`
  2920  
  2921  	// ServerResponse contains the HTTP response code and headers from the server.
  2922  	googleapi.ServerResponse `json:"-"`
  2923  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2924  	// unconditionally include in API requests. By default, fields with empty or
  2925  	// default values are omitted from API requests. See
  2926  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2927  	// details.
  2928  	ForceSendFields []string `json:"-"`
  2929  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2930  	// requests with the JSON null value. By default, fields with empty values are
  2931  	// omitted from API requests. See
  2932  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2933  	NullFields []string `json:"-"`
  2934  }
  2935  
  2936  func (s *ListWorkerPoolsResponse) MarshalJSON() ([]byte, error) {
  2937  	type NoMethod ListWorkerPoolsResponse
  2938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2939  }
  2940  
  2941  // MavenArtifact: A Maven artifact to upload to Artifact Registry upon
  2942  // successful completion of all build steps.
  2943  type MavenArtifact struct {
  2944  	// ArtifactId: Maven `artifactId` value used when uploading the artifact to
  2945  	// Artifact Registry.
  2946  	ArtifactId string `json:"artifactId,omitempty"`
  2947  	// GroupId: Maven `groupId` value used when uploading the artifact to Artifact
  2948  	// Registry.
  2949  	GroupId string `json:"groupId,omitempty"`
  2950  	// Path: Path to an artifact in the build's workspace to be uploaded to
  2951  	// Artifact Registry. This can be either an absolute path, e.g.
  2952  	// /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from
  2953  	// /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
  2954  	Path string `json:"path,omitempty"`
  2955  	// Repository: Artifact Registry repository, in the form
  2956  	// "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the
  2957  	// workspace specified by path will be uploaded to Artifact Registry with this
  2958  	// location as a prefix.
  2959  	Repository string `json:"repository,omitempty"`
  2960  	// Version: Maven `version` value used when uploading the artifact to Artifact
  2961  	// Registry.
  2962  	Version string `json:"version,omitempty"`
  2963  	// ForceSendFields is a list of field names (e.g. "ArtifactId") to
  2964  	// unconditionally include in API requests. By default, fields with empty or
  2965  	// default values are omitted from API requests. See
  2966  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2967  	// details.
  2968  	ForceSendFields []string `json:"-"`
  2969  	// NullFields is a list of field names (e.g. "ArtifactId") to include in API
  2970  	// requests with the JSON null value. By default, fields with empty values are
  2971  	// omitted from API requests. See
  2972  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2973  	NullFields []string `json:"-"`
  2974  }
  2975  
  2976  func (s *MavenArtifact) MarshalJSON() ([]byte, error) {
  2977  	type NoMethod MavenArtifact
  2978  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2979  }
  2980  
  2981  // NetworkConfig: Defines the network configuration for the pool.
  2982  type NetworkConfig struct {
  2983  	// EgressOption: Option to configure network egress for the workers.
  2984  	//
  2985  	// Possible values:
  2986  	//   "EGRESS_OPTION_UNSPECIFIED" - If set, defaults to PUBLIC_EGRESS.
  2987  	//   "NO_PUBLIC_EGRESS" - If set, workers are created without any public
  2988  	// address, which prevents network egress to public IPs unless a network proxy
  2989  	// is configured.
  2990  	//   "PUBLIC_EGRESS" - If set, workers are created with a public address which
  2991  	// allows for public internet egress.
  2992  	EgressOption string `json:"egressOption,omitempty"`
  2993  	// PeeredNetwork: Required. Immutable. The network definition that the workers
  2994  	// are peered to. If this section is left empty, the workers will be peered to
  2995  	// `WorkerPool.project_id` on the service producer network. Must be in the
  2996  	// format `projects/{project}/global/networks/{network}`, where `{project}` is
  2997  	// a project number, such as `12345`, and `{network}` is the name of a VPC
  2998  	// network in the project. See Understanding network configuration options
  2999  	// (https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
  3000  	PeeredNetwork string `json:"peeredNetwork,omitempty"`
  3001  	// PeeredNetworkIpRange: Immutable. Subnet IP range within the peered network.
  3002  	// This is specified in CIDR notation with a slash and the subnet prefix size.
  3003  	// You can optionally specify an IP address before the subnet prefix value.
  3004  	// e.g. `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with
  3005  	// a prefix size of 29 bits. `/16` would specify a prefix size of 16 bits, with
  3006  	// an automatically determined IP within the peered VPC. If unspecified, a
  3007  	// value of `/24` will be used.
  3008  	PeeredNetworkIpRange string `json:"peeredNetworkIpRange,omitempty"`
  3009  	// ForceSendFields is a list of field names (e.g. "EgressOption") to
  3010  	// unconditionally include in API requests. By default, fields with empty or
  3011  	// default values are omitted from API requests. See
  3012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3013  	// details.
  3014  	ForceSendFields []string `json:"-"`
  3015  	// NullFields is a list of field names (e.g. "EgressOption") to include in API
  3016  	// requests with the JSON null value. By default, fields with empty values are
  3017  	// omitted from API requests. See
  3018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3019  	NullFields []string `json:"-"`
  3020  }
  3021  
  3022  func (s *NetworkConfig) MarshalJSON() ([]byte, error) {
  3023  	type NoMethod NetworkConfig
  3024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3025  }
  3026  
  3027  // NpmPackage: Npm package to upload to Artifact Registry upon successful
  3028  // completion of all build steps.
  3029  type NpmPackage struct {
  3030  	// PackagePath: Path to the package.json. e.g. workspace/path/to/package
  3031  	PackagePath string `json:"packagePath,omitempty"`
  3032  	// Repository: Artifact Registry repository, in the form
  3033  	// "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the
  3034  	// workspace specified by path will be zipped and uploaded to Artifact Registry
  3035  	// with this location as a prefix.
  3036  	Repository string `json:"repository,omitempty"`
  3037  	// ForceSendFields is a list of field names (e.g. "PackagePath") to
  3038  	// unconditionally include in API requests. By default, fields with empty or
  3039  	// default values are omitted from API requests. See
  3040  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3041  	// details.
  3042  	ForceSendFields []string `json:"-"`
  3043  	// NullFields is a list of field names (e.g. "PackagePath") to include in API
  3044  	// requests with the JSON null value. By default, fields with empty values are
  3045  	// omitted from API requests. See
  3046  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3047  	NullFields []string `json:"-"`
  3048  }
  3049  
  3050  func (s *NpmPackage) MarshalJSON() ([]byte, error) {
  3051  	type NoMethod NpmPackage
  3052  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3053  }
  3054  
  3055  // Operation: This resource represents a long-running operation that is the
  3056  // result of a network API call.
  3057  type Operation struct {
  3058  	// Done: If the value is `false`, it means the operation is still in progress.
  3059  	// If `true`, the operation is completed, and either `error` or `response` is
  3060  	// available.
  3061  	Done bool `json:"done,omitempty"`
  3062  	// Error: The error result of the operation in case of failure or cancellation.
  3063  	Error *Status `json:"error,omitempty"`
  3064  	// Metadata: Service-specific metadata associated with the operation. It
  3065  	// typically contains progress information and common metadata such as create
  3066  	// time. Some services might not provide such metadata. Any method that returns
  3067  	// a long-running operation should document the metadata type, if any.
  3068  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3069  	// Name: The server-assigned name, which is only unique within the same service
  3070  	// that originally returns it. If you use the default HTTP mapping, the `name`
  3071  	// should be a resource name ending with `operations/{unique_id}`.
  3072  	Name string `json:"name,omitempty"`
  3073  	// Response: The normal, successful response of the operation. If the original
  3074  	// method returns no data on success, such as `Delete`, the response is
  3075  	// `google.protobuf.Empty`. If the original method is standard
  3076  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  3077  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  3078  	// original method name. For example, if the original method name is
  3079  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  3080  	Response googleapi.RawMessage `json:"response,omitempty"`
  3081  
  3082  	// ServerResponse contains the HTTP response code and headers from the server.
  3083  	googleapi.ServerResponse `json:"-"`
  3084  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  3085  	// include in API requests. By default, fields with empty or default values are
  3086  	// omitted from API requests. See
  3087  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3088  	// details.
  3089  	ForceSendFields []string `json:"-"`
  3090  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  3091  	// with the JSON null value. By default, fields with empty values are omitted
  3092  	// from API requests. See
  3093  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3094  	NullFields []string `json:"-"`
  3095  }
  3096  
  3097  func (s *Operation) MarshalJSON() ([]byte, error) {
  3098  	type NoMethod Operation
  3099  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3100  }
  3101  
  3102  // OperationMetadata: Represents the metadata of the long-running operation.
  3103  type OperationMetadata struct {
  3104  	// ApiVersion: Output only. API version used to start the operation.
  3105  	ApiVersion string `json:"apiVersion,omitempty"`
  3106  	// CancelRequested: Output only. Identifies whether the user has requested
  3107  	// cancellation of the operation. Operations that have been cancelled
  3108  	// successfully have Operation.error value with a google.rpc.Status.code of 1,
  3109  	// corresponding to `Code.CANCELLED`.
  3110  	CancelRequested bool `json:"cancelRequested,omitempty"`
  3111  	// CreateTime: Output only. The time the operation was created.
  3112  	CreateTime string `json:"createTime,omitempty"`
  3113  	// EndTime: Output only. The time the operation finished running.
  3114  	EndTime string `json:"endTime,omitempty"`
  3115  	// StatusDetail: Output only. Human-readable status of the operation, if any.
  3116  	StatusDetail string `json:"statusDetail,omitempty"`
  3117  	// Target: Output only. Server-defined resource path for the target of the
  3118  	// operation.
  3119  	Target string `json:"target,omitempty"`
  3120  	// Verb: Output only. Name of the verb executed by the operation.
  3121  	Verb string `json:"verb,omitempty"`
  3122  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3123  	// unconditionally include in API requests. By default, fields with empty or
  3124  	// default values are omitted from API requests. See
  3125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3126  	// details.
  3127  	ForceSendFields []string `json:"-"`
  3128  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3129  	// requests with the JSON null value. By default, fields with empty values are
  3130  	// omitted from API requests. See
  3131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3132  	NullFields []string `json:"-"`
  3133  }
  3134  
  3135  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  3136  	type NoMethod OperationMetadata
  3137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3138  }
  3139  
  3140  // PoolOption: Details about how a build should be executed on a `WorkerPool`.
  3141  // See running builds in a private pool
  3142  // (https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
  3143  // for more information.
  3144  type PoolOption struct {
  3145  	// Name: The `WorkerPool` resource to execute the build on. You must have
  3146  	// `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
  3147  	// projects/{project}/locations/{location}/workerPools/{workerPoolId}
  3148  	Name string `json:"name,omitempty"`
  3149  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  3150  	// include in API requests. By default, fields with empty or default values are
  3151  	// omitted from API requests. See
  3152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3153  	// details.
  3154  	ForceSendFields []string `json:"-"`
  3155  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  3156  	// with the JSON null value. By default, fields with empty values are omitted
  3157  	// from API requests. See
  3158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3159  	NullFields []string `json:"-"`
  3160  }
  3161  
  3162  func (s *PoolOption) MarshalJSON() ([]byte, error) {
  3163  	type NoMethod PoolOption
  3164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3165  }
  3166  
  3167  // PrivatePoolV1Config: Configuration for a V1 `PrivatePool`.
  3168  type PrivatePoolV1Config struct {
  3169  	// NetworkConfig: Network configuration for the pool.
  3170  	NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
  3171  	// WorkerConfig: Machine configuration for the workers in the pool.
  3172  	WorkerConfig *WorkerConfig `json:"workerConfig,omitempty"`
  3173  	// ForceSendFields is a list of field names (e.g. "NetworkConfig") to
  3174  	// unconditionally include in API requests. By default, fields with empty or
  3175  	// default values are omitted from API requests. See
  3176  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3177  	// details.
  3178  	ForceSendFields []string `json:"-"`
  3179  	// NullFields is a list of field names (e.g. "NetworkConfig") to include in API
  3180  	// requests with the JSON null value. By default, fields with empty values are
  3181  	// omitted from API requests. See
  3182  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3183  	NullFields []string `json:"-"`
  3184  }
  3185  
  3186  func (s *PrivatePoolV1Config) MarshalJSON() ([]byte, error) {
  3187  	type NoMethod PrivatePoolV1Config
  3188  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3189  }
  3190  
  3191  // ProcessAppManifestCallbackOperationMetadata: Metadata for
  3192  // `ProcessAppManifestCallback` operation.
  3193  type ProcessAppManifestCallbackOperationMetadata struct {
  3194  	// CompleteTime: Time the operation was completed.
  3195  	CompleteTime string `json:"completeTime,omitempty"`
  3196  	// CreateTime: Time the operation was created.
  3197  	CreateTime string `json:"createTime,omitempty"`
  3198  	// GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be
  3199  	// created. Format:
  3200  	// `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
  3201  	GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"`
  3202  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  3203  	// unconditionally include in API requests. By default, fields with empty or
  3204  	// default values are omitted from API requests. See
  3205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3206  	// details.
  3207  	ForceSendFields []string `json:"-"`
  3208  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  3209  	// requests with the JSON null value. By default, fields with empty values are
  3210  	// omitted from API requests. See
  3211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3212  	NullFields []string `json:"-"`
  3213  }
  3214  
  3215  func (s *ProcessAppManifestCallbackOperationMetadata) MarshalJSON() ([]byte, error) {
  3216  	type NoMethod ProcessAppManifestCallbackOperationMetadata
  3217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3218  }
  3219  
  3220  // PubsubConfig: PubsubConfig describes the configuration of a trigger that
  3221  // creates a build whenever a Pub/Sub message is published.
  3222  type PubsubConfig struct {
  3223  	// ServiceAccountEmail: Service account that will make the push request.
  3224  	ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"`
  3225  	// State: Potential issues with the underlying Pub/Sub subscription
  3226  	// configuration. Only populated on get requests.
  3227  	//
  3228  	// Possible values:
  3229  	//   "STATE_UNSPECIFIED" - The subscription configuration has not been checked.
  3230  	//   "OK" - The Pub/Sub subscription is properly configured.
  3231  	//   "SUBSCRIPTION_DELETED" - The subscription has been deleted.
  3232  	//   "TOPIC_DELETED" - The topic has been deleted.
  3233  	//   "SUBSCRIPTION_MISCONFIGURED" - Some of the subscription's field are
  3234  	// misconfigured.
  3235  	State string `json:"state,omitempty"`
  3236  	// Subscription: Output only. Name of the subscription. Format is
  3237  	// `projects/{project}/subscriptions/{subscription}`.
  3238  	Subscription string `json:"subscription,omitempty"`
  3239  	// Topic: The name of the topic from which this subscription is receiving
  3240  	// messages. Format is `projects/{project}/topics/{topic}`.
  3241  	Topic string `json:"topic,omitempty"`
  3242  	// ForceSendFields is a list of field names (e.g. "ServiceAccountEmail") to
  3243  	// unconditionally include in API requests. By default, fields with empty or
  3244  	// default values are omitted from API requests. See
  3245  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3246  	// details.
  3247  	ForceSendFields []string `json:"-"`
  3248  	// NullFields is a list of field names (e.g. "ServiceAccountEmail") to include
  3249  	// in API requests with the JSON null value. By default, fields with empty
  3250  	// values are omitted from API requests. See
  3251  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3252  	NullFields []string `json:"-"`
  3253  }
  3254  
  3255  func (s *PubsubConfig) MarshalJSON() ([]byte, error) {
  3256  	type NoMethod PubsubConfig
  3257  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3258  }
  3259  
  3260  // PullRequestFilter: PullRequestFilter contains filter properties for matching
  3261  // GitHub Pull Requests.
  3262  type PullRequestFilter struct {
  3263  	// Branch: Regex of branches to match. The syntax of the regular expressions
  3264  	// accepted is the syntax accepted by RE2 and described at
  3265  	// https://github.com/google/re2/wiki/Syntax
  3266  	Branch string `json:"branch,omitempty"`
  3267  	// CommentControl: If CommentControl is enabled, depending on the setting,
  3268  	// builds may not fire until a repository writer comments `/gcbrun` on a pull
  3269  	// request or `/gcbrun` is in the pull request description. Only PR comments
  3270  	// that contain `/gcbrun` will trigger builds. If CommentControl is set to
  3271  	// disabled, comments with `/gcbrun` from a user with repository write
  3272  	// permission or above will still trigger builds to run.
  3273  	//
  3274  	// Possible values:
  3275  	//   "COMMENTS_DISABLED" - Do not require `/gcbrun` comments from a user with
  3276  	// repository write permission or above on pull requests before builds are
  3277  	// triggered. Comments that contain `/gcbrun` will still fire builds so this
  3278  	// should be thought of as comments not required.
  3279  	//   "COMMENTS_ENABLED" - Builds will only fire in response to pull requests
  3280  	// if: 1. The pull request author has repository write permission or above and
  3281  	// `/gcbrun` is in the PR description. 2. A user with repository writer
  3282  	// permissions or above comments `/gcbrun` on a pull request authored by any
  3283  	// user.
  3284  	//   "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY" - Builds will only fire
  3285  	// in response to pull requests if: 1. The pull request author is a repository
  3286  	// writer or above. 2. If the author does not have write permissions, a user
  3287  	// with write permissions or above must comment `/gcbrun` in order to fire a
  3288  	// build.
  3289  	CommentControl string `json:"commentControl,omitempty"`
  3290  	// InvertRegex: If true, branches that do NOT match the git_ref will trigger a
  3291  	// build.
  3292  	InvertRegex bool `json:"invertRegex,omitempty"`
  3293  	// ForceSendFields is a list of field names (e.g. "Branch") to unconditionally
  3294  	// include in API requests. By default, fields with empty or default values are
  3295  	// omitted from API requests. See
  3296  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3297  	// details.
  3298  	ForceSendFields []string `json:"-"`
  3299  	// NullFields is a list of field names (e.g. "Branch") to include in API
  3300  	// requests with the JSON null value. By default, fields with empty values are
  3301  	// omitted from API requests. See
  3302  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3303  	NullFields []string `json:"-"`
  3304  }
  3305  
  3306  func (s *PullRequestFilter) MarshalJSON() ([]byte, error) {
  3307  	type NoMethod PullRequestFilter
  3308  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3309  }
  3310  
  3311  // PushFilter: Push contains filter properties for matching GitHub git pushes.
  3312  type PushFilter struct {
  3313  	// Branch: Regexes matching branches to build. The syntax of the regular
  3314  	// expressions accepted is the syntax accepted by RE2 and described at
  3315  	// https://github.com/google/re2/wiki/Syntax
  3316  	Branch string `json:"branch,omitempty"`
  3317  	// InvertRegex: When true, only trigger a build if the revision regex does NOT
  3318  	// match the git_ref regex.
  3319  	InvertRegex bool `json:"invertRegex,omitempty"`
  3320  	// Tag: Regexes matching tags to build. The syntax of the regular expressions
  3321  	// accepted is the syntax accepted by RE2 and described at
  3322  	// https://github.com/google/re2/wiki/Syntax
  3323  	Tag string `json:"tag,omitempty"`
  3324  	// ForceSendFields is a list of field names (e.g. "Branch") to unconditionally
  3325  	// include in API requests. By default, fields with empty or default values are
  3326  	// omitted from API requests. See
  3327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3328  	// details.
  3329  	ForceSendFields []string `json:"-"`
  3330  	// NullFields is a list of field names (e.g. "Branch") to include in API
  3331  	// requests with the JSON null value. By default, fields with empty values are
  3332  	// omitted from API requests. See
  3333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3334  	NullFields []string `json:"-"`
  3335  }
  3336  
  3337  func (s *PushFilter) MarshalJSON() ([]byte, error) {
  3338  	type NoMethod PushFilter
  3339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3340  }
  3341  
  3342  // PythonPackage: Python package to upload to Artifact Registry upon successful
  3343  // completion of all build steps. A package can encapsulate multiple objects to
  3344  // be uploaded to a single repository.
  3345  type PythonPackage struct {
  3346  	// Paths: Path globs used to match files in the build's workspace. For Python/
  3347  	// Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.
  3348  	Paths []string `json:"paths,omitempty"`
  3349  	// Repository: Artifact Registry repository, in the form
  3350  	// "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace
  3351  	// matching any path pattern will be uploaded to Artifact Registry with this
  3352  	// location as a prefix.
  3353  	Repository string `json:"repository,omitempty"`
  3354  	// ForceSendFields is a list of field names (e.g. "Paths") to unconditionally
  3355  	// include in API requests. By default, fields with empty or default values are
  3356  	// omitted from API requests. See
  3357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3358  	// details.
  3359  	ForceSendFields []string `json:"-"`
  3360  	// NullFields is a list of field names (e.g. "Paths") to include in API
  3361  	// requests with the JSON null value. By default, fields with empty values are
  3362  	// omitted from API requests. See
  3363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3364  	NullFields []string `json:"-"`
  3365  }
  3366  
  3367  func (s *PythonPackage) MarshalJSON() ([]byte, error) {
  3368  	type NoMethod PythonPackage
  3369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3370  }
  3371  
  3372  // ReceiveTriggerWebhookResponse: ReceiveTriggerWebhookResponse [Experimental]
  3373  // is the response object for the ReceiveTriggerWebhook method.
  3374  type ReceiveTriggerWebhookResponse struct {
  3375  	// ServerResponse contains the HTTP response code and headers from the server.
  3376  	googleapi.ServerResponse `json:"-"`
  3377  }
  3378  
  3379  // RemoveBitbucketServerConnectedRepositoryRequest: RPC request object accepted
  3380  // by RemoveBitbucketServerConnectedRepository RPC method.
  3381  type RemoveBitbucketServerConnectedRepositoryRequest struct {
  3382  	// ConnectedRepository: The connected repository to remove.
  3383  	ConnectedRepository *BitbucketServerRepositoryId `json:"connectedRepository,omitempty"`
  3384  	// ForceSendFields is a list of field names (e.g. "ConnectedRepository") to
  3385  	// unconditionally include in API requests. By default, fields with empty or
  3386  	// default values are omitted from API requests. See
  3387  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3388  	// details.
  3389  	ForceSendFields []string `json:"-"`
  3390  	// NullFields is a list of field names (e.g. "ConnectedRepository") to include
  3391  	// in API requests with the JSON null value. By default, fields with empty
  3392  	// values are omitted from API requests. See
  3393  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3394  	NullFields []string `json:"-"`
  3395  }
  3396  
  3397  func (s *RemoveBitbucketServerConnectedRepositoryRequest) MarshalJSON() ([]byte, error) {
  3398  	type NoMethod RemoveBitbucketServerConnectedRepositoryRequest
  3399  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3400  }
  3401  
  3402  // RemoveGitLabConnectedRepositoryRequest: RPC request object accepted by
  3403  // RemoveGitLabConnectedRepository RPC method.
  3404  type RemoveGitLabConnectedRepositoryRequest struct {
  3405  	// ConnectedRepository: The connected repository to remove.
  3406  	ConnectedRepository *GitLabRepositoryId `json:"connectedRepository,omitempty"`
  3407  	// ForceSendFields is a list of field names (e.g. "ConnectedRepository") to
  3408  	// unconditionally include in API requests. By default, fields with empty or
  3409  	// default values are omitted from API requests. See
  3410  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3411  	// details.
  3412  	ForceSendFields []string `json:"-"`
  3413  	// NullFields is a list of field names (e.g. "ConnectedRepository") to include
  3414  	// in API requests with the JSON null value. By default, fields with empty
  3415  	// values are omitted from API requests. See
  3416  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3417  	NullFields []string `json:"-"`
  3418  }
  3419  
  3420  func (s *RemoveGitLabConnectedRepositoryRequest) MarshalJSON() ([]byte, error) {
  3421  	type NoMethod RemoveGitLabConnectedRepositoryRequest
  3422  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3423  }
  3424  
  3425  // RepoSource: Location of the source in a Google Cloud Source Repository.
  3426  type RepoSource struct {
  3427  	// BranchName: Regex matching branches to build. The syntax of the regular
  3428  	// expressions accepted is the syntax accepted by RE2 and described at
  3429  	// https://github.com/google/re2/wiki/Syntax
  3430  	BranchName string `json:"branchName,omitempty"`
  3431  	// CommitSha: Explicit commit SHA to build.
  3432  	CommitSha string `json:"commitSha,omitempty"`
  3433  	// Dir: Directory, relative to the source root, in which to run the build. This
  3434  	// must be a relative path. If a step's `dir` is specified and is an absolute
  3435  	// path, this value is ignored for that step's execution.
  3436  	Dir string `json:"dir,omitempty"`
  3437  	// InvertRegex: Only trigger a build if the revision regex does NOT match the
  3438  	// revision regex.
  3439  	InvertRegex bool `json:"invertRegex,omitempty"`
  3440  	// ProjectId: ID of the project that owns the Cloud Source Repository. If
  3441  	// omitted, the project ID requesting the build is assumed.
  3442  	ProjectId string `json:"projectId,omitempty"`
  3443  	// RepoName: Name of the Cloud Source Repository.
  3444  	RepoName string `json:"repoName,omitempty"`
  3445  	// Substitutions: Substitutions to use in a triggered build. Should only be
  3446  	// used with RunBuildTrigger
  3447  	Substitutions map[string]string `json:"substitutions,omitempty"`
  3448  	// TagName: Regex matching tags to build. The syntax of the regular expressions
  3449  	// accepted is the syntax accepted by RE2 and described at
  3450  	// https://github.com/google/re2/wiki/Syntax
  3451  	TagName string `json:"tagName,omitempty"`
  3452  	// ForceSendFields is a list of field names (e.g. "BranchName") to
  3453  	// unconditionally include in API requests. By default, fields with empty or
  3454  	// default values are omitted from API requests. See
  3455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3456  	// details.
  3457  	ForceSendFields []string `json:"-"`
  3458  	// NullFields is a list of field names (e.g. "BranchName") to include in API
  3459  	// requests with the JSON null value. By default, fields with empty values are
  3460  	// omitted from API requests. See
  3461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3462  	NullFields []string `json:"-"`
  3463  }
  3464  
  3465  func (s *RepoSource) MarshalJSON() ([]byte, error) {
  3466  	type NoMethod RepoSource
  3467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3468  }
  3469  
  3470  // RepositoryEventConfig: The configuration of a trigger that creates a build
  3471  // whenever an event from Repo API is received.
  3472  type RepositoryEventConfig struct {
  3473  	// PullRequest: Filter to match changes in pull requests.
  3474  	PullRequest *PullRequestFilter `json:"pullRequest,omitempty"`
  3475  	// Push: Filter to match changes in refs like branches, tags.
  3476  	Push *PushFilter `json:"push,omitempty"`
  3477  	// Repository: The resource name of the Repo API resource.
  3478  	Repository string `json:"repository,omitempty"`
  3479  	// RepositoryType: Output only. The type of the SCM vendor the repository
  3480  	// points to.
  3481  	//
  3482  	// Possible values:
  3483  	//   "REPOSITORY_TYPE_UNSPECIFIED" - If unspecified, RepositoryType defaults to
  3484  	// GITHUB.
  3485  	//   "GITHUB" - The SCM repo is GITHUB.
  3486  	//   "GITHUB_ENTERPRISE" - The SCM repo is GITHUB Enterprise.
  3487  	//   "GITLAB_ENTERPRISE" - The SCM repo is GITLAB Enterprise.
  3488  	//   "BITBUCKET_DATA_CENTER" - The SCM repo is BITBUCKET Data Center.
  3489  	//   "BITBUCKET_CLOUD" - The SCM repo is BITBUCKET Cloud.
  3490  	RepositoryType string `json:"repositoryType,omitempty"`
  3491  	// ForceSendFields is a list of field names (e.g. "PullRequest") to
  3492  	// unconditionally include in API requests. By default, fields with empty or
  3493  	// default values are omitted from API requests. See
  3494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3495  	// details.
  3496  	ForceSendFields []string `json:"-"`
  3497  	// NullFields is a list of field names (e.g. "PullRequest") to include in API
  3498  	// requests with the JSON null value. By default, fields with empty values are
  3499  	// omitted from API requests. See
  3500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3501  	NullFields []string `json:"-"`
  3502  }
  3503  
  3504  func (s *RepositoryEventConfig) MarshalJSON() ([]byte, error) {
  3505  	type NoMethod RepositoryEventConfig
  3506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3507  }
  3508  
  3509  // Results: Artifacts created by the build pipeline.
  3510  type Results struct {
  3511  	// ArtifactManifest: Path to the artifact manifest for non-container artifacts
  3512  	// uploaded to Cloud Storage. Only populated when artifacts are uploaded to
  3513  	// Cloud Storage.
  3514  	ArtifactManifest string `json:"artifactManifest,omitempty"`
  3515  	// ArtifactTiming: Time to push all non-container artifacts to Cloud Storage.
  3516  	ArtifactTiming *TimeSpan `json:"artifactTiming,omitempty"`
  3517  	// BuildStepImages: List of build step digests, in the order corresponding to
  3518  	// build step indices.
  3519  	BuildStepImages []string `json:"buildStepImages,omitempty"`
  3520  	// BuildStepOutputs: List of build step outputs, produced by builder images, in
  3521  	// the order corresponding to build step indices. Cloud Builders
  3522  	// (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this
  3523  	// output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data
  3524  	// is stored.
  3525  	BuildStepOutputs []string `json:"buildStepOutputs,omitempty"`
  3526  	// Images: Container images that were built as a part of the build.
  3527  	Images []*BuiltImage `json:"images,omitempty"`
  3528  	// MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of
  3529  	// the build.
  3530  	MavenArtifacts []*UploadedMavenArtifact `json:"mavenArtifacts,omitempty"`
  3531  	// NpmPackages: Npm packages uploaded to Artifact Registry at the end of the
  3532  	// build.
  3533  	NpmPackages []*UploadedNpmPackage `json:"npmPackages,omitempty"`
  3534  	// NumArtifacts: Number of non-container artifacts uploaded to Cloud Storage.
  3535  	// Only populated when artifacts are uploaded to Cloud Storage.
  3536  	NumArtifacts int64 `json:"numArtifacts,omitempty,string"`
  3537  	// PythonPackages: Python artifacts uploaded to Artifact Registry at the end of
  3538  	// the build.
  3539  	PythonPackages []*UploadedPythonPackage `json:"pythonPackages,omitempty"`
  3540  	// ForceSendFields is a list of field names (e.g. "ArtifactManifest") to
  3541  	// unconditionally include in API requests. By default, fields with empty or
  3542  	// default values are omitted from API requests. See
  3543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3544  	// details.
  3545  	ForceSendFields []string `json:"-"`
  3546  	// NullFields is a list of field names (e.g. "ArtifactManifest") to include in
  3547  	// API requests with the JSON null value. By default, fields with empty values
  3548  	// are omitted from API requests. See
  3549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3550  	NullFields []string `json:"-"`
  3551  }
  3552  
  3553  func (s *Results) MarshalJSON() ([]byte, error) {
  3554  	type NoMethod Results
  3555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3556  }
  3557  
  3558  // RetryBuildRequest: Specifies a build to retry.
  3559  type RetryBuildRequest struct {
  3560  	// Id: Required. Build ID of the original build.
  3561  	Id string `json:"id,omitempty"`
  3562  	// Name: The name of the `Build` to retry. Format:
  3563  	// `projects/{project}/locations/{location}/builds/{build}`
  3564  	Name string `json:"name,omitempty"`
  3565  	// ProjectId: Required. ID of the project.
  3566  	ProjectId string `json:"projectId,omitempty"`
  3567  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  3568  	// include in API requests. By default, fields with empty or default values are
  3569  	// omitted from API requests. See
  3570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3571  	// details.
  3572  	ForceSendFields []string `json:"-"`
  3573  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  3574  	// with the JSON null value. By default, fields with empty values are omitted
  3575  	// from API requests. See
  3576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3577  	NullFields []string `json:"-"`
  3578  }
  3579  
  3580  func (s *RetryBuildRequest) MarshalJSON() ([]byte, error) {
  3581  	type NoMethod RetryBuildRequest
  3582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3583  }
  3584  
  3585  // RunBuildTriggerRequest: Specifies a build trigger to run and the source to
  3586  // use.
  3587  type RunBuildTriggerRequest struct {
  3588  	// ProjectId: Required. ID of the project.
  3589  	ProjectId string `json:"projectId,omitempty"`
  3590  	// Source: Source to build against this trigger. Branch and tag names cannot
  3591  	// consist of regular expressions.
  3592  	Source *RepoSource `json:"source,omitempty"`
  3593  	// TriggerId: Required. ID of the trigger.
  3594  	TriggerId string `json:"triggerId,omitempty"`
  3595  	// ForceSendFields is a list of field names (e.g. "ProjectId") to
  3596  	// unconditionally include in API requests. By default, fields with empty or
  3597  	// default values are omitted from API requests. See
  3598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3599  	// details.
  3600  	ForceSendFields []string `json:"-"`
  3601  	// NullFields is a list of field names (e.g. "ProjectId") to include in API
  3602  	// requests with the JSON null value. By default, fields with empty values are
  3603  	// omitted from API requests. See
  3604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3605  	NullFields []string `json:"-"`
  3606  }
  3607  
  3608  func (s *RunBuildTriggerRequest) MarshalJSON() ([]byte, error) {
  3609  	type NoMethod RunBuildTriggerRequest
  3610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3611  }
  3612  
  3613  // Secret: Pairs a set of secret environment variables containing encrypted
  3614  // values with the Cloud KMS key to use to decrypt the value. Note: Use
  3615  // `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with
  3616  // `secret`. For instructions see:
  3617  // https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
  3618  type Secret struct {
  3619  	// KmsKeyName: Cloud KMS key name to use to decrypt these envs.
  3620  	KmsKeyName string `json:"kmsKeyName,omitempty"`
  3621  	// SecretEnv: Map of environment variable name to its encrypted value. Secret
  3622  	// environment variables must be unique across all of a build's secrets, and
  3623  	// must be used by at least one build step. Values can be at most 64 KB in
  3624  	// size. There can be at most 100 secret values across all of a build's
  3625  	// secrets.
  3626  	SecretEnv map[string]string `json:"secretEnv,omitempty"`
  3627  	// ForceSendFields is a list of field names (e.g. "KmsKeyName") to
  3628  	// unconditionally include in API requests. By default, fields with empty or
  3629  	// default values are omitted from API requests. See
  3630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3631  	// details.
  3632  	ForceSendFields []string `json:"-"`
  3633  	// NullFields is a list of field names (e.g. "KmsKeyName") to include in API
  3634  	// requests with the JSON null value. By default, fields with empty values are
  3635  	// omitted from API requests. See
  3636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3637  	NullFields []string `json:"-"`
  3638  }
  3639  
  3640  func (s *Secret) MarshalJSON() ([]byte, error) {
  3641  	type NoMethod Secret
  3642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3643  }
  3644  
  3645  // SecretManagerSecret: Pairs a secret environment variable with a
  3646  // SecretVersion in Secret Manager.
  3647  type SecretManagerSecret struct {
  3648  	// Env: Environment variable name to associate with the secret. Secret
  3649  	// environment variables must be unique across all of a build's secrets, and
  3650  	// must be used by at least one build step.
  3651  	Env string `json:"env,omitempty"`
  3652  	// VersionName: Resource name of the SecretVersion. In format:
  3653  	// projects/*/secrets/*/versions/*
  3654  	VersionName string `json:"versionName,omitempty"`
  3655  	// ForceSendFields is a list of field names (e.g. "Env") to unconditionally
  3656  	// include in API requests. By default, fields with empty or default values are
  3657  	// omitted from API requests. See
  3658  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3659  	// details.
  3660  	ForceSendFields []string `json:"-"`
  3661  	// NullFields is a list of field names (e.g. "Env") to include in API requests
  3662  	// with the JSON null value. By default, fields with empty values are omitted
  3663  	// from API requests. See
  3664  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3665  	NullFields []string `json:"-"`
  3666  }
  3667  
  3668  func (s *SecretManagerSecret) MarshalJSON() ([]byte, error) {
  3669  	type NoMethod SecretManagerSecret
  3670  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3671  }
  3672  
  3673  // Secrets: Secrets and secret environment variables.
  3674  type Secrets struct {
  3675  	// Inline: Secrets encrypted with KMS key and the associated secret environment
  3676  	// variable.
  3677  	Inline []*InlineSecret `json:"inline,omitempty"`
  3678  	// SecretManager: Secrets in Secret Manager and associated secret environment
  3679  	// variable.
  3680  	SecretManager []*SecretManagerSecret `json:"secretManager,omitempty"`
  3681  	// ForceSendFields is a list of field names (e.g. "Inline") to unconditionally
  3682  	// include in API requests. By default, fields with empty or default values are
  3683  	// omitted from API requests. See
  3684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3685  	// details.
  3686  	ForceSendFields []string `json:"-"`
  3687  	// NullFields is a list of field names (e.g. "Inline") to include in API
  3688  	// requests with the JSON null value. By default, fields with empty values are
  3689  	// omitted from API requests. See
  3690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3691  	NullFields []string `json:"-"`
  3692  }
  3693  
  3694  func (s *Secrets) MarshalJSON() ([]byte, error) {
  3695  	type NoMethod Secrets
  3696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3697  }
  3698  
  3699  // ServiceDirectoryConfig: ServiceDirectoryConfig represents Service Directory
  3700  // configuration for a SCM host connection.
  3701  type ServiceDirectoryConfig struct {
  3702  	// Service: The Service Directory service name. Format:
  3703  	// projects/{project}/locations/{location}/namespaces/{namespace}/services/{serv
  3704  	// ice}.
  3705  	Service string `json:"service,omitempty"`
  3706  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
  3707  	// include in API requests. By default, fields with empty or default values are
  3708  	// omitted from API requests. See
  3709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3710  	// details.
  3711  	ForceSendFields []string `json:"-"`
  3712  	// NullFields is a list of field names (e.g. "Service") to include in API
  3713  	// requests with the JSON null value. By default, fields with empty values are
  3714  	// omitted from API requests. See
  3715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3716  	NullFields []string `json:"-"`
  3717  }
  3718  
  3719  func (s *ServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
  3720  	type NoMethod ServiceDirectoryConfig
  3721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3722  }
  3723  
  3724  // Source: Location of the source in a supported storage service.
  3725  type Source struct {
  3726  	// ConnectedRepository: Optional. If provided, get the source from this 2nd-gen
  3727  	// Google Cloud Build repository resource.
  3728  	ConnectedRepository *ConnectedRepository `json:"connectedRepository,omitempty"`
  3729  	// DeveloperConnectConfig: If provided, get the source from this Developer
  3730  	// Connect config.
  3731  	DeveloperConnectConfig *DeveloperConnectConfig `json:"developerConnectConfig,omitempty"`
  3732  	// GitSource: If provided, get the source from this Git repository.
  3733  	GitSource *GitSource `json:"gitSource,omitempty"`
  3734  	// RepoSource: If provided, get the source from this location in a Cloud Source
  3735  	// Repository.
  3736  	RepoSource *RepoSource `json:"repoSource,omitempty"`
  3737  	// StorageSource: If provided, get the source from this location in Cloud
  3738  	// Storage.
  3739  	StorageSource *StorageSource `json:"storageSource,omitempty"`
  3740  	// StorageSourceManifest: If provided, get the source from this manifest in
  3741  	// Cloud Storage. This feature is in Preview; see description here
  3742  	// (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
  3743  	StorageSourceManifest *StorageSourceManifest `json:"storageSourceManifest,omitempty"`
  3744  	// ForceSendFields is a list of field names (e.g. "ConnectedRepository") to
  3745  	// unconditionally include in API requests. By default, fields with empty or
  3746  	// default values are omitted from API requests. See
  3747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3748  	// details.
  3749  	ForceSendFields []string `json:"-"`
  3750  	// NullFields is a list of field names (e.g. "ConnectedRepository") to include
  3751  	// in API requests with the JSON null value. By default, fields with empty
  3752  	// values are omitted from API requests. See
  3753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3754  	NullFields []string `json:"-"`
  3755  }
  3756  
  3757  func (s *Source) MarshalJSON() ([]byte, error) {
  3758  	type NoMethod Source
  3759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3760  }
  3761  
  3762  // SourceProvenance: Provenance of the source. Ways to find the original
  3763  // source, or verify that some source was used for this build.
  3764  type SourceProvenance struct {
  3765  	// FileHashes: Output only. Hash(es) of the build source, which can be used to
  3766  	// verify that the original source integrity was maintained in the build. Note
  3767  	// that `FileHashes` will only be populated if `BuildOptions` has requested a
  3768  	// `SourceProvenanceHash`. The keys to this map are file paths used as build
  3769  	// source and the values contain the hash values for those files. If the build
  3770  	// source came in a single package such as a gzipped tarfile (`.tar.gz`), the
  3771  	// `FileHash` will be for the single path to that file.
  3772  	FileHashes map[string]FileHashes `json:"fileHashes,omitempty"`
  3773  	// ResolvedConnectedRepository: Output only. A copy of the build's
  3774  	// `source.connected_repository`, if exists, with any revisions resolved.
  3775  	ResolvedConnectedRepository *ConnectedRepository `json:"resolvedConnectedRepository,omitempty"`
  3776  	// ResolvedGitSource: Output only. A copy of the build's `source.git_source`,
  3777  	// if exists, with any revisions resolved.
  3778  	ResolvedGitSource *GitSource `json:"resolvedGitSource,omitempty"`
  3779  	// ResolvedRepoSource: A copy of the build's `source.repo_source`, if exists,
  3780  	// with any revisions resolved.
  3781  	ResolvedRepoSource *RepoSource `json:"resolvedRepoSource,omitempty"`
  3782  	// ResolvedStorageSource: A copy of the build's `source.storage_source`, if
  3783  	// exists, with any generations resolved.
  3784  	ResolvedStorageSource *StorageSource `json:"resolvedStorageSource,omitempty"`
  3785  	// ResolvedStorageSourceManifest: A copy of the build's
  3786  	// `source.storage_source_manifest`, if exists, with any revisions resolved.
  3787  	// This feature is in Preview.
  3788  	ResolvedStorageSourceManifest *StorageSourceManifest `json:"resolvedStorageSourceManifest,omitempty"`
  3789  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  3790  	// unconditionally include in API requests. By default, fields with empty or
  3791  	// default values are omitted from API requests. See
  3792  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3793  	// details.
  3794  	ForceSendFields []string `json:"-"`
  3795  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  3796  	// requests with the JSON null value. By default, fields with empty values are
  3797  	// omitted from API requests. See
  3798  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3799  	NullFields []string `json:"-"`
  3800  }
  3801  
  3802  func (s *SourceProvenance) MarshalJSON() ([]byte, error) {
  3803  	type NoMethod SourceProvenance
  3804  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3805  }
  3806  
  3807  // Status: The `Status` type defines a logical error model that is suitable for
  3808  // different programming environments, including REST APIs and RPC APIs. It is
  3809  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  3810  // pieces of data: error code, error message, and error details. You can find
  3811  // out more about this error model and how to work with it in the API Design
  3812  // Guide (https://cloud.google.com/apis/design/errors).
  3813  type Status struct {
  3814  	// Code: The status code, which should be an enum value of google.rpc.Code.
  3815  	Code int64 `json:"code,omitempty"`
  3816  	// Details: A list of messages that carry the error details. There is a common
  3817  	// set of message types for APIs to use.
  3818  	Details []googleapi.RawMessage `json:"details,omitempty"`
  3819  	// Message: A developer-facing error message, which should be in English. Any
  3820  	// user-facing error message should be localized and sent in the
  3821  	// google.rpc.Status.details field, or localized by the client.
  3822  	Message string `json:"message,omitempty"`
  3823  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  3824  	// include in API requests. By default, fields with empty or default values are
  3825  	// omitted from API requests. See
  3826  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3827  	// details.
  3828  	ForceSendFields []string `json:"-"`
  3829  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  3830  	// with the JSON null value. By default, fields with empty values are omitted
  3831  	// from API requests. See
  3832  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3833  	NullFields []string `json:"-"`
  3834  }
  3835  
  3836  func (s *Status) MarshalJSON() ([]byte, error) {
  3837  	type NoMethod Status
  3838  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3839  }
  3840  
  3841  // StorageSource: Location of the source in an archive file in Cloud Storage.
  3842  type StorageSource struct {
  3843  	// Bucket: Cloud Storage bucket containing the source (see Bucket Name
  3844  	// Requirements
  3845  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
  3846  	Bucket string `json:"bucket,omitempty"`
  3847  	// Generation: Cloud Storage generation for the object. If the generation is
  3848  	// omitted, the latest generation will be used.
  3849  	Generation int64 `json:"generation,omitempty,string"`
  3850  	// Object: Cloud Storage object containing the source. This object must be a
  3851  	// zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to
  3852  	// build.
  3853  	Object string `json:"object,omitempty"`
  3854  	// SourceFetcher: Optional. Option to specify the tool to fetch the source file
  3855  	// for the build.
  3856  	//
  3857  	// Possible values:
  3858  	//   "SOURCE_FETCHER_UNSPECIFIED" - Unspecified defaults to GSUTIL.
  3859  	//   "GSUTIL" - Use the "gsutil" tool to download the source file.
  3860  	//   "GCS_FETCHER" - Use the Cloud Storage Fetcher tool to download the source
  3861  	// file.
  3862  	SourceFetcher string `json:"sourceFetcher,omitempty"`
  3863  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  3864  	// include in API requests. By default, fields with empty or default values are
  3865  	// omitted from API requests. See
  3866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3867  	// details.
  3868  	ForceSendFields []string `json:"-"`
  3869  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  3870  	// requests with the JSON null value. By default, fields with empty values are
  3871  	// omitted from API requests. See
  3872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3873  	NullFields []string `json:"-"`
  3874  }
  3875  
  3876  func (s *StorageSource) MarshalJSON() ([]byte, error) {
  3877  	type NoMethod StorageSource
  3878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3879  }
  3880  
  3881  // StorageSourceManifest: Location of the source manifest in Cloud Storage.
  3882  // This feature is in Preview; see description here
  3883  // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
  3884  type StorageSourceManifest struct {
  3885  	// Bucket: Cloud Storage bucket containing the source manifest (see Bucket Name
  3886  	// Requirements
  3887  	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
  3888  	Bucket string `json:"bucket,omitempty"`
  3889  	// Generation: Cloud Storage generation for the object. If the generation is
  3890  	// omitted, the latest generation will be used.
  3891  	Generation int64 `json:"generation,omitempty,string"`
  3892  	// Object: Cloud Storage object containing the source manifest. This object
  3893  	// must be a JSON file.
  3894  	Object string `json:"object,omitempty"`
  3895  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
  3896  	// include in API requests. By default, fields with empty or default values are
  3897  	// omitted from API requests. See
  3898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3899  	// details.
  3900  	ForceSendFields []string `json:"-"`
  3901  	// NullFields is a list of field names (e.g. "Bucket") to include in API
  3902  	// requests with the JSON null value. By default, fields with empty values are
  3903  	// omitted from API requests. See
  3904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3905  	NullFields []string `json:"-"`
  3906  }
  3907  
  3908  func (s *StorageSourceManifest) MarshalJSON() ([]byte, error) {
  3909  	type NoMethod StorageSourceManifest
  3910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3911  }
  3912  
  3913  // TimeSpan: Start and end times for a build execution phase.
  3914  type TimeSpan struct {
  3915  	// EndTime: End of time span.
  3916  	EndTime string `json:"endTime,omitempty"`
  3917  	// StartTime: Start of time span.
  3918  	StartTime string `json:"startTime,omitempty"`
  3919  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  3920  	// include in API requests. By default, fields with empty or default values are
  3921  	// omitted from API requests. See
  3922  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3923  	// details.
  3924  	ForceSendFields []string `json:"-"`
  3925  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  3926  	// requests with the JSON null value. By default, fields with empty values are
  3927  	// omitted from API requests. See
  3928  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3929  	NullFields []string `json:"-"`
  3930  }
  3931  
  3932  func (s *TimeSpan) MarshalJSON() ([]byte, error) {
  3933  	type NoMethod TimeSpan
  3934  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3935  }
  3936  
  3937  // UpdateBitbucketServerConfigOperationMetadata: Metadata for
  3938  // `UpdateBitbucketServerConfig` operation.
  3939  type UpdateBitbucketServerConfigOperationMetadata struct {
  3940  	// BitbucketServerConfig: The resource name of the BitbucketServerConfig to be
  3941  	// updated. Format:
  3942  	// `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`.
  3943  	BitbucketServerConfig string `json:"bitbucketServerConfig,omitempty"`
  3944  	// CompleteTime: Time the operation was completed.
  3945  	CompleteTime string `json:"completeTime,omitempty"`
  3946  	// CreateTime: Time the operation was created.
  3947  	CreateTime string `json:"createTime,omitempty"`
  3948  	// ForceSendFields is a list of field names (e.g. "BitbucketServerConfig") to
  3949  	// unconditionally include in API requests. By default, fields with empty or
  3950  	// default values are omitted from API requests. See
  3951  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3952  	// details.
  3953  	ForceSendFields []string `json:"-"`
  3954  	// NullFields is a list of field names (e.g. "BitbucketServerConfig") to
  3955  	// include in API requests with the JSON null value. By default, fields with
  3956  	// empty values are omitted from API requests. See
  3957  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3958  	NullFields []string `json:"-"`
  3959  }
  3960  
  3961  func (s *UpdateBitbucketServerConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  3962  	type NoMethod UpdateBitbucketServerConfigOperationMetadata
  3963  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3964  }
  3965  
  3966  // UpdateGitHubEnterpriseConfigOperationMetadata: Metadata for
  3967  // `UpdateGitHubEnterpriseConfig` operation.
  3968  type UpdateGitHubEnterpriseConfigOperationMetadata struct {
  3969  	// CompleteTime: Time the operation was completed.
  3970  	CompleteTime string `json:"completeTime,omitempty"`
  3971  	// CreateTime: Time the operation was created.
  3972  	CreateTime string `json:"createTime,omitempty"`
  3973  	// GithubEnterpriseConfig: The resource name of the GitHubEnterprise to be
  3974  	// updated. Format:
  3975  	// `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
  3976  	GithubEnterpriseConfig string `json:"githubEnterpriseConfig,omitempty"`
  3977  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  3978  	// unconditionally include in API requests. By default, fields with empty or
  3979  	// default values are omitted from API requests. See
  3980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3981  	// details.
  3982  	ForceSendFields []string `json:"-"`
  3983  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  3984  	// requests with the JSON null value. By default, fields with empty values are
  3985  	// omitted from API requests. See
  3986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3987  	NullFields []string `json:"-"`
  3988  }
  3989  
  3990  func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  3991  	type NoMethod UpdateGitHubEnterpriseConfigOperationMetadata
  3992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3993  }
  3994  
  3995  // UpdateGitLabConfigOperationMetadata: Metadata for `UpdateGitLabConfig`
  3996  // operation.
  3997  type UpdateGitLabConfigOperationMetadata struct {
  3998  	// CompleteTime: Time the operation was completed.
  3999  	CompleteTime string `json:"completeTime,omitempty"`
  4000  	// CreateTime: Time the operation was created.
  4001  	CreateTime string `json:"createTime,omitempty"`
  4002  	// GitlabConfig: The resource name of the GitLabConfig to be created. Format:
  4003  	// `projects/{project}/locations/{location}/gitlabConfigs/{id}`.
  4004  	GitlabConfig string `json:"gitlabConfig,omitempty"`
  4005  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  4006  	// unconditionally include in API requests. By default, fields with empty or
  4007  	// default values are omitted from API requests. See
  4008  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4009  	// details.
  4010  	ForceSendFields []string `json:"-"`
  4011  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  4012  	// requests with the JSON null value. By default, fields with empty values are
  4013  	// omitted from API requests. See
  4014  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4015  	NullFields []string `json:"-"`
  4016  }
  4017  
  4018  func (s *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) {
  4019  	type NoMethod UpdateGitLabConfigOperationMetadata
  4020  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4021  }
  4022  
  4023  // UpdateWorkerPoolOperationMetadata: Metadata for the `UpdateWorkerPool`
  4024  // operation.
  4025  type UpdateWorkerPoolOperationMetadata struct {
  4026  	// CompleteTime: Time the operation was completed.
  4027  	CompleteTime string `json:"completeTime,omitempty"`
  4028  	// CreateTime: Time the operation was created.
  4029  	CreateTime string `json:"createTime,omitempty"`
  4030  	// WorkerPool: The resource name of the `WorkerPool` being updated. Format:
  4031  	// `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
  4032  	WorkerPool string `json:"workerPool,omitempty"`
  4033  	// ForceSendFields is a list of field names (e.g. "CompleteTime") to
  4034  	// unconditionally include in API requests. By default, fields with empty or
  4035  	// default values are omitted from API requests. See
  4036  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4037  	// details.
  4038  	ForceSendFields []string `json:"-"`
  4039  	// NullFields is a list of field names (e.g. "CompleteTime") to include in API
  4040  	// requests with the JSON null value. By default, fields with empty values are
  4041  	// omitted from API requests. See
  4042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4043  	NullFields []string `json:"-"`
  4044  }
  4045  
  4046  func (s *UpdateWorkerPoolOperationMetadata) MarshalJSON() ([]byte, error) {
  4047  	type NoMethod UpdateWorkerPoolOperationMetadata
  4048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4049  }
  4050  
  4051  // UploadedMavenArtifact: A Maven artifact uploaded using the MavenArtifact
  4052  // directive.
  4053  type UploadedMavenArtifact struct {
  4054  	// FileHashes: Hash types and values of the Maven Artifact.
  4055  	FileHashes *FileHashes `json:"fileHashes,omitempty"`
  4056  	// PushTiming: Output only. Stores timing information for pushing the specified
  4057  	// artifact.
  4058  	PushTiming *TimeSpan `json:"pushTiming,omitempty"`
  4059  	// Uri: URI of the uploaded artifact.
  4060  	Uri string `json:"uri,omitempty"`
  4061  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4062  	// unconditionally include in API requests. By default, fields with empty or
  4063  	// default values are omitted from API requests. See
  4064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4065  	// details.
  4066  	ForceSendFields []string `json:"-"`
  4067  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4068  	// requests with the JSON null value. By default, fields with empty values are
  4069  	// omitted from API requests. See
  4070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4071  	NullFields []string `json:"-"`
  4072  }
  4073  
  4074  func (s *UploadedMavenArtifact) MarshalJSON() ([]byte, error) {
  4075  	type NoMethod UploadedMavenArtifact
  4076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4077  }
  4078  
  4079  // UploadedNpmPackage: An npm package uploaded to Artifact Registry using the
  4080  // NpmPackage directive.
  4081  type UploadedNpmPackage struct {
  4082  	// FileHashes: Hash types and values of the npm package.
  4083  	FileHashes *FileHashes `json:"fileHashes,omitempty"`
  4084  	// PushTiming: Output only. Stores timing information for pushing the specified
  4085  	// artifact.
  4086  	PushTiming *TimeSpan `json:"pushTiming,omitempty"`
  4087  	// Uri: URI of the uploaded npm package.
  4088  	Uri string `json:"uri,omitempty"`
  4089  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4090  	// unconditionally include in API requests. By default, fields with empty or
  4091  	// default values are omitted from API requests. See
  4092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4093  	// details.
  4094  	ForceSendFields []string `json:"-"`
  4095  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4096  	// requests with the JSON null value. By default, fields with empty values are
  4097  	// omitted from API requests. See
  4098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4099  	NullFields []string `json:"-"`
  4100  }
  4101  
  4102  func (s *UploadedNpmPackage) MarshalJSON() ([]byte, error) {
  4103  	type NoMethod UploadedNpmPackage
  4104  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4105  }
  4106  
  4107  // UploadedPythonPackage: Artifact uploaded using the PythonPackage directive.
  4108  type UploadedPythonPackage struct {
  4109  	// FileHashes: Hash types and values of the Python Artifact.
  4110  	FileHashes *FileHashes `json:"fileHashes,omitempty"`
  4111  	// PushTiming: Output only. Stores timing information for pushing the specified
  4112  	// artifact.
  4113  	PushTiming *TimeSpan `json:"pushTiming,omitempty"`
  4114  	// Uri: URI of the uploaded artifact.
  4115  	Uri string `json:"uri,omitempty"`
  4116  	// ForceSendFields is a list of field names (e.g. "FileHashes") to
  4117  	// unconditionally include in API requests. By default, fields with empty or
  4118  	// default values are omitted from API requests. See
  4119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4120  	// details.
  4121  	ForceSendFields []string `json:"-"`
  4122  	// NullFields is a list of field names (e.g. "FileHashes") to include in API
  4123  	// requests with the JSON null value. By default, fields with empty values are
  4124  	// omitted from API requests. See
  4125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4126  	NullFields []string `json:"-"`
  4127  }
  4128  
  4129  func (s *UploadedPythonPackage) MarshalJSON() ([]byte, error) {
  4130  	type NoMethod UploadedPythonPackage
  4131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4132  }
  4133  
  4134  // Volume: Volume describes a Docker container volume which is mounted into
  4135  // build steps in order to persist files across build step execution.
  4136  type Volume struct {
  4137  	// Name: Name of the volume to mount. Volume names must be unique per build
  4138  	// step and must be valid names for Docker volumes. Each named volume must be
  4139  	// used by at least two build steps.
  4140  	Name string `json:"name,omitempty"`
  4141  	// Path: Path at which to mount the volume. Paths must be absolute and cannot
  4142  	// conflict with other volume paths on the same build step or with certain
  4143  	// reserved volume paths.
  4144  	Path string `json:"path,omitempty"`
  4145  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4146  	// include in API requests. By default, fields with empty or default values are
  4147  	// omitted from API requests. See
  4148  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4149  	// details.
  4150  	ForceSendFields []string `json:"-"`
  4151  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4152  	// with the JSON null value. By default, fields with empty values are omitted
  4153  	// from API requests. See
  4154  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4155  	NullFields []string `json:"-"`
  4156  }
  4157  
  4158  func (s *Volume) MarshalJSON() ([]byte, error) {
  4159  	type NoMethod Volume
  4160  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4161  }
  4162  
  4163  // Warning: A non-fatal problem encountered during the execution of the build.
  4164  type Warning struct {
  4165  	// Priority: The priority for this warning.
  4166  	//
  4167  	// Possible values:
  4168  	//   "PRIORITY_UNSPECIFIED" - Should not be used.
  4169  	//   "INFO" - e.g. deprecation warnings and alternative feature highlights.
  4170  	//   "WARNING" - e.g. automated detection of possible issues with the build.
  4171  	//   "ALERT" - e.g. alerts that a feature used in the build is pending removal
  4172  	Priority string `json:"priority,omitempty"`
  4173  	// Text: Explanation of the warning generated.
  4174  	Text string `json:"text,omitempty"`
  4175  	// ForceSendFields is a list of field names (e.g. "Priority") to
  4176  	// unconditionally include in API requests. By default, fields with empty or
  4177  	// default values are omitted from API requests. See
  4178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4179  	// details.
  4180  	ForceSendFields []string `json:"-"`
  4181  	// NullFields is a list of field names (e.g. "Priority") to include in API
  4182  	// requests with the JSON null value. By default, fields with empty values are
  4183  	// omitted from API requests. See
  4184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4185  	NullFields []string `json:"-"`
  4186  }
  4187  
  4188  func (s *Warning) MarshalJSON() ([]byte, error) {
  4189  	type NoMethod Warning
  4190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4191  }
  4192  
  4193  // WebhookConfig: WebhookConfig describes the configuration of a trigger that
  4194  // creates a build whenever a webhook is sent to a trigger's webhook URL.
  4195  type WebhookConfig struct {
  4196  	// Secret: Required. Resource name for the secret required as a URL parameter.
  4197  	Secret string `json:"secret,omitempty"`
  4198  	// State: Potential issues with the underlying Pub/Sub subscription
  4199  	// configuration. Only populated on get requests.
  4200  	//
  4201  	// Possible values:
  4202  	//   "STATE_UNSPECIFIED" - The webhook auth configuration not been checked.
  4203  	//   "OK" - The auth configuration is properly setup.
  4204  	//   "SECRET_DELETED" - The secret provided in auth_method has been deleted.
  4205  	State string `json:"state,omitempty"`
  4206  	// ForceSendFields is a list of field names (e.g. "Secret") to unconditionally
  4207  	// include in API requests. By default, fields with empty or default values are
  4208  	// omitted from API requests. See
  4209  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4210  	// details.
  4211  	ForceSendFields []string `json:"-"`
  4212  	// NullFields is a list of field names (e.g. "Secret") to include in API
  4213  	// requests with the JSON null value. By default, fields with empty values are
  4214  	// omitted from API requests. See
  4215  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4216  	NullFields []string `json:"-"`
  4217  }
  4218  
  4219  func (s *WebhookConfig) MarshalJSON() ([]byte, error) {
  4220  	type NoMethod WebhookConfig
  4221  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4222  }
  4223  
  4224  // WorkerConfig: Defines the configuration to be used for creating workers in
  4225  // the pool.
  4226  type WorkerConfig struct {
  4227  	// DiskSizeGb: Size of the disk attached to the worker, in GB. See Worker pool
  4228  	// config file
  4229  	// (https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  4230  	// Specify a value of up to 2000. If `0` is specified, Cloud Build will use a
  4231  	// standard disk size.
  4232  	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
  4233  	// MachineType: Machine type of a worker, such as `e2-medium`. See Worker pool
  4234  	// config file
  4235  	// (https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
  4236  	// If left blank, Cloud Build will use a sensible default.
  4237  	MachineType string `json:"machineType,omitempty"`
  4238  	// ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
  4239  	// unconditionally include in API requests. By default, fields with empty or
  4240  	// default values are omitted from API requests. See
  4241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4242  	// details.
  4243  	ForceSendFields []string `json:"-"`
  4244  	// NullFields is a list of field names (e.g. "DiskSizeGb") to include in API
  4245  	// requests with the JSON null value. By default, fields with empty values are
  4246  	// omitted from API requests. See
  4247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4248  	NullFields []string `json:"-"`
  4249  }
  4250  
  4251  func (s *WorkerConfig) MarshalJSON() ([]byte, error) {
  4252  	type NoMethod WorkerConfig
  4253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4254  }
  4255  
  4256  // WorkerPool: Configuration for a `WorkerPool`. Cloud Build owns and maintains
  4257  // a pool of workers for general use and have no access to a project's private
  4258  // network. By default, builds submitted to Cloud Build will use a worker from
  4259  // this pool. If your build needs access to resources on a private network,
  4260  // create and use a `WorkerPool` to run your builds. Private `WorkerPool`s give
  4261  // your builds access to any single VPC network that you administer, including
  4262  // any on-prem resources connected to that VPC network. For an overview of
  4263  // private pools, see Private pools overview
  4264  // (https://cloud.google.com/build/docs/private-pools/private-pools-overview).
  4265  type WorkerPool struct {
  4266  	// Annotations: User specified annotations. See
  4267  	// https://google.aip.dev/128#annotations for more details such as format and
  4268  	// size limitations.
  4269  	Annotations map[string]string `json:"annotations,omitempty"`
  4270  	// CreateTime: Output only. Time at which the request to create the
  4271  	// `WorkerPool` was received.
  4272  	CreateTime string `json:"createTime,omitempty"`
  4273  	// DeleteTime: Output only. Time at which the request to delete the
  4274  	// `WorkerPool` was received.
  4275  	DeleteTime string `json:"deleteTime,omitempty"`
  4276  	// DisplayName: A user-specified, human-readable name for the `WorkerPool`. If
  4277  	// provided, this value must be 1-63 characters.
  4278  	DisplayName string `json:"displayName,omitempty"`
  4279  	// Etag: Output only. Checksum computed by the server. May be sent on update
  4280  	// and delete requests to ensure that the client has an up-to-date value before
  4281  	// proceeding.
  4282  	Etag string `json:"etag,omitempty"`
  4283  	// Name: Output only. The resource name of the `WorkerPool`, with format
  4284  	// `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The
  4285  	// value of `{worker_pool}` is provided by `worker_pool_id` in
  4286  	// `CreateWorkerPool` request and the value of `{location}` is determined by
  4287  	// the endpoint accessed.
  4288  	Name string `json:"name,omitempty"`
  4289  	// PrivatePoolV1Config: Legacy Private Pool configuration.
  4290  	PrivatePoolV1Config *PrivatePoolV1Config `json:"privatePoolV1Config,omitempty"`
  4291  	// State: Output only. `WorkerPool` state.
  4292  	//
  4293  	// Possible values:
  4294  	//   "STATE_UNSPECIFIED" - State of the `WorkerPool` is unknown.
  4295  	//   "CREATING" - `WorkerPool` is being created.
  4296  	//   "RUNNING" - `WorkerPool` is running.
  4297  	//   "DELETING" - `WorkerPool` is being deleted: cancelling builds and draining
  4298  	// workers.
  4299  	//   "DELETED" - `WorkerPool` is deleted.
  4300  	//   "UPDATING" - `WorkerPool` is being updated; new builds cannot be run.
  4301  	State string `json:"state,omitempty"`
  4302  	// Uid: Output only. A unique identifier for the `WorkerPool`.
  4303  	Uid string `json:"uid,omitempty"`
  4304  	// UpdateTime: Output only. Time at which the request to update the
  4305  	// `WorkerPool` was received.
  4306  	UpdateTime string `json:"updateTime,omitempty"`
  4307  
  4308  	// ServerResponse contains the HTTP response code and headers from the server.
  4309  	googleapi.ServerResponse `json:"-"`
  4310  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  4311  	// unconditionally include in API requests. By default, fields with empty or
  4312  	// default values are omitted from API requests. See
  4313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4314  	// details.
  4315  	ForceSendFields []string `json:"-"`
  4316  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  4317  	// requests with the JSON null value. By default, fields with empty values are
  4318  	// omitted from API requests. See
  4319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4320  	NullFields []string `json:"-"`
  4321  }
  4322  
  4323  func (s *WorkerPool) MarshalJSON() ([]byte, error) {
  4324  	type NoMethod WorkerPool
  4325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4326  }
  4327  
  4328  type GithubDotComWebhookReceiveCall struct {
  4329  	s          *Service
  4330  	httpbody   *HttpBody
  4331  	urlParams_ gensupport.URLParams
  4332  	ctx_       context.Context
  4333  	header_    http.Header
  4334  }
  4335  
  4336  // Receive: ReceiveGitHubDotComWebhook is called when the API receives a
  4337  // github.com webhook.
  4338  func (r *GithubDotComWebhookService) Receive(httpbody *HttpBody) *GithubDotComWebhookReceiveCall {
  4339  	c := &GithubDotComWebhookReceiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4340  	c.httpbody = httpbody
  4341  	return c
  4342  }
  4343  
  4344  // WebhookKey sets the optional parameter "webhookKey": For GitHub Enterprise
  4345  // webhooks, this key is used to associate the webhook request with the
  4346  // GitHubEnterpriseConfig to use for validation.
  4347  func (c *GithubDotComWebhookReceiveCall) WebhookKey(webhookKey string) *GithubDotComWebhookReceiveCall {
  4348  	c.urlParams_.Set("webhookKey", webhookKey)
  4349  	return c
  4350  }
  4351  
  4352  // Fields allows partial responses to be retrieved. See
  4353  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4354  // details.
  4355  func (c *GithubDotComWebhookReceiveCall) Fields(s ...googleapi.Field) *GithubDotComWebhookReceiveCall {
  4356  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4357  	return c
  4358  }
  4359  
  4360  // Context sets the context to be used in this call's Do method.
  4361  func (c *GithubDotComWebhookReceiveCall) Context(ctx context.Context) *GithubDotComWebhookReceiveCall {
  4362  	c.ctx_ = ctx
  4363  	return c
  4364  }
  4365  
  4366  // Header returns a http.Header that can be modified by the caller to add
  4367  // headers to the request.
  4368  func (c *GithubDotComWebhookReceiveCall) Header() http.Header {
  4369  	if c.header_ == nil {
  4370  		c.header_ = make(http.Header)
  4371  	}
  4372  	return c.header_
  4373  }
  4374  
  4375  func (c *GithubDotComWebhookReceiveCall) doRequest(alt string) (*http.Response, error) {
  4376  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4377  	var body io.Reader = nil
  4378  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.httpbody)
  4379  	if err != nil {
  4380  		return nil, err
  4381  	}
  4382  	c.urlParams_.Set("alt", alt)
  4383  	c.urlParams_.Set("prettyPrint", "false")
  4384  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/githubDotComWebhook:receive")
  4385  	urls += "?" + c.urlParams_.Encode()
  4386  	req, err := http.NewRequest("POST", urls, body)
  4387  	if err != nil {
  4388  		return nil, err
  4389  	}
  4390  	req.Header = reqHeaders
  4391  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4392  }
  4393  
  4394  // Do executes the "cloudbuild.githubDotComWebhook.receive" call.
  4395  // Any non-2xx status code is an error. Response headers are in either
  4396  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  4397  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4398  // whether the returned error was because http.StatusNotModified was returned.
  4399  func (c *GithubDotComWebhookReceiveCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  4400  	gensupport.SetOptions(c.urlParams_, opts...)
  4401  	res, err := c.doRequest("json")
  4402  	if res != nil && res.StatusCode == http.StatusNotModified {
  4403  		if res.Body != nil {
  4404  			res.Body.Close()
  4405  		}
  4406  		return nil, gensupport.WrapError(&googleapi.Error{
  4407  			Code:   res.StatusCode,
  4408  			Header: res.Header,
  4409  		})
  4410  	}
  4411  	if err != nil {
  4412  		return nil, err
  4413  	}
  4414  	defer googleapi.CloseBody(res)
  4415  	if err := googleapi.CheckResponse(res); err != nil {
  4416  		return nil, gensupport.WrapError(err)
  4417  	}
  4418  	ret := &Empty{
  4419  		ServerResponse: googleapi.ServerResponse{
  4420  			Header:         res.Header,
  4421  			HTTPStatusCode: res.StatusCode,
  4422  		},
  4423  	}
  4424  	target := &ret
  4425  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4426  		return nil, err
  4427  	}
  4428  	return ret, nil
  4429  }
  4430  
  4431  type LocationsRegionalWebhookCall struct {
  4432  	s          *Service
  4433  	location   string
  4434  	httpbody   *HttpBody
  4435  	urlParams_ gensupport.URLParams
  4436  	ctx_       context.Context
  4437  	header_    http.Header
  4438  }
  4439  
  4440  // RegionalWebhook: ReceiveRegionalWebhook is called when the API receives a
  4441  // regional GitHub webhook.
  4442  //
  4443  // - location: The location where the webhook should be sent.
  4444  func (r *LocationsService) RegionalWebhook(location string, httpbody *HttpBody) *LocationsRegionalWebhookCall {
  4445  	c := &LocationsRegionalWebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4446  	c.location = location
  4447  	c.httpbody = httpbody
  4448  	return c
  4449  }
  4450  
  4451  // WebhookKey sets the optional parameter "webhookKey": For GitHub Enterprise
  4452  // webhooks, this key is used to associate the webhook request with the
  4453  // GitHubEnterpriseConfig to use for validation.
  4454  func (c *LocationsRegionalWebhookCall) WebhookKey(webhookKey string) *LocationsRegionalWebhookCall {
  4455  	c.urlParams_.Set("webhookKey", webhookKey)
  4456  	return c
  4457  }
  4458  
  4459  // Fields allows partial responses to be retrieved. See
  4460  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4461  // details.
  4462  func (c *LocationsRegionalWebhookCall) Fields(s ...googleapi.Field) *LocationsRegionalWebhookCall {
  4463  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4464  	return c
  4465  }
  4466  
  4467  // Context sets the context to be used in this call's Do method.
  4468  func (c *LocationsRegionalWebhookCall) Context(ctx context.Context) *LocationsRegionalWebhookCall {
  4469  	c.ctx_ = ctx
  4470  	return c
  4471  }
  4472  
  4473  // Header returns a http.Header that can be modified by the caller to add
  4474  // headers to the request.
  4475  func (c *LocationsRegionalWebhookCall) Header() http.Header {
  4476  	if c.header_ == nil {
  4477  		c.header_ = make(http.Header)
  4478  	}
  4479  	return c.header_
  4480  }
  4481  
  4482  func (c *LocationsRegionalWebhookCall) doRequest(alt string) (*http.Response, error) {
  4483  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4484  	var body io.Reader = nil
  4485  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.httpbody)
  4486  	if err != nil {
  4487  		return nil, err
  4488  	}
  4489  	c.urlParams_.Set("alt", alt)
  4490  	c.urlParams_.Set("prettyPrint", "false")
  4491  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/regionalWebhook")
  4492  	urls += "?" + c.urlParams_.Encode()
  4493  	req, err := http.NewRequest("POST", urls, body)
  4494  	if err != nil {
  4495  		return nil, err
  4496  	}
  4497  	req.Header = reqHeaders
  4498  	googleapi.Expand(req.URL, map[string]string{
  4499  		"location": c.location,
  4500  	})
  4501  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4502  }
  4503  
  4504  // Do executes the "cloudbuild.locations.regionalWebhook" call.
  4505  // Any non-2xx status code is an error. Response headers are in either
  4506  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  4507  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4508  // whether the returned error was because http.StatusNotModified was returned.
  4509  func (c *LocationsRegionalWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  4510  	gensupport.SetOptions(c.urlParams_, opts...)
  4511  	res, err := c.doRequest("json")
  4512  	if res != nil && res.StatusCode == http.StatusNotModified {
  4513  		if res.Body != nil {
  4514  			res.Body.Close()
  4515  		}
  4516  		return nil, gensupport.WrapError(&googleapi.Error{
  4517  			Code:   res.StatusCode,
  4518  			Header: res.Header,
  4519  		})
  4520  	}
  4521  	if err != nil {
  4522  		return nil, err
  4523  	}
  4524  	defer googleapi.CloseBody(res)
  4525  	if err := googleapi.CheckResponse(res); err != nil {
  4526  		return nil, gensupport.WrapError(err)
  4527  	}
  4528  	ret := &Empty{
  4529  		ServerResponse: googleapi.ServerResponse{
  4530  			Header:         res.Header,
  4531  			HTTPStatusCode: res.StatusCode,
  4532  		},
  4533  	}
  4534  	target := &ret
  4535  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4536  		return nil, err
  4537  	}
  4538  	return ret, nil
  4539  }
  4540  
  4541  type OperationsCancelCall struct {
  4542  	s                      *Service
  4543  	name                   string
  4544  	canceloperationrequest *CancelOperationRequest
  4545  	urlParams_             gensupport.URLParams
  4546  	ctx_                   context.Context
  4547  	header_                http.Header
  4548  }
  4549  
  4550  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  4551  // server makes a best effort to cancel the operation, but success is not
  4552  // guaranteed. If the server doesn't support this method, it returns
  4553  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  4554  // other methods to check whether the cancellation succeeded or whether the
  4555  // operation completed despite cancellation. On successful cancellation, the
  4556  // operation is not deleted; instead, it becomes an operation with an
  4557  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  4558  // `Code.CANCELLED`.
  4559  //
  4560  // - name: The name of the operation resource to be cancelled.
  4561  func (r *OperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OperationsCancelCall {
  4562  	c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4563  	c.name = name
  4564  	c.canceloperationrequest = canceloperationrequest
  4565  	return c
  4566  }
  4567  
  4568  // Fields allows partial responses to be retrieved. See
  4569  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4570  // details.
  4571  func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall {
  4572  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4573  	return c
  4574  }
  4575  
  4576  // Context sets the context to be used in this call's Do method.
  4577  func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall {
  4578  	c.ctx_ = ctx
  4579  	return c
  4580  }
  4581  
  4582  // Header returns a http.Header that can be modified by the caller to add
  4583  // headers to the request.
  4584  func (c *OperationsCancelCall) Header() http.Header {
  4585  	if c.header_ == nil {
  4586  		c.header_ = make(http.Header)
  4587  	}
  4588  	return c.header_
  4589  }
  4590  
  4591  func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  4592  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4593  	var body io.Reader = nil
  4594  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  4595  	if err != nil {
  4596  		return nil, err
  4597  	}
  4598  	c.urlParams_.Set("alt", alt)
  4599  	c.urlParams_.Set("prettyPrint", "false")
  4600  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  4601  	urls += "?" + c.urlParams_.Encode()
  4602  	req, err := http.NewRequest("POST", urls, body)
  4603  	if err != nil {
  4604  		return nil, err
  4605  	}
  4606  	req.Header = reqHeaders
  4607  	googleapi.Expand(req.URL, map[string]string{
  4608  		"name": c.name,
  4609  	})
  4610  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4611  }
  4612  
  4613  // Do executes the "cloudbuild.operations.cancel" call.
  4614  // Any non-2xx status code is an error. Response headers are in either
  4615  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  4616  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4617  // whether the returned error was because http.StatusNotModified was returned.
  4618  func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  4619  	gensupport.SetOptions(c.urlParams_, opts...)
  4620  	res, err := c.doRequest("json")
  4621  	if res != nil && res.StatusCode == http.StatusNotModified {
  4622  		if res.Body != nil {
  4623  			res.Body.Close()
  4624  		}
  4625  		return nil, gensupport.WrapError(&googleapi.Error{
  4626  			Code:   res.StatusCode,
  4627  			Header: res.Header,
  4628  		})
  4629  	}
  4630  	if err != nil {
  4631  		return nil, err
  4632  	}
  4633  	defer googleapi.CloseBody(res)
  4634  	if err := googleapi.CheckResponse(res); err != nil {
  4635  		return nil, gensupport.WrapError(err)
  4636  	}
  4637  	ret := &Empty{
  4638  		ServerResponse: googleapi.ServerResponse{
  4639  			Header:         res.Header,
  4640  			HTTPStatusCode: res.StatusCode,
  4641  		},
  4642  	}
  4643  	target := &ret
  4644  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4645  		return nil, err
  4646  	}
  4647  	return ret, nil
  4648  }
  4649  
  4650  type OperationsGetCall struct {
  4651  	s            *Service
  4652  	name         string
  4653  	urlParams_   gensupport.URLParams
  4654  	ifNoneMatch_ string
  4655  	ctx_         context.Context
  4656  	header_      http.Header
  4657  }
  4658  
  4659  // Get: Gets the latest state of a long-running operation. Clients can use this
  4660  // method to poll the operation result at intervals as recommended by the API
  4661  // service.
  4662  //
  4663  // - name: The name of the operation resource.
  4664  func (r *OperationsService) Get(name string) *OperationsGetCall {
  4665  	c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4666  	c.name = name
  4667  	return c
  4668  }
  4669  
  4670  // Fields allows partial responses to be retrieved. See
  4671  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4672  // details.
  4673  func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall {
  4674  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4675  	return c
  4676  }
  4677  
  4678  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4679  // object's ETag matches the given value. This is useful for getting updates
  4680  // only after the object has changed since the last request.
  4681  func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall {
  4682  	c.ifNoneMatch_ = entityTag
  4683  	return c
  4684  }
  4685  
  4686  // Context sets the context to be used in this call's Do method.
  4687  func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall {
  4688  	c.ctx_ = ctx
  4689  	return c
  4690  }
  4691  
  4692  // Header returns a http.Header that can be modified by the caller to add
  4693  // headers to the request.
  4694  func (c *OperationsGetCall) Header() http.Header {
  4695  	if c.header_ == nil {
  4696  		c.header_ = make(http.Header)
  4697  	}
  4698  	return c.header_
  4699  }
  4700  
  4701  func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) {
  4702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4703  	if c.ifNoneMatch_ != "" {
  4704  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4705  	}
  4706  	var body io.Reader = nil
  4707  	c.urlParams_.Set("alt", alt)
  4708  	c.urlParams_.Set("prettyPrint", "false")
  4709  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4710  	urls += "?" + c.urlParams_.Encode()
  4711  	req, err := http.NewRequest("GET", urls, body)
  4712  	if err != nil {
  4713  		return nil, err
  4714  	}
  4715  	req.Header = reqHeaders
  4716  	googleapi.Expand(req.URL, map[string]string{
  4717  		"name": c.name,
  4718  	})
  4719  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4720  }
  4721  
  4722  // Do executes the "cloudbuild.operations.get" call.
  4723  // Any non-2xx status code is an error. Response headers are in either
  4724  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4725  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4726  // whether the returned error was because http.StatusNotModified was returned.
  4727  func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4728  	gensupport.SetOptions(c.urlParams_, opts...)
  4729  	res, err := c.doRequest("json")
  4730  	if res != nil && res.StatusCode == http.StatusNotModified {
  4731  		if res.Body != nil {
  4732  			res.Body.Close()
  4733  		}
  4734  		return nil, gensupport.WrapError(&googleapi.Error{
  4735  			Code:   res.StatusCode,
  4736  			Header: res.Header,
  4737  		})
  4738  	}
  4739  	if err != nil {
  4740  		return nil, err
  4741  	}
  4742  	defer googleapi.CloseBody(res)
  4743  	if err := googleapi.CheckResponse(res); err != nil {
  4744  		return nil, gensupport.WrapError(err)
  4745  	}
  4746  	ret := &Operation{
  4747  		ServerResponse: googleapi.ServerResponse{
  4748  			Header:         res.Header,
  4749  			HTTPStatusCode: res.StatusCode,
  4750  		},
  4751  	}
  4752  	target := &ret
  4753  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4754  		return nil, err
  4755  	}
  4756  	return ret, nil
  4757  }
  4758  
  4759  type ProjectsBuildsApproveCall struct {
  4760  	s                   *Service
  4761  	name                string
  4762  	approvebuildrequest *ApproveBuildRequest
  4763  	urlParams_          gensupport.URLParams
  4764  	ctx_                context.Context
  4765  	header_             http.Header
  4766  }
  4767  
  4768  // Approve: Approves or rejects a pending build. If approved, the returned LRO
  4769  // will be analogous to the LRO returned from a CreateBuild call. If rejected,
  4770  // the returned LRO will be immediately done.
  4771  //
  4772  //   - name: Name of the target build. For example:
  4773  //     "projects/{$project_id}/builds/{$build_id}".
  4774  func (r *ProjectsBuildsService) Approve(name string, approvebuildrequest *ApproveBuildRequest) *ProjectsBuildsApproveCall {
  4775  	c := &ProjectsBuildsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4776  	c.name = name
  4777  	c.approvebuildrequest = approvebuildrequest
  4778  	return c
  4779  }
  4780  
  4781  // Fields allows partial responses to be retrieved. See
  4782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4783  // details.
  4784  func (c *ProjectsBuildsApproveCall) Fields(s ...googleapi.Field) *ProjectsBuildsApproveCall {
  4785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4786  	return c
  4787  }
  4788  
  4789  // Context sets the context to be used in this call's Do method.
  4790  func (c *ProjectsBuildsApproveCall) Context(ctx context.Context) *ProjectsBuildsApproveCall {
  4791  	c.ctx_ = ctx
  4792  	return c
  4793  }
  4794  
  4795  // Header returns a http.Header that can be modified by the caller to add
  4796  // headers to the request.
  4797  func (c *ProjectsBuildsApproveCall) Header() http.Header {
  4798  	if c.header_ == nil {
  4799  		c.header_ = make(http.Header)
  4800  	}
  4801  	return c.header_
  4802  }
  4803  
  4804  func (c *ProjectsBuildsApproveCall) doRequest(alt string) (*http.Response, error) {
  4805  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4806  	var body io.Reader = nil
  4807  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.approvebuildrequest)
  4808  	if err != nil {
  4809  		return nil, err
  4810  	}
  4811  	c.urlParams_.Set("alt", alt)
  4812  	c.urlParams_.Set("prettyPrint", "false")
  4813  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:approve")
  4814  	urls += "?" + c.urlParams_.Encode()
  4815  	req, err := http.NewRequest("POST", urls, body)
  4816  	if err != nil {
  4817  		return nil, err
  4818  	}
  4819  	req.Header = reqHeaders
  4820  	googleapi.Expand(req.URL, map[string]string{
  4821  		"name": c.name,
  4822  	})
  4823  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4824  }
  4825  
  4826  // Do executes the "cloudbuild.projects.builds.approve" call.
  4827  // Any non-2xx status code is an error. Response headers are in either
  4828  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4829  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4830  // whether the returned error was because http.StatusNotModified was returned.
  4831  func (c *ProjectsBuildsApproveCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4832  	gensupport.SetOptions(c.urlParams_, opts...)
  4833  	res, err := c.doRequest("json")
  4834  	if res != nil && res.StatusCode == http.StatusNotModified {
  4835  		if res.Body != nil {
  4836  			res.Body.Close()
  4837  		}
  4838  		return nil, gensupport.WrapError(&googleapi.Error{
  4839  			Code:   res.StatusCode,
  4840  			Header: res.Header,
  4841  		})
  4842  	}
  4843  	if err != nil {
  4844  		return nil, err
  4845  	}
  4846  	defer googleapi.CloseBody(res)
  4847  	if err := googleapi.CheckResponse(res); err != nil {
  4848  		return nil, gensupport.WrapError(err)
  4849  	}
  4850  	ret := &Operation{
  4851  		ServerResponse: googleapi.ServerResponse{
  4852  			Header:         res.Header,
  4853  			HTTPStatusCode: res.StatusCode,
  4854  		},
  4855  	}
  4856  	target := &ret
  4857  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4858  		return nil, err
  4859  	}
  4860  	return ret, nil
  4861  }
  4862  
  4863  type ProjectsBuildsCancelCall struct {
  4864  	s                  *Service
  4865  	projectId          string
  4866  	id                 string
  4867  	cancelbuildrequest *CancelBuildRequest
  4868  	urlParams_         gensupport.URLParams
  4869  	ctx_               context.Context
  4870  	header_            http.Header
  4871  }
  4872  
  4873  // Cancel: Cancels a build in progress.
  4874  //
  4875  // - id: ID of the build.
  4876  // - projectId: ID of the project.
  4877  func (r *ProjectsBuildsService) Cancel(projectId string, id string, cancelbuildrequest *CancelBuildRequest) *ProjectsBuildsCancelCall {
  4878  	c := &ProjectsBuildsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4879  	c.projectId = projectId
  4880  	c.id = id
  4881  	c.cancelbuildrequest = cancelbuildrequest
  4882  	return c
  4883  }
  4884  
  4885  // Fields allows partial responses to be retrieved. See
  4886  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4887  // details.
  4888  func (c *ProjectsBuildsCancelCall) Fields(s ...googleapi.Field) *ProjectsBuildsCancelCall {
  4889  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4890  	return c
  4891  }
  4892  
  4893  // Context sets the context to be used in this call's Do method.
  4894  func (c *ProjectsBuildsCancelCall) Context(ctx context.Context) *ProjectsBuildsCancelCall {
  4895  	c.ctx_ = ctx
  4896  	return c
  4897  }
  4898  
  4899  // Header returns a http.Header that can be modified by the caller to add
  4900  // headers to the request.
  4901  func (c *ProjectsBuildsCancelCall) Header() http.Header {
  4902  	if c.header_ == nil {
  4903  		c.header_ = make(http.Header)
  4904  	}
  4905  	return c.header_
  4906  }
  4907  
  4908  func (c *ProjectsBuildsCancelCall) doRequest(alt string) (*http.Response, error) {
  4909  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4910  	var body io.Reader = nil
  4911  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelbuildrequest)
  4912  	if err != nil {
  4913  		return nil, err
  4914  	}
  4915  	c.urlParams_.Set("alt", alt)
  4916  	c.urlParams_.Set("prettyPrint", "false")
  4917  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/builds/{id}:cancel")
  4918  	urls += "?" + c.urlParams_.Encode()
  4919  	req, err := http.NewRequest("POST", urls, body)
  4920  	if err != nil {
  4921  		return nil, err
  4922  	}
  4923  	req.Header = reqHeaders
  4924  	googleapi.Expand(req.URL, map[string]string{
  4925  		"projectId": c.projectId,
  4926  		"id":        c.id,
  4927  	})
  4928  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4929  }
  4930  
  4931  // Do executes the "cloudbuild.projects.builds.cancel" call.
  4932  // Any non-2xx status code is an error. Response headers are in either
  4933  // *Build.ServerResponse.Header or (if a response was returned at all) in
  4934  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4935  // whether the returned error was because http.StatusNotModified was returned.
  4936  func (c *ProjectsBuildsCancelCall) Do(opts ...googleapi.CallOption) (*Build, error) {
  4937  	gensupport.SetOptions(c.urlParams_, opts...)
  4938  	res, err := c.doRequest("json")
  4939  	if res != nil && res.StatusCode == http.StatusNotModified {
  4940  		if res.Body != nil {
  4941  			res.Body.Close()
  4942  		}
  4943  		return nil, gensupport.WrapError(&googleapi.Error{
  4944  			Code:   res.StatusCode,
  4945  			Header: res.Header,
  4946  		})
  4947  	}
  4948  	if err != nil {
  4949  		return nil, err
  4950  	}
  4951  	defer googleapi.CloseBody(res)
  4952  	if err := googleapi.CheckResponse(res); err != nil {
  4953  		return nil, gensupport.WrapError(err)
  4954  	}
  4955  	ret := &Build{
  4956  		ServerResponse: googleapi.ServerResponse{
  4957  			Header:         res.Header,
  4958  			HTTPStatusCode: res.StatusCode,
  4959  		},
  4960  	}
  4961  	target := &ret
  4962  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4963  		return nil, err
  4964  	}
  4965  	return ret, nil
  4966  }
  4967  
  4968  type ProjectsBuildsCreateCall struct {
  4969  	s          *Service
  4970  	projectId  string
  4971  	build      *Build
  4972  	urlParams_ gensupport.URLParams
  4973  	ctx_       context.Context
  4974  	header_    http.Header
  4975  }
  4976  
  4977  // Create: Starts a build with the specified configuration. This method returns
  4978  // a long-running `Operation`, which includes the build ID. Pass the build ID
  4979  // to `GetBuild` to determine the build status (such as `SUCCESS` or
  4980  // `FAILURE`).
  4981  //
  4982  // - projectId: ID of the project.
  4983  func (r *ProjectsBuildsService) Create(projectId string, build *Build) *ProjectsBuildsCreateCall {
  4984  	c := &ProjectsBuildsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4985  	c.projectId = projectId
  4986  	c.build = build
  4987  	return c
  4988  }
  4989  
  4990  // Parent sets the optional parameter "parent": The parent resource where this
  4991  // build will be created. Format: `projects/{project}/locations/{location}`
  4992  func (c *ProjectsBuildsCreateCall) Parent(parent string) *ProjectsBuildsCreateCall {
  4993  	c.urlParams_.Set("parent", parent)
  4994  	return c
  4995  }
  4996  
  4997  // Fields allows partial responses to be retrieved. See
  4998  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4999  // details.
  5000  func (c *ProjectsBuildsCreateCall) Fields(s ...googleapi.Field) *ProjectsBuildsCreateCall {
  5001  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5002  	return c
  5003  }
  5004  
  5005  // Context sets the context to be used in this call's Do method.
  5006  func (c *ProjectsBuildsCreateCall) Context(ctx context.Context) *ProjectsBuildsCreateCall {
  5007  	c.ctx_ = ctx
  5008  	return c
  5009  }
  5010  
  5011  // Header returns a http.Header that can be modified by the caller to add
  5012  // headers to the request.
  5013  func (c *ProjectsBuildsCreateCall) Header() http.Header {
  5014  	if c.header_ == nil {
  5015  		c.header_ = make(http.Header)
  5016  	}
  5017  	return c.header_
  5018  }
  5019  
  5020  func (c *ProjectsBuildsCreateCall) doRequest(alt string) (*http.Response, error) {
  5021  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5022  	var body io.Reader = nil
  5023  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.build)
  5024  	if err != nil {
  5025  		return nil, err
  5026  	}
  5027  	c.urlParams_.Set("alt", alt)
  5028  	c.urlParams_.Set("prettyPrint", "false")
  5029  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/builds")
  5030  	urls += "?" + c.urlParams_.Encode()
  5031  	req, err := http.NewRequest("POST", urls, body)
  5032  	if err != nil {
  5033  		return nil, err
  5034  	}
  5035  	req.Header = reqHeaders
  5036  	googleapi.Expand(req.URL, map[string]string{
  5037  		"projectId": c.projectId,
  5038  	})
  5039  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5040  }
  5041  
  5042  // Do executes the "cloudbuild.projects.builds.create" call.
  5043  // Any non-2xx status code is an error. Response headers are in either
  5044  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5045  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5046  // whether the returned error was because http.StatusNotModified was returned.
  5047  func (c *ProjectsBuildsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5048  	gensupport.SetOptions(c.urlParams_, opts...)
  5049  	res, err := c.doRequest("json")
  5050  	if res != nil && res.StatusCode == http.StatusNotModified {
  5051  		if res.Body != nil {
  5052  			res.Body.Close()
  5053  		}
  5054  		return nil, gensupport.WrapError(&googleapi.Error{
  5055  			Code:   res.StatusCode,
  5056  			Header: res.Header,
  5057  		})
  5058  	}
  5059  	if err != nil {
  5060  		return nil, err
  5061  	}
  5062  	defer googleapi.CloseBody(res)
  5063  	if err := googleapi.CheckResponse(res); err != nil {
  5064  		return nil, gensupport.WrapError(err)
  5065  	}
  5066  	ret := &Operation{
  5067  		ServerResponse: googleapi.ServerResponse{
  5068  			Header:         res.Header,
  5069  			HTTPStatusCode: res.StatusCode,
  5070  		},
  5071  	}
  5072  	target := &ret
  5073  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5074  		return nil, err
  5075  	}
  5076  	return ret, nil
  5077  }
  5078  
  5079  type ProjectsBuildsGetCall struct {
  5080  	s            *Service
  5081  	projectId    string
  5082  	id           string
  5083  	urlParams_   gensupport.URLParams
  5084  	ifNoneMatch_ string
  5085  	ctx_         context.Context
  5086  	header_      http.Header
  5087  }
  5088  
  5089  // Get: Returns information about a previously requested build. The `Build`
  5090  // that is returned includes its status (such as `SUCCESS`, `FAILURE`, or
  5091  // `WORKING`), and timing information.
  5092  //
  5093  // - id: ID of the build.
  5094  // - projectId: ID of the project.
  5095  func (r *ProjectsBuildsService) Get(projectId string, id string) *ProjectsBuildsGetCall {
  5096  	c := &ProjectsBuildsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5097  	c.projectId = projectId
  5098  	c.id = id
  5099  	return c
  5100  }
  5101  
  5102  // Name sets the optional parameter "name": The name of the `Build` to
  5103  // retrieve. Format: `projects/{project}/locations/{location}/builds/{build}`
  5104  func (c *ProjectsBuildsGetCall) Name(name string) *ProjectsBuildsGetCall {
  5105  	c.urlParams_.Set("name", name)
  5106  	return c
  5107  }
  5108  
  5109  // Fields allows partial responses to be retrieved. See
  5110  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5111  // details.
  5112  func (c *ProjectsBuildsGetCall) Fields(s ...googleapi.Field) *ProjectsBuildsGetCall {
  5113  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5114  	return c
  5115  }
  5116  
  5117  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5118  // object's ETag matches the given value. This is useful for getting updates
  5119  // only after the object has changed since the last request.
  5120  func (c *ProjectsBuildsGetCall) IfNoneMatch(entityTag string) *ProjectsBuildsGetCall {
  5121  	c.ifNoneMatch_ = entityTag
  5122  	return c
  5123  }
  5124  
  5125  // Context sets the context to be used in this call's Do method.
  5126  func (c *ProjectsBuildsGetCall) Context(ctx context.Context) *ProjectsBuildsGetCall {
  5127  	c.ctx_ = ctx
  5128  	return c
  5129  }
  5130  
  5131  // Header returns a http.Header that can be modified by the caller to add
  5132  // headers to the request.
  5133  func (c *ProjectsBuildsGetCall) Header() http.Header {
  5134  	if c.header_ == nil {
  5135  		c.header_ = make(http.Header)
  5136  	}
  5137  	return c.header_
  5138  }
  5139  
  5140  func (c *ProjectsBuildsGetCall) doRequest(alt string) (*http.Response, error) {
  5141  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5142  	if c.ifNoneMatch_ != "" {
  5143  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5144  	}
  5145  	var body io.Reader = nil
  5146  	c.urlParams_.Set("alt", alt)
  5147  	c.urlParams_.Set("prettyPrint", "false")
  5148  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/builds/{id}")
  5149  	urls += "?" + c.urlParams_.Encode()
  5150  	req, err := http.NewRequest("GET", urls, body)
  5151  	if err != nil {
  5152  		return nil, err
  5153  	}
  5154  	req.Header = reqHeaders
  5155  	googleapi.Expand(req.URL, map[string]string{
  5156  		"projectId": c.projectId,
  5157  		"id":        c.id,
  5158  	})
  5159  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5160  }
  5161  
  5162  // Do executes the "cloudbuild.projects.builds.get" call.
  5163  // Any non-2xx status code is an error. Response headers are in either
  5164  // *Build.ServerResponse.Header or (if a response was returned at all) in
  5165  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5166  // whether the returned error was because http.StatusNotModified was returned.
  5167  func (c *ProjectsBuildsGetCall) Do(opts ...googleapi.CallOption) (*Build, error) {
  5168  	gensupport.SetOptions(c.urlParams_, opts...)
  5169  	res, err := c.doRequest("json")
  5170  	if res != nil && res.StatusCode == http.StatusNotModified {
  5171  		if res.Body != nil {
  5172  			res.Body.Close()
  5173  		}
  5174  		return nil, gensupport.WrapError(&googleapi.Error{
  5175  			Code:   res.StatusCode,
  5176  			Header: res.Header,
  5177  		})
  5178  	}
  5179  	if err != nil {
  5180  		return nil, err
  5181  	}
  5182  	defer googleapi.CloseBody(res)
  5183  	if err := googleapi.CheckResponse(res); err != nil {
  5184  		return nil, gensupport.WrapError(err)
  5185  	}
  5186  	ret := &Build{
  5187  		ServerResponse: googleapi.ServerResponse{
  5188  			Header:         res.Header,
  5189  			HTTPStatusCode: res.StatusCode,
  5190  		},
  5191  	}
  5192  	target := &ret
  5193  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5194  		return nil, err
  5195  	}
  5196  	return ret, nil
  5197  }
  5198  
  5199  type ProjectsBuildsListCall struct {
  5200  	s            *Service
  5201  	projectId    string
  5202  	urlParams_   gensupport.URLParams
  5203  	ifNoneMatch_ string
  5204  	ctx_         context.Context
  5205  	header_      http.Header
  5206  }
  5207  
  5208  // List: Lists previously requested builds. Previously requested builds may
  5209  // still be in-progress, or may have finished successfully or unsuccessfully.
  5210  //
  5211  // - projectId: ID of the project.
  5212  func (r *ProjectsBuildsService) List(projectId string) *ProjectsBuildsListCall {
  5213  	c := &ProjectsBuildsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5214  	c.projectId = projectId
  5215  	return c
  5216  }
  5217  
  5218  // Filter sets the optional parameter "filter": The raw filter text to
  5219  // constrain the results.
  5220  func (c *ProjectsBuildsListCall) Filter(filter string) *ProjectsBuildsListCall {
  5221  	c.urlParams_.Set("filter", filter)
  5222  	return c
  5223  }
  5224  
  5225  // PageSize sets the optional parameter "pageSize": Number of results to return
  5226  // in the list.
  5227  func (c *ProjectsBuildsListCall) PageSize(pageSize int64) *ProjectsBuildsListCall {
  5228  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5229  	return c
  5230  }
  5231  
  5232  // PageToken sets the optional parameter "pageToken": The page token for the
  5233  // next page of Builds. If unspecified, the first page of results is returned.
  5234  // If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In
  5235  // this case, the token should be discarded, and pagination should be restarted
  5236  // from the first page of results. See https://google.aip.dev/158 for more.
  5237  func (c *ProjectsBuildsListCall) PageToken(pageToken string) *ProjectsBuildsListCall {
  5238  	c.urlParams_.Set("pageToken", pageToken)
  5239  	return c
  5240  }
  5241  
  5242  // Parent sets the optional parameter "parent": The parent of the collection of
  5243  // `Builds`. Format: `projects/{project}/locations/{location}`
  5244  func (c *ProjectsBuildsListCall) Parent(parent string) *ProjectsBuildsListCall {
  5245  	c.urlParams_.Set("parent", parent)
  5246  	return c
  5247  }
  5248  
  5249  // Fields allows partial responses to be retrieved. See
  5250  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5251  // details.
  5252  func (c *ProjectsBuildsListCall) Fields(s ...googleapi.Field) *ProjectsBuildsListCall {
  5253  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5254  	return c
  5255  }
  5256  
  5257  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5258  // object's ETag matches the given value. This is useful for getting updates
  5259  // only after the object has changed since the last request.
  5260  func (c *ProjectsBuildsListCall) IfNoneMatch(entityTag string) *ProjectsBuildsListCall {
  5261  	c.ifNoneMatch_ = entityTag
  5262  	return c
  5263  }
  5264  
  5265  // Context sets the context to be used in this call's Do method.
  5266  func (c *ProjectsBuildsListCall) Context(ctx context.Context) *ProjectsBuildsListCall {
  5267  	c.ctx_ = ctx
  5268  	return c
  5269  }
  5270  
  5271  // Header returns a http.Header that can be modified by the caller to add
  5272  // headers to the request.
  5273  func (c *ProjectsBuildsListCall) Header() http.Header {
  5274  	if c.header_ == nil {
  5275  		c.header_ = make(http.Header)
  5276  	}
  5277  	return c.header_
  5278  }
  5279  
  5280  func (c *ProjectsBuildsListCall) doRequest(alt string) (*http.Response, error) {
  5281  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5282  	if c.ifNoneMatch_ != "" {
  5283  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5284  	}
  5285  	var body io.Reader = nil
  5286  	c.urlParams_.Set("alt", alt)
  5287  	c.urlParams_.Set("prettyPrint", "false")
  5288  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/builds")
  5289  	urls += "?" + c.urlParams_.Encode()
  5290  	req, err := http.NewRequest("GET", urls, body)
  5291  	if err != nil {
  5292  		return nil, err
  5293  	}
  5294  	req.Header = reqHeaders
  5295  	googleapi.Expand(req.URL, map[string]string{
  5296  		"projectId": c.projectId,
  5297  	})
  5298  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5299  }
  5300  
  5301  // Do executes the "cloudbuild.projects.builds.list" call.
  5302  // Any non-2xx status code is an error. Response headers are in either
  5303  // *ListBuildsResponse.ServerResponse.Header or (if a response was returned at
  5304  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5305  // check whether the returned error was because http.StatusNotModified was
  5306  // returned.
  5307  func (c *ProjectsBuildsListCall) Do(opts ...googleapi.CallOption) (*ListBuildsResponse, error) {
  5308  	gensupport.SetOptions(c.urlParams_, opts...)
  5309  	res, err := c.doRequest("json")
  5310  	if res != nil && res.StatusCode == http.StatusNotModified {
  5311  		if res.Body != nil {
  5312  			res.Body.Close()
  5313  		}
  5314  		return nil, gensupport.WrapError(&googleapi.Error{
  5315  			Code:   res.StatusCode,
  5316  			Header: res.Header,
  5317  		})
  5318  	}
  5319  	if err != nil {
  5320  		return nil, err
  5321  	}
  5322  	defer googleapi.CloseBody(res)
  5323  	if err := googleapi.CheckResponse(res); err != nil {
  5324  		return nil, gensupport.WrapError(err)
  5325  	}
  5326  	ret := &ListBuildsResponse{
  5327  		ServerResponse: googleapi.ServerResponse{
  5328  			Header:         res.Header,
  5329  			HTTPStatusCode: res.StatusCode,
  5330  		},
  5331  	}
  5332  	target := &ret
  5333  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5334  		return nil, err
  5335  	}
  5336  	return ret, nil
  5337  }
  5338  
  5339  // Pages invokes f for each page of results.
  5340  // A non-nil error returned from f will halt the iteration.
  5341  // The provided context supersedes any context provided to the Context method.
  5342  func (c *ProjectsBuildsListCall) Pages(ctx context.Context, f func(*ListBuildsResponse) error) error {
  5343  	c.ctx_ = ctx
  5344  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5345  	for {
  5346  		x, err := c.Do()
  5347  		if err != nil {
  5348  			return err
  5349  		}
  5350  		if err := f(x); err != nil {
  5351  			return err
  5352  		}
  5353  		if x.NextPageToken == "" {
  5354  			return nil
  5355  		}
  5356  		c.PageToken(x.NextPageToken)
  5357  	}
  5358  }
  5359  
  5360  type ProjectsBuildsRetryCall struct {
  5361  	s                 *Service
  5362  	projectId         string
  5363  	id                string
  5364  	retrybuildrequest *RetryBuildRequest
  5365  	urlParams_        gensupport.URLParams
  5366  	ctx_              context.Context
  5367  	header_           http.Header
  5368  }
  5369  
  5370  // Retry: Creates a new build based on the specified build. This method creates
  5371  // a new build using the original build request, which may or may not result in
  5372  // an identical build. For triggered builds: * Triggered builds resolve to a
  5373  // precise revision; therefore a retry of a triggered build will result in a
  5374  // build that uses the same revision. For non-triggered builds that specify
  5375  // `RepoSource`: * If the original build built from the tip of a branch, the
  5376  // retried build will build from the tip of that branch, which may not be the
  5377  // same revision as the original build. * If the original build specified a
  5378  // commit sha or revision ID, the retried build will use the identical source.
  5379  // For builds that specify `StorageSource`: * If the original build pulled
  5380  // source from Cloud Storage without specifying the generation of the object,
  5381  // the new build will use the current object, which may be different from the
  5382  // original build source. * If the original build pulled source from Cloud
  5383  // Storage and specified the generation of the object, the new build will
  5384  // attempt to use the same object, which may or may not be available depending
  5385  // on the bucket's lifecycle management settings.
  5386  //
  5387  // - id: Build ID of the original build.
  5388  // - projectId: ID of the project.
  5389  func (r *ProjectsBuildsService) Retry(projectId string, id string, retrybuildrequest *RetryBuildRequest) *ProjectsBuildsRetryCall {
  5390  	c := &ProjectsBuildsRetryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5391  	c.projectId = projectId
  5392  	c.id = id
  5393  	c.retrybuildrequest = retrybuildrequest
  5394  	return c
  5395  }
  5396  
  5397  // Fields allows partial responses to be retrieved. See
  5398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5399  // details.
  5400  func (c *ProjectsBuildsRetryCall) Fields(s ...googleapi.Field) *ProjectsBuildsRetryCall {
  5401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5402  	return c
  5403  }
  5404  
  5405  // Context sets the context to be used in this call's Do method.
  5406  func (c *ProjectsBuildsRetryCall) Context(ctx context.Context) *ProjectsBuildsRetryCall {
  5407  	c.ctx_ = ctx
  5408  	return c
  5409  }
  5410  
  5411  // Header returns a http.Header that can be modified by the caller to add
  5412  // headers to the request.
  5413  func (c *ProjectsBuildsRetryCall) Header() http.Header {
  5414  	if c.header_ == nil {
  5415  		c.header_ = make(http.Header)
  5416  	}
  5417  	return c.header_
  5418  }
  5419  
  5420  func (c *ProjectsBuildsRetryCall) doRequest(alt string) (*http.Response, error) {
  5421  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5422  	var body io.Reader = nil
  5423  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.retrybuildrequest)
  5424  	if err != nil {
  5425  		return nil, err
  5426  	}
  5427  	c.urlParams_.Set("alt", alt)
  5428  	c.urlParams_.Set("prettyPrint", "false")
  5429  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/builds/{id}:retry")
  5430  	urls += "?" + c.urlParams_.Encode()
  5431  	req, err := http.NewRequest("POST", urls, body)
  5432  	if err != nil {
  5433  		return nil, err
  5434  	}
  5435  	req.Header = reqHeaders
  5436  	googleapi.Expand(req.URL, map[string]string{
  5437  		"projectId": c.projectId,
  5438  		"id":        c.id,
  5439  	})
  5440  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5441  }
  5442  
  5443  // Do executes the "cloudbuild.projects.builds.retry" call.
  5444  // Any non-2xx status code is an error. Response headers are in either
  5445  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5446  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5447  // whether the returned error was because http.StatusNotModified was returned.
  5448  func (c *ProjectsBuildsRetryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5449  	gensupport.SetOptions(c.urlParams_, opts...)
  5450  	res, err := c.doRequest("json")
  5451  	if res != nil && res.StatusCode == http.StatusNotModified {
  5452  		if res.Body != nil {
  5453  			res.Body.Close()
  5454  		}
  5455  		return nil, gensupport.WrapError(&googleapi.Error{
  5456  			Code:   res.StatusCode,
  5457  			Header: res.Header,
  5458  		})
  5459  	}
  5460  	if err != nil {
  5461  		return nil, err
  5462  	}
  5463  	defer googleapi.CloseBody(res)
  5464  	if err := googleapi.CheckResponse(res); err != nil {
  5465  		return nil, gensupport.WrapError(err)
  5466  	}
  5467  	ret := &Operation{
  5468  		ServerResponse: googleapi.ServerResponse{
  5469  			Header:         res.Header,
  5470  			HTTPStatusCode: res.StatusCode,
  5471  		},
  5472  	}
  5473  	target := &ret
  5474  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5475  		return nil, err
  5476  	}
  5477  	return ret, nil
  5478  }
  5479  
  5480  type ProjectsGithubEnterpriseConfigsCreateCall struct {
  5481  	s                      *Service
  5482  	parent                 string
  5483  	githubenterpriseconfig *GitHubEnterpriseConfig
  5484  	urlParams_             gensupport.URLParams
  5485  	ctx_                   context.Context
  5486  	header_                http.Header
  5487  }
  5488  
  5489  // Create: Create an association between a GCP project and a GitHub Enterprise
  5490  // server.
  5491  //
  5492  //   - parent: Name of the parent project. For example:
  5493  //     projects/{$project_number} or projects/{$project_id}.
  5494  func (r *ProjectsGithubEnterpriseConfigsService) Create(parent string, githubenterpriseconfig *GitHubEnterpriseConfig) *ProjectsGithubEnterpriseConfigsCreateCall {
  5495  	c := &ProjectsGithubEnterpriseConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5496  	c.parent = parent
  5497  	c.githubenterpriseconfig = githubenterpriseconfig
  5498  	return c
  5499  }
  5500  
  5501  // GheConfigId sets the optional parameter "gheConfigId": The ID to use for the
  5502  // GithubEnterpriseConfig, which will become the final component of the
  5503  // GithubEnterpriseConfig's resource name. ghe_config_id must meet the
  5504  // following requirements: + They must contain only alphanumeric characters and
  5505  // dashes. + They can be 1-64 characters long. + They must begin and end with
  5506  // an alphanumeric character
  5507  func (c *ProjectsGithubEnterpriseConfigsCreateCall) GheConfigId(gheConfigId string) *ProjectsGithubEnterpriseConfigsCreateCall {
  5508  	c.urlParams_.Set("gheConfigId", gheConfigId)
  5509  	return c
  5510  }
  5511  
  5512  // ProjectId sets the optional parameter "projectId": ID of the project.
  5513  func (c *ProjectsGithubEnterpriseConfigsCreateCall) ProjectId(projectId string) *ProjectsGithubEnterpriseConfigsCreateCall {
  5514  	c.urlParams_.Set("projectId", projectId)
  5515  	return c
  5516  }
  5517  
  5518  // Fields allows partial responses to be retrieved. See
  5519  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5520  // details.
  5521  func (c *ProjectsGithubEnterpriseConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsGithubEnterpriseConfigsCreateCall {
  5522  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5523  	return c
  5524  }
  5525  
  5526  // Context sets the context to be used in this call's Do method.
  5527  func (c *ProjectsGithubEnterpriseConfigsCreateCall) Context(ctx context.Context) *ProjectsGithubEnterpriseConfigsCreateCall {
  5528  	c.ctx_ = ctx
  5529  	return c
  5530  }
  5531  
  5532  // Header returns a http.Header that can be modified by the caller to add
  5533  // headers to the request.
  5534  func (c *ProjectsGithubEnterpriseConfigsCreateCall) Header() http.Header {
  5535  	if c.header_ == nil {
  5536  		c.header_ = make(http.Header)
  5537  	}
  5538  	return c.header_
  5539  }
  5540  
  5541  func (c *ProjectsGithubEnterpriseConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  5542  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5543  	var body io.Reader = nil
  5544  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.githubenterpriseconfig)
  5545  	if err != nil {
  5546  		return nil, err
  5547  	}
  5548  	c.urlParams_.Set("alt", alt)
  5549  	c.urlParams_.Set("prettyPrint", "false")
  5550  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/githubEnterpriseConfigs")
  5551  	urls += "?" + c.urlParams_.Encode()
  5552  	req, err := http.NewRequest("POST", urls, body)
  5553  	if err != nil {
  5554  		return nil, err
  5555  	}
  5556  	req.Header = reqHeaders
  5557  	googleapi.Expand(req.URL, map[string]string{
  5558  		"parent": c.parent,
  5559  	})
  5560  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5561  }
  5562  
  5563  // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.create" call.
  5564  // Any non-2xx status code is an error. Response headers are in either
  5565  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5566  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5567  // whether the returned error was because http.StatusNotModified was returned.
  5568  func (c *ProjectsGithubEnterpriseConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5569  	gensupport.SetOptions(c.urlParams_, opts...)
  5570  	res, err := c.doRequest("json")
  5571  	if res != nil && res.StatusCode == http.StatusNotModified {
  5572  		if res.Body != nil {
  5573  			res.Body.Close()
  5574  		}
  5575  		return nil, gensupport.WrapError(&googleapi.Error{
  5576  			Code:   res.StatusCode,
  5577  			Header: res.Header,
  5578  		})
  5579  	}
  5580  	if err != nil {
  5581  		return nil, err
  5582  	}
  5583  	defer googleapi.CloseBody(res)
  5584  	if err := googleapi.CheckResponse(res); err != nil {
  5585  		return nil, gensupport.WrapError(err)
  5586  	}
  5587  	ret := &Operation{
  5588  		ServerResponse: googleapi.ServerResponse{
  5589  			Header:         res.Header,
  5590  			HTTPStatusCode: res.StatusCode,
  5591  		},
  5592  	}
  5593  	target := &ret
  5594  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5595  		return nil, err
  5596  	}
  5597  	return ret, nil
  5598  }
  5599  
  5600  type ProjectsGithubEnterpriseConfigsDeleteCall struct {
  5601  	s          *Service
  5602  	name       string
  5603  	urlParams_ gensupport.URLParams
  5604  	ctx_       context.Context
  5605  	header_    http.Header
  5606  }
  5607  
  5608  // Delete: Delete an association between a GCP project and a GitHub Enterprise
  5609  // server.
  5610  //
  5611  //   - name: This field should contain the name of the enterprise config
  5612  //     resource. For example:
  5613  //     "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$
  5614  //     config_id}".
  5615  func (r *ProjectsGithubEnterpriseConfigsService) Delete(name string) *ProjectsGithubEnterpriseConfigsDeleteCall {
  5616  	c := &ProjectsGithubEnterpriseConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5617  	c.name = name
  5618  	return c
  5619  }
  5620  
  5621  // ConfigId sets the optional parameter "configId": Unique identifier of the
  5622  // `GitHubEnterpriseConfig`
  5623  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) ConfigId(configId string) *ProjectsGithubEnterpriseConfigsDeleteCall {
  5624  	c.urlParams_.Set("configId", configId)
  5625  	return c
  5626  }
  5627  
  5628  // ProjectId sets the optional parameter "projectId": ID of the project
  5629  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) ProjectId(projectId string) *ProjectsGithubEnterpriseConfigsDeleteCall {
  5630  	c.urlParams_.Set("projectId", projectId)
  5631  	return c
  5632  }
  5633  
  5634  // Fields allows partial responses to be retrieved. See
  5635  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5636  // details.
  5637  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsGithubEnterpriseConfigsDeleteCall {
  5638  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5639  	return c
  5640  }
  5641  
  5642  // Context sets the context to be used in this call's Do method.
  5643  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) Context(ctx context.Context) *ProjectsGithubEnterpriseConfigsDeleteCall {
  5644  	c.ctx_ = ctx
  5645  	return c
  5646  }
  5647  
  5648  // Header returns a http.Header that can be modified by the caller to add
  5649  // headers to the request.
  5650  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) Header() http.Header {
  5651  	if c.header_ == nil {
  5652  		c.header_ = make(http.Header)
  5653  	}
  5654  	return c.header_
  5655  }
  5656  
  5657  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5658  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5659  	var body io.Reader = nil
  5660  	c.urlParams_.Set("alt", alt)
  5661  	c.urlParams_.Set("prettyPrint", "false")
  5662  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5663  	urls += "?" + c.urlParams_.Encode()
  5664  	req, err := http.NewRequest("DELETE", urls, body)
  5665  	if err != nil {
  5666  		return nil, err
  5667  	}
  5668  	req.Header = reqHeaders
  5669  	googleapi.Expand(req.URL, map[string]string{
  5670  		"name": c.name,
  5671  	})
  5672  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5673  }
  5674  
  5675  // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.delete" call.
  5676  // Any non-2xx status code is an error. Response headers are in either
  5677  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5678  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5679  // whether the returned error was because http.StatusNotModified was returned.
  5680  func (c *ProjectsGithubEnterpriseConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5681  	gensupport.SetOptions(c.urlParams_, opts...)
  5682  	res, err := c.doRequest("json")
  5683  	if res != nil && res.StatusCode == http.StatusNotModified {
  5684  		if res.Body != nil {
  5685  			res.Body.Close()
  5686  		}
  5687  		return nil, gensupport.WrapError(&googleapi.Error{
  5688  			Code:   res.StatusCode,
  5689  			Header: res.Header,
  5690  		})
  5691  	}
  5692  	if err != nil {
  5693  		return nil, err
  5694  	}
  5695  	defer googleapi.CloseBody(res)
  5696  	if err := googleapi.CheckResponse(res); err != nil {
  5697  		return nil, gensupport.WrapError(err)
  5698  	}
  5699  	ret := &Operation{
  5700  		ServerResponse: googleapi.ServerResponse{
  5701  			Header:         res.Header,
  5702  			HTTPStatusCode: res.StatusCode,
  5703  		},
  5704  	}
  5705  	target := &ret
  5706  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5707  		return nil, err
  5708  	}
  5709  	return ret, nil
  5710  }
  5711  
  5712  type ProjectsGithubEnterpriseConfigsGetCall struct {
  5713  	s            *Service
  5714  	name         string
  5715  	urlParams_   gensupport.URLParams
  5716  	ifNoneMatch_ string
  5717  	ctx_         context.Context
  5718  	header_      http.Header
  5719  }
  5720  
  5721  // Get: Retrieve a GitHubEnterpriseConfig.
  5722  //
  5723  //   - name: This field should contain the name of the enterprise config
  5724  //     resource. For example:
  5725  //     "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$
  5726  //     config_id}".
  5727  func (r *ProjectsGithubEnterpriseConfigsService) Get(name string) *ProjectsGithubEnterpriseConfigsGetCall {
  5728  	c := &ProjectsGithubEnterpriseConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5729  	c.name = name
  5730  	return c
  5731  }
  5732  
  5733  // ConfigId sets the optional parameter "configId": Unique identifier of the
  5734  // `GitHubEnterpriseConfig`
  5735  func (c *ProjectsGithubEnterpriseConfigsGetCall) ConfigId(configId string) *ProjectsGithubEnterpriseConfigsGetCall {
  5736  	c.urlParams_.Set("configId", configId)
  5737  	return c
  5738  }
  5739  
  5740  // ProjectId sets the optional parameter "projectId": ID of the project
  5741  func (c *ProjectsGithubEnterpriseConfigsGetCall) ProjectId(projectId string) *ProjectsGithubEnterpriseConfigsGetCall {
  5742  	c.urlParams_.Set("projectId", projectId)
  5743  	return c
  5744  }
  5745  
  5746  // Fields allows partial responses to be retrieved. See
  5747  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5748  // details.
  5749  func (c *ProjectsGithubEnterpriseConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsGithubEnterpriseConfigsGetCall {
  5750  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5751  	return c
  5752  }
  5753  
  5754  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5755  // object's ETag matches the given value. This is useful for getting updates
  5756  // only after the object has changed since the last request.
  5757  func (c *ProjectsGithubEnterpriseConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsGithubEnterpriseConfigsGetCall {
  5758  	c.ifNoneMatch_ = entityTag
  5759  	return c
  5760  }
  5761  
  5762  // Context sets the context to be used in this call's Do method.
  5763  func (c *ProjectsGithubEnterpriseConfigsGetCall) Context(ctx context.Context) *ProjectsGithubEnterpriseConfigsGetCall {
  5764  	c.ctx_ = ctx
  5765  	return c
  5766  }
  5767  
  5768  // Header returns a http.Header that can be modified by the caller to add
  5769  // headers to the request.
  5770  func (c *ProjectsGithubEnterpriseConfigsGetCall) Header() http.Header {
  5771  	if c.header_ == nil {
  5772  		c.header_ = make(http.Header)
  5773  	}
  5774  	return c.header_
  5775  }
  5776  
  5777  func (c *ProjectsGithubEnterpriseConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  5778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5779  	if c.ifNoneMatch_ != "" {
  5780  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5781  	}
  5782  	var body io.Reader = nil
  5783  	c.urlParams_.Set("alt", alt)
  5784  	c.urlParams_.Set("prettyPrint", "false")
  5785  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5786  	urls += "?" + c.urlParams_.Encode()
  5787  	req, err := http.NewRequest("GET", urls, body)
  5788  	if err != nil {
  5789  		return nil, err
  5790  	}
  5791  	req.Header = reqHeaders
  5792  	googleapi.Expand(req.URL, map[string]string{
  5793  		"name": c.name,
  5794  	})
  5795  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5796  }
  5797  
  5798  // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.get" call.
  5799  // Any non-2xx status code is an error. Response headers are in either
  5800  // *GitHubEnterpriseConfig.ServerResponse.Header or (if a response was returned
  5801  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5802  // check whether the returned error was because http.StatusNotModified was
  5803  // returned.
  5804  func (c *ProjectsGithubEnterpriseConfigsGetCall) Do(opts ...googleapi.CallOption) (*GitHubEnterpriseConfig, error) {
  5805  	gensupport.SetOptions(c.urlParams_, opts...)
  5806  	res, err := c.doRequest("json")
  5807  	if res != nil && res.StatusCode == http.StatusNotModified {
  5808  		if res.Body != nil {
  5809  			res.Body.Close()
  5810  		}
  5811  		return nil, gensupport.WrapError(&googleapi.Error{
  5812  			Code:   res.StatusCode,
  5813  			Header: res.Header,
  5814  		})
  5815  	}
  5816  	if err != nil {
  5817  		return nil, err
  5818  	}
  5819  	defer googleapi.CloseBody(res)
  5820  	if err := googleapi.CheckResponse(res); err != nil {
  5821  		return nil, gensupport.WrapError(err)
  5822  	}
  5823  	ret := &GitHubEnterpriseConfig{
  5824  		ServerResponse: googleapi.ServerResponse{
  5825  			Header:         res.Header,
  5826  			HTTPStatusCode: res.StatusCode,
  5827  		},
  5828  	}
  5829  	target := &ret
  5830  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5831  		return nil, err
  5832  	}
  5833  	return ret, nil
  5834  }
  5835  
  5836  type ProjectsGithubEnterpriseConfigsListCall struct {
  5837  	s            *Service
  5838  	parent       string
  5839  	urlParams_   gensupport.URLParams
  5840  	ifNoneMatch_ string
  5841  	ctx_         context.Context
  5842  	header_      http.Header
  5843  }
  5844  
  5845  // List: List all GitHubEnterpriseConfigs for a given project.
  5846  //
  5847  //   - parent: Name of the parent project. For example:
  5848  //     projects/{$project_number} or projects/{$project_id}.
  5849  func (r *ProjectsGithubEnterpriseConfigsService) List(parent string) *ProjectsGithubEnterpriseConfigsListCall {
  5850  	c := &ProjectsGithubEnterpriseConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5851  	c.parent = parent
  5852  	return c
  5853  }
  5854  
  5855  // ProjectId sets the optional parameter "projectId": ID of the project
  5856  func (c *ProjectsGithubEnterpriseConfigsListCall) ProjectId(projectId string) *ProjectsGithubEnterpriseConfigsListCall {
  5857  	c.urlParams_.Set("projectId", projectId)
  5858  	return c
  5859  }
  5860  
  5861  // Fields allows partial responses to be retrieved. See
  5862  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5863  // details.
  5864  func (c *ProjectsGithubEnterpriseConfigsListCall) Fields(s ...googleapi.Field) *ProjectsGithubEnterpriseConfigsListCall {
  5865  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5866  	return c
  5867  }
  5868  
  5869  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5870  // object's ETag matches the given value. This is useful for getting updates
  5871  // only after the object has changed since the last request.
  5872  func (c *ProjectsGithubEnterpriseConfigsListCall) IfNoneMatch(entityTag string) *ProjectsGithubEnterpriseConfigsListCall {
  5873  	c.ifNoneMatch_ = entityTag
  5874  	return c
  5875  }
  5876  
  5877  // Context sets the context to be used in this call's Do method.
  5878  func (c *ProjectsGithubEnterpriseConfigsListCall) Context(ctx context.Context) *ProjectsGithubEnterpriseConfigsListCall {
  5879  	c.ctx_ = ctx
  5880  	return c
  5881  }
  5882  
  5883  // Header returns a http.Header that can be modified by the caller to add
  5884  // headers to the request.
  5885  func (c *ProjectsGithubEnterpriseConfigsListCall) Header() http.Header {
  5886  	if c.header_ == nil {
  5887  		c.header_ = make(http.Header)
  5888  	}
  5889  	return c.header_
  5890  }
  5891  
  5892  func (c *ProjectsGithubEnterpriseConfigsListCall) doRequest(alt string) (*http.Response, error) {
  5893  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5894  	if c.ifNoneMatch_ != "" {
  5895  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5896  	}
  5897  	var body io.Reader = nil
  5898  	c.urlParams_.Set("alt", alt)
  5899  	c.urlParams_.Set("prettyPrint", "false")
  5900  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/githubEnterpriseConfigs")
  5901  	urls += "?" + c.urlParams_.Encode()
  5902  	req, err := http.NewRequest("GET", urls, body)
  5903  	if err != nil {
  5904  		return nil, err
  5905  	}
  5906  	req.Header = reqHeaders
  5907  	googleapi.Expand(req.URL, map[string]string{
  5908  		"parent": c.parent,
  5909  	})
  5910  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5911  }
  5912  
  5913  // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.list" call.
  5914  // Any non-2xx status code is an error. Response headers are in either
  5915  // *ListGithubEnterpriseConfigsResponse.ServerResponse.Header or (if a response
  5916  // was returned at all) in error.(*googleapi.Error).Header. Use
  5917  // googleapi.IsNotModified to check whether the returned error was because
  5918  // http.StatusNotModified was returned.
  5919  func (c *ProjectsGithubEnterpriseConfigsListCall) Do(opts ...googleapi.CallOption) (*ListGithubEnterpriseConfigsResponse, error) {
  5920  	gensupport.SetOptions(c.urlParams_, opts...)
  5921  	res, err := c.doRequest("json")
  5922  	if res != nil && res.StatusCode == http.StatusNotModified {
  5923  		if res.Body != nil {
  5924  			res.Body.Close()
  5925  		}
  5926  		return nil, gensupport.WrapError(&googleapi.Error{
  5927  			Code:   res.StatusCode,
  5928  			Header: res.Header,
  5929  		})
  5930  	}
  5931  	if err != nil {
  5932  		return nil, err
  5933  	}
  5934  	defer googleapi.CloseBody(res)
  5935  	if err := googleapi.CheckResponse(res); err != nil {
  5936  		return nil, gensupport.WrapError(err)
  5937  	}
  5938  	ret := &ListGithubEnterpriseConfigsResponse{
  5939  		ServerResponse: googleapi.ServerResponse{
  5940  			Header:         res.Header,
  5941  			HTTPStatusCode: res.StatusCode,
  5942  		},
  5943  	}
  5944  	target := &ret
  5945  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5946  		return nil, err
  5947  	}
  5948  	return ret, nil
  5949  }
  5950  
  5951  type ProjectsGithubEnterpriseConfigsPatchCall struct {
  5952  	s                      *Service
  5953  	name                   string
  5954  	githubenterpriseconfig *GitHubEnterpriseConfig
  5955  	urlParams_             gensupport.URLParams
  5956  	ctx_                   context.Context
  5957  	header_                http.Header
  5958  }
  5959  
  5960  // Patch: Update an association between a GCP project and a GitHub Enterprise
  5961  // server.
  5962  //
  5963  //   - name: Optional. The full resource name for the GitHubEnterpriseConfig For
  5964  //     example:
  5965  //     "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$
  5966  //     config_id}".
  5967  func (r *ProjectsGithubEnterpriseConfigsService) Patch(name string, githubenterpriseconfig *GitHubEnterpriseConfig) *ProjectsGithubEnterpriseConfigsPatchCall {
  5968  	c := &ProjectsGithubEnterpriseConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5969  	c.name = name
  5970  	c.githubenterpriseconfig = githubenterpriseconfig
  5971  	return c
  5972  }
  5973  
  5974  // UpdateMask sets the optional parameter "updateMask": Update mask for the
  5975  // resource. If this is set, the server will only update the fields specified
  5976  // in the field mask. Otherwise, a full update of the mutable resource fields
  5977  // will be performed.
  5978  func (c *ProjectsGithubEnterpriseConfigsPatchCall) UpdateMask(updateMask string) *ProjectsGithubEnterpriseConfigsPatchCall {
  5979  	c.urlParams_.Set("updateMask", updateMask)
  5980  	return c
  5981  }
  5982  
  5983  // Fields allows partial responses to be retrieved. See
  5984  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5985  // details.
  5986  func (c *ProjectsGithubEnterpriseConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsGithubEnterpriseConfigsPatchCall {
  5987  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5988  	return c
  5989  }
  5990  
  5991  // Context sets the context to be used in this call's Do method.
  5992  func (c *ProjectsGithubEnterpriseConfigsPatchCall) Context(ctx context.Context) *ProjectsGithubEnterpriseConfigsPatchCall {
  5993  	c.ctx_ = ctx
  5994  	return c
  5995  }
  5996  
  5997  // Header returns a http.Header that can be modified by the caller to add
  5998  // headers to the request.
  5999  func (c *ProjectsGithubEnterpriseConfigsPatchCall) Header() http.Header {
  6000  	if c.header_ == nil {
  6001  		c.header_ = make(http.Header)
  6002  	}
  6003  	return c.header_
  6004  }
  6005  
  6006  func (c *ProjectsGithubEnterpriseConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  6007  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6008  	var body io.Reader = nil
  6009  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.githubenterpriseconfig)
  6010  	if err != nil {
  6011  		return nil, err
  6012  	}
  6013  	c.urlParams_.Set("alt", alt)
  6014  	c.urlParams_.Set("prettyPrint", "false")
  6015  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6016  	urls += "?" + c.urlParams_.Encode()
  6017  	req, err := http.NewRequest("PATCH", urls, body)
  6018  	if err != nil {
  6019  		return nil, err
  6020  	}
  6021  	req.Header = reqHeaders
  6022  	googleapi.Expand(req.URL, map[string]string{
  6023  		"name": c.name,
  6024  	})
  6025  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6026  }
  6027  
  6028  // Do executes the "cloudbuild.projects.githubEnterpriseConfigs.patch" call.
  6029  // Any non-2xx status code is an error. Response headers are in either
  6030  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6031  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6032  // whether the returned error was because http.StatusNotModified was returned.
  6033  func (c *ProjectsGithubEnterpriseConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6034  	gensupport.SetOptions(c.urlParams_, opts...)
  6035  	res, err := c.doRequest("json")
  6036  	if res != nil && res.StatusCode == http.StatusNotModified {
  6037  		if res.Body != nil {
  6038  			res.Body.Close()
  6039  		}
  6040  		return nil, gensupport.WrapError(&googleapi.Error{
  6041  			Code:   res.StatusCode,
  6042  			Header: res.Header,
  6043  		})
  6044  	}
  6045  	if err != nil {
  6046  		return nil, err
  6047  	}
  6048  	defer googleapi.CloseBody(res)
  6049  	if err := googleapi.CheckResponse(res); err != nil {
  6050  		return nil, gensupport.WrapError(err)
  6051  	}
  6052  	ret := &Operation{
  6053  		ServerResponse: googleapi.ServerResponse{
  6054  			Header:         res.Header,
  6055  			HTTPStatusCode: res.StatusCode,
  6056  		},
  6057  	}
  6058  	target := &ret
  6059  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6060  		return nil, err
  6061  	}
  6062  	return ret, nil
  6063  }
  6064  
  6065  type ProjectsLocationsGetDefaultServiceAccountCall struct {
  6066  	s            *Service
  6067  	name         string
  6068  	urlParams_   gensupport.URLParams
  6069  	ifNoneMatch_ string
  6070  	ctx_         context.Context
  6071  	header_      http.Header
  6072  }
  6073  
  6074  // GetDefaultServiceAccount: Returns the `DefaultServiceAccount` used by the
  6075  // project.
  6076  //
  6077  //   - name: The name of the `DefaultServiceAccount` to retrieve. Format:
  6078  //     `projects/{project}/locations/{location}/defaultServiceAccount`.
  6079  func (r *ProjectsLocationsService) GetDefaultServiceAccount(name string) *ProjectsLocationsGetDefaultServiceAccountCall {
  6080  	c := &ProjectsLocationsGetDefaultServiceAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6081  	c.name = name
  6082  	return c
  6083  }
  6084  
  6085  // Fields allows partial responses to be retrieved. See
  6086  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6087  // details.
  6088  func (c *ProjectsLocationsGetDefaultServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetDefaultServiceAccountCall {
  6089  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6090  	return c
  6091  }
  6092  
  6093  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6094  // object's ETag matches the given value. This is useful for getting updates
  6095  // only after the object has changed since the last request.
  6096  func (c *ProjectsLocationsGetDefaultServiceAccountCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetDefaultServiceAccountCall {
  6097  	c.ifNoneMatch_ = entityTag
  6098  	return c
  6099  }
  6100  
  6101  // Context sets the context to be used in this call's Do method.
  6102  func (c *ProjectsLocationsGetDefaultServiceAccountCall) Context(ctx context.Context) *ProjectsLocationsGetDefaultServiceAccountCall {
  6103  	c.ctx_ = ctx
  6104  	return c
  6105  }
  6106  
  6107  // Header returns a http.Header that can be modified by the caller to add
  6108  // headers to the request.
  6109  func (c *ProjectsLocationsGetDefaultServiceAccountCall) Header() http.Header {
  6110  	if c.header_ == nil {
  6111  		c.header_ = make(http.Header)
  6112  	}
  6113  	return c.header_
  6114  }
  6115  
  6116  func (c *ProjectsLocationsGetDefaultServiceAccountCall) doRequest(alt string) (*http.Response, error) {
  6117  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6118  	if c.ifNoneMatch_ != "" {
  6119  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6120  	}
  6121  	var body io.Reader = nil
  6122  	c.urlParams_.Set("alt", alt)
  6123  	c.urlParams_.Set("prettyPrint", "false")
  6124  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6125  	urls += "?" + c.urlParams_.Encode()
  6126  	req, err := http.NewRequest("GET", urls, body)
  6127  	if err != nil {
  6128  		return nil, err
  6129  	}
  6130  	req.Header = reqHeaders
  6131  	googleapi.Expand(req.URL, map[string]string{
  6132  		"name": c.name,
  6133  	})
  6134  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6135  }
  6136  
  6137  // Do executes the "cloudbuild.projects.locations.getDefaultServiceAccount" call.
  6138  // Any non-2xx status code is an error. Response headers are in either
  6139  // *DefaultServiceAccount.ServerResponse.Header or (if a response was returned
  6140  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6141  // check whether the returned error was because http.StatusNotModified was
  6142  // returned.
  6143  func (c *ProjectsLocationsGetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) (*DefaultServiceAccount, error) {
  6144  	gensupport.SetOptions(c.urlParams_, opts...)
  6145  	res, err := c.doRequest("json")
  6146  	if res != nil && res.StatusCode == http.StatusNotModified {
  6147  		if res.Body != nil {
  6148  			res.Body.Close()
  6149  		}
  6150  		return nil, gensupport.WrapError(&googleapi.Error{
  6151  			Code:   res.StatusCode,
  6152  			Header: res.Header,
  6153  		})
  6154  	}
  6155  	if err != nil {
  6156  		return nil, err
  6157  	}
  6158  	defer googleapi.CloseBody(res)
  6159  	if err := googleapi.CheckResponse(res); err != nil {
  6160  		return nil, gensupport.WrapError(err)
  6161  	}
  6162  	ret := &DefaultServiceAccount{
  6163  		ServerResponse: googleapi.ServerResponse{
  6164  			Header:         res.Header,
  6165  			HTTPStatusCode: res.StatusCode,
  6166  		},
  6167  	}
  6168  	target := &ret
  6169  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6170  		return nil, err
  6171  	}
  6172  	return ret, nil
  6173  }
  6174  
  6175  type ProjectsLocationsBitbucketServerConfigsCreateCall struct {
  6176  	s                     *Service
  6177  	parent                string
  6178  	bitbucketserverconfig *BitbucketServerConfig
  6179  	urlParams_            gensupport.URLParams
  6180  	ctx_                  context.Context
  6181  	header_               http.Header
  6182  }
  6183  
  6184  // Create: Creates a new `BitbucketServerConfig`. This API is experimental.
  6185  //
  6186  // - parent: Name of the parent resource.
  6187  func (r *ProjectsLocationsBitbucketServerConfigsService) Create(parent string, bitbucketserverconfig *BitbucketServerConfig) *ProjectsLocationsBitbucketServerConfigsCreateCall {
  6188  	c := &ProjectsLocationsBitbucketServerConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6189  	c.parent = parent
  6190  	c.bitbucketserverconfig = bitbucketserverconfig
  6191  	return c
  6192  }
  6193  
  6194  // BitbucketServerConfigId sets the optional parameter
  6195  // "bitbucketServerConfigId": The ID to use for the BitbucketServerConfig,
  6196  // which will become the final component of the BitbucketServerConfig's
  6197  // resource name. bitbucket_server_config_id must meet the following
  6198  // requirements: + They must contain only alphanumeric characters and dashes. +
  6199  // They can be 1-64 characters long. + They must begin and end with an
  6200  // alphanumeric character.
  6201  func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) BitbucketServerConfigId(bitbucketServerConfigId string) *ProjectsLocationsBitbucketServerConfigsCreateCall {
  6202  	c.urlParams_.Set("bitbucketServerConfigId", bitbucketServerConfigId)
  6203  	return c
  6204  }
  6205  
  6206  // Fields allows partial responses to be retrieved. See
  6207  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6208  // details.
  6209  func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsCreateCall {
  6210  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6211  	return c
  6212  }
  6213  
  6214  // Context sets the context to be used in this call's Do method.
  6215  func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsCreateCall {
  6216  	c.ctx_ = ctx
  6217  	return c
  6218  }
  6219  
  6220  // Header returns a http.Header that can be modified by the caller to add
  6221  // headers to the request.
  6222  func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) Header() http.Header {
  6223  	if c.header_ == nil {
  6224  		c.header_ = make(http.Header)
  6225  	}
  6226  	return c.header_
  6227  }
  6228  
  6229  func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  6230  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6231  	var body io.Reader = nil
  6232  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.bitbucketserverconfig)
  6233  	if err != nil {
  6234  		return nil, err
  6235  	}
  6236  	c.urlParams_.Set("alt", alt)
  6237  	c.urlParams_.Set("prettyPrint", "false")
  6238  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/bitbucketServerConfigs")
  6239  	urls += "?" + c.urlParams_.Encode()
  6240  	req, err := http.NewRequest("POST", urls, body)
  6241  	if err != nil {
  6242  		return nil, err
  6243  	}
  6244  	req.Header = reqHeaders
  6245  	googleapi.Expand(req.URL, map[string]string{
  6246  		"parent": c.parent,
  6247  	})
  6248  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6249  }
  6250  
  6251  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.create" call.
  6252  // Any non-2xx status code is an error. Response headers are in either
  6253  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6254  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6255  // whether the returned error was because http.StatusNotModified was returned.
  6256  func (c *ProjectsLocationsBitbucketServerConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6257  	gensupport.SetOptions(c.urlParams_, opts...)
  6258  	res, err := c.doRequest("json")
  6259  	if res != nil && res.StatusCode == http.StatusNotModified {
  6260  		if res.Body != nil {
  6261  			res.Body.Close()
  6262  		}
  6263  		return nil, gensupport.WrapError(&googleapi.Error{
  6264  			Code:   res.StatusCode,
  6265  			Header: res.Header,
  6266  		})
  6267  	}
  6268  	if err != nil {
  6269  		return nil, err
  6270  	}
  6271  	defer googleapi.CloseBody(res)
  6272  	if err := googleapi.CheckResponse(res); err != nil {
  6273  		return nil, gensupport.WrapError(err)
  6274  	}
  6275  	ret := &Operation{
  6276  		ServerResponse: googleapi.ServerResponse{
  6277  			Header:         res.Header,
  6278  			HTTPStatusCode: res.StatusCode,
  6279  		},
  6280  	}
  6281  	target := &ret
  6282  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6283  		return nil, err
  6284  	}
  6285  	return ret, nil
  6286  }
  6287  
  6288  type ProjectsLocationsBitbucketServerConfigsDeleteCall struct {
  6289  	s          *Service
  6290  	name       string
  6291  	urlParams_ gensupport.URLParams
  6292  	ctx_       context.Context
  6293  	header_    http.Header
  6294  }
  6295  
  6296  // Delete: Delete a `BitbucketServerConfig`. This API is experimental.
  6297  //
  6298  // - name: The config resource name.
  6299  func (r *ProjectsLocationsBitbucketServerConfigsService) Delete(name string) *ProjectsLocationsBitbucketServerConfigsDeleteCall {
  6300  	c := &ProjectsLocationsBitbucketServerConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6301  	c.name = name
  6302  	return c
  6303  }
  6304  
  6305  // Fields allows partial responses to be retrieved. See
  6306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6307  // details.
  6308  func (c *ProjectsLocationsBitbucketServerConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsDeleteCall {
  6309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6310  	return c
  6311  }
  6312  
  6313  // Context sets the context to be used in this call's Do method.
  6314  func (c *ProjectsLocationsBitbucketServerConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsDeleteCall {
  6315  	c.ctx_ = ctx
  6316  	return c
  6317  }
  6318  
  6319  // Header returns a http.Header that can be modified by the caller to add
  6320  // headers to the request.
  6321  func (c *ProjectsLocationsBitbucketServerConfigsDeleteCall) Header() http.Header {
  6322  	if c.header_ == nil {
  6323  		c.header_ = make(http.Header)
  6324  	}
  6325  	return c.header_
  6326  }
  6327  
  6328  func (c *ProjectsLocationsBitbucketServerConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6330  	var body io.Reader = nil
  6331  	c.urlParams_.Set("alt", alt)
  6332  	c.urlParams_.Set("prettyPrint", "false")
  6333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6334  	urls += "?" + c.urlParams_.Encode()
  6335  	req, err := http.NewRequest("DELETE", urls, body)
  6336  	if err != nil {
  6337  		return nil, err
  6338  	}
  6339  	req.Header = reqHeaders
  6340  	googleapi.Expand(req.URL, map[string]string{
  6341  		"name": c.name,
  6342  	})
  6343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6344  }
  6345  
  6346  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.delete" call.
  6347  // Any non-2xx status code is an error. Response headers are in either
  6348  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6349  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6350  // whether the returned error was because http.StatusNotModified was returned.
  6351  func (c *ProjectsLocationsBitbucketServerConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6352  	gensupport.SetOptions(c.urlParams_, opts...)
  6353  	res, err := c.doRequest("json")
  6354  	if res != nil && res.StatusCode == http.StatusNotModified {
  6355  		if res.Body != nil {
  6356  			res.Body.Close()
  6357  		}
  6358  		return nil, gensupport.WrapError(&googleapi.Error{
  6359  			Code:   res.StatusCode,
  6360  			Header: res.Header,
  6361  		})
  6362  	}
  6363  	if err != nil {
  6364  		return nil, err
  6365  	}
  6366  	defer googleapi.CloseBody(res)
  6367  	if err := googleapi.CheckResponse(res); err != nil {
  6368  		return nil, gensupport.WrapError(err)
  6369  	}
  6370  	ret := &Operation{
  6371  		ServerResponse: googleapi.ServerResponse{
  6372  			Header:         res.Header,
  6373  			HTTPStatusCode: res.StatusCode,
  6374  		},
  6375  	}
  6376  	target := &ret
  6377  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6378  		return nil, err
  6379  	}
  6380  	return ret, nil
  6381  }
  6382  
  6383  type ProjectsLocationsBitbucketServerConfigsGetCall struct {
  6384  	s            *Service
  6385  	name         string
  6386  	urlParams_   gensupport.URLParams
  6387  	ifNoneMatch_ string
  6388  	ctx_         context.Context
  6389  	header_      http.Header
  6390  }
  6391  
  6392  // Get: Retrieve a `BitbucketServerConfig`. This API is experimental.
  6393  //
  6394  // - name: The config resource name.
  6395  func (r *ProjectsLocationsBitbucketServerConfigsService) Get(name string) *ProjectsLocationsBitbucketServerConfigsGetCall {
  6396  	c := &ProjectsLocationsBitbucketServerConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6397  	c.name = name
  6398  	return c
  6399  }
  6400  
  6401  // Fields allows partial responses to be retrieved. See
  6402  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6403  // details.
  6404  func (c *ProjectsLocationsBitbucketServerConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsGetCall {
  6405  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6406  	return c
  6407  }
  6408  
  6409  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6410  // object's ETag matches the given value. This is useful for getting updates
  6411  // only after the object has changed since the last request.
  6412  func (c *ProjectsLocationsBitbucketServerConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBitbucketServerConfigsGetCall {
  6413  	c.ifNoneMatch_ = entityTag
  6414  	return c
  6415  }
  6416  
  6417  // Context sets the context to be used in this call's Do method.
  6418  func (c *ProjectsLocationsBitbucketServerConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsGetCall {
  6419  	c.ctx_ = ctx
  6420  	return c
  6421  }
  6422  
  6423  // Header returns a http.Header that can be modified by the caller to add
  6424  // headers to the request.
  6425  func (c *ProjectsLocationsBitbucketServerConfigsGetCall) Header() http.Header {
  6426  	if c.header_ == nil {
  6427  		c.header_ = make(http.Header)
  6428  	}
  6429  	return c.header_
  6430  }
  6431  
  6432  func (c *ProjectsLocationsBitbucketServerConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  6433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6434  	if c.ifNoneMatch_ != "" {
  6435  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6436  	}
  6437  	var body io.Reader = nil
  6438  	c.urlParams_.Set("alt", alt)
  6439  	c.urlParams_.Set("prettyPrint", "false")
  6440  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6441  	urls += "?" + c.urlParams_.Encode()
  6442  	req, err := http.NewRequest("GET", urls, body)
  6443  	if err != nil {
  6444  		return nil, err
  6445  	}
  6446  	req.Header = reqHeaders
  6447  	googleapi.Expand(req.URL, map[string]string{
  6448  		"name": c.name,
  6449  	})
  6450  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6451  }
  6452  
  6453  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.get" call.
  6454  // Any non-2xx status code is an error. Response headers are in either
  6455  // *BitbucketServerConfig.ServerResponse.Header or (if a response was returned
  6456  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6457  // check whether the returned error was because http.StatusNotModified was
  6458  // returned.
  6459  func (c *ProjectsLocationsBitbucketServerConfigsGetCall) Do(opts ...googleapi.CallOption) (*BitbucketServerConfig, error) {
  6460  	gensupport.SetOptions(c.urlParams_, opts...)
  6461  	res, err := c.doRequest("json")
  6462  	if res != nil && res.StatusCode == http.StatusNotModified {
  6463  		if res.Body != nil {
  6464  			res.Body.Close()
  6465  		}
  6466  		return nil, gensupport.WrapError(&googleapi.Error{
  6467  			Code:   res.StatusCode,
  6468  			Header: res.Header,
  6469  		})
  6470  	}
  6471  	if err != nil {
  6472  		return nil, err
  6473  	}
  6474  	defer googleapi.CloseBody(res)
  6475  	if err := googleapi.CheckResponse(res); err != nil {
  6476  		return nil, gensupport.WrapError(err)
  6477  	}
  6478  	ret := &BitbucketServerConfig{
  6479  		ServerResponse: googleapi.ServerResponse{
  6480  			Header:         res.Header,
  6481  			HTTPStatusCode: res.StatusCode,
  6482  		},
  6483  	}
  6484  	target := &ret
  6485  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6486  		return nil, err
  6487  	}
  6488  	return ret, nil
  6489  }
  6490  
  6491  type ProjectsLocationsBitbucketServerConfigsListCall struct {
  6492  	s            *Service
  6493  	parent       string
  6494  	urlParams_   gensupport.URLParams
  6495  	ifNoneMatch_ string
  6496  	ctx_         context.Context
  6497  	header_      http.Header
  6498  }
  6499  
  6500  // List: List all `BitbucketServerConfigs` for a given project. This API is
  6501  // experimental.
  6502  //
  6503  // - parent: Name of the parent resource.
  6504  func (r *ProjectsLocationsBitbucketServerConfigsService) List(parent string) *ProjectsLocationsBitbucketServerConfigsListCall {
  6505  	c := &ProjectsLocationsBitbucketServerConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6506  	c.parent = parent
  6507  	return c
  6508  }
  6509  
  6510  // PageSize sets the optional parameter "pageSize": The maximum number of
  6511  // configs to return. The service may return fewer than this value. If
  6512  // unspecified, at most 50 configs will be returned. The maximum value is 1000;
  6513  // values above 1000 will be coerced to 1000.
  6514  func (c *ProjectsLocationsBitbucketServerConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsBitbucketServerConfigsListCall {
  6515  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6516  	return c
  6517  }
  6518  
  6519  // PageToken sets the optional parameter "pageToken": A page token, received
  6520  // from a previous `ListBitbucketServerConfigsRequest` call. Provide this to
  6521  // retrieve the subsequent page. When paginating, all other parameters provided
  6522  // to `ListBitbucketServerConfigsRequest` must match the call that provided the
  6523  // page token.
  6524  func (c *ProjectsLocationsBitbucketServerConfigsListCall) PageToken(pageToken string) *ProjectsLocationsBitbucketServerConfigsListCall {
  6525  	c.urlParams_.Set("pageToken", pageToken)
  6526  	return c
  6527  }
  6528  
  6529  // Fields allows partial responses to be retrieved. See
  6530  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6531  // details.
  6532  func (c *ProjectsLocationsBitbucketServerConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsListCall {
  6533  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6534  	return c
  6535  }
  6536  
  6537  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6538  // object's ETag matches the given value. This is useful for getting updates
  6539  // only after the object has changed since the last request.
  6540  func (c *ProjectsLocationsBitbucketServerConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBitbucketServerConfigsListCall {
  6541  	c.ifNoneMatch_ = entityTag
  6542  	return c
  6543  }
  6544  
  6545  // Context sets the context to be used in this call's Do method.
  6546  func (c *ProjectsLocationsBitbucketServerConfigsListCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsListCall {
  6547  	c.ctx_ = ctx
  6548  	return c
  6549  }
  6550  
  6551  // Header returns a http.Header that can be modified by the caller to add
  6552  // headers to the request.
  6553  func (c *ProjectsLocationsBitbucketServerConfigsListCall) Header() http.Header {
  6554  	if c.header_ == nil {
  6555  		c.header_ = make(http.Header)
  6556  	}
  6557  	return c.header_
  6558  }
  6559  
  6560  func (c *ProjectsLocationsBitbucketServerConfigsListCall) doRequest(alt string) (*http.Response, error) {
  6561  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6562  	if c.ifNoneMatch_ != "" {
  6563  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6564  	}
  6565  	var body io.Reader = nil
  6566  	c.urlParams_.Set("alt", alt)
  6567  	c.urlParams_.Set("prettyPrint", "false")
  6568  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/bitbucketServerConfigs")
  6569  	urls += "?" + c.urlParams_.Encode()
  6570  	req, err := http.NewRequest("GET", urls, body)
  6571  	if err != nil {
  6572  		return nil, err
  6573  	}
  6574  	req.Header = reqHeaders
  6575  	googleapi.Expand(req.URL, map[string]string{
  6576  		"parent": c.parent,
  6577  	})
  6578  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6579  }
  6580  
  6581  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.list" call.
  6582  // Any non-2xx status code is an error. Response headers are in either
  6583  // *ListBitbucketServerConfigsResponse.ServerResponse.Header or (if a response
  6584  // was returned at all) in error.(*googleapi.Error).Header. Use
  6585  // googleapi.IsNotModified to check whether the returned error was because
  6586  // http.StatusNotModified was returned.
  6587  func (c *ProjectsLocationsBitbucketServerConfigsListCall) Do(opts ...googleapi.CallOption) (*ListBitbucketServerConfigsResponse, error) {
  6588  	gensupport.SetOptions(c.urlParams_, opts...)
  6589  	res, err := c.doRequest("json")
  6590  	if res != nil && res.StatusCode == http.StatusNotModified {
  6591  		if res.Body != nil {
  6592  			res.Body.Close()
  6593  		}
  6594  		return nil, gensupport.WrapError(&googleapi.Error{
  6595  			Code:   res.StatusCode,
  6596  			Header: res.Header,
  6597  		})
  6598  	}
  6599  	if err != nil {
  6600  		return nil, err
  6601  	}
  6602  	defer googleapi.CloseBody(res)
  6603  	if err := googleapi.CheckResponse(res); err != nil {
  6604  		return nil, gensupport.WrapError(err)
  6605  	}
  6606  	ret := &ListBitbucketServerConfigsResponse{
  6607  		ServerResponse: googleapi.ServerResponse{
  6608  			Header:         res.Header,
  6609  			HTTPStatusCode: res.StatusCode,
  6610  		},
  6611  	}
  6612  	target := &ret
  6613  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6614  		return nil, err
  6615  	}
  6616  	return ret, nil
  6617  }
  6618  
  6619  // Pages invokes f for each page of results.
  6620  // A non-nil error returned from f will halt the iteration.
  6621  // The provided context supersedes any context provided to the Context method.
  6622  func (c *ProjectsLocationsBitbucketServerConfigsListCall) Pages(ctx context.Context, f func(*ListBitbucketServerConfigsResponse) error) error {
  6623  	c.ctx_ = ctx
  6624  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6625  	for {
  6626  		x, err := c.Do()
  6627  		if err != nil {
  6628  			return err
  6629  		}
  6630  		if err := f(x); err != nil {
  6631  			return err
  6632  		}
  6633  		if x.NextPageToken == "" {
  6634  			return nil
  6635  		}
  6636  		c.PageToken(x.NextPageToken)
  6637  	}
  6638  }
  6639  
  6640  type ProjectsLocationsBitbucketServerConfigsPatchCall struct {
  6641  	s                     *Service
  6642  	name                  string
  6643  	bitbucketserverconfig *BitbucketServerConfig
  6644  	urlParams_            gensupport.URLParams
  6645  	ctx_                  context.Context
  6646  	header_               http.Header
  6647  }
  6648  
  6649  // Patch: Updates an existing `BitbucketServerConfig`. This API is
  6650  // experimental.
  6651  //
  6652  // - name: The resource name for the config.
  6653  func (r *ProjectsLocationsBitbucketServerConfigsService) Patch(name string, bitbucketserverconfig *BitbucketServerConfig) *ProjectsLocationsBitbucketServerConfigsPatchCall {
  6654  	c := &ProjectsLocationsBitbucketServerConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6655  	c.name = name
  6656  	c.bitbucketserverconfig = bitbucketserverconfig
  6657  	return c
  6658  }
  6659  
  6660  // UpdateMask sets the optional parameter "updateMask": Update mask for the
  6661  // resource. If this is set, the server will only update the fields specified
  6662  // in the field mask. Otherwise, a full update of the mutable resource fields
  6663  // will be performed.
  6664  func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsBitbucketServerConfigsPatchCall {
  6665  	c.urlParams_.Set("updateMask", updateMask)
  6666  	return c
  6667  }
  6668  
  6669  // Fields allows partial responses to be retrieved. See
  6670  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6671  // details.
  6672  func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsPatchCall {
  6673  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6674  	return c
  6675  }
  6676  
  6677  // Context sets the context to be used in this call's Do method.
  6678  func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsPatchCall {
  6679  	c.ctx_ = ctx
  6680  	return c
  6681  }
  6682  
  6683  // Header returns a http.Header that can be modified by the caller to add
  6684  // headers to the request.
  6685  func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) Header() http.Header {
  6686  	if c.header_ == nil {
  6687  		c.header_ = make(http.Header)
  6688  	}
  6689  	return c.header_
  6690  }
  6691  
  6692  func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  6693  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6694  	var body io.Reader = nil
  6695  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.bitbucketserverconfig)
  6696  	if err != nil {
  6697  		return nil, err
  6698  	}
  6699  	c.urlParams_.Set("alt", alt)
  6700  	c.urlParams_.Set("prettyPrint", "false")
  6701  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6702  	urls += "?" + c.urlParams_.Encode()
  6703  	req, err := http.NewRequest("PATCH", urls, body)
  6704  	if err != nil {
  6705  		return nil, err
  6706  	}
  6707  	req.Header = reqHeaders
  6708  	googleapi.Expand(req.URL, map[string]string{
  6709  		"name": c.name,
  6710  	})
  6711  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6712  }
  6713  
  6714  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.patch" call.
  6715  // Any non-2xx status code is an error. Response headers are in either
  6716  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6717  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6718  // whether the returned error was because http.StatusNotModified was returned.
  6719  func (c *ProjectsLocationsBitbucketServerConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6720  	gensupport.SetOptions(c.urlParams_, opts...)
  6721  	res, err := c.doRequest("json")
  6722  	if res != nil && res.StatusCode == http.StatusNotModified {
  6723  		if res.Body != nil {
  6724  			res.Body.Close()
  6725  		}
  6726  		return nil, gensupport.WrapError(&googleapi.Error{
  6727  			Code:   res.StatusCode,
  6728  			Header: res.Header,
  6729  		})
  6730  	}
  6731  	if err != nil {
  6732  		return nil, err
  6733  	}
  6734  	defer googleapi.CloseBody(res)
  6735  	if err := googleapi.CheckResponse(res); err != nil {
  6736  		return nil, gensupport.WrapError(err)
  6737  	}
  6738  	ret := &Operation{
  6739  		ServerResponse: googleapi.ServerResponse{
  6740  			Header:         res.Header,
  6741  			HTTPStatusCode: res.StatusCode,
  6742  		},
  6743  	}
  6744  	target := &ret
  6745  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6746  		return nil, err
  6747  	}
  6748  	return ret, nil
  6749  }
  6750  
  6751  type ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall struct {
  6752  	s                                               *Service
  6753  	config                                          string
  6754  	removebitbucketserverconnectedrepositoryrequest *RemoveBitbucketServerConnectedRepositoryRequest
  6755  	urlParams_                                      gensupport.URLParams
  6756  	ctx_                                            context.Context
  6757  	header_                                         http.Header
  6758  }
  6759  
  6760  // RemoveBitbucketServerConnectedRepository: Remove a Bitbucket Server
  6761  // repository from a given BitbucketServerConfig's connected repositories. This
  6762  // API is experimental.
  6763  //
  6764  //   - config: The name of the `BitbucketServerConfig` to remove a connected
  6765  //     repository. Format:
  6766  //     `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`.
  6767  func (r *ProjectsLocationsBitbucketServerConfigsService) RemoveBitbucketServerConnectedRepository(config string, removebitbucketserverconnectedrepositoryrequest *RemoveBitbucketServerConnectedRepositoryRequest) *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall {
  6768  	c := &ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6769  	c.config = config
  6770  	c.removebitbucketserverconnectedrepositoryrequest = removebitbucketserverconnectedrepositoryrequest
  6771  	return c
  6772  }
  6773  
  6774  // Fields allows partial responses to be retrieved. See
  6775  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6776  // details.
  6777  func (c *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall {
  6778  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6779  	return c
  6780  }
  6781  
  6782  // Context sets the context to be used in this call's Do method.
  6783  func (c *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall {
  6784  	c.ctx_ = ctx
  6785  	return c
  6786  }
  6787  
  6788  // Header returns a http.Header that can be modified by the caller to add
  6789  // headers to the request.
  6790  func (c *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall) Header() http.Header {
  6791  	if c.header_ == nil {
  6792  		c.header_ = make(http.Header)
  6793  	}
  6794  	return c.header_
  6795  }
  6796  
  6797  func (c *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall) doRequest(alt string) (*http.Response, error) {
  6798  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6799  	var body io.Reader = nil
  6800  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.removebitbucketserverconnectedrepositoryrequest)
  6801  	if err != nil {
  6802  		return nil, err
  6803  	}
  6804  	c.urlParams_.Set("alt", alt)
  6805  	c.urlParams_.Set("prettyPrint", "false")
  6806  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+config}:removeBitbucketServerConnectedRepository")
  6807  	urls += "?" + c.urlParams_.Encode()
  6808  	req, err := http.NewRequest("POST", urls, body)
  6809  	if err != nil {
  6810  		return nil, err
  6811  	}
  6812  	req.Header = reqHeaders
  6813  	googleapi.Expand(req.URL, map[string]string{
  6814  		"config": c.config,
  6815  	})
  6816  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6817  }
  6818  
  6819  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.removeBitbucketServerConnectedRepository" call.
  6820  // Any non-2xx status code is an error. Response headers are in either
  6821  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6822  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6823  // whether the returned error was because http.StatusNotModified was returned.
  6824  func (c *ProjectsLocationsBitbucketServerConfigsRemoveBitbucketServerConnectedRepositoryCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6825  	gensupport.SetOptions(c.urlParams_, opts...)
  6826  	res, err := c.doRequest("json")
  6827  	if res != nil && res.StatusCode == http.StatusNotModified {
  6828  		if res.Body != nil {
  6829  			res.Body.Close()
  6830  		}
  6831  		return nil, gensupport.WrapError(&googleapi.Error{
  6832  			Code:   res.StatusCode,
  6833  			Header: res.Header,
  6834  		})
  6835  	}
  6836  	if err != nil {
  6837  		return nil, err
  6838  	}
  6839  	defer googleapi.CloseBody(res)
  6840  	if err := googleapi.CheckResponse(res); err != nil {
  6841  		return nil, gensupport.WrapError(err)
  6842  	}
  6843  	ret := &Empty{
  6844  		ServerResponse: googleapi.ServerResponse{
  6845  			Header:         res.Header,
  6846  			HTTPStatusCode: res.StatusCode,
  6847  		},
  6848  	}
  6849  	target := &ret
  6850  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6851  		return nil, err
  6852  	}
  6853  	return ret, nil
  6854  }
  6855  
  6856  type ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall struct {
  6857  	s                                                      *Service
  6858  	parent                                                 string
  6859  	batchcreatebitbucketserverconnectedrepositoriesrequest *BatchCreateBitbucketServerConnectedRepositoriesRequest
  6860  	urlParams_                                             gensupport.URLParams
  6861  	ctx_                                                   context.Context
  6862  	header_                                                http.Header
  6863  }
  6864  
  6865  // BatchCreate: Batch connecting Bitbucket Server repositories to Cloud Build.
  6866  //
  6867  //   - parent: The name of the `BitbucketServerConfig` that added connected
  6868  //     repository. Format:
  6869  //     `projects/{project}/locations/{location}/bitbucketServerConfigs/{config}`.
  6870  func (r *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesService) BatchCreate(parent string, batchcreatebitbucketserverconnectedrepositoriesrequest *BatchCreateBitbucketServerConnectedRepositoriesRequest) *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall {
  6871  	c := &ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6872  	c.parent = parent
  6873  	c.batchcreatebitbucketserverconnectedrepositoriesrequest = batchcreatebitbucketserverconnectedrepositoriesrequest
  6874  	return c
  6875  }
  6876  
  6877  // Fields allows partial responses to be retrieved. See
  6878  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6879  // details.
  6880  func (c *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall {
  6881  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6882  	return c
  6883  }
  6884  
  6885  // Context sets the context to be used in this call's Do method.
  6886  func (c *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall {
  6887  	c.ctx_ = ctx
  6888  	return c
  6889  }
  6890  
  6891  // Header returns a http.Header that can be modified by the caller to add
  6892  // headers to the request.
  6893  func (c *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall) Header() http.Header {
  6894  	if c.header_ == nil {
  6895  		c.header_ = make(http.Header)
  6896  	}
  6897  	return c.header_
  6898  }
  6899  
  6900  func (c *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
  6901  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6902  	var body io.Reader = nil
  6903  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchcreatebitbucketserverconnectedrepositoriesrequest)
  6904  	if err != nil {
  6905  		return nil, err
  6906  	}
  6907  	c.urlParams_.Set("alt", alt)
  6908  	c.urlParams_.Set("prettyPrint", "false")
  6909  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectedRepositories:batchCreate")
  6910  	urls += "?" + c.urlParams_.Encode()
  6911  	req, err := http.NewRequest("POST", urls, body)
  6912  	if err != nil {
  6913  		return nil, err
  6914  	}
  6915  	req.Header = reqHeaders
  6916  	googleapi.Expand(req.URL, map[string]string{
  6917  		"parent": c.parent,
  6918  	})
  6919  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6920  }
  6921  
  6922  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.connectedRepositories.batchCreate" call.
  6923  // Any non-2xx status code is an error. Response headers are in either
  6924  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6925  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6926  // whether the returned error was because http.StatusNotModified was returned.
  6927  func (c *ProjectsLocationsBitbucketServerConfigsConnectedRepositoriesBatchCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6928  	gensupport.SetOptions(c.urlParams_, opts...)
  6929  	res, err := c.doRequest("json")
  6930  	if res != nil && res.StatusCode == http.StatusNotModified {
  6931  		if res.Body != nil {
  6932  			res.Body.Close()
  6933  		}
  6934  		return nil, gensupport.WrapError(&googleapi.Error{
  6935  			Code:   res.StatusCode,
  6936  			Header: res.Header,
  6937  		})
  6938  	}
  6939  	if err != nil {
  6940  		return nil, err
  6941  	}
  6942  	defer googleapi.CloseBody(res)
  6943  	if err := googleapi.CheckResponse(res); err != nil {
  6944  		return nil, gensupport.WrapError(err)
  6945  	}
  6946  	ret := &Operation{
  6947  		ServerResponse: googleapi.ServerResponse{
  6948  			Header:         res.Header,
  6949  			HTTPStatusCode: res.StatusCode,
  6950  		},
  6951  	}
  6952  	target := &ret
  6953  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6954  		return nil, err
  6955  	}
  6956  	return ret, nil
  6957  }
  6958  
  6959  type ProjectsLocationsBitbucketServerConfigsReposListCall struct {
  6960  	s            *Service
  6961  	parent       string
  6962  	urlParams_   gensupport.URLParams
  6963  	ifNoneMatch_ string
  6964  	ctx_         context.Context
  6965  	header_      http.Header
  6966  }
  6967  
  6968  // List: List all repositories for a given `BitbucketServerConfig`. This API is
  6969  // experimental.
  6970  //
  6971  // - parent: Name of the parent resource.
  6972  func (r *ProjectsLocationsBitbucketServerConfigsReposService) List(parent string) *ProjectsLocationsBitbucketServerConfigsReposListCall {
  6973  	c := &ProjectsLocationsBitbucketServerConfigsReposListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6974  	c.parent = parent
  6975  	return c
  6976  }
  6977  
  6978  // PageSize sets the optional parameter "pageSize": The maximum number of
  6979  // configs to return. The service may return fewer than this value. The maximum
  6980  // value is 1000; values above 1000 will be coerced to 1000.
  6981  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) PageSize(pageSize int64) *ProjectsLocationsBitbucketServerConfigsReposListCall {
  6982  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6983  	return c
  6984  }
  6985  
  6986  // PageToken sets the optional parameter "pageToken": A page token, received
  6987  // from a previous `ListBitbucketServerRepositoriesRequest` call. Provide this
  6988  // to retrieve the subsequent page. When paginating, all other parameters
  6989  // provided to `ListBitbucketServerConfigsRequest` must match the call that
  6990  // provided the page token.
  6991  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) PageToken(pageToken string) *ProjectsLocationsBitbucketServerConfigsReposListCall {
  6992  	c.urlParams_.Set("pageToken", pageToken)
  6993  	return c
  6994  }
  6995  
  6996  // Fields allows partial responses to be retrieved. See
  6997  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6998  // details.
  6999  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBitbucketServerConfigsReposListCall {
  7000  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7001  	return c
  7002  }
  7003  
  7004  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7005  // object's ETag matches the given value. This is useful for getting updates
  7006  // only after the object has changed since the last request.
  7007  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBitbucketServerConfigsReposListCall {
  7008  	c.ifNoneMatch_ = entityTag
  7009  	return c
  7010  }
  7011  
  7012  // Context sets the context to be used in this call's Do method.
  7013  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) Context(ctx context.Context) *ProjectsLocationsBitbucketServerConfigsReposListCall {
  7014  	c.ctx_ = ctx
  7015  	return c
  7016  }
  7017  
  7018  // Header returns a http.Header that can be modified by the caller to add
  7019  // headers to the request.
  7020  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) Header() http.Header {
  7021  	if c.header_ == nil {
  7022  		c.header_ = make(http.Header)
  7023  	}
  7024  	return c.header_
  7025  }
  7026  
  7027  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) doRequest(alt string) (*http.Response, error) {
  7028  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7029  	if c.ifNoneMatch_ != "" {
  7030  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7031  	}
  7032  	var body io.Reader = nil
  7033  	c.urlParams_.Set("alt", alt)
  7034  	c.urlParams_.Set("prettyPrint", "false")
  7035  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/repos")
  7036  	urls += "?" + c.urlParams_.Encode()
  7037  	req, err := http.NewRequest("GET", urls, body)
  7038  	if err != nil {
  7039  		return nil, err
  7040  	}
  7041  	req.Header = reqHeaders
  7042  	googleapi.Expand(req.URL, map[string]string{
  7043  		"parent": c.parent,
  7044  	})
  7045  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7046  }
  7047  
  7048  // Do executes the "cloudbuild.projects.locations.bitbucketServerConfigs.repos.list" call.
  7049  // Any non-2xx status code is an error. Response headers are in either
  7050  // *ListBitbucketServerRepositoriesResponse.ServerResponse.Header or (if a
  7051  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7052  // googleapi.IsNotModified to check whether the returned error was because
  7053  // http.StatusNotModified was returned.
  7054  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) Do(opts ...googleapi.CallOption) (*ListBitbucketServerRepositoriesResponse, error) {
  7055  	gensupport.SetOptions(c.urlParams_, opts...)
  7056  	res, err := c.doRequest("json")
  7057  	if res != nil && res.StatusCode == http.StatusNotModified {
  7058  		if res.Body != nil {
  7059  			res.Body.Close()
  7060  		}
  7061  		return nil, gensupport.WrapError(&googleapi.Error{
  7062  			Code:   res.StatusCode,
  7063  			Header: res.Header,
  7064  		})
  7065  	}
  7066  	if err != nil {
  7067  		return nil, err
  7068  	}
  7069  	defer googleapi.CloseBody(res)
  7070  	if err := googleapi.CheckResponse(res); err != nil {
  7071  		return nil, gensupport.WrapError(err)
  7072  	}
  7073  	ret := &ListBitbucketServerRepositoriesResponse{
  7074  		ServerResponse: googleapi.ServerResponse{
  7075  			Header:         res.Header,
  7076  			HTTPStatusCode: res.StatusCode,
  7077  		},
  7078  	}
  7079  	target := &ret
  7080  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7081  		return nil, err
  7082  	}
  7083  	return ret, nil
  7084  }
  7085  
  7086  // Pages invokes f for each page of results.
  7087  // A non-nil error returned from f will halt the iteration.
  7088  // The provided context supersedes any context provided to the Context method.
  7089  func (c *ProjectsLocationsBitbucketServerConfigsReposListCall) Pages(ctx context.Context, f func(*ListBitbucketServerRepositoriesResponse) error) error {
  7090  	c.ctx_ = ctx
  7091  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7092  	for {
  7093  		x, err := c.Do()
  7094  		if err != nil {
  7095  			return err
  7096  		}
  7097  		if err := f(x); err != nil {
  7098  			return err
  7099  		}
  7100  		if x.NextPageToken == "" {
  7101  			return nil
  7102  		}
  7103  		c.PageToken(x.NextPageToken)
  7104  	}
  7105  }
  7106  
  7107  type ProjectsLocationsBuildsApproveCall struct {
  7108  	s                   *Service
  7109  	name                string
  7110  	approvebuildrequest *ApproveBuildRequest
  7111  	urlParams_          gensupport.URLParams
  7112  	ctx_                context.Context
  7113  	header_             http.Header
  7114  }
  7115  
  7116  // Approve: Approves or rejects a pending build. If approved, the returned LRO
  7117  // will be analogous to the LRO returned from a CreateBuild call. If rejected,
  7118  // the returned LRO will be immediately done.
  7119  //
  7120  //   - name: Name of the target build. For example:
  7121  //     "projects/{$project_id}/builds/{$build_id}".
  7122  func (r *ProjectsLocationsBuildsService) Approve(name string, approvebuildrequest *ApproveBuildRequest) *ProjectsLocationsBuildsApproveCall {
  7123  	c := &ProjectsLocationsBuildsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7124  	c.name = name
  7125  	c.approvebuildrequest = approvebuildrequest
  7126  	return c
  7127  }
  7128  
  7129  // Fields allows partial responses to be retrieved. See
  7130  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7131  // details.
  7132  func (c *ProjectsLocationsBuildsApproveCall) Fields(s ...googleapi.Field) *ProjectsLocationsBuildsApproveCall {
  7133  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7134  	return c
  7135  }
  7136  
  7137  // Context sets the context to be used in this call's Do method.
  7138  func (c *ProjectsLocationsBuildsApproveCall) Context(ctx context.Context) *ProjectsLocationsBuildsApproveCall {
  7139  	c.ctx_ = ctx
  7140  	return c
  7141  }
  7142  
  7143  // Header returns a http.Header that can be modified by the caller to add
  7144  // headers to the request.
  7145  func (c *ProjectsLocationsBuildsApproveCall) Header() http.Header {
  7146  	if c.header_ == nil {
  7147  		c.header_ = make(http.Header)
  7148  	}
  7149  	return c.header_
  7150  }
  7151  
  7152  func (c *ProjectsLocationsBuildsApproveCall) doRequest(alt string) (*http.Response, error) {
  7153  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7154  	var body io.Reader = nil
  7155  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.approvebuildrequest)
  7156  	if err != nil {
  7157  		return nil, err
  7158  	}
  7159  	c.urlParams_.Set("alt", alt)
  7160  	c.urlParams_.Set("prettyPrint", "false")
  7161  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:approve")
  7162  	urls += "?" + c.urlParams_.Encode()
  7163  	req, err := http.NewRequest("POST", urls, body)
  7164  	if err != nil {
  7165  		return nil, err
  7166  	}
  7167  	req.Header = reqHeaders
  7168  	googleapi.Expand(req.URL, map[string]string{
  7169  		"name": c.name,
  7170  	})
  7171  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7172  }
  7173  
  7174  // Do executes the "cloudbuild.projects.locations.builds.approve" call.
  7175  // Any non-2xx status code is an error. Response headers are in either
  7176  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7177  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7178  // whether the returned error was because http.StatusNotModified was returned.
  7179  func (c *ProjectsLocationsBuildsApproveCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7180  	gensupport.SetOptions(c.urlParams_, opts...)
  7181  	res, err := c.doRequest("json")
  7182  	if res != nil && res.StatusCode == http.StatusNotModified {
  7183  		if res.Body != nil {
  7184  			res.Body.Close()
  7185  		}
  7186  		return nil, gensupport.WrapError(&googleapi.Error{
  7187  			Code:   res.StatusCode,
  7188  			Header: res.Header,
  7189  		})
  7190  	}
  7191  	if err != nil {
  7192  		return nil, err
  7193  	}
  7194  	defer googleapi.CloseBody(res)
  7195  	if err := googleapi.CheckResponse(res); err != nil {
  7196  		return nil, gensupport.WrapError(err)
  7197  	}
  7198  	ret := &Operation{
  7199  		ServerResponse: googleapi.ServerResponse{
  7200  			Header:         res.Header,
  7201  			HTTPStatusCode: res.StatusCode,
  7202  		},
  7203  	}
  7204  	target := &ret
  7205  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7206  		return nil, err
  7207  	}
  7208  	return ret, nil
  7209  }
  7210  
  7211  type ProjectsLocationsBuildsCancelCall struct {
  7212  	s                  *Service
  7213  	name               string
  7214  	cancelbuildrequest *CancelBuildRequest
  7215  	urlParams_         gensupport.URLParams
  7216  	ctx_               context.Context
  7217  	header_            http.Header
  7218  }
  7219  
  7220  // Cancel: Cancels a build in progress.
  7221  //
  7222  //   - name: The name of the `Build` to cancel. Format:
  7223  //     `projects/{project}/locations/{location}/builds/{build}`.
  7224  func (r *ProjectsLocationsBuildsService) Cancel(name string, cancelbuildrequest *CancelBuildRequest) *ProjectsLocationsBuildsCancelCall {
  7225  	c := &ProjectsLocationsBuildsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7226  	c.name = name
  7227  	c.cancelbuildrequest = cancelbuildrequest
  7228  	return c
  7229  }
  7230  
  7231  // Fields allows partial responses to be retrieved. See
  7232  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7233  // details.
  7234  func (c *ProjectsLocationsBuildsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsBuildsCancelCall {
  7235  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7236  	return c
  7237  }
  7238  
  7239  // Context sets the context to be used in this call's Do method.
  7240  func (c *ProjectsLocationsBuildsCancelCall) Context(ctx context.Context) *ProjectsLocationsBuildsCancelCall {
  7241  	c.ctx_ = ctx
  7242  	return c
  7243  }
  7244  
  7245  // Header returns a http.Header that can be modified by the caller to add
  7246  // headers to the request.
  7247  func (c *ProjectsLocationsBuildsCancelCall) Header() http.Header {
  7248  	if c.header_ == nil {
  7249  		c.header_ = make(http.Header)
  7250  	}
  7251  	return c.header_
  7252  }
  7253  
  7254  func (c *ProjectsLocationsBuildsCancelCall) doRequest(alt string) (*http.Response, error) {
  7255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7256  	var body io.Reader = nil
  7257  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelbuildrequest)
  7258  	if err != nil {
  7259  		return nil, err
  7260  	}
  7261  	c.urlParams_.Set("alt", alt)
  7262  	c.urlParams_.Set("prettyPrint", "false")
  7263  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  7264  	urls += "?" + c.urlParams_.Encode()
  7265  	req, err := http.NewRequest("POST", urls, body)
  7266  	if err != nil {
  7267  		return nil, err
  7268  	}
  7269  	req.Header = reqHeaders
  7270  	googleapi.Expand(req.URL, map[string]string{
  7271  		"name": c.name,
  7272  	})
  7273  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7274  }
  7275  
  7276  // Do executes the "cloudbuild.projects.locations.builds.cancel" call.
  7277  // Any non-2xx status code is an error. Response headers are in either
  7278  // *Build.ServerResponse.Header or (if a response was returned at all) in
  7279  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7280  // whether the returned error was because http.StatusNotModified was returned.
  7281  func (c *ProjectsLocationsBuildsCancelCall) Do(opts ...googleapi.CallOption) (*Build, error) {
  7282  	gensupport.SetOptions(c.urlParams_, opts...)
  7283  	res, err := c.doRequest("json")
  7284  	if res != nil && res.StatusCode == http.StatusNotModified {
  7285  		if res.Body != nil {
  7286  			res.Body.Close()
  7287  		}
  7288  		return nil, gensupport.WrapError(&googleapi.Error{
  7289  			Code:   res.StatusCode,
  7290  			Header: res.Header,
  7291  		})
  7292  	}
  7293  	if err != nil {
  7294  		return nil, err
  7295  	}
  7296  	defer googleapi.CloseBody(res)
  7297  	if err := googleapi.CheckResponse(res); err != nil {
  7298  		return nil, gensupport.WrapError(err)
  7299  	}
  7300  	ret := &Build{
  7301  		ServerResponse: googleapi.ServerResponse{
  7302  			Header:         res.Header,
  7303  			HTTPStatusCode: res.StatusCode,
  7304  		},
  7305  	}
  7306  	target := &ret
  7307  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7308  		return nil, err
  7309  	}
  7310  	return ret, nil
  7311  }
  7312  
  7313  type ProjectsLocationsBuildsCreateCall struct {
  7314  	s          *Service
  7315  	parent     string
  7316  	build      *Build
  7317  	urlParams_ gensupport.URLParams
  7318  	ctx_       context.Context
  7319  	header_    http.Header
  7320  }
  7321  
  7322  // Create: Starts a build with the specified configuration. This method returns
  7323  // a long-running `Operation`, which includes the build ID. Pass the build ID
  7324  // to `GetBuild` to determine the build status (such as `SUCCESS` or
  7325  // `FAILURE`).
  7326  //
  7327  //   - parent: The parent resource where this build will be created. Format:
  7328  //     `projects/{project}/locations/{location}`.
  7329  func (r *ProjectsLocationsBuildsService) Create(parent string, build *Build) *ProjectsLocationsBuildsCreateCall {
  7330  	c := &ProjectsLocationsBuildsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7331  	c.parent = parent
  7332  	c.build = build
  7333  	return c
  7334  }
  7335  
  7336  // ProjectId sets the optional parameter "projectId": Required. ID of the
  7337  // project.
  7338  func (c *ProjectsLocationsBuildsCreateCall) ProjectId(projectId string) *ProjectsLocationsBuildsCreateCall {
  7339  	c.urlParams_.Set("projectId", projectId)
  7340  	return c
  7341  }
  7342  
  7343  // Fields allows partial responses to be retrieved. See
  7344  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7345  // details.
  7346  func (c *ProjectsLocationsBuildsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBuildsCreateCall {
  7347  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7348  	return c
  7349  }
  7350  
  7351  // Context sets the context to be used in this call's Do method.
  7352  func (c *ProjectsLocationsBuildsCreateCall) Context(ctx context.Context) *ProjectsLocationsBuildsCreateCall {
  7353  	c.ctx_ = ctx
  7354  	return c
  7355  }
  7356  
  7357  // Header returns a http.Header that can be modified by the caller to add
  7358  // headers to the request.
  7359  func (c *ProjectsLocationsBuildsCreateCall) Header() http.Header {
  7360  	if c.header_ == nil {
  7361  		c.header_ = make(http.Header)
  7362  	}
  7363  	return c.header_
  7364  }
  7365  
  7366  func (c *ProjectsLocationsBuildsCreateCall) doRequest(alt string) (*http.Response, error) {
  7367  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7368  	var body io.Reader = nil
  7369  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.build)
  7370  	if err != nil {
  7371  		return nil, err
  7372  	}
  7373  	c.urlParams_.Set("alt", alt)
  7374  	c.urlParams_.Set("prettyPrint", "false")
  7375  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/builds")
  7376  	urls += "?" + c.urlParams_.Encode()
  7377  	req, err := http.NewRequest("POST", urls, body)
  7378  	if err != nil {
  7379  		return nil, err
  7380  	}
  7381  	req.Header = reqHeaders
  7382  	googleapi.Expand(req.URL, map[string]string{
  7383  		"parent": c.parent,
  7384  	})
  7385  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7386  }
  7387  
  7388  // Do executes the "cloudbuild.projects.locations.builds.create" call.
  7389  // Any non-2xx status code is an error. Response headers are in either
  7390  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7391  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7392  // whether the returned error was because http.StatusNotModified was returned.
  7393  func (c *ProjectsLocationsBuildsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7394  	gensupport.SetOptions(c.urlParams_, opts...)
  7395  	res, err := c.doRequest("json")
  7396  	if res != nil && res.StatusCode == http.StatusNotModified {
  7397  		if res.Body != nil {
  7398  			res.Body.Close()
  7399  		}
  7400  		return nil, gensupport.WrapError(&googleapi.Error{
  7401  			Code:   res.StatusCode,
  7402  			Header: res.Header,
  7403  		})
  7404  	}
  7405  	if err != nil {
  7406  		return nil, err
  7407  	}
  7408  	defer googleapi.CloseBody(res)
  7409  	if err := googleapi.CheckResponse(res); err != nil {
  7410  		return nil, gensupport.WrapError(err)
  7411  	}
  7412  	ret := &Operation{
  7413  		ServerResponse: googleapi.ServerResponse{
  7414  			Header:         res.Header,
  7415  			HTTPStatusCode: res.StatusCode,
  7416  		},
  7417  	}
  7418  	target := &ret
  7419  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7420  		return nil, err
  7421  	}
  7422  	return ret, nil
  7423  }
  7424  
  7425  type ProjectsLocationsBuildsGetCall struct {
  7426  	s            *Service
  7427  	name         string
  7428  	urlParams_   gensupport.URLParams
  7429  	ifNoneMatch_ string
  7430  	ctx_         context.Context
  7431  	header_      http.Header
  7432  }
  7433  
  7434  // Get: Returns information about a previously requested build. The `Build`
  7435  // that is returned includes its status (such as `SUCCESS`, `FAILURE`, or
  7436  // `WORKING`), and timing information.
  7437  //
  7438  //   - name: The name of the `Build` to retrieve. Format:
  7439  //     `projects/{project}/locations/{location}/builds/{build}`.
  7440  func (r *ProjectsLocationsBuildsService) Get(name string) *ProjectsLocationsBuildsGetCall {
  7441  	c := &ProjectsLocationsBuildsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7442  	c.name = name
  7443  	return c
  7444  }
  7445  
  7446  // Id sets the optional parameter "id": Required. ID of the build.
  7447  func (c *ProjectsLocationsBuildsGetCall) Id(id string) *ProjectsLocationsBuildsGetCall {
  7448  	c.urlParams_.Set("id", id)
  7449  	return c
  7450  }
  7451  
  7452  // ProjectId sets the optional parameter "projectId": Required. ID of the
  7453  // project.
  7454  func (c *ProjectsLocationsBuildsGetCall) ProjectId(projectId string) *ProjectsLocationsBuildsGetCall {
  7455  	c.urlParams_.Set("projectId", projectId)
  7456  	return c
  7457  }
  7458  
  7459  // Fields allows partial responses to be retrieved. See
  7460  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7461  // details.
  7462  func (c *ProjectsLocationsBuildsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBuildsGetCall {
  7463  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7464  	return c
  7465  }
  7466  
  7467  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7468  // object's ETag matches the given value. This is useful for getting updates
  7469  // only after the object has changed since the last request.
  7470  func (c *ProjectsLocationsBuildsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBuildsGetCall {
  7471  	c.ifNoneMatch_ = entityTag
  7472  	return c
  7473  }
  7474  
  7475  // Context sets the context to be used in this call's Do method.
  7476  func (c *ProjectsLocationsBuildsGetCall) Context(ctx context.Context) *ProjectsLocationsBuildsGetCall {
  7477  	c.ctx_ = ctx
  7478  	return c
  7479  }
  7480  
  7481  // Header returns a http.Header that can be modified by the caller to add
  7482  // headers to the request.
  7483  func (c *ProjectsLocationsBuildsGetCall) Header() http.Header {
  7484  	if c.header_ == nil {
  7485  		c.header_ = make(http.Header)
  7486  	}
  7487  	return c.header_
  7488  }
  7489  
  7490  func (c *ProjectsLocationsBuildsGetCall) doRequest(alt string) (*http.Response, error) {
  7491  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7492  	if c.ifNoneMatch_ != "" {
  7493  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7494  	}
  7495  	var body io.Reader = nil
  7496  	c.urlParams_.Set("alt", alt)
  7497  	c.urlParams_.Set("prettyPrint", "false")
  7498  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7499  	urls += "?" + c.urlParams_.Encode()
  7500  	req, err := http.NewRequest("GET", urls, body)
  7501  	if err != nil {
  7502  		return nil, err
  7503  	}
  7504  	req.Header = reqHeaders
  7505  	googleapi.Expand(req.URL, map[string]string{
  7506  		"name": c.name,
  7507  	})
  7508  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7509  }
  7510  
  7511  // Do executes the "cloudbuild.projects.locations.builds.get" call.
  7512  // Any non-2xx status code is an error. Response headers are in either
  7513  // *Build.ServerResponse.Header or (if a response was returned at all) in
  7514  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7515  // whether the returned error was because http.StatusNotModified was returned.
  7516  func (c *ProjectsLocationsBuildsGetCall) Do(opts ...googleapi.CallOption) (*Build, error) {
  7517  	gensupport.SetOptions(c.urlParams_, opts...)
  7518  	res, err := c.doRequest("json")
  7519  	if res != nil && res.StatusCode == http.StatusNotModified {
  7520  		if res.Body != nil {
  7521  			res.Body.Close()
  7522  		}
  7523  		return nil, gensupport.WrapError(&googleapi.Error{
  7524  			Code:   res.StatusCode,
  7525  			Header: res.Header,
  7526  		})
  7527  	}
  7528  	if err != nil {
  7529  		return nil, err
  7530  	}
  7531  	defer googleapi.CloseBody(res)
  7532  	if err := googleapi.CheckResponse(res); err != nil {
  7533  		return nil, gensupport.WrapError(err)
  7534  	}
  7535  	ret := &Build{
  7536  		ServerResponse: googleapi.ServerResponse{
  7537  			Header:         res.Header,
  7538  			HTTPStatusCode: res.StatusCode,
  7539  		},
  7540  	}
  7541  	target := &ret
  7542  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7543  		return nil, err
  7544  	}
  7545  	return ret, nil
  7546  }
  7547  
  7548  type ProjectsLocationsBuildsListCall struct {
  7549  	s            *Service
  7550  	parent       string
  7551  	urlParams_   gensupport.URLParams
  7552  	ifNoneMatch_ string
  7553  	ctx_         context.Context
  7554  	header_      http.Header
  7555  }
  7556  
  7557  // List: Lists previously requested builds. Previously requested builds may
  7558  // still be in-progress, or may have finished successfully or unsuccessfully.
  7559  //
  7560  //   - parent: The parent of the collection of `Builds`. Format:
  7561  //     `projects/{project}/locations/{location}`.
  7562  func (r *ProjectsLocationsBuildsService) List(parent string) *ProjectsLocationsBuildsListCall {
  7563  	c := &ProjectsLocationsBuildsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7564  	c.parent = parent
  7565  	return c
  7566  }
  7567  
  7568  // Filter sets the optional parameter "filter": The raw filter text to
  7569  // constrain the results.
  7570  func (c *ProjectsLocationsBuildsListCall) Filter(filter string) *ProjectsLocationsBuildsListCall {
  7571  	c.urlParams_.Set("filter", filter)
  7572  	return c
  7573  }
  7574  
  7575  // PageSize sets the optional parameter "pageSize": Number of results to return
  7576  // in the list.
  7577  func (c *ProjectsLocationsBuildsListCall) PageSize(pageSize int64) *ProjectsLocationsBuildsListCall {
  7578  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7579  	return c
  7580  }
  7581  
  7582  // PageToken sets the optional parameter "pageToken": The page token for the
  7583  // next page of Builds. If unspecified, the first page of results is returned.
  7584  // If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In
  7585  // this case, the token should be discarded, and pagination should be restarted
  7586  // from the first page of results. See https://google.aip.dev/158 for more.
  7587  func (c *ProjectsLocationsBuildsListCall) PageToken(pageToken string) *ProjectsLocationsBuildsListCall {
  7588  	c.urlParams_.Set("pageToken", pageToken)
  7589  	return c
  7590  }
  7591  
  7592  // ProjectId sets the optional parameter "projectId": Required. ID of the
  7593  // project.
  7594  func (c *ProjectsLocationsBuildsListCall) ProjectId(projectId string) *ProjectsLocationsBuildsListCall {
  7595  	c.urlParams_.Set("projectId", projectId)
  7596  	return c
  7597  }
  7598  
  7599  // Fields allows partial responses to be retrieved. See
  7600  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7601  // details.
  7602  func (c *ProjectsLocationsBuildsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBuildsListCall {
  7603  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7604  	return c
  7605  }
  7606  
  7607  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7608  // object's ETag matches the given value. This is useful for getting updates
  7609  // only after the object has changed since the last request.
  7610  func (c *ProjectsLocationsBuildsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBuildsListCall {
  7611  	c.ifNoneMatch_ = entityTag
  7612  	return c
  7613  }
  7614  
  7615  // Context sets the context to be used in this call's Do method.
  7616  func (c *ProjectsLocationsBuildsListCall) Context(ctx context.Context) *ProjectsLocationsBuildsListCall {
  7617  	c.ctx_ = ctx
  7618  	return c
  7619  }
  7620  
  7621  // Header returns a http.Header that can be modified by the caller to add
  7622  // headers to the request.
  7623  func (c *ProjectsLocationsBuildsListCall) Header() http.Header {
  7624  	if c.header_ == nil {
  7625  		c.header_ = make(http.Header)
  7626  	}
  7627  	return c.header_
  7628  }
  7629  
  7630  func (c *ProjectsLocationsBuildsListCall) doRequest(alt string) (*http.Response, error) {
  7631  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7632  	if c.ifNoneMatch_ != "" {
  7633  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7634  	}
  7635  	var body io.Reader = nil
  7636  	c.urlParams_.Set("alt", alt)
  7637  	c.urlParams_.Set("prettyPrint", "false")
  7638  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/builds")
  7639  	urls += "?" + c.urlParams_.Encode()
  7640  	req, err := http.NewRequest("GET", urls, body)
  7641  	if err != nil {
  7642  		return nil, err
  7643  	}
  7644  	req.Header = reqHeaders
  7645  	googleapi.Expand(req.URL, map[string]string{
  7646  		"parent": c.parent,
  7647  	})
  7648  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7649  }
  7650  
  7651  // Do executes the "cloudbuild.projects.locations.builds.list" call.
  7652  // Any non-2xx status code is an error. Response headers are in either
  7653  // *ListBuildsResponse.ServerResponse.Header or (if a response was returned at
  7654  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7655  // check whether the returned error was because http.StatusNotModified was
  7656  // returned.
  7657  func (c *ProjectsLocationsBuildsListCall) Do(opts ...googleapi.CallOption) (*ListBuildsResponse, error) {
  7658  	gensupport.SetOptions(c.urlParams_, opts...)
  7659  	res, err := c.doRequest("json")
  7660  	if res != nil && res.StatusCode == http.StatusNotModified {
  7661  		if res.Body != nil {
  7662  			res.Body.Close()
  7663  		}
  7664  		return nil, gensupport.WrapError(&googleapi.Error{
  7665  			Code:   res.StatusCode,
  7666  			Header: res.Header,
  7667  		})
  7668  	}
  7669  	if err != nil {
  7670  		return nil, err
  7671  	}
  7672  	defer googleapi.CloseBody(res)
  7673  	if err := googleapi.CheckResponse(res); err != nil {
  7674  		return nil, gensupport.WrapError(err)
  7675  	}
  7676  	ret := &ListBuildsResponse{
  7677  		ServerResponse: googleapi.ServerResponse{
  7678  			Header:         res.Header,
  7679  			HTTPStatusCode: res.StatusCode,
  7680  		},
  7681  	}
  7682  	target := &ret
  7683  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7684  		return nil, err
  7685  	}
  7686  	return ret, nil
  7687  }
  7688  
  7689  // Pages invokes f for each page of results.
  7690  // A non-nil error returned from f will halt the iteration.
  7691  // The provided context supersedes any context provided to the Context method.
  7692  func (c *ProjectsLocationsBuildsListCall) Pages(ctx context.Context, f func(*ListBuildsResponse) error) error {
  7693  	c.ctx_ = ctx
  7694  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7695  	for {
  7696  		x, err := c.Do()
  7697  		if err != nil {
  7698  			return err
  7699  		}
  7700  		if err := f(x); err != nil {
  7701  			return err
  7702  		}
  7703  		if x.NextPageToken == "" {
  7704  			return nil
  7705  		}
  7706  		c.PageToken(x.NextPageToken)
  7707  	}
  7708  }
  7709  
  7710  type ProjectsLocationsBuildsRetryCall struct {
  7711  	s                 *Service
  7712  	name              string
  7713  	retrybuildrequest *RetryBuildRequest
  7714  	urlParams_        gensupport.URLParams
  7715  	ctx_              context.Context
  7716  	header_           http.Header
  7717  }
  7718  
  7719  // Retry: Creates a new build based on the specified build. This method creates
  7720  // a new build using the original build request, which may or may not result in
  7721  // an identical build. For triggered builds: * Triggered builds resolve to a
  7722  // precise revision; therefore a retry of a triggered build will result in a
  7723  // build that uses the same revision. For non-triggered builds that specify
  7724  // `RepoSource`: * If the original build built from the tip of a branch, the
  7725  // retried build will build from the tip of that branch, which may not be the
  7726  // same revision as the original build. * If the original build specified a
  7727  // commit sha or revision ID, the retried build will use the identical source.
  7728  // For builds that specify `StorageSource`: * If the original build pulled
  7729  // source from Cloud Storage without specifying the generation of the object,
  7730  // the new build will use the current object, which may be different from the
  7731  // original build source. * If the original build pulled source from Cloud
  7732  // Storage and specified the generation of the object, the new build will
  7733  // attempt to use the same object, which may or may not be available depending
  7734  // on the bucket's lifecycle management settings.
  7735  //
  7736  //   - name: The name of the `Build` to retry. Format:
  7737  //     `projects/{project}/locations/{location}/builds/{build}`.
  7738  func (r *ProjectsLocationsBuildsService) Retry(name string, retrybuildrequest *RetryBuildRequest) *ProjectsLocationsBuildsRetryCall {
  7739  	c := &ProjectsLocationsBuildsRetryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7740  	c.name = name
  7741  	c.retrybuildrequest = retrybuildrequest
  7742  	return c
  7743  }
  7744  
  7745  // Fields allows partial responses to be retrieved. See
  7746  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7747  // details.
  7748  func (c *ProjectsLocationsBuildsRetryCall) Fields(s ...googleapi.Field) *ProjectsLocationsBuildsRetryCall {
  7749  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7750  	return c
  7751  }
  7752  
  7753  // Context sets the context to be used in this call's Do method.
  7754  func (c *ProjectsLocationsBuildsRetryCall) Context(ctx context.Context) *ProjectsLocationsBuildsRetryCall {
  7755  	c.ctx_ = ctx
  7756  	return c
  7757  }
  7758  
  7759  // Header returns a http.Header that can be modified by the caller to add
  7760  // headers to the request.
  7761  func (c *ProjectsLocationsBuildsRetryCall) Header() http.Header {
  7762  	if c.header_ == nil {
  7763  		c.header_ = make(http.Header)
  7764  	}
  7765  	return c.header_
  7766  }
  7767  
  7768  func (c *ProjectsLocationsBuildsRetryCall) doRequest(alt string) (*http.Response, error) {
  7769  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7770  	var body io.Reader = nil
  7771  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.retrybuildrequest)
  7772  	if err != nil {
  7773  		return nil, err
  7774  	}
  7775  	c.urlParams_.Set("alt", alt)
  7776  	c.urlParams_.Set("prettyPrint", "false")
  7777  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:retry")
  7778  	urls += "?" + c.urlParams_.Encode()
  7779  	req, err := http.NewRequest("POST", urls, body)
  7780  	if err != nil {
  7781  		return nil, err
  7782  	}
  7783  	req.Header = reqHeaders
  7784  	googleapi.Expand(req.URL, map[string]string{
  7785  		"name": c.name,
  7786  	})
  7787  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7788  }
  7789  
  7790  // Do executes the "cloudbuild.projects.locations.builds.retry" call.
  7791  // Any non-2xx status code is an error. Response headers are in either
  7792  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7793  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7794  // whether the returned error was because http.StatusNotModified was returned.
  7795  func (c *ProjectsLocationsBuildsRetryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7796  	gensupport.SetOptions(c.urlParams_, opts...)
  7797  	res, err := c.doRequest("json")
  7798  	if res != nil && res.StatusCode == http.StatusNotModified {
  7799  		if res.Body != nil {
  7800  			res.Body.Close()
  7801  		}
  7802  		return nil, gensupport.WrapError(&googleapi.Error{
  7803  			Code:   res.StatusCode,
  7804  			Header: res.Header,
  7805  		})
  7806  	}
  7807  	if err != nil {
  7808  		return nil, err
  7809  	}
  7810  	defer googleapi.CloseBody(res)
  7811  	if err := googleapi.CheckResponse(res); err != nil {
  7812  		return nil, gensupport.WrapError(err)
  7813  	}
  7814  	ret := &Operation{
  7815  		ServerResponse: googleapi.ServerResponse{
  7816  			Header:         res.Header,
  7817  			HTTPStatusCode: res.StatusCode,
  7818  		},
  7819  	}
  7820  	target := &ret
  7821  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7822  		return nil, err
  7823  	}
  7824  	return ret, nil
  7825  }
  7826  
  7827  type ProjectsLocationsGitLabConfigsCreateCall struct {
  7828  	s            *Service
  7829  	parent       string
  7830  	gitlabconfig *GitLabConfig
  7831  	urlParams_   gensupport.URLParams
  7832  	ctx_         context.Context
  7833  	header_      http.Header
  7834  }
  7835  
  7836  // Create: Creates a new `GitLabConfig`. This API is experimental
  7837  //
  7838  // - parent: Name of the parent resource.
  7839  func (r *ProjectsLocationsGitLabConfigsService) Create(parent string, gitlabconfig *GitLabConfig) *ProjectsLocationsGitLabConfigsCreateCall {
  7840  	c := &ProjectsLocationsGitLabConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7841  	c.parent = parent
  7842  	c.gitlabconfig = gitlabconfig
  7843  	return c
  7844  }
  7845  
  7846  // GitlabConfigId sets the optional parameter "gitlabConfigId": The ID to use
  7847  // for the GitLabConfig, which will become the final component of the
  7848  // GitLabConfig’s resource name. gitlab_config_id must meet the following
  7849  // requirements: + They must contain only alphanumeric characters and dashes. +
  7850  // They can be 1-64 characters long. + They must begin and end with an
  7851  // alphanumeric character
  7852  func (c *ProjectsLocationsGitLabConfigsCreateCall) GitlabConfigId(gitlabConfigId string) *ProjectsLocationsGitLabConfigsCreateCall {
  7853  	c.urlParams_.Set("gitlabConfigId", gitlabConfigId)
  7854  	return c
  7855  }
  7856  
  7857  // Fields allows partial responses to be retrieved. See
  7858  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7859  // details.
  7860  func (c *ProjectsLocationsGitLabConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsCreateCall {
  7861  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7862  	return c
  7863  }
  7864  
  7865  // Context sets the context to be used in this call's Do method.
  7866  func (c *ProjectsLocationsGitLabConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsCreateCall {
  7867  	c.ctx_ = ctx
  7868  	return c
  7869  }
  7870  
  7871  // Header returns a http.Header that can be modified by the caller to add
  7872  // headers to the request.
  7873  func (c *ProjectsLocationsGitLabConfigsCreateCall) Header() http.Header {
  7874  	if c.header_ == nil {
  7875  		c.header_ = make(http.Header)
  7876  	}
  7877  	return c.header_
  7878  }
  7879  
  7880  func (c *ProjectsLocationsGitLabConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  7881  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7882  	var body io.Reader = nil
  7883  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.gitlabconfig)
  7884  	if err != nil {
  7885  		return nil, err
  7886  	}
  7887  	c.urlParams_.Set("alt", alt)
  7888  	c.urlParams_.Set("prettyPrint", "false")
  7889  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/gitLabConfigs")
  7890  	urls += "?" + c.urlParams_.Encode()
  7891  	req, err := http.NewRequest("POST", urls, body)
  7892  	if err != nil {
  7893  		return nil, err
  7894  	}
  7895  	req.Header = reqHeaders
  7896  	googleapi.Expand(req.URL, map[string]string{
  7897  		"parent": c.parent,
  7898  	})
  7899  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7900  }
  7901  
  7902  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.create" call.
  7903  // Any non-2xx status code is an error. Response headers are in either
  7904  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7905  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7906  // whether the returned error was because http.StatusNotModified was returned.
  7907  func (c *ProjectsLocationsGitLabConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7908  	gensupport.SetOptions(c.urlParams_, opts...)
  7909  	res, err := c.doRequest("json")
  7910  	if res != nil && res.StatusCode == http.StatusNotModified {
  7911  		if res.Body != nil {
  7912  			res.Body.Close()
  7913  		}
  7914  		return nil, gensupport.WrapError(&googleapi.Error{
  7915  			Code:   res.StatusCode,
  7916  			Header: res.Header,
  7917  		})
  7918  	}
  7919  	if err != nil {
  7920  		return nil, err
  7921  	}
  7922  	defer googleapi.CloseBody(res)
  7923  	if err := googleapi.CheckResponse(res); err != nil {
  7924  		return nil, gensupport.WrapError(err)
  7925  	}
  7926  	ret := &Operation{
  7927  		ServerResponse: googleapi.ServerResponse{
  7928  			Header:         res.Header,
  7929  			HTTPStatusCode: res.StatusCode,
  7930  		},
  7931  	}
  7932  	target := &ret
  7933  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7934  		return nil, err
  7935  	}
  7936  	return ret, nil
  7937  }
  7938  
  7939  type ProjectsLocationsGitLabConfigsDeleteCall struct {
  7940  	s          *Service
  7941  	name       string
  7942  	urlParams_ gensupport.URLParams
  7943  	ctx_       context.Context
  7944  	header_    http.Header
  7945  }
  7946  
  7947  // Delete: Delete a `GitLabConfig`. This API is experimental
  7948  //
  7949  // - name: The config resource name.
  7950  func (r *ProjectsLocationsGitLabConfigsService) Delete(name string) *ProjectsLocationsGitLabConfigsDeleteCall {
  7951  	c := &ProjectsLocationsGitLabConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7952  	c.name = name
  7953  	return c
  7954  }
  7955  
  7956  // Fields allows partial responses to be retrieved. See
  7957  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7958  // details.
  7959  func (c *ProjectsLocationsGitLabConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsDeleteCall {
  7960  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7961  	return c
  7962  }
  7963  
  7964  // Context sets the context to be used in this call's Do method.
  7965  func (c *ProjectsLocationsGitLabConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsDeleteCall {
  7966  	c.ctx_ = ctx
  7967  	return c
  7968  }
  7969  
  7970  // Header returns a http.Header that can be modified by the caller to add
  7971  // headers to the request.
  7972  func (c *ProjectsLocationsGitLabConfigsDeleteCall) Header() http.Header {
  7973  	if c.header_ == nil {
  7974  		c.header_ = make(http.Header)
  7975  	}
  7976  	return c.header_
  7977  }
  7978  
  7979  func (c *ProjectsLocationsGitLabConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7980  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7981  	var body io.Reader = nil
  7982  	c.urlParams_.Set("alt", alt)
  7983  	c.urlParams_.Set("prettyPrint", "false")
  7984  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7985  	urls += "?" + c.urlParams_.Encode()
  7986  	req, err := http.NewRequest("DELETE", urls, body)
  7987  	if err != nil {
  7988  		return nil, err
  7989  	}
  7990  	req.Header = reqHeaders
  7991  	googleapi.Expand(req.URL, map[string]string{
  7992  		"name": c.name,
  7993  	})
  7994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7995  }
  7996  
  7997  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.delete" call.
  7998  // Any non-2xx status code is an error. Response headers are in either
  7999  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8000  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8001  // whether the returned error was because http.StatusNotModified was returned.
  8002  func (c *ProjectsLocationsGitLabConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8003  	gensupport.SetOptions(c.urlParams_, opts...)
  8004  	res, err := c.doRequest("json")
  8005  	if res != nil && res.StatusCode == http.StatusNotModified {
  8006  		if res.Body != nil {
  8007  			res.Body.Close()
  8008  		}
  8009  		return nil, gensupport.WrapError(&googleapi.Error{
  8010  			Code:   res.StatusCode,
  8011  			Header: res.Header,
  8012  		})
  8013  	}
  8014  	if err != nil {
  8015  		return nil, err
  8016  	}
  8017  	defer googleapi.CloseBody(res)
  8018  	if err := googleapi.CheckResponse(res); err != nil {
  8019  		return nil, gensupport.WrapError(err)
  8020  	}
  8021  	ret := &Operation{
  8022  		ServerResponse: googleapi.ServerResponse{
  8023  			Header:         res.Header,
  8024  			HTTPStatusCode: res.StatusCode,
  8025  		},
  8026  	}
  8027  	target := &ret
  8028  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8029  		return nil, err
  8030  	}
  8031  	return ret, nil
  8032  }
  8033  
  8034  type ProjectsLocationsGitLabConfigsGetCall struct {
  8035  	s            *Service
  8036  	name         string
  8037  	urlParams_   gensupport.URLParams
  8038  	ifNoneMatch_ string
  8039  	ctx_         context.Context
  8040  	header_      http.Header
  8041  }
  8042  
  8043  // Get: Retrieves a `GitLabConfig`. This API is experimental
  8044  //
  8045  // - name: The config resource name.
  8046  func (r *ProjectsLocationsGitLabConfigsService) Get(name string) *ProjectsLocationsGitLabConfigsGetCall {
  8047  	c := &ProjectsLocationsGitLabConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8048  	c.name = name
  8049  	return c
  8050  }
  8051  
  8052  // Fields allows partial responses to be retrieved. See
  8053  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8054  // details.
  8055  func (c *ProjectsLocationsGitLabConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsGetCall {
  8056  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8057  	return c
  8058  }
  8059  
  8060  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8061  // object's ETag matches the given value. This is useful for getting updates
  8062  // only after the object has changed since the last request.
  8063  func (c *ProjectsLocationsGitLabConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGitLabConfigsGetCall {
  8064  	c.ifNoneMatch_ = entityTag
  8065  	return c
  8066  }
  8067  
  8068  // Context sets the context to be used in this call's Do method.
  8069  func (c *ProjectsLocationsGitLabConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsGetCall {
  8070  	c.ctx_ = ctx
  8071  	return c
  8072  }
  8073  
  8074  // Header returns a http.Header that can be modified by the caller to add
  8075  // headers to the request.
  8076  func (c *ProjectsLocationsGitLabConfigsGetCall) Header() http.Header {
  8077  	if c.header_ == nil {
  8078  		c.header_ = make(http.Header)
  8079  	}
  8080  	return c.header_
  8081  }
  8082  
  8083  func (c *ProjectsLocationsGitLabConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  8084  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8085  	if c.ifNoneMatch_ != "" {
  8086  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8087  	}
  8088  	var body io.Reader = nil
  8089  	c.urlParams_.Set("alt", alt)
  8090  	c.urlParams_.Set("prettyPrint", "false")
  8091  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8092  	urls += "?" + c.urlParams_.Encode()
  8093  	req, err := http.NewRequest("GET", urls, body)
  8094  	if err != nil {
  8095  		return nil, err
  8096  	}
  8097  	req.Header = reqHeaders
  8098  	googleapi.Expand(req.URL, map[string]string{
  8099  		"name": c.name,
  8100  	})
  8101  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8102  }
  8103  
  8104  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.get" call.
  8105  // Any non-2xx status code is an error. Response headers are in either
  8106  // *GitLabConfig.ServerResponse.Header or (if a response was returned at all)
  8107  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8108  // whether the returned error was because http.StatusNotModified was returned.
  8109  func (c *ProjectsLocationsGitLabConfigsGetCall) Do(opts ...googleapi.CallOption) (*GitLabConfig, error) {
  8110  	gensupport.SetOptions(c.urlParams_, opts...)
  8111  	res, err := c.doRequest("json")
  8112  	if res != nil && res.StatusCode == http.StatusNotModified {
  8113  		if res.Body != nil {
  8114  			res.Body.Close()
  8115  		}
  8116  		return nil, gensupport.WrapError(&googleapi.Error{
  8117  			Code:   res.StatusCode,
  8118  			Header: res.Header,
  8119  		})
  8120  	}
  8121  	if err != nil {
  8122  		return nil, err
  8123  	}
  8124  	defer googleapi.CloseBody(res)
  8125  	if err := googleapi.CheckResponse(res); err != nil {
  8126  		return nil, gensupport.WrapError(err)
  8127  	}
  8128  	ret := &GitLabConfig{
  8129  		ServerResponse: googleapi.ServerResponse{
  8130  			Header:         res.Header,
  8131  			HTTPStatusCode: res.StatusCode,
  8132  		},
  8133  	}
  8134  	target := &ret
  8135  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8136  		return nil, err
  8137  	}
  8138  	return ret, nil
  8139  }
  8140  
  8141  type ProjectsLocationsGitLabConfigsListCall struct {
  8142  	s            *Service
  8143  	parent       string
  8144  	urlParams_   gensupport.URLParams
  8145  	ifNoneMatch_ string
  8146  	ctx_         context.Context
  8147  	header_      http.Header
  8148  }
  8149  
  8150  // List: List all `GitLabConfigs` for a given project. This API is experimental
  8151  //
  8152  // - parent: Name of the parent resource.
  8153  func (r *ProjectsLocationsGitLabConfigsService) List(parent string) *ProjectsLocationsGitLabConfigsListCall {
  8154  	c := &ProjectsLocationsGitLabConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8155  	c.parent = parent
  8156  	return c
  8157  }
  8158  
  8159  // PageSize sets the optional parameter "pageSize": The maximum number of
  8160  // configs to return. The service may return fewer than this value. If
  8161  // unspecified, at most 50 configs will be returned. The maximum value is
  8162  // 1000;, values above 1000 will be coerced to 1000.
  8163  func (c *ProjectsLocationsGitLabConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsGitLabConfigsListCall {
  8164  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8165  	return c
  8166  }
  8167  
  8168  // PageToken sets the optional parameter "pageToken": A page token, received
  8169  // from a previous ‘ListGitlabConfigsRequest’ call. Provide this to
  8170  // retrieve the subsequent page. When paginating, all other parameters provided
  8171  // to ‘ListGitlabConfigsRequest’ must match the call that provided the page
  8172  // token.
  8173  func (c *ProjectsLocationsGitLabConfigsListCall) PageToken(pageToken string) *ProjectsLocationsGitLabConfigsListCall {
  8174  	c.urlParams_.Set("pageToken", pageToken)
  8175  	return c
  8176  }
  8177  
  8178  // Fields allows partial responses to be retrieved. See
  8179  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8180  // details.
  8181  func (c *ProjectsLocationsGitLabConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsListCall {
  8182  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8183  	return c
  8184  }
  8185  
  8186  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8187  // object's ETag matches the given value. This is useful for getting updates
  8188  // only after the object has changed since the last request.
  8189  func (c *ProjectsLocationsGitLabConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGitLabConfigsListCall {
  8190  	c.ifNoneMatch_ = entityTag
  8191  	return c
  8192  }
  8193  
  8194  // Context sets the context to be used in this call's Do method.
  8195  func (c *ProjectsLocationsGitLabConfigsListCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsListCall {
  8196  	c.ctx_ = ctx
  8197  	return c
  8198  }
  8199  
  8200  // Header returns a http.Header that can be modified by the caller to add
  8201  // headers to the request.
  8202  func (c *ProjectsLocationsGitLabConfigsListCall) Header() http.Header {
  8203  	if c.header_ == nil {
  8204  		c.header_ = make(http.Header)
  8205  	}
  8206  	return c.header_
  8207  }
  8208  
  8209  func (c *ProjectsLocationsGitLabConfigsListCall) doRequest(alt string) (*http.Response, error) {
  8210  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8211  	if c.ifNoneMatch_ != "" {
  8212  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8213  	}
  8214  	var body io.Reader = nil
  8215  	c.urlParams_.Set("alt", alt)
  8216  	c.urlParams_.Set("prettyPrint", "false")
  8217  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/gitLabConfigs")
  8218  	urls += "?" + c.urlParams_.Encode()
  8219  	req, err := http.NewRequest("GET", urls, body)
  8220  	if err != nil {
  8221  		return nil, err
  8222  	}
  8223  	req.Header = reqHeaders
  8224  	googleapi.Expand(req.URL, map[string]string{
  8225  		"parent": c.parent,
  8226  	})
  8227  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8228  }
  8229  
  8230  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.list" call.
  8231  // Any non-2xx status code is an error. Response headers are in either
  8232  // *ListGitLabConfigsResponse.ServerResponse.Header or (if a response was
  8233  // returned at all) in error.(*googleapi.Error).Header. Use
  8234  // googleapi.IsNotModified to check whether the returned error was because
  8235  // http.StatusNotModified was returned.
  8236  func (c *ProjectsLocationsGitLabConfigsListCall) Do(opts ...googleapi.CallOption) (*ListGitLabConfigsResponse, error) {
  8237  	gensupport.SetOptions(c.urlParams_, opts...)
  8238  	res, err := c.doRequest("json")
  8239  	if res != nil && res.StatusCode == http.StatusNotModified {
  8240  		if res.Body != nil {
  8241  			res.Body.Close()
  8242  		}
  8243  		return nil, gensupport.WrapError(&googleapi.Error{
  8244  			Code:   res.StatusCode,
  8245  			Header: res.Header,
  8246  		})
  8247  	}
  8248  	if err != nil {
  8249  		return nil, err
  8250  	}
  8251  	defer googleapi.CloseBody(res)
  8252  	if err := googleapi.CheckResponse(res); err != nil {
  8253  		return nil, gensupport.WrapError(err)
  8254  	}
  8255  	ret := &ListGitLabConfigsResponse{
  8256  		ServerResponse: googleapi.ServerResponse{
  8257  			Header:         res.Header,
  8258  			HTTPStatusCode: res.StatusCode,
  8259  		},
  8260  	}
  8261  	target := &ret
  8262  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8263  		return nil, err
  8264  	}
  8265  	return ret, nil
  8266  }
  8267  
  8268  // Pages invokes f for each page of results.
  8269  // A non-nil error returned from f will halt the iteration.
  8270  // The provided context supersedes any context provided to the Context method.
  8271  func (c *ProjectsLocationsGitLabConfigsListCall) Pages(ctx context.Context, f func(*ListGitLabConfigsResponse) error) error {
  8272  	c.ctx_ = ctx
  8273  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8274  	for {
  8275  		x, err := c.Do()
  8276  		if err != nil {
  8277  			return err
  8278  		}
  8279  		if err := f(x); err != nil {
  8280  			return err
  8281  		}
  8282  		if x.NextPageToken == "" {
  8283  			return nil
  8284  		}
  8285  		c.PageToken(x.NextPageToken)
  8286  	}
  8287  }
  8288  
  8289  type ProjectsLocationsGitLabConfigsPatchCall struct {
  8290  	s            *Service
  8291  	name         string
  8292  	gitlabconfig *GitLabConfig
  8293  	urlParams_   gensupport.URLParams
  8294  	ctx_         context.Context
  8295  	header_      http.Header
  8296  }
  8297  
  8298  // Patch: Updates an existing `GitLabConfig`. This API is experimental
  8299  //
  8300  // - name: The resource name for the config.
  8301  func (r *ProjectsLocationsGitLabConfigsService) Patch(name string, gitlabconfig *GitLabConfig) *ProjectsLocationsGitLabConfigsPatchCall {
  8302  	c := &ProjectsLocationsGitLabConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8303  	c.name = name
  8304  	c.gitlabconfig = gitlabconfig
  8305  	return c
  8306  }
  8307  
  8308  // UpdateMask sets the optional parameter "updateMask": Update mask for the
  8309  // resource. If this is set, the server will only update the fields specified
  8310  // in the field mask. Otherwise, a full update of the mutable resource fields
  8311  // will be performed.
  8312  func (c *ProjectsLocationsGitLabConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGitLabConfigsPatchCall {
  8313  	c.urlParams_.Set("updateMask", updateMask)
  8314  	return c
  8315  }
  8316  
  8317  // Fields allows partial responses to be retrieved. See
  8318  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8319  // details.
  8320  func (c *ProjectsLocationsGitLabConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsPatchCall {
  8321  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8322  	return c
  8323  }
  8324  
  8325  // Context sets the context to be used in this call's Do method.
  8326  func (c *ProjectsLocationsGitLabConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsPatchCall {
  8327  	c.ctx_ = ctx
  8328  	return c
  8329  }
  8330  
  8331  // Header returns a http.Header that can be modified by the caller to add
  8332  // headers to the request.
  8333  func (c *ProjectsLocationsGitLabConfigsPatchCall) Header() http.Header {
  8334  	if c.header_ == nil {
  8335  		c.header_ = make(http.Header)
  8336  	}
  8337  	return c.header_
  8338  }
  8339  
  8340  func (c *ProjectsLocationsGitLabConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  8341  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8342  	var body io.Reader = nil
  8343  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.gitlabconfig)
  8344  	if err != nil {
  8345  		return nil, err
  8346  	}
  8347  	c.urlParams_.Set("alt", alt)
  8348  	c.urlParams_.Set("prettyPrint", "false")
  8349  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8350  	urls += "?" + c.urlParams_.Encode()
  8351  	req, err := http.NewRequest("PATCH", urls, body)
  8352  	if err != nil {
  8353  		return nil, err
  8354  	}
  8355  	req.Header = reqHeaders
  8356  	googleapi.Expand(req.URL, map[string]string{
  8357  		"name": c.name,
  8358  	})
  8359  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8360  }
  8361  
  8362  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.patch" call.
  8363  // Any non-2xx status code is an error. Response headers are in either
  8364  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8365  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8366  // whether the returned error was because http.StatusNotModified was returned.
  8367  func (c *ProjectsLocationsGitLabConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8368  	gensupport.SetOptions(c.urlParams_, opts...)
  8369  	res, err := c.doRequest("json")
  8370  	if res != nil && res.StatusCode == http.StatusNotModified {
  8371  		if res.Body != nil {
  8372  			res.Body.Close()
  8373  		}
  8374  		return nil, gensupport.WrapError(&googleapi.Error{
  8375  			Code:   res.StatusCode,
  8376  			Header: res.Header,
  8377  		})
  8378  	}
  8379  	if err != nil {
  8380  		return nil, err
  8381  	}
  8382  	defer googleapi.CloseBody(res)
  8383  	if err := googleapi.CheckResponse(res); err != nil {
  8384  		return nil, gensupport.WrapError(err)
  8385  	}
  8386  	ret := &Operation{
  8387  		ServerResponse: googleapi.ServerResponse{
  8388  			Header:         res.Header,
  8389  			HTTPStatusCode: res.StatusCode,
  8390  		},
  8391  	}
  8392  	target := &ret
  8393  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8394  		return nil, err
  8395  	}
  8396  	return ret, nil
  8397  }
  8398  
  8399  type ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall struct {
  8400  	s                                      *Service
  8401  	config                                 string
  8402  	removegitlabconnectedrepositoryrequest *RemoveGitLabConnectedRepositoryRequest
  8403  	urlParams_                             gensupport.URLParams
  8404  	ctx_                                   context.Context
  8405  	header_                                http.Header
  8406  }
  8407  
  8408  // RemoveGitLabConnectedRepository: Remove a GitLab repository from a given
  8409  // GitLabConfig's connected repositories. This API is experimental.
  8410  //
  8411  //   - config: The name of the `GitLabConfig` to remove a connected repository.
  8412  //     Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}`.
  8413  func (r *ProjectsLocationsGitLabConfigsService) RemoveGitLabConnectedRepository(config string, removegitlabconnectedrepositoryrequest *RemoveGitLabConnectedRepositoryRequest) *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall {
  8414  	c := &ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8415  	c.config = config
  8416  	c.removegitlabconnectedrepositoryrequest = removegitlabconnectedrepositoryrequest
  8417  	return c
  8418  }
  8419  
  8420  // Fields allows partial responses to be retrieved. See
  8421  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8422  // details.
  8423  func (c *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall {
  8424  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8425  	return c
  8426  }
  8427  
  8428  // Context sets the context to be used in this call's Do method.
  8429  func (c *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall {
  8430  	c.ctx_ = ctx
  8431  	return c
  8432  }
  8433  
  8434  // Header returns a http.Header that can be modified by the caller to add
  8435  // headers to the request.
  8436  func (c *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall) Header() http.Header {
  8437  	if c.header_ == nil {
  8438  		c.header_ = make(http.Header)
  8439  	}
  8440  	return c.header_
  8441  }
  8442  
  8443  func (c *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall) doRequest(alt string) (*http.Response, error) {
  8444  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8445  	var body io.Reader = nil
  8446  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.removegitlabconnectedrepositoryrequest)
  8447  	if err != nil {
  8448  		return nil, err
  8449  	}
  8450  	c.urlParams_.Set("alt", alt)
  8451  	c.urlParams_.Set("prettyPrint", "false")
  8452  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+config}:removeGitLabConnectedRepository")
  8453  	urls += "?" + c.urlParams_.Encode()
  8454  	req, err := http.NewRequest("POST", urls, body)
  8455  	if err != nil {
  8456  		return nil, err
  8457  	}
  8458  	req.Header = reqHeaders
  8459  	googleapi.Expand(req.URL, map[string]string{
  8460  		"config": c.config,
  8461  	})
  8462  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8463  }
  8464  
  8465  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.removeGitLabConnectedRepository" call.
  8466  // Any non-2xx status code is an error. Response headers are in either
  8467  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  8468  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8469  // whether the returned error was because http.StatusNotModified was returned.
  8470  func (c *ProjectsLocationsGitLabConfigsRemoveGitLabConnectedRepositoryCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  8471  	gensupport.SetOptions(c.urlParams_, opts...)
  8472  	res, err := c.doRequest("json")
  8473  	if res != nil && res.StatusCode == http.StatusNotModified {
  8474  		if res.Body != nil {
  8475  			res.Body.Close()
  8476  		}
  8477  		return nil, gensupport.WrapError(&googleapi.Error{
  8478  			Code:   res.StatusCode,
  8479  			Header: res.Header,
  8480  		})
  8481  	}
  8482  	if err != nil {
  8483  		return nil, err
  8484  	}
  8485  	defer googleapi.CloseBody(res)
  8486  	if err := googleapi.CheckResponse(res); err != nil {
  8487  		return nil, gensupport.WrapError(err)
  8488  	}
  8489  	ret := &Empty{
  8490  		ServerResponse: googleapi.ServerResponse{
  8491  			Header:         res.Header,
  8492  			HTTPStatusCode: res.StatusCode,
  8493  		},
  8494  	}
  8495  	target := &ret
  8496  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8497  		return nil, err
  8498  	}
  8499  	return ret, nil
  8500  }
  8501  
  8502  type ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall struct {
  8503  	s                                             *Service
  8504  	parent                                        string
  8505  	batchcreategitlabconnectedrepositoriesrequest *BatchCreateGitLabConnectedRepositoriesRequest
  8506  	urlParams_                                    gensupport.URLParams
  8507  	ctx_                                          context.Context
  8508  	header_                                       http.Header
  8509  }
  8510  
  8511  // BatchCreate: Batch connecting GitLab repositories to Cloud Build. This API
  8512  // is experimental.
  8513  //
  8514  //   - parent: The name of the `GitLabConfig` that adds connected repositories.
  8515  //     Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}`.
  8516  func (r *ProjectsLocationsGitLabConfigsConnectedRepositoriesService) BatchCreate(parent string, batchcreategitlabconnectedrepositoriesrequest *BatchCreateGitLabConnectedRepositoriesRequest) *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall {
  8517  	c := &ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8518  	c.parent = parent
  8519  	c.batchcreategitlabconnectedrepositoriesrequest = batchcreategitlabconnectedrepositoriesrequest
  8520  	return c
  8521  }
  8522  
  8523  // Fields allows partial responses to be retrieved. See
  8524  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8525  // details.
  8526  func (c *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall {
  8527  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8528  	return c
  8529  }
  8530  
  8531  // Context sets the context to be used in this call's Do method.
  8532  func (c *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall {
  8533  	c.ctx_ = ctx
  8534  	return c
  8535  }
  8536  
  8537  // Header returns a http.Header that can be modified by the caller to add
  8538  // headers to the request.
  8539  func (c *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall) Header() http.Header {
  8540  	if c.header_ == nil {
  8541  		c.header_ = make(http.Header)
  8542  	}
  8543  	return c.header_
  8544  }
  8545  
  8546  func (c *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
  8547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8548  	var body io.Reader = nil
  8549  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchcreategitlabconnectedrepositoriesrequest)
  8550  	if err != nil {
  8551  		return nil, err
  8552  	}
  8553  	c.urlParams_.Set("alt", alt)
  8554  	c.urlParams_.Set("prettyPrint", "false")
  8555  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectedRepositories:batchCreate")
  8556  	urls += "?" + c.urlParams_.Encode()
  8557  	req, err := http.NewRequest("POST", urls, body)
  8558  	if err != nil {
  8559  		return nil, err
  8560  	}
  8561  	req.Header = reqHeaders
  8562  	googleapi.Expand(req.URL, map[string]string{
  8563  		"parent": c.parent,
  8564  	})
  8565  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8566  }
  8567  
  8568  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.connectedRepositories.batchCreate" call.
  8569  // Any non-2xx status code is an error. Response headers are in either
  8570  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8571  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8572  // whether the returned error was because http.StatusNotModified was returned.
  8573  func (c *ProjectsLocationsGitLabConfigsConnectedRepositoriesBatchCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8574  	gensupport.SetOptions(c.urlParams_, opts...)
  8575  	res, err := c.doRequest("json")
  8576  	if res != nil && res.StatusCode == http.StatusNotModified {
  8577  		if res.Body != nil {
  8578  			res.Body.Close()
  8579  		}
  8580  		return nil, gensupport.WrapError(&googleapi.Error{
  8581  			Code:   res.StatusCode,
  8582  			Header: res.Header,
  8583  		})
  8584  	}
  8585  	if err != nil {
  8586  		return nil, err
  8587  	}
  8588  	defer googleapi.CloseBody(res)
  8589  	if err := googleapi.CheckResponse(res); err != nil {
  8590  		return nil, gensupport.WrapError(err)
  8591  	}
  8592  	ret := &Operation{
  8593  		ServerResponse: googleapi.ServerResponse{
  8594  			Header:         res.Header,
  8595  			HTTPStatusCode: res.StatusCode,
  8596  		},
  8597  	}
  8598  	target := &ret
  8599  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8600  		return nil, err
  8601  	}
  8602  	return ret, nil
  8603  }
  8604  
  8605  type ProjectsLocationsGitLabConfigsReposListCall struct {
  8606  	s            *Service
  8607  	parent       string
  8608  	urlParams_   gensupport.URLParams
  8609  	ifNoneMatch_ string
  8610  	ctx_         context.Context
  8611  	header_      http.Header
  8612  }
  8613  
  8614  // List: List all repositories for a given `GitLabConfig`. This API is
  8615  // experimental
  8616  //
  8617  // - parent: Name of the parent resource.
  8618  func (r *ProjectsLocationsGitLabConfigsReposService) List(parent string) *ProjectsLocationsGitLabConfigsReposListCall {
  8619  	c := &ProjectsLocationsGitLabConfigsReposListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8620  	c.parent = parent
  8621  	return c
  8622  }
  8623  
  8624  // PageSize sets the optional parameter "pageSize": The maximum number of
  8625  // repositories to return. The service may return fewer than this value.
  8626  func (c *ProjectsLocationsGitLabConfigsReposListCall) PageSize(pageSize int64) *ProjectsLocationsGitLabConfigsReposListCall {
  8627  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8628  	return c
  8629  }
  8630  
  8631  // PageToken sets the optional parameter "pageToken": A page token, received
  8632  // from a previous ListGitLabRepositoriesRequest` call. Provide this to
  8633  // retrieve the subsequent page. When paginating, all other parameters provided
  8634  // to `ListGitLabRepositoriesRequest` must match the call that provided the
  8635  // page token.
  8636  func (c *ProjectsLocationsGitLabConfigsReposListCall) PageToken(pageToken string) *ProjectsLocationsGitLabConfigsReposListCall {
  8637  	c.urlParams_.Set("pageToken", pageToken)
  8638  	return c
  8639  }
  8640  
  8641  // Fields allows partial responses to be retrieved. See
  8642  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8643  // details.
  8644  func (c *ProjectsLocationsGitLabConfigsReposListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGitLabConfigsReposListCall {
  8645  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8646  	return c
  8647  }
  8648  
  8649  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8650  // object's ETag matches the given value. This is useful for getting updates
  8651  // only after the object has changed since the last request.
  8652  func (c *ProjectsLocationsGitLabConfigsReposListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGitLabConfigsReposListCall {
  8653  	c.ifNoneMatch_ = entityTag
  8654  	return c
  8655  }
  8656  
  8657  // Context sets the context to be used in this call's Do method.
  8658  func (c *ProjectsLocationsGitLabConfigsReposListCall) Context(ctx context.Context) *ProjectsLocationsGitLabConfigsReposListCall {
  8659  	c.ctx_ = ctx
  8660  	return c
  8661  }
  8662  
  8663  // Header returns a http.Header that can be modified by the caller to add
  8664  // headers to the request.
  8665  func (c *ProjectsLocationsGitLabConfigsReposListCall) Header() http.Header {
  8666  	if c.header_ == nil {
  8667  		c.header_ = make(http.Header)
  8668  	}
  8669  	return c.header_
  8670  }
  8671  
  8672  func (c *ProjectsLocationsGitLabConfigsReposListCall) doRequest(alt string) (*http.Response, error) {
  8673  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8674  	if c.ifNoneMatch_ != "" {
  8675  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8676  	}
  8677  	var body io.Reader = nil
  8678  	c.urlParams_.Set("alt", alt)
  8679  	c.urlParams_.Set("prettyPrint", "false")
  8680  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/repos")
  8681  	urls += "?" + c.urlParams_.Encode()
  8682  	req, err := http.NewRequest("GET", urls, body)
  8683  	if err != nil {
  8684  		return nil, err
  8685  	}
  8686  	req.Header = reqHeaders
  8687  	googleapi.Expand(req.URL, map[string]string{
  8688  		"parent": c.parent,
  8689  	})
  8690  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8691  }
  8692  
  8693  // Do executes the "cloudbuild.projects.locations.gitLabConfigs.repos.list" call.
  8694  // Any non-2xx status code is an error. Response headers are in either
  8695  // *ListGitLabRepositoriesResponse.ServerResponse.Header or (if a response was
  8696  // returned at all) in error.(*googleapi.Error).Header. Use
  8697  // googleapi.IsNotModified to check whether the returned error was because
  8698  // http.StatusNotModified was returned.
  8699  func (c *ProjectsLocationsGitLabConfigsReposListCall) Do(opts ...googleapi.CallOption) (*ListGitLabRepositoriesResponse, error) {
  8700  	gensupport.SetOptions(c.urlParams_, opts...)
  8701  	res, err := c.doRequest("json")
  8702  	if res != nil && res.StatusCode == http.StatusNotModified {
  8703  		if res.Body != nil {
  8704  			res.Body.Close()
  8705  		}
  8706  		return nil, gensupport.WrapError(&googleapi.Error{
  8707  			Code:   res.StatusCode,
  8708  			Header: res.Header,
  8709  		})
  8710  	}
  8711  	if err != nil {
  8712  		return nil, err
  8713  	}
  8714  	defer googleapi.CloseBody(res)
  8715  	if err := googleapi.CheckResponse(res); err != nil {
  8716  		return nil, gensupport.WrapError(err)
  8717  	}
  8718  	ret := &ListGitLabRepositoriesResponse{
  8719  		ServerResponse: googleapi.ServerResponse{
  8720  			Header:         res.Header,
  8721  			HTTPStatusCode: res.StatusCode,
  8722  		},
  8723  	}
  8724  	target := &ret
  8725  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8726  		return nil, err
  8727  	}
  8728  	return ret, nil
  8729  }
  8730  
  8731  // Pages invokes f for each page of results.
  8732  // A non-nil error returned from f will halt the iteration.
  8733  // The provided context supersedes any context provided to the Context method.
  8734  func (c *ProjectsLocationsGitLabConfigsReposListCall) Pages(ctx context.Context, f func(*ListGitLabRepositoriesResponse) error) error {
  8735  	c.ctx_ = ctx
  8736  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8737  	for {
  8738  		x, err := c.Do()
  8739  		if err != nil {
  8740  			return err
  8741  		}
  8742  		if err := f(x); err != nil {
  8743  			return err
  8744  		}
  8745  		if x.NextPageToken == "" {
  8746  			return nil
  8747  		}
  8748  		c.PageToken(x.NextPageToken)
  8749  	}
  8750  }
  8751  
  8752  type ProjectsLocationsGithubEnterpriseConfigsCreateCall struct {
  8753  	s                      *Service
  8754  	parent                 string
  8755  	githubenterpriseconfig *GitHubEnterpriseConfig
  8756  	urlParams_             gensupport.URLParams
  8757  	ctx_                   context.Context
  8758  	header_                http.Header
  8759  }
  8760  
  8761  // Create: Create an association between a GCP project and a GitHub Enterprise
  8762  // server.
  8763  //
  8764  //   - parent: Name of the parent project. For example:
  8765  //     projects/{$project_number} or projects/{$project_id}.
  8766  func (r *ProjectsLocationsGithubEnterpriseConfigsService) Create(parent string, githubenterpriseconfig *GitHubEnterpriseConfig) *ProjectsLocationsGithubEnterpriseConfigsCreateCall {
  8767  	c := &ProjectsLocationsGithubEnterpriseConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8768  	c.parent = parent
  8769  	c.githubenterpriseconfig = githubenterpriseconfig
  8770  	return c
  8771  }
  8772  
  8773  // GheConfigId sets the optional parameter "gheConfigId": The ID to use for the
  8774  // GithubEnterpriseConfig, which will become the final component of the
  8775  // GithubEnterpriseConfig's resource name. ghe_config_id must meet the
  8776  // following requirements: + They must contain only alphanumeric characters and
  8777  // dashes. + They can be 1-64 characters long. + They must begin and end with
  8778  // an alphanumeric character
  8779  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) GheConfigId(gheConfigId string) *ProjectsLocationsGithubEnterpriseConfigsCreateCall {
  8780  	c.urlParams_.Set("gheConfigId", gheConfigId)
  8781  	return c
  8782  }
  8783  
  8784  // ProjectId sets the optional parameter "projectId": ID of the project.
  8785  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) ProjectId(projectId string) *ProjectsLocationsGithubEnterpriseConfigsCreateCall {
  8786  	c.urlParams_.Set("projectId", projectId)
  8787  	return c
  8788  }
  8789  
  8790  // Fields allows partial responses to be retrieved. See
  8791  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8792  // details.
  8793  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGithubEnterpriseConfigsCreateCall {
  8794  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8795  	return c
  8796  }
  8797  
  8798  // Context sets the context to be used in this call's Do method.
  8799  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsGithubEnterpriseConfigsCreateCall {
  8800  	c.ctx_ = ctx
  8801  	return c
  8802  }
  8803  
  8804  // Header returns a http.Header that can be modified by the caller to add
  8805  // headers to the request.
  8806  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) Header() http.Header {
  8807  	if c.header_ == nil {
  8808  		c.header_ = make(http.Header)
  8809  	}
  8810  	return c.header_
  8811  }
  8812  
  8813  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
  8814  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8815  	var body io.Reader = nil
  8816  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.githubenterpriseconfig)
  8817  	if err != nil {
  8818  		return nil, err
  8819  	}
  8820  	c.urlParams_.Set("alt", alt)
  8821  	c.urlParams_.Set("prettyPrint", "false")
  8822  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/githubEnterpriseConfigs")
  8823  	urls += "?" + c.urlParams_.Encode()
  8824  	req, err := http.NewRequest("POST", urls, body)
  8825  	if err != nil {
  8826  		return nil, err
  8827  	}
  8828  	req.Header = reqHeaders
  8829  	googleapi.Expand(req.URL, map[string]string{
  8830  		"parent": c.parent,
  8831  	})
  8832  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8833  }
  8834  
  8835  // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.create" call.
  8836  // Any non-2xx status code is an error. Response headers are in either
  8837  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8838  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8839  // whether the returned error was because http.StatusNotModified was returned.
  8840  func (c *ProjectsLocationsGithubEnterpriseConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8841  	gensupport.SetOptions(c.urlParams_, opts...)
  8842  	res, err := c.doRequest("json")
  8843  	if res != nil && res.StatusCode == http.StatusNotModified {
  8844  		if res.Body != nil {
  8845  			res.Body.Close()
  8846  		}
  8847  		return nil, gensupport.WrapError(&googleapi.Error{
  8848  			Code:   res.StatusCode,
  8849  			Header: res.Header,
  8850  		})
  8851  	}
  8852  	if err != nil {
  8853  		return nil, err
  8854  	}
  8855  	defer googleapi.CloseBody(res)
  8856  	if err := googleapi.CheckResponse(res); err != nil {
  8857  		return nil, gensupport.WrapError(err)
  8858  	}
  8859  	ret := &Operation{
  8860  		ServerResponse: googleapi.ServerResponse{
  8861  			Header:         res.Header,
  8862  			HTTPStatusCode: res.StatusCode,
  8863  		},
  8864  	}
  8865  	target := &ret
  8866  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8867  		return nil, err
  8868  	}
  8869  	return ret, nil
  8870  }
  8871  
  8872  type ProjectsLocationsGithubEnterpriseConfigsDeleteCall struct {
  8873  	s          *Service
  8874  	name       string
  8875  	urlParams_ gensupport.URLParams
  8876  	ctx_       context.Context
  8877  	header_    http.Header
  8878  }
  8879  
  8880  // Delete: Delete an association between a GCP project and a GitHub Enterprise
  8881  // server.
  8882  //
  8883  //   - name: This field should contain the name of the enterprise config
  8884  //     resource. For example:
  8885  //     "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$
  8886  //     config_id}".
  8887  func (r *ProjectsLocationsGithubEnterpriseConfigsService) Delete(name string) *ProjectsLocationsGithubEnterpriseConfigsDeleteCall {
  8888  	c := &ProjectsLocationsGithubEnterpriseConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8889  	c.name = name
  8890  	return c
  8891  }
  8892  
  8893  // ConfigId sets the optional parameter "configId": Unique identifier of the
  8894  // `GitHubEnterpriseConfig`
  8895  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) ConfigId(configId string) *ProjectsLocationsGithubEnterpriseConfigsDeleteCall {
  8896  	c.urlParams_.Set("configId", configId)
  8897  	return c
  8898  }
  8899  
  8900  // ProjectId sets the optional parameter "projectId": ID of the project
  8901  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) ProjectId(projectId string) *ProjectsLocationsGithubEnterpriseConfigsDeleteCall {
  8902  	c.urlParams_.Set("projectId", projectId)
  8903  	return c
  8904  }
  8905  
  8906  // Fields allows partial responses to be retrieved. See
  8907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8908  // details.
  8909  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGithubEnterpriseConfigsDeleteCall {
  8910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8911  	return c
  8912  }
  8913  
  8914  // Context sets the context to be used in this call's Do method.
  8915  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGithubEnterpriseConfigsDeleteCall {
  8916  	c.ctx_ = ctx
  8917  	return c
  8918  }
  8919  
  8920  // Header returns a http.Header that can be modified by the caller to add
  8921  // headers to the request.
  8922  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) Header() http.Header {
  8923  	if c.header_ == nil {
  8924  		c.header_ = make(http.Header)
  8925  	}
  8926  	return c.header_
  8927  }
  8928  
  8929  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8930  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8931  	var body io.Reader = nil
  8932  	c.urlParams_.Set("alt", alt)
  8933  	c.urlParams_.Set("prettyPrint", "false")
  8934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8935  	urls += "?" + c.urlParams_.Encode()
  8936  	req, err := http.NewRequest("DELETE", urls, body)
  8937  	if err != nil {
  8938  		return nil, err
  8939  	}
  8940  	req.Header = reqHeaders
  8941  	googleapi.Expand(req.URL, map[string]string{
  8942  		"name": c.name,
  8943  	})
  8944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8945  }
  8946  
  8947  // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.delete" call.
  8948  // Any non-2xx status code is an error. Response headers are in either
  8949  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8950  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8951  // whether the returned error was because http.StatusNotModified was returned.
  8952  func (c *ProjectsLocationsGithubEnterpriseConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8953  	gensupport.SetOptions(c.urlParams_, opts...)
  8954  	res, err := c.doRequest("json")
  8955  	if res != nil && res.StatusCode == http.StatusNotModified {
  8956  		if res.Body != nil {
  8957  			res.Body.Close()
  8958  		}
  8959  		return nil, gensupport.WrapError(&googleapi.Error{
  8960  			Code:   res.StatusCode,
  8961  			Header: res.Header,
  8962  		})
  8963  	}
  8964  	if err != nil {
  8965  		return nil, err
  8966  	}
  8967  	defer googleapi.CloseBody(res)
  8968  	if err := googleapi.CheckResponse(res); err != nil {
  8969  		return nil, gensupport.WrapError(err)
  8970  	}
  8971  	ret := &Operation{
  8972  		ServerResponse: googleapi.ServerResponse{
  8973  			Header:         res.Header,
  8974  			HTTPStatusCode: res.StatusCode,
  8975  		},
  8976  	}
  8977  	target := &ret
  8978  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8979  		return nil, err
  8980  	}
  8981  	return ret, nil
  8982  }
  8983  
  8984  type ProjectsLocationsGithubEnterpriseConfigsGetCall struct {
  8985  	s            *Service
  8986  	name         string
  8987  	urlParams_   gensupport.URLParams
  8988  	ifNoneMatch_ string
  8989  	ctx_         context.Context
  8990  	header_      http.Header
  8991  }
  8992  
  8993  // Get: Retrieve a GitHubEnterpriseConfig.
  8994  //
  8995  //   - name: This field should contain the name of the enterprise config
  8996  //     resource. For example:
  8997  //     "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$
  8998  //     config_id}".
  8999  func (r *ProjectsLocationsGithubEnterpriseConfigsService) Get(name string) *ProjectsLocationsGithubEnterpriseConfigsGetCall {
  9000  	c := &ProjectsLocationsGithubEnterpriseConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9001  	c.name = name
  9002  	return c
  9003  }
  9004  
  9005  // ConfigId sets the optional parameter "configId": Unique identifier of the
  9006  // `GitHubEnterpriseConfig`
  9007  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) ConfigId(configId string) *ProjectsLocationsGithubEnterpriseConfigsGetCall {
  9008  	c.urlParams_.Set("configId", configId)
  9009  	return c
  9010  }
  9011  
  9012  // ProjectId sets the optional parameter "projectId": ID of the project
  9013  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) ProjectId(projectId string) *ProjectsLocationsGithubEnterpriseConfigsGetCall {
  9014  	c.urlParams_.Set("projectId", projectId)
  9015  	return c
  9016  }
  9017  
  9018  // Fields allows partial responses to be retrieved. See
  9019  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9020  // details.
  9021  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGithubEnterpriseConfigsGetCall {
  9022  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9023  	return c
  9024  }
  9025  
  9026  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9027  // object's ETag matches the given value. This is useful for getting updates
  9028  // only after the object has changed since the last request.
  9029  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGithubEnterpriseConfigsGetCall {
  9030  	c.ifNoneMatch_ = entityTag
  9031  	return c
  9032  }
  9033  
  9034  // Context sets the context to be used in this call's Do method.
  9035  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsGithubEnterpriseConfigsGetCall {
  9036  	c.ctx_ = ctx
  9037  	return c
  9038  }
  9039  
  9040  // Header returns a http.Header that can be modified by the caller to add
  9041  // headers to the request.
  9042  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) Header() http.Header {
  9043  	if c.header_ == nil {
  9044  		c.header_ = make(http.Header)
  9045  	}
  9046  	return c.header_
  9047  }
  9048  
  9049  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) doRequest(alt string) (*http.Response, error) {
  9050  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9051  	if c.ifNoneMatch_ != "" {
  9052  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9053  	}
  9054  	var body io.Reader = nil
  9055  	c.urlParams_.Set("alt", alt)
  9056  	c.urlParams_.Set("prettyPrint", "false")
  9057  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9058  	urls += "?" + c.urlParams_.Encode()
  9059  	req, err := http.NewRequest("GET", urls, body)
  9060  	if err != nil {
  9061  		return nil, err
  9062  	}
  9063  	req.Header = reqHeaders
  9064  	googleapi.Expand(req.URL, map[string]string{
  9065  		"name": c.name,
  9066  	})
  9067  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9068  }
  9069  
  9070  // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.get" call.
  9071  // Any non-2xx status code is an error. Response headers are in either
  9072  // *GitHubEnterpriseConfig.ServerResponse.Header or (if a response was returned
  9073  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9074  // check whether the returned error was because http.StatusNotModified was
  9075  // returned.
  9076  func (c *ProjectsLocationsGithubEnterpriseConfigsGetCall) Do(opts ...googleapi.CallOption) (*GitHubEnterpriseConfig, error) {
  9077  	gensupport.SetOptions(c.urlParams_, opts...)
  9078  	res, err := c.doRequest("json")
  9079  	if res != nil && res.StatusCode == http.StatusNotModified {
  9080  		if res.Body != nil {
  9081  			res.Body.Close()
  9082  		}
  9083  		return nil, gensupport.WrapError(&googleapi.Error{
  9084  			Code:   res.StatusCode,
  9085  			Header: res.Header,
  9086  		})
  9087  	}
  9088  	if err != nil {
  9089  		return nil, err
  9090  	}
  9091  	defer googleapi.CloseBody(res)
  9092  	if err := googleapi.CheckResponse(res); err != nil {
  9093  		return nil, gensupport.WrapError(err)
  9094  	}
  9095  	ret := &GitHubEnterpriseConfig{
  9096  		ServerResponse: googleapi.ServerResponse{
  9097  			Header:         res.Header,
  9098  			HTTPStatusCode: res.StatusCode,
  9099  		},
  9100  	}
  9101  	target := &ret
  9102  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9103  		return nil, err
  9104  	}
  9105  	return ret, nil
  9106  }
  9107  
  9108  type ProjectsLocationsGithubEnterpriseConfigsListCall struct {
  9109  	s            *Service
  9110  	parent       string
  9111  	urlParams_   gensupport.URLParams
  9112  	ifNoneMatch_ string
  9113  	ctx_         context.Context
  9114  	header_      http.Header
  9115  }
  9116  
  9117  // List: List all GitHubEnterpriseConfigs for a given project.
  9118  //
  9119  //   - parent: Name of the parent project. For example:
  9120  //     projects/{$project_number} or projects/{$project_id}.
  9121  func (r *ProjectsLocationsGithubEnterpriseConfigsService) List(parent string) *ProjectsLocationsGithubEnterpriseConfigsListCall {
  9122  	c := &ProjectsLocationsGithubEnterpriseConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9123  	c.parent = parent
  9124  	return c
  9125  }
  9126  
  9127  // ProjectId sets the optional parameter "projectId": ID of the project
  9128  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) ProjectId(projectId string) *ProjectsLocationsGithubEnterpriseConfigsListCall {
  9129  	c.urlParams_.Set("projectId", projectId)
  9130  	return c
  9131  }
  9132  
  9133  // Fields allows partial responses to be retrieved. See
  9134  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9135  // details.
  9136  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGithubEnterpriseConfigsListCall {
  9137  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9138  	return c
  9139  }
  9140  
  9141  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9142  // object's ETag matches the given value. This is useful for getting updates
  9143  // only after the object has changed since the last request.
  9144  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGithubEnterpriseConfigsListCall {
  9145  	c.ifNoneMatch_ = entityTag
  9146  	return c
  9147  }
  9148  
  9149  // Context sets the context to be used in this call's Do method.
  9150  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) Context(ctx context.Context) *ProjectsLocationsGithubEnterpriseConfigsListCall {
  9151  	c.ctx_ = ctx
  9152  	return c
  9153  }
  9154  
  9155  // Header returns a http.Header that can be modified by the caller to add
  9156  // headers to the request.
  9157  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) Header() http.Header {
  9158  	if c.header_ == nil {
  9159  		c.header_ = make(http.Header)
  9160  	}
  9161  	return c.header_
  9162  }
  9163  
  9164  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) doRequest(alt string) (*http.Response, error) {
  9165  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9166  	if c.ifNoneMatch_ != "" {
  9167  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9168  	}
  9169  	var body io.Reader = nil
  9170  	c.urlParams_.Set("alt", alt)
  9171  	c.urlParams_.Set("prettyPrint", "false")
  9172  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/githubEnterpriseConfigs")
  9173  	urls += "?" + c.urlParams_.Encode()
  9174  	req, err := http.NewRequest("GET", urls, body)
  9175  	if err != nil {
  9176  		return nil, err
  9177  	}
  9178  	req.Header = reqHeaders
  9179  	googleapi.Expand(req.URL, map[string]string{
  9180  		"parent": c.parent,
  9181  	})
  9182  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9183  }
  9184  
  9185  // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.list" call.
  9186  // Any non-2xx status code is an error. Response headers are in either
  9187  // *ListGithubEnterpriseConfigsResponse.ServerResponse.Header or (if a response
  9188  // was returned at all) in error.(*googleapi.Error).Header. Use
  9189  // googleapi.IsNotModified to check whether the returned error was because
  9190  // http.StatusNotModified was returned.
  9191  func (c *ProjectsLocationsGithubEnterpriseConfigsListCall) Do(opts ...googleapi.CallOption) (*ListGithubEnterpriseConfigsResponse, error) {
  9192  	gensupport.SetOptions(c.urlParams_, opts...)
  9193  	res, err := c.doRequest("json")
  9194  	if res != nil && res.StatusCode == http.StatusNotModified {
  9195  		if res.Body != nil {
  9196  			res.Body.Close()
  9197  		}
  9198  		return nil, gensupport.WrapError(&googleapi.Error{
  9199  			Code:   res.StatusCode,
  9200  			Header: res.Header,
  9201  		})
  9202  	}
  9203  	if err != nil {
  9204  		return nil, err
  9205  	}
  9206  	defer googleapi.CloseBody(res)
  9207  	if err := googleapi.CheckResponse(res); err != nil {
  9208  		return nil, gensupport.WrapError(err)
  9209  	}
  9210  	ret := &ListGithubEnterpriseConfigsResponse{
  9211  		ServerResponse: googleapi.ServerResponse{
  9212  			Header:         res.Header,
  9213  			HTTPStatusCode: res.StatusCode,
  9214  		},
  9215  	}
  9216  	target := &ret
  9217  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9218  		return nil, err
  9219  	}
  9220  	return ret, nil
  9221  }
  9222  
  9223  type ProjectsLocationsGithubEnterpriseConfigsPatchCall struct {
  9224  	s                      *Service
  9225  	name                   string
  9226  	githubenterpriseconfig *GitHubEnterpriseConfig
  9227  	urlParams_             gensupport.URLParams
  9228  	ctx_                   context.Context
  9229  	header_                http.Header
  9230  }
  9231  
  9232  // Patch: Update an association between a GCP project and a GitHub Enterprise
  9233  // server.
  9234  //
  9235  //   - name: Optional. The full resource name for the GitHubEnterpriseConfig For
  9236  //     example:
  9237  //     "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$
  9238  //     config_id}".
  9239  func (r *ProjectsLocationsGithubEnterpriseConfigsService) Patch(name string, githubenterpriseconfig *GitHubEnterpriseConfig) *ProjectsLocationsGithubEnterpriseConfigsPatchCall {
  9240  	c := &ProjectsLocationsGithubEnterpriseConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9241  	c.name = name
  9242  	c.githubenterpriseconfig = githubenterpriseconfig
  9243  	return c
  9244  }
  9245  
  9246  // UpdateMask sets the optional parameter "updateMask": Update mask for the
  9247  // resource. If this is set, the server will only update the fields specified
  9248  // in the field mask. Otherwise, a full update of the mutable resource fields
  9249  // will be performed.
  9250  func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGithubEnterpriseConfigsPatchCall {
  9251  	c.urlParams_.Set("updateMask", updateMask)
  9252  	return c
  9253  }
  9254  
  9255  // Fields allows partial responses to be retrieved. See
  9256  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9257  // details.
  9258  func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGithubEnterpriseConfigsPatchCall {
  9259  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9260  	return c
  9261  }
  9262  
  9263  // Context sets the context to be used in this call's Do method.
  9264  func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsGithubEnterpriseConfigsPatchCall {
  9265  	c.ctx_ = ctx
  9266  	return c
  9267  }
  9268  
  9269  // Header returns a http.Header that can be modified by the caller to add
  9270  // headers to the request.
  9271  func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) Header() http.Header {
  9272  	if c.header_ == nil {
  9273  		c.header_ = make(http.Header)
  9274  	}
  9275  	return c.header_
  9276  }
  9277  
  9278  func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
  9279  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9280  	var body io.Reader = nil
  9281  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.githubenterpriseconfig)
  9282  	if err != nil {
  9283  		return nil, err
  9284  	}
  9285  	c.urlParams_.Set("alt", alt)
  9286  	c.urlParams_.Set("prettyPrint", "false")
  9287  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9288  	urls += "?" + c.urlParams_.Encode()
  9289  	req, err := http.NewRequest("PATCH", urls, body)
  9290  	if err != nil {
  9291  		return nil, err
  9292  	}
  9293  	req.Header = reqHeaders
  9294  	googleapi.Expand(req.URL, map[string]string{
  9295  		"name": c.name,
  9296  	})
  9297  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9298  }
  9299  
  9300  // Do executes the "cloudbuild.projects.locations.githubEnterpriseConfigs.patch" call.
  9301  // Any non-2xx status code is an error. Response headers are in either
  9302  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9303  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9304  // whether the returned error was because http.StatusNotModified was returned.
  9305  func (c *ProjectsLocationsGithubEnterpriseConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9306  	gensupport.SetOptions(c.urlParams_, opts...)
  9307  	res, err := c.doRequest("json")
  9308  	if res != nil && res.StatusCode == http.StatusNotModified {
  9309  		if res.Body != nil {
  9310  			res.Body.Close()
  9311  		}
  9312  		return nil, gensupport.WrapError(&googleapi.Error{
  9313  			Code:   res.StatusCode,
  9314  			Header: res.Header,
  9315  		})
  9316  	}
  9317  	if err != nil {
  9318  		return nil, err
  9319  	}
  9320  	defer googleapi.CloseBody(res)
  9321  	if err := googleapi.CheckResponse(res); err != nil {
  9322  		return nil, gensupport.WrapError(err)
  9323  	}
  9324  	ret := &Operation{
  9325  		ServerResponse: googleapi.ServerResponse{
  9326  			Header:         res.Header,
  9327  			HTTPStatusCode: res.StatusCode,
  9328  		},
  9329  	}
  9330  	target := &ret
  9331  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9332  		return nil, err
  9333  	}
  9334  	return ret, nil
  9335  }
  9336  
  9337  type ProjectsLocationsOperationsCancelCall struct {
  9338  	s                      *Service
  9339  	name                   string
  9340  	canceloperationrequest *CancelOperationRequest
  9341  	urlParams_             gensupport.URLParams
  9342  	ctx_                   context.Context
  9343  	header_                http.Header
  9344  }
  9345  
  9346  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  9347  // server makes a best effort to cancel the operation, but success is not
  9348  // guaranteed. If the server doesn't support this method, it returns
  9349  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  9350  // other methods to check whether the cancellation succeeded or whether the
  9351  // operation completed despite cancellation. On successful cancellation, the
  9352  // operation is not deleted; instead, it becomes an operation with an
  9353  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  9354  // `Code.CANCELLED`.
  9355  //
  9356  // - name: The name of the operation resource to be cancelled.
  9357  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
  9358  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9359  	c.name = name
  9360  	c.canceloperationrequest = canceloperationrequest
  9361  	return c
  9362  }
  9363  
  9364  // Fields allows partial responses to be retrieved. See
  9365  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9366  // details.
  9367  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
  9368  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9369  	return c
  9370  }
  9371  
  9372  // Context sets the context to be used in this call's Do method.
  9373  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
  9374  	c.ctx_ = ctx
  9375  	return c
  9376  }
  9377  
  9378  // Header returns a http.Header that can be modified by the caller to add
  9379  // headers to the request.
  9380  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
  9381  	if c.header_ == nil {
  9382  		c.header_ = make(http.Header)
  9383  	}
  9384  	return c.header_
  9385  }
  9386  
  9387  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  9388  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9389  	var body io.Reader = nil
  9390  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  9391  	if err != nil {
  9392  		return nil, err
  9393  	}
  9394  	c.urlParams_.Set("alt", alt)
  9395  	c.urlParams_.Set("prettyPrint", "false")
  9396  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  9397  	urls += "?" + c.urlParams_.Encode()
  9398  	req, err := http.NewRequest("POST", urls, body)
  9399  	if err != nil {
  9400  		return nil, err
  9401  	}
  9402  	req.Header = reqHeaders
  9403  	googleapi.Expand(req.URL, map[string]string{
  9404  		"name": c.name,
  9405  	})
  9406  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9407  }
  9408  
  9409  // Do executes the "cloudbuild.projects.locations.operations.cancel" call.
  9410  // Any non-2xx status code is an error. Response headers are in either
  9411  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9412  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9413  // whether the returned error was because http.StatusNotModified was returned.
  9414  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9415  	gensupport.SetOptions(c.urlParams_, opts...)
  9416  	res, err := c.doRequest("json")
  9417  	if res != nil && res.StatusCode == http.StatusNotModified {
  9418  		if res.Body != nil {
  9419  			res.Body.Close()
  9420  		}
  9421  		return nil, gensupport.WrapError(&googleapi.Error{
  9422  			Code:   res.StatusCode,
  9423  			Header: res.Header,
  9424  		})
  9425  	}
  9426  	if err != nil {
  9427  		return nil, err
  9428  	}
  9429  	defer googleapi.CloseBody(res)
  9430  	if err := googleapi.CheckResponse(res); err != nil {
  9431  		return nil, gensupport.WrapError(err)
  9432  	}
  9433  	ret := &Empty{
  9434  		ServerResponse: googleapi.ServerResponse{
  9435  			Header:         res.Header,
  9436  			HTTPStatusCode: res.StatusCode,
  9437  		},
  9438  	}
  9439  	target := &ret
  9440  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9441  		return nil, err
  9442  	}
  9443  	return ret, nil
  9444  }
  9445  
  9446  type ProjectsLocationsOperationsGetCall struct {
  9447  	s            *Service
  9448  	name         string
  9449  	urlParams_   gensupport.URLParams
  9450  	ifNoneMatch_ string
  9451  	ctx_         context.Context
  9452  	header_      http.Header
  9453  }
  9454  
  9455  // Get: Gets the latest state of a long-running operation. Clients can use this
  9456  // method to poll the operation result at intervals as recommended by the API
  9457  // service.
  9458  //
  9459  // - name: The name of the operation resource.
  9460  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
  9461  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9462  	c.name = name
  9463  	return c
  9464  }
  9465  
  9466  // Fields allows partial responses to be retrieved. See
  9467  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9468  // details.
  9469  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  9470  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9471  	return c
  9472  }
  9473  
  9474  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9475  // object's ETag matches the given value. This is useful for getting updates
  9476  // only after the object has changed since the last request.
  9477  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  9478  	c.ifNoneMatch_ = entityTag
  9479  	return c
  9480  }
  9481  
  9482  // Context sets the context to be used in this call's Do method.
  9483  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  9484  	c.ctx_ = ctx
  9485  	return c
  9486  }
  9487  
  9488  // Header returns a http.Header that can be modified by the caller to add
  9489  // headers to the request.
  9490  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  9491  	if c.header_ == nil {
  9492  		c.header_ = make(http.Header)
  9493  	}
  9494  	return c.header_
  9495  }
  9496  
  9497  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  9498  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9499  	if c.ifNoneMatch_ != "" {
  9500  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9501  	}
  9502  	var body io.Reader = nil
  9503  	c.urlParams_.Set("alt", alt)
  9504  	c.urlParams_.Set("prettyPrint", "false")
  9505  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9506  	urls += "?" + c.urlParams_.Encode()
  9507  	req, err := http.NewRequest("GET", urls, body)
  9508  	if err != nil {
  9509  		return nil, err
  9510  	}
  9511  	req.Header = reqHeaders
  9512  	googleapi.Expand(req.URL, map[string]string{
  9513  		"name": c.name,
  9514  	})
  9515  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9516  }
  9517  
  9518  // Do executes the "cloudbuild.projects.locations.operations.get" call.
  9519  // Any non-2xx status code is an error. Response headers are in either
  9520  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9521  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9522  // whether the returned error was because http.StatusNotModified was returned.
  9523  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9524  	gensupport.SetOptions(c.urlParams_, opts...)
  9525  	res, err := c.doRequest("json")
  9526  	if res != nil && res.StatusCode == http.StatusNotModified {
  9527  		if res.Body != nil {
  9528  			res.Body.Close()
  9529  		}
  9530  		return nil, gensupport.WrapError(&googleapi.Error{
  9531  			Code:   res.StatusCode,
  9532  			Header: res.Header,
  9533  		})
  9534  	}
  9535  	if err != nil {
  9536  		return nil, err
  9537  	}
  9538  	defer googleapi.CloseBody(res)
  9539  	if err := googleapi.CheckResponse(res); err != nil {
  9540  		return nil, gensupport.WrapError(err)
  9541  	}
  9542  	ret := &Operation{
  9543  		ServerResponse: googleapi.ServerResponse{
  9544  			Header:         res.Header,
  9545  			HTTPStatusCode: res.StatusCode,
  9546  		},
  9547  	}
  9548  	target := &ret
  9549  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9550  		return nil, err
  9551  	}
  9552  	return ret, nil
  9553  }
  9554  
  9555  type ProjectsLocationsTriggersCreateCall struct {
  9556  	s            *Service
  9557  	parent       string
  9558  	buildtrigger *BuildTrigger
  9559  	urlParams_   gensupport.URLParams
  9560  	ctx_         context.Context
  9561  	header_      http.Header
  9562  }
  9563  
  9564  // Create: Creates a new `BuildTrigger`.
  9565  //
  9566  //   - parent: The parent resource where this trigger will be created. Format:
  9567  //     `projects/{project}/locations/{location}`.
  9568  func (r *ProjectsLocationsTriggersService) Create(parent string, buildtrigger *BuildTrigger) *ProjectsLocationsTriggersCreateCall {
  9569  	c := &ProjectsLocationsTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9570  	c.parent = parent
  9571  	c.buildtrigger = buildtrigger
  9572  	return c
  9573  }
  9574  
  9575  // ProjectId sets the optional parameter "projectId": Required. ID of the
  9576  // project for which to configure automatic builds.
  9577  func (c *ProjectsLocationsTriggersCreateCall) ProjectId(projectId string) *ProjectsLocationsTriggersCreateCall {
  9578  	c.urlParams_.Set("projectId", projectId)
  9579  	return c
  9580  }
  9581  
  9582  // Fields allows partial responses to be retrieved. See
  9583  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9584  // details.
  9585  func (c *ProjectsLocationsTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersCreateCall {
  9586  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9587  	return c
  9588  }
  9589  
  9590  // Context sets the context to be used in this call's Do method.
  9591  func (c *ProjectsLocationsTriggersCreateCall) Context(ctx context.Context) *ProjectsLocationsTriggersCreateCall {
  9592  	c.ctx_ = ctx
  9593  	return c
  9594  }
  9595  
  9596  // Header returns a http.Header that can be modified by the caller to add
  9597  // headers to the request.
  9598  func (c *ProjectsLocationsTriggersCreateCall) Header() http.Header {
  9599  	if c.header_ == nil {
  9600  		c.header_ = make(http.Header)
  9601  	}
  9602  	return c.header_
  9603  }
  9604  
  9605  func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
  9606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9607  	var body io.Reader = nil
  9608  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildtrigger)
  9609  	if err != nil {
  9610  		return nil, err
  9611  	}
  9612  	c.urlParams_.Set("alt", alt)
  9613  	c.urlParams_.Set("prettyPrint", "false")
  9614  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/triggers")
  9615  	urls += "?" + c.urlParams_.Encode()
  9616  	req, err := http.NewRequest("POST", urls, body)
  9617  	if err != nil {
  9618  		return nil, err
  9619  	}
  9620  	req.Header = reqHeaders
  9621  	googleapi.Expand(req.URL, map[string]string{
  9622  		"parent": c.parent,
  9623  	})
  9624  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9625  }
  9626  
  9627  // Do executes the "cloudbuild.projects.locations.triggers.create" call.
  9628  // Any non-2xx status code is an error. Response headers are in either
  9629  // *BuildTrigger.ServerResponse.Header or (if a response was returned at all)
  9630  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9631  // whether the returned error was because http.StatusNotModified was returned.
  9632  func (c *ProjectsLocationsTriggersCreateCall) Do(opts ...googleapi.CallOption) (*BuildTrigger, error) {
  9633  	gensupport.SetOptions(c.urlParams_, opts...)
  9634  	res, err := c.doRequest("json")
  9635  	if res != nil && res.StatusCode == http.StatusNotModified {
  9636  		if res.Body != nil {
  9637  			res.Body.Close()
  9638  		}
  9639  		return nil, gensupport.WrapError(&googleapi.Error{
  9640  			Code:   res.StatusCode,
  9641  			Header: res.Header,
  9642  		})
  9643  	}
  9644  	if err != nil {
  9645  		return nil, err
  9646  	}
  9647  	defer googleapi.CloseBody(res)
  9648  	if err := googleapi.CheckResponse(res); err != nil {
  9649  		return nil, gensupport.WrapError(err)
  9650  	}
  9651  	ret := &BuildTrigger{
  9652  		ServerResponse: googleapi.ServerResponse{
  9653  			Header:         res.Header,
  9654  			HTTPStatusCode: res.StatusCode,
  9655  		},
  9656  	}
  9657  	target := &ret
  9658  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9659  		return nil, err
  9660  	}
  9661  	return ret, nil
  9662  }
  9663  
  9664  type ProjectsLocationsTriggersDeleteCall struct {
  9665  	s          *Service
  9666  	name       string
  9667  	urlParams_ gensupport.URLParams
  9668  	ctx_       context.Context
  9669  	header_    http.Header
  9670  }
  9671  
  9672  // Delete: Deletes a `BuildTrigger` by its project ID and trigger ID.
  9673  //
  9674  //   - name: The name of the `Trigger` to delete. Format:
  9675  //     `projects/{project}/locations/{location}/triggers/{trigger}`.
  9676  func (r *ProjectsLocationsTriggersService) Delete(name string) *ProjectsLocationsTriggersDeleteCall {
  9677  	c := &ProjectsLocationsTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9678  	c.name = name
  9679  	return c
  9680  }
  9681  
  9682  // ProjectId sets the optional parameter "projectId": Required. ID of the
  9683  // project that owns the trigger.
  9684  func (c *ProjectsLocationsTriggersDeleteCall) ProjectId(projectId string) *ProjectsLocationsTriggersDeleteCall {
  9685  	c.urlParams_.Set("projectId", projectId)
  9686  	return c
  9687  }
  9688  
  9689  // TriggerId sets the optional parameter "triggerId": Required. ID of the
  9690  // `BuildTrigger` to delete.
  9691  func (c *ProjectsLocationsTriggersDeleteCall) TriggerId(triggerId string) *ProjectsLocationsTriggersDeleteCall {
  9692  	c.urlParams_.Set("triggerId", triggerId)
  9693  	return c
  9694  }
  9695  
  9696  // Fields allows partial responses to be retrieved. See
  9697  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9698  // details.
  9699  func (c *ProjectsLocationsTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersDeleteCall {
  9700  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9701  	return c
  9702  }
  9703  
  9704  // Context sets the context to be used in this call's Do method.
  9705  func (c *ProjectsLocationsTriggersDeleteCall) Context(ctx context.Context) *ProjectsLocationsTriggersDeleteCall {
  9706  	c.ctx_ = ctx
  9707  	return c
  9708  }
  9709  
  9710  // Header returns a http.Header that can be modified by the caller to add
  9711  // headers to the request.
  9712  func (c *ProjectsLocationsTriggersDeleteCall) Header() http.Header {
  9713  	if c.header_ == nil {
  9714  		c.header_ = make(http.Header)
  9715  	}
  9716  	return c.header_
  9717  }
  9718  
  9719  func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
  9720  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9721  	var body io.Reader = nil
  9722  	c.urlParams_.Set("alt", alt)
  9723  	c.urlParams_.Set("prettyPrint", "false")
  9724  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9725  	urls += "?" + c.urlParams_.Encode()
  9726  	req, err := http.NewRequest("DELETE", urls, body)
  9727  	if err != nil {
  9728  		return nil, err
  9729  	}
  9730  	req.Header = reqHeaders
  9731  	googleapi.Expand(req.URL, map[string]string{
  9732  		"name": c.name,
  9733  	})
  9734  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9735  }
  9736  
  9737  // Do executes the "cloudbuild.projects.locations.triggers.delete" call.
  9738  // Any non-2xx status code is an error. Response headers are in either
  9739  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9740  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9741  // whether the returned error was because http.StatusNotModified was returned.
  9742  func (c *ProjectsLocationsTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9743  	gensupport.SetOptions(c.urlParams_, opts...)
  9744  	res, err := c.doRequest("json")
  9745  	if res != nil && res.StatusCode == http.StatusNotModified {
  9746  		if res.Body != nil {
  9747  			res.Body.Close()
  9748  		}
  9749  		return nil, gensupport.WrapError(&googleapi.Error{
  9750  			Code:   res.StatusCode,
  9751  			Header: res.Header,
  9752  		})
  9753  	}
  9754  	if err != nil {
  9755  		return nil, err
  9756  	}
  9757  	defer googleapi.CloseBody(res)
  9758  	if err := googleapi.CheckResponse(res); err != nil {
  9759  		return nil, gensupport.WrapError(err)
  9760  	}
  9761  	ret := &Empty{
  9762  		ServerResponse: googleapi.ServerResponse{
  9763  			Header:         res.Header,
  9764  			HTTPStatusCode: res.StatusCode,
  9765  		},
  9766  	}
  9767  	target := &ret
  9768  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9769  		return nil, err
  9770  	}
  9771  	return ret, nil
  9772  }
  9773  
  9774  type ProjectsLocationsTriggersGetCall struct {
  9775  	s            *Service
  9776  	name         string
  9777  	urlParams_   gensupport.URLParams
  9778  	ifNoneMatch_ string
  9779  	ctx_         context.Context
  9780  	header_      http.Header
  9781  }
  9782  
  9783  // Get: Returns information about a `BuildTrigger`.
  9784  //
  9785  //   - name: The name of the `Trigger` to retrieve. Format:
  9786  //     `projects/{project}/locations/{location}/triggers/{trigger}`.
  9787  func (r *ProjectsLocationsTriggersService) Get(name string) *ProjectsLocationsTriggersGetCall {
  9788  	c := &ProjectsLocationsTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9789  	c.name = name
  9790  	return c
  9791  }
  9792  
  9793  // ProjectId sets the optional parameter "projectId": Required. ID of the
  9794  // project that owns the trigger.
  9795  func (c *ProjectsLocationsTriggersGetCall) ProjectId(projectId string) *ProjectsLocationsTriggersGetCall {
  9796  	c.urlParams_.Set("projectId", projectId)
  9797  	return c
  9798  }
  9799  
  9800  // TriggerId sets the optional parameter "triggerId": Required. Identifier
  9801  // (`id` or `name`) of the `BuildTrigger` to get.
  9802  func (c *ProjectsLocationsTriggersGetCall) TriggerId(triggerId string) *ProjectsLocationsTriggersGetCall {
  9803  	c.urlParams_.Set("triggerId", triggerId)
  9804  	return c
  9805  }
  9806  
  9807  // Fields allows partial responses to be retrieved. See
  9808  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9809  // details.
  9810  func (c *ProjectsLocationsTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersGetCall {
  9811  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9812  	return c
  9813  }
  9814  
  9815  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9816  // object's ETag matches the given value. This is useful for getting updates
  9817  // only after the object has changed since the last request.
  9818  func (c *ProjectsLocationsTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersGetCall {
  9819  	c.ifNoneMatch_ = entityTag
  9820  	return c
  9821  }
  9822  
  9823  // Context sets the context to be used in this call's Do method.
  9824  func (c *ProjectsLocationsTriggersGetCall) Context(ctx context.Context) *ProjectsLocationsTriggersGetCall {
  9825  	c.ctx_ = ctx
  9826  	return c
  9827  }
  9828  
  9829  // Header returns a http.Header that can be modified by the caller to add
  9830  // headers to the request.
  9831  func (c *ProjectsLocationsTriggersGetCall) Header() http.Header {
  9832  	if c.header_ == nil {
  9833  		c.header_ = make(http.Header)
  9834  	}
  9835  	return c.header_
  9836  }
  9837  
  9838  func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response, error) {
  9839  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9840  	if c.ifNoneMatch_ != "" {
  9841  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9842  	}
  9843  	var body io.Reader = nil
  9844  	c.urlParams_.Set("alt", alt)
  9845  	c.urlParams_.Set("prettyPrint", "false")
  9846  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9847  	urls += "?" + c.urlParams_.Encode()
  9848  	req, err := http.NewRequest("GET", urls, body)
  9849  	if err != nil {
  9850  		return nil, err
  9851  	}
  9852  	req.Header = reqHeaders
  9853  	googleapi.Expand(req.URL, map[string]string{
  9854  		"name": c.name,
  9855  	})
  9856  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9857  }
  9858  
  9859  // Do executes the "cloudbuild.projects.locations.triggers.get" call.
  9860  // Any non-2xx status code is an error. Response headers are in either
  9861  // *BuildTrigger.ServerResponse.Header or (if a response was returned at all)
  9862  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9863  // whether the returned error was because http.StatusNotModified was returned.
  9864  func (c *ProjectsLocationsTriggersGetCall) Do(opts ...googleapi.CallOption) (*BuildTrigger, error) {
  9865  	gensupport.SetOptions(c.urlParams_, opts...)
  9866  	res, err := c.doRequest("json")
  9867  	if res != nil && res.StatusCode == http.StatusNotModified {
  9868  		if res.Body != nil {
  9869  			res.Body.Close()
  9870  		}
  9871  		return nil, gensupport.WrapError(&googleapi.Error{
  9872  			Code:   res.StatusCode,
  9873  			Header: res.Header,
  9874  		})
  9875  	}
  9876  	if err != nil {
  9877  		return nil, err
  9878  	}
  9879  	defer googleapi.CloseBody(res)
  9880  	if err := googleapi.CheckResponse(res); err != nil {
  9881  		return nil, gensupport.WrapError(err)
  9882  	}
  9883  	ret := &BuildTrigger{
  9884  		ServerResponse: googleapi.ServerResponse{
  9885  			Header:         res.Header,
  9886  			HTTPStatusCode: res.StatusCode,
  9887  		},
  9888  	}
  9889  	target := &ret
  9890  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9891  		return nil, err
  9892  	}
  9893  	return ret, nil
  9894  }
  9895  
  9896  type ProjectsLocationsTriggersListCall struct {
  9897  	s            *Service
  9898  	parent       string
  9899  	urlParams_   gensupport.URLParams
  9900  	ifNoneMatch_ string
  9901  	ctx_         context.Context
  9902  	header_      http.Header
  9903  }
  9904  
  9905  // List: Lists existing `BuildTrigger`s.
  9906  //
  9907  //   - parent: The parent of the collection of `Triggers`. Format:
  9908  //     `projects/{project}/locations/{location}`.
  9909  func (r *ProjectsLocationsTriggersService) List(parent string) *ProjectsLocationsTriggersListCall {
  9910  	c := &ProjectsLocationsTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9911  	c.parent = parent
  9912  	return c
  9913  }
  9914  
  9915  // PageSize sets the optional parameter "pageSize": Number of results to return
  9916  // in the list.
  9917  func (c *ProjectsLocationsTriggersListCall) PageSize(pageSize int64) *ProjectsLocationsTriggersListCall {
  9918  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9919  	return c
  9920  }
  9921  
  9922  // PageToken sets the optional parameter "pageToken": Token to provide to skip
  9923  // to a particular spot in the list.
  9924  func (c *ProjectsLocationsTriggersListCall) PageToken(pageToken string) *ProjectsLocationsTriggersListCall {
  9925  	c.urlParams_.Set("pageToken", pageToken)
  9926  	return c
  9927  }
  9928  
  9929  // ProjectId sets the optional parameter "projectId": Required. ID of the
  9930  // project for which to list BuildTriggers.
  9931  func (c *ProjectsLocationsTriggersListCall) ProjectId(projectId string) *ProjectsLocationsTriggersListCall {
  9932  	c.urlParams_.Set("projectId", projectId)
  9933  	return c
  9934  }
  9935  
  9936  // Fields allows partial responses to be retrieved. See
  9937  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9938  // details.
  9939  func (c *ProjectsLocationsTriggersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersListCall {
  9940  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9941  	return c
  9942  }
  9943  
  9944  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9945  // object's ETag matches the given value. This is useful for getting updates
  9946  // only after the object has changed since the last request.
  9947  func (c *ProjectsLocationsTriggersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersListCall {
  9948  	c.ifNoneMatch_ = entityTag
  9949  	return c
  9950  }
  9951  
  9952  // Context sets the context to be used in this call's Do method.
  9953  func (c *ProjectsLocationsTriggersListCall) Context(ctx context.Context) *ProjectsLocationsTriggersListCall {
  9954  	c.ctx_ = ctx
  9955  	return c
  9956  }
  9957  
  9958  // Header returns a http.Header that can be modified by the caller to add
  9959  // headers to the request.
  9960  func (c *ProjectsLocationsTriggersListCall) Header() http.Header {
  9961  	if c.header_ == nil {
  9962  		c.header_ = make(http.Header)
  9963  	}
  9964  	return c.header_
  9965  }
  9966  
  9967  func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Response, error) {
  9968  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9969  	if c.ifNoneMatch_ != "" {
  9970  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9971  	}
  9972  	var body io.Reader = nil
  9973  	c.urlParams_.Set("alt", alt)
  9974  	c.urlParams_.Set("prettyPrint", "false")
  9975  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/triggers")
  9976  	urls += "?" + c.urlParams_.Encode()
  9977  	req, err := http.NewRequest("GET", urls, body)
  9978  	if err != nil {
  9979  		return nil, err
  9980  	}
  9981  	req.Header = reqHeaders
  9982  	googleapi.Expand(req.URL, map[string]string{
  9983  		"parent": c.parent,
  9984  	})
  9985  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9986  }
  9987  
  9988  // Do executes the "cloudbuild.projects.locations.triggers.list" call.
  9989  // Any non-2xx status code is an error. Response headers are in either
  9990  // *ListBuildTriggersResponse.ServerResponse.Header or (if a response was
  9991  // returned at all) in error.(*googleapi.Error).Header. Use
  9992  // googleapi.IsNotModified to check whether the returned error was because
  9993  // http.StatusNotModified was returned.
  9994  func (c *ProjectsLocationsTriggersListCall) Do(opts ...googleapi.CallOption) (*ListBuildTriggersResponse, error) {
  9995  	gensupport.SetOptions(c.urlParams_, opts...)
  9996  	res, err := c.doRequest("json")
  9997  	if res != nil && res.StatusCode == http.StatusNotModified {
  9998  		if res.Body != nil {
  9999  			res.Body.Close()
 10000  		}
 10001  		return nil, gensupport.WrapError(&googleapi.Error{
 10002  			Code:   res.StatusCode,
 10003  			Header: res.Header,
 10004  		})
 10005  	}
 10006  	if err != nil {
 10007  		return nil, err
 10008  	}
 10009  	defer googleapi.CloseBody(res)
 10010  	if err := googleapi.CheckResponse(res); err != nil {
 10011  		return nil, gensupport.WrapError(err)
 10012  	}
 10013  	ret := &ListBuildTriggersResponse{
 10014  		ServerResponse: googleapi.ServerResponse{
 10015  			Header:         res.Header,
 10016  			HTTPStatusCode: res.StatusCode,
 10017  		},
 10018  	}
 10019  	target := &ret
 10020  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10021  		return nil, err
 10022  	}
 10023  	return ret, nil
 10024  }
 10025  
 10026  // Pages invokes f for each page of results.
 10027  // A non-nil error returned from f will halt the iteration.
 10028  // The provided context supersedes any context provided to the Context method.
 10029  func (c *ProjectsLocationsTriggersListCall) Pages(ctx context.Context, f func(*ListBuildTriggersResponse) error) error {
 10030  	c.ctx_ = ctx
 10031  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10032  	for {
 10033  		x, err := c.Do()
 10034  		if err != nil {
 10035  			return err
 10036  		}
 10037  		if err := f(x); err != nil {
 10038  			return err
 10039  		}
 10040  		if x.NextPageToken == "" {
 10041  			return nil
 10042  		}
 10043  		c.PageToken(x.NextPageToken)
 10044  	}
 10045  }
 10046  
 10047  type ProjectsLocationsTriggersPatchCall struct {
 10048  	s              *Service
 10049  	resourceNameid string
 10050  	buildtrigger   *BuildTrigger
 10051  	urlParams_     gensupport.URLParams
 10052  	ctx_           context.Context
 10053  	header_        http.Header
 10054  }
 10055  
 10056  // Patch: Updates a `BuildTrigger` by its project ID and trigger ID.
 10057  //
 10058  //   - resourceName: The `Trigger` name with format:
 10059  //     `projects/{project}/locations/{location}/triggers/{trigger}`, where
 10060  //     {trigger} is a unique identifier generated by the service.
 10061  func (r *ProjectsLocationsTriggersService) Patch(resourceNameid string, buildtrigger *BuildTrigger) *ProjectsLocationsTriggersPatchCall {
 10062  	c := &ProjectsLocationsTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10063  	c.resourceNameid = resourceNameid
 10064  	c.buildtrigger = buildtrigger
 10065  	return c
 10066  }
 10067  
 10068  // ProjectId sets the optional parameter "projectId": Required. ID of the
 10069  // project that owns the trigger.
 10070  func (c *ProjectsLocationsTriggersPatchCall) ProjectId(projectId string) *ProjectsLocationsTriggersPatchCall {
 10071  	c.urlParams_.Set("projectId", projectId)
 10072  	return c
 10073  }
 10074  
 10075  // TriggerId sets the optional parameter "triggerId": Required. ID of the
 10076  // `BuildTrigger` to update.
 10077  func (c *ProjectsLocationsTriggersPatchCall) TriggerId(triggerId string) *ProjectsLocationsTriggersPatchCall {
 10078  	c.urlParams_.Set("triggerId", triggerId)
 10079  	return c
 10080  }
 10081  
 10082  // UpdateMask sets the optional parameter "updateMask": Update mask for the
 10083  // resource. If this is set, the server will only update the fields specified
 10084  // in the field mask. Otherwise, a full update of the mutable resource fields
 10085  // will be performed.
 10086  func (c *ProjectsLocationsTriggersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTriggersPatchCall {
 10087  	c.urlParams_.Set("updateMask", updateMask)
 10088  	return c
 10089  }
 10090  
 10091  // Fields allows partial responses to be retrieved. See
 10092  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10093  // details.
 10094  func (c *ProjectsLocationsTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersPatchCall {
 10095  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10096  	return c
 10097  }
 10098  
 10099  // Context sets the context to be used in this call's Do method.
 10100  func (c *ProjectsLocationsTriggersPatchCall) Context(ctx context.Context) *ProjectsLocationsTriggersPatchCall {
 10101  	c.ctx_ = ctx
 10102  	return c
 10103  }
 10104  
 10105  // Header returns a http.Header that can be modified by the caller to add
 10106  // headers to the request.
 10107  func (c *ProjectsLocationsTriggersPatchCall) Header() http.Header {
 10108  	if c.header_ == nil {
 10109  		c.header_ = make(http.Header)
 10110  	}
 10111  	return c.header_
 10112  }
 10113  
 10114  func (c *ProjectsLocationsTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
 10115  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10116  	var body io.Reader = nil
 10117  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildtrigger)
 10118  	if err != nil {
 10119  		return nil, err
 10120  	}
 10121  	c.urlParams_.Set("alt", alt)
 10122  	c.urlParams_.Set("prettyPrint", "false")
 10123  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resourceName}")
 10124  	urls += "?" + c.urlParams_.Encode()
 10125  	req, err := http.NewRequest("PATCH", urls, body)
 10126  	if err != nil {
 10127  		return nil, err
 10128  	}
 10129  	req.Header = reqHeaders
 10130  	googleapi.Expand(req.URL, map[string]string{
 10131  		"resourceName": c.resourceNameid,
 10132  	})
 10133  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10134  }
 10135  
 10136  // Do executes the "cloudbuild.projects.locations.triggers.patch" call.
 10137  // Any non-2xx status code is an error. Response headers are in either
 10138  // *BuildTrigger.ServerResponse.Header or (if a response was returned at all)
 10139  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10140  // whether the returned error was because http.StatusNotModified was returned.
 10141  func (c *ProjectsLocationsTriggersPatchCall) Do(opts ...googleapi.CallOption) (*BuildTrigger, error) {
 10142  	gensupport.SetOptions(c.urlParams_, opts...)
 10143  	res, err := c.doRequest("json")
 10144  	if res != nil && res.StatusCode == http.StatusNotModified {
 10145  		if res.Body != nil {
 10146  			res.Body.Close()
 10147  		}
 10148  		return nil, gensupport.WrapError(&googleapi.Error{
 10149  			Code:   res.StatusCode,
 10150  			Header: res.Header,
 10151  		})
 10152  	}
 10153  	if err != nil {
 10154  		return nil, err
 10155  	}
 10156  	defer googleapi.CloseBody(res)
 10157  	if err := googleapi.CheckResponse(res); err != nil {
 10158  		return nil, gensupport.WrapError(err)
 10159  	}
 10160  	ret := &BuildTrigger{
 10161  		ServerResponse: googleapi.ServerResponse{
 10162  			Header:         res.Header,
 10163  			HTTPStatusCode: res.StatusCode,
 10164  		},
 10165  	}
 10166  	target := &ret
 10167  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10168  		return nil, err
 10169  	}
 10170  	return ret, nil
 10171  }
 10172  
 10173  type ProjectsLocationsTriggersRunCall struct {
 10174  	s                      *Service
 10175  	name                   string
 10176  	runbuildtriggerrequest *RunBuildTriggerRequest
 10177  	urlParams_             gensupport.URLParams
 10178  	ctx_                   context.Context
 10179  	header_                http.Header
 10180  }
 10181  
 10182  // Run: Runs a `BuildTrigger` at a particular source revision. To run a
 10183  // regional or global trigger, use the POST request that includes the location
 10184  // endpoint in the path (ex.
 10185  // v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The
 10186  // POST request that does not include the location endpoint in the path can
 10187  // only be used when running global triggers.
 10188  //
 10189  //   - name: The name of the `Trigger` to run. Format:
 10190  //     `projects/{project}/locations/{location}/triggers/{trigger}`.
 10191  func (r *ProjectsLocationsTriggersService) Run(name string, runbuildtriggerrequest *RunBuildTriggerRequest) *ProjectsLocationsTriggersRunCall {
 10192  	c := &ProjectsLocationsTriggersRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10193  	c.name = name
 10194  	c.runbuildtriggerrequest = runbuildtriggerrequest
 10195  	return c
 10196  }
 10197  
 10198  // Fields allows partial responses to be retrieved. See
 10199  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10200  // details.
 10201  func (c *ProjectsLocationsTriggersRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersRunCall {
 10202  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10203  	return c
 10204  }
 10205  
 10206  // Context sets the context to be used in this call's Do method.
 10207  func (c *ProjectsLocationsTriggersRunCall) Context(ctx context.Context) *ProjectsLocationsTriggersRunCall {
 10208  	c.ctx_ = ctx
 10209  	return c
 10210  }
 10211  
 10212  // Header returns a http.Header that can be modified by the caller to add
 10213  // headers to the request.
 10214  func (c *ProjectsLocationsTriggersRunCall) Header() http.Header {
 10215  	if c.header_ == nil {
 10216  		c.header_ = make(http.Header)
 10217  	}
 10218  	return c.header_
 10219  }
 10220  
 10221  func (c *ProjectsLocationsTriggersRunCall) doRequest(alt string) (*http.Response, error) {
 10222  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10223  	var body io.Reader = nil
 10224  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.runbuildtriggerrequest)
 10225  	if err != nil {
 10226  		return nil, err
 10227  	}
 10228  	c.urlParams_.Set("alt", alt)
 10229  	c.urlParams_.Set("prettyPrint", "false")
 10230  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
 10231  	urls += "?" + c.urlParams_.Encode()
 10232  	req, err := http.NewRequest("POST", urls, body)
 10233  	if err != nil {
 10234  		return nil, err
 10235  	}
 10236  	req.Header = reqHeaders
 10237  	googleapi.Expand(req.URL, map[string]string{
 10238  		"name": c.name,
 10239  	})
 10240  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10241  }
 10242  
 10243  // Do executes the "cloudbuild.projects.locations.triggers.run" call.
 10244  // Any non-2xx status code is an error. Response headers are in either
 10245  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10246  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10247  // whether the returned error was because http.StatusNotModified was returned.
 10248  func (c *ProjectsLocationsTriggersRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10249  	gensupport.SetOptions(c.urlParams_, opts...)
 10250  	res, err := c.doRequest("json")
 10251  	if res != nil && res.StatusCode == http.StatusNotModified {
 10252  		if res.Body != nil {
 10253  			res.Body.Close()
 10254  		}
 10255  		return nil, gensupport.WrapError(&googleapi.Error{
 10256  			Code:   res.StatusCode,
 10257  			Header: res.Header,
 10258  		})
 10259  	}
 10260  	if err != nil {
 10261  		return nil, err
 10262  	}
 10263  	defer googleapi.CloseBody(res)
 10264  	if err := googleapi.CheckResponse(res); err != nil {
 10265  		return nil, gensupport.WrapError(err)
 10266  	}
 10267  	ret := &Operation{
 10268  		ServerResponse: googleapi.ServerResponse{
 10269  			Header:         res.Header,
 10270  			HTTPStatusCode: res.StatusCode,
 10271  		},
 10272  	}
 10273  	target := &ret
 10274  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10275  		return nil, err
 10276  	}
 10277  	return ret, nil
 10278  }
 10279  
 10280  type ProjectsLocationsTriggersWebhookCall struct {
 10281  	s          *Service
 10282  	name       string
 10283  	httpbody   *HttpBody
 10284  	urlParams_ gensupport.URLParams
 10285  	ctx_       context.Context
 10286  	header_    http.Header
 10287  }
 10288  
 10289  // Webhook: ReceiveTriggerWebhook [Experimental] is called when the API
 10290  // receives a webhook request targeted at a specific trigger.
 10291  //
 10292  //   - name: The name of the `ReceiveTriggerWebhook` to retrieve. Format:
 10293  //     `projects/{project}/locations/{location}/triggers/{trigger}`.
 10294  func (r *ProjectsLocationsTriggersService) Webhook(name string, httpbody *HttpBody) *ProjectsLocationsTriggersWebhookCall {
 10295  	c := &ProjectsLocationsTriggersWebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10296  	c.name = name
 10297  	c.httpbody = httpbody
 10298  	return c
 10299  }
 10300  
 10301  // ProjectId sets the optional parameter "projectId": Project in which the
 10302  // specified trigger lives
 10303  func (c *ProjectsLocationsTriggersWebhookCall) ProjectId(projectId string) *ProjectsLocationsTriggersWebhookCall {
 10304  	c.urlParams_.Set("projectId", projectId)
 10305  	return c
 10306  }
 10307  
 10308  // Secret sets the optional parameter "secret": Secret token used for
 10309  // authorization if an OAuth token isn't provided.
 10310  func (c *ProjectsLocationsTriggersWebhookCall) Secret(secret string) *ProjectsLocationsTriggersWebhookCall {
 10311  	c.urlParams_.Set("secret", secret)
 10312  	return c
 10313  }
 10314  
 10315  // Trigger sets the optional parameter "trigger": Name of the trigger to run
 10316  // the payload against
 10317  func (c *ProjectsLocationsTriggersWebhookCall) Trigger(trigger string) *ProjectsLocationsTriggersWebhookCall {
 10318  	c.urlParams_.Set("trigger", trigger)
 10319  	return c
 10320  }
 10321  
 10322  // Fields allows partial responses to be retrieved. See
 10323  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10324  // details.
 10325  func (c *ProjectsLocationsTriggersWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersWebhookCall {
 10326  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10327  	return c
 10328  }
 10329  
 10330  // Context sets the context to be used in this call's Do method.
 10331  func (c *ProjectsLocationsTriggersWebhookCall) Context(ctx context.Context) *ProjectsLocationsTriggersWebhookCall {
 10332  	c.ctx_ = ctx
 10333  	return c
 10334  }
 10335  
 10336  // Header returns a http.Header that can be modified by the caller to add
 10337  // headers to the request.
 10338  func (c *ProjectsLocationsTriggersWebhookCall) Header() http.Header {
 10339  	if c.header_ == nil {
 10340  		c.header_ = make(http.Header)
 10341  	}
 10342  	return c.header_
 10343  }
 10344  
 10345  func (c *ProjectsLocationsTriggersWebhookCall) doRequest(alt string) (*http.Response, error) {
 10346  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10347  	var body io.Reader = nil
 10348  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.httpbody)
 10349  	if err != nil {
 10350  		return nil, err
 10351  	}
 10352  	c.urlParams_.Set("alt", alt)
 10353  	c.urlParams_.Set("prettyPrint", "false")
 10354  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:webhook")
 10355  	urls += "?" + c.urlParams_.Encode()
 10356  	req, err := http.NewRequest("POST", urls, body)
 10357  	if err != nil {
 10358  		return nil, err
 10359  	}
 10360  	req.Header = reqHeaders
 10361  	googleapi.Expand(req.URL, map[string]string{
 10362  		"name": c.name,
 10363  	})
 10364  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10365  }
 10366  
 10367  // Do executes the "cloudbuild.projects.locations.triggers.webhook" call.
 10368  // Any non-2xx status code is an error. Response headers are in either
 10369  // *ReceiveTriggerWebhookResponse.ServerResponse.Header or (if a response was
 10370  // returned at all) in error.(*googleapi.Error).Header. Use
 10371  // googleapi.IsNotModified to check whether the returned error was because
 10372  // http.StatusNotModified was returned.
 10373  func (c *ProjectsLocationsTriggersWebhookCall) Do(opts ...googleapi.CallOption) (*ReceiveTriggerWebhookResponse, error) {
 10374  	gensupport.SetOptions(c.urlParams_, opts...)
 10375  	res, err := c.doRequest("json")
 10376  	if res != nil && res.StatusCode == http.StatusNotModified {
 10377  		if res.Body != nil {
 10378  			res.Body.Close()
 10379  		}
 10380  		return nil, gensupport.WrapError(&googleapi.Error{
 10381  			Code:   res.StatusCode,
 10382  			Header: res.Header,
 10383  		})
 10384  	}
 10385  	if err != nil {
 10386  		return nil, err
 10387  	}
 10388  	defer googleapi.CloseBody(res)
 10389  	if err := googleapi.CheckResponse(res); err != nil {
 10390  		return nil, gensupport.WrapError(err)
 10391  	}
 10392  	ret := &ReceiveTriggerWebhookResponse{
 10393  		ServerResponse: googleapi.ServerResponse{
 10394  			Header:         res.Header,
 10395  			HTTPStatusCode: res.StatusCode,
 10396  		},
 10397  	}
 10398  	target := &ret
 10399  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10400  		return nil, err
 10401  	}
 10402  	return ret, nil
 10403  }
 10404  
 10405  type ProjectsLocationsWorkerPoolsCreateCall struct {
 10406  	s          *Service
 10407  	parent     string
 10408  	workerpool *WorkerPool
 10409  	urlParams_ gensupport.URLParams
 10410  	ctx_       context.Context
 10411  	header_    http.Header
 10412  }
 10413  
 10414  // Create: Creates a `WorkerPool`.
 10415  //
 10416  //   - parent: The parent resource where this worker pool will be created.
 10417  //     Format: `projects/{project}/locations/{location}`.
 10418  func (r *ProjectsLocationsWorkerPoolsService) Create(parent string, workerpool *WorkerPool) *ProjectsLocationsWorkerPoolsCreateCall {
 10419  	c := &ProjectsLocationsWorkerPoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10420  	c.parent = parent
 10421  	c.workerpool = workerpool
 10422  	return c
 10423  }
 10424  
 10425  // ValidateOnly sets the optional parameter "validateOnly": If set, validate
 10426  // the request and preview the response, but do not actually post it.
 10427  func (c *ProjectsLocationsWorkerPoolsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkerPoolsCreateCall {
 10428  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 10429  	return c
 10430  }
 10431  
 10432  // WorkerPoolId sets the optional parameter "workerPoolId": Required.
 10433  // Immutable. The ID to use for the `WorkerPool`, which will become the final
 10434  // component of the resource name. This value should be 1-63 characters, and
 10435  // valid characters are /a-z-/.
 10436  func (c *ProjectsLocationsWorkerPoolsCreateCall) WorkerPoolId(workerPoolId string) *ProjectsLocationsWorkerPoolsCreateCall {
 10437  	c.urlParams_.Set("workerPoolId", workerPoolId)
 10438  	return c
 10439  }
 10440  
 10441  // Fields allows partial responses to be retrieved. See
 10442  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10443  // details.
 10444  func (c *ProjectsLocationsWorkerPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsCreateCall {
 10445  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10446  	return c
 10447  }
 10448  
 10449  // Context sets the context to be used in this call's Do method.
 10450  func (c *ProjectsLocationsWorkerPoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsCreateCall {
 10451  	c.ctx_ = ctx
 10452  	return c
 10453  }
 10454  
 10455  // Header returns a http.Header that can be modified by the caller to add
 10456  // headers to the request.
 10457  func (c *ProjectsLocationsWorkerPoolsCreateCall) Header() http.Header {
 10458  	if c.header_ == nil {
 10459  		c.header_ = make(http.Header)
 10460  	}
 10461  	return c.header_
 10462  }
 10463  
 10464  func (c *ProjectsLocationsWorkerPoolsCreateCall) doRequest(alt string) (*http.Response, error) {
 10465  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10466  	var body io.Reader = nil
 10467  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool)
 10468  	if err != nil {
 10469  		return nil, err
 10470  	}
 10471  	c.urlParams_.Set("alt", alt)
 10472  	c.urlParams_.Set("prettyPrint", "false")
 10473  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workerPools")
 10474  	urls += "?" + c.urlParams_.Encode()
 10475  	req, err := http.NewRequest("POST", urls, body)
 10476  	if err != nil {
 10477  		return nil, err
 10478  	}
 10479  	req.Header = reqHeaders
 10480  	googleapi.Expand(req.URL, map[string]string{
 10481  		"parent": c.parent,
 10482  	})
 10483  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10484  }
 10485  
 10486  // Do executes the "cloudbuild.projects.locations.workerPools.create" call.
 10487  // Any non-2xx status code is an error. Response headers are in either
 10488  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10489  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10490  // whether the returned error was because http.StatusNotModified was returned.
 10491  func (c *ProjectsLocationsWorkerPoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10492  	gensupport.SetOptions(c.urlParams_, opts...)
 10493  	res, err := c.doRequest("json")
 10494  	if res != nil && res.StatusCode == http.StatusNotModified {
 10495  		if res.Body != nil {
 10496  			res.Body.Close()
 10497  		}
 10498  		return nil, gensupport.WrapError(&googleapi.Error{
 10499  			Code:   res.StatusCode,
 10500  			Header: res.Header,
 10501  		})
 10502  	}
 10503  	if err != nil {
 10504  		return nil, err
 10505  	}
 10506  	defer googleapi.CloseBody(res)
 10507  	if err := googleapi.CheckResponse(res); err != nil {
 10508  		return nil, gensupport.WrapError(err)
 10509  	}
 10510  	ret := &Operation{
 10511  		ServerResponse: googleapi.ServerResponse{
 10512  			Header:         res.Header,
 10513  			HTTPStatusCode: res.StatusCode,
 10514  		},
 10515  	}
 10516  	target := &ret
 10517  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10518  		return nil, err
 10519  	}
 10520  	return ret, nil
 10521  }
 10522  
 10523  type ProjectsLocationsWorkerPoolsDeleteCall struct {
 10524  	s          *Service
 10525  	name       string
 10526  	urlParams_ gensupport.URLParams
 10527  	ctx_       context.Context
 10528  	header_    http.Header
 10529  }
 10530  
 10531  // Delete: Deletes a `WorkerPool`.
 10532  //
 10533  //   - name: The name of the `WorkerPool` to delete. Format:
 10534  //     `projects/{project}/locations/{location}/workerPools/{workerPool}`.
 10535  func (r *ProjectsLocationsWorkerPoolsService) Delete(name string) *ProjectsLocationsWorkerPoolsDeleteCall {
 10536  	c := &ProjectsLocationsWorkerPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10537  	c.name = name
 10538  	return c
 10539  }
 10540  
 10541  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 10542  // the `WorkerPool` is not found, the request will succeed but no action will
 10543  // be taken on the server.
 10544  func (c *ProjectsLocationsWorkerPoolsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsWorkerPoolsDeleteCall {
 10545  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 10546  	return c
 10547  }
 10548  
 10549  // Etag sets the optional parameter "etag": If provided, it must match the
 10550  // server's etag on the workerpool for the request to be processed.
 10551  func (c *ProjectsLocationsWorkerPoolsDeleteCall) Etag(etag string) *ProjectsLocationsWorkerPoolsDeleteCall {
 10552  	c.urlParams_.Set("etag", etag)
 10553  	return c
 10554  }
 10555  
 10556  // ValidateOnly sets the optional parameter "validateOnly": If set, validate
 10557  // the request and preview the response, but do not actually post it.
 10558  func (c *ProjectsLocationsWorkerPoolsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkerPoolsDeleteCall {
 10559  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 10560  	return c
 10561  }
 10562  
 10563  // Fields allows partial responses to be retrieved. See
 10564  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10565  // details.
 10566  func (c *ProjectsLocationsWorkerPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsDeleteCall {
 10567  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10568  	return c
 10569  }
 10570  
 10571  // Context sets the context to be used in this call's Do method.
 10572  func (c *ProjectsLocationsWorkerPoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsDeleteCall {
 10573  	c.ctx_ = ctx
 10574  	return c
 10575  }
 10576  
 10577  // Header returns a http.Header that can be modified by the caller to add
 10578  // headers to the request.
 10579  func (c *ProjectsLocationsWorkerPoolsDeleteCall) Header() http.Header {
 10580  	if c.header_ == nil {
 10581  		c.header_ = make(http.Header)
 10582  	}
 10583  	return c.header_
 10584  }
 10585  
 10586  func (c *ProjectsLocationsWorkerPoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10587  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10588  	var body io.Reader = nil
 10589  	c.urlParams_.Set("alt", alt)
 10590  	c.urlParams_.Set("prettyPrint", "false")
 10591  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10592  	urls += "?" + c.urlParams_.Encode()
 10593  	req, err := http.NewRequest("DELETE", urls, body)
 10594  	if err != nil {
 10595  		return nil, err
 10596  	}
 10597  	req.Header = reqHeaders
 10598  	googleapi.Expand(req.URL, map[string]string{
 10599  		"name": c.name,
 10600  	})
 10601  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10602  }
 10603  
 10604  // Do executes the "cloudbuild.projects.locations.workerPools.delete" call.
 10605  // Any non-2xx status code is an error. Response headers are in either
 10606  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10607  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10608  // whether the returned error was because http.StatusNotModified was returned.
 10609  func (c *ProjectsLocationsWorkerPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10610  	gensupport.SetOptions(c.urlParams_, opts...)
 10611  	res, err := c.doRequest("json")
 10612  	if res != nil && res.StatusCode == http.StatusNotModified {
 10613  		if res.Body != nil {
 10614  			res.Body.Close()
 10615  		}
 10616  		return nil, gensupport.WrapError(&googleapi.Error{
 10617  			Code:   res.StatusCode,
 10618  			Header: res.Header,
 10619  		})
 10620  	}
 10621  	if err != nil {
 10622  		return nil, err
 10623  	}
 10624  	defer googleapi.CloseBody(res)
 10625  	if err := googleapi.CheckResponse(res); err != nil {
 10626  		return nil, gensupport.WrapError(err)
 10627  	}
 10628  	ret := &Operation{
 10629  		ServerResponse: googleapi.ServerResponse{
 10630  			Header:         res.Header,
 10631  			HTTPStatusCode: res.StatusCode,
 10632  		},
 10633  	}
 10634  	target := &ret
 10635  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10636  		return nil, err
 10637  	}
 10638  	return ret, nil
 10639  }
 10640  
 10641  type ProjectsLocationsWorkerPoolsGetCall struct {
 10642  	s            *Service
 10643  	name         string
 10644  	urlParams_   gensupport.URLParams
 10645  	ifNoneMatch_ string
 10646  	ctx_         context.Context
 10647  	header_      http.Header
 10648  }
 10649  
 10650  // Get: Returns details of a `WorkerPool`.
 10651  //
 10652  //   - name: The name of the `WorkerPool` to retrieve. Format:
 10653  //     `projects/{project}/locations/{location}/workerPools/{workerPool}`.
 10654  func (r *ProjectsLocationsWorkerPoolsService) Get(name string) *ProjectsLocationsWorkerPoolsGetCall {
 10655  	c := &ProjectsLocationsWorkerPoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10656  	c.name = name
 10657  	return c
 10658  }
 10659  
 10660  // Fields allows partial responses to be retrieved. See
 10661  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10662  // details.
 10663  func (c *ProjectsLocationsWorkerPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsGetCall {
 10664  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10665  	return c
 10666  }
 10667  
 10668  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10669  // object's ETag matches the given value. This is useful for getting updates
 10670  // only after the object has changed since the last request.
 10671  func (c *ProjectsLocationsWorkerPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkerPoolsGetCall {
 10672  	c.ifNoneMatch_ = entityTag
 10673  	return c
 10674  }
 10675  
 10676  // Context sets the context to be used in this call's Do method.
 10677  func (c *ProjectsLocationsWorkerPoolsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsGetCall {
 10678  	c.ctx_ = ctx
 10679  	return c
 10680  }
 10681  
 10682  // Header returns a http.Header that can be modified by the caller to add
 10683  // headers to the request.
 10684  func (c *ProjectsLocationsWorkerPoolsGetCall) Header() http.Header {
 10685  	if c.header_ == nil {
 10686  		c.header_ = make(http.Header)
 10687  	}
 10688  	return c.header_
 10689  }
 10690  
 10691  func (c *ProjectsLocationsWorkerPoolsGetCall) doRequest(alt string) (*http.Response, error) {
 10692  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10693  	if c.ifNoneMatch_ != "" {
 10694  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10695  	}
 10696  	var body io.Reader = nil
 10697  	c.urlParams_.Set("alt", alt)
 10698  	c.urlParams_.Set("prettyPrint", "false")
 10699  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10700  	urls += "?" + c.urlParams_.Encode()
 10701  	req, err := http.NewRequest("GET", urls, body)
 10702  	if err != nil {
 10703  		return nil, err
 10704  	}
 10705  	req.Header = reqHeaders
 10706  	googleapi.Expand(req.URL, map[string]string{
 10707  		"name": c.name,
 10708  	})
 10709  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10710  }
 10711  
 10712  // Do executes the "cloudbuild.projects.locations.workerPools.get" call.
 10713  // Any non-2xx status code is an error. Response headers are in either
 10714  // *WorkerPool.ServerResponse.Header or (if a response was returned at all) in
 10715  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10716  // whether the returned error was because http.StatusNotModified was returned.
 10717  func (c *ProjectsLocationsWorkerPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkerPool, error) {
 10718  	gensupport.SetOptions(c.urlParams_, opts...)
 10719  	res, err := c.doRequest("json")
 10720  	if res != nil && res.StatusCode == http.StatusNotModified {
 10721  		if res.Body != nil {
 10722  			res.Body.Close()
 10723  		}
 10724  		return nil, gensupport.WrapError(&googleapi.Error{
 10725  			Code:   res.StatusCode,
 10726  			Header: res.Header,
 10727  		})
 10728  	}
 10729  	if err != nil {
 10730  		return nil, err
 10731  	}
 10732  	defer googleapi.CloseBody(res)
 10733  	if err := googleapi.CheckResponse(res); err != nil {
 10734  		return nil, gensupport.WrapError(err)
 10735  	}
 10736  	ret := &WorkerPool{
 10737  		ServerResponse: googleapi.ServerResponse{
 10738  			Header:         res.Header,
 10739  			HTTPStatusCode: res.StatusCode,
 10740  		},
 10741  	}
 10742  	target := &ret
 10743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10744  		return nil, err
 10745  	}
 10746  	return ret, nil
 10747  }
 10748  
 10749  type ProjectsLocationsWorkerPoolsListCall struct {
 10750  	s            *Service
 10751  	parent       string
 10752  	urlParams_   gensupport.URLParams
 10753  	ifNoneMatch_ string
 10754  	ctx_         context.Context
 10755  	header_      http.Header
 10756  }
 10757  
 10758  // List: Lists `WorkerPool`s.
 10759  //
 10760  //   - parent: The parent of the collection of `WorkerPools`. Format:
 10761  //     `projects/{project}/locations/{location}`.
 10762  func (r *ProjectsLocationsWorkerPoolsService) List(parent string) *ProjectsLocationsWorkerPoolsListCall {
 10763  	c := &ProjectsLocationsWorkerPoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10764  	c.parent = parent
 10765  	return c
 10766  }
 10767  
 10768  // PageSize sets the optional parameter "pageSize": The maximum number of
 10769  // `WorkerPool`s to return. The service may return fewer than this value. If
 10770  // omitted, the server will use a sensible default.
 10771  func (c *ProjectsLocationsWorkerPoolsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkerPoolsListCall {
 10772  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10773  	return c
 10774  }
 10775  
 10776  // PageToken sets the optional parameter "pageToken": A page token, received
 10777  // from a previous `ListWorkerPools` call. Provide this to retrieve the
 10778  // subsequent page.
 10779  func (c *ProjectsLocationsWorkerPoolsListCall) PageToken(pageToken string) *ProjectsLocationsWorkerPoolsListCall {
 10780  	c.urlParams_.Set("pageToken", pageToken)
 10781  	return c
 10782  }
 10783  
 10784  // Fields allows partial responses to be retrieved. See
 10785  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10786  // details.
 10787  func (c *ProjectsLocationsWorkerPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsListCall {
 10788  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10789  	return c
 10790  }
 10791  
 10792  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10793  // object's ETag matches the given value. This is useful for getting updates
 10794  // only after the object has changed since the last request.
 10795  func (c *ProjectsLocationsWorkerPoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkerPoolsListCall {
 10796  	c.ifNoneMatch_ = entityTag
 10797  	return c
 10798  }
 10799  
 10800  // Context sets the context to be used in this call's Do method.
 10801  func (c *ProjectsLocationsWorkerPoolsListCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsListCall {
 10802  	c.ctx_ = ctx
 10803  	return c
 10804  }
 10805  
 10806  // Header returns a http.Header that can be modified by the caller to add
 10807  // headers to the request.
 10808  func (c *ProjectsLocationsWorkerPoolsListCall) Header() http.Header {
 10809  	if c.header_ == nil {
 10810  		c.header_ = make(http.Header)
 10811  	}
 10812  	return c.header_
 10813  }
 10814  
 10815  func (c *ProjectsLocationsWorkerPoolsListCall) doRequest(alt string) (*http.Response, error) {
 10816  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10817  	if c.ifNoneMatch_ != "" {
 10818  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10819  	}
 10820  	var body io.Reader = nil
 10821  	c.urlParams_.Set("alt", alt)
 10822  	c.urlParams_.Set("prettyPrint", "false")
 10823  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workerPools")
 10824  	urls += "?" + c.urlParams_.Encode()
 10825  	req, err := http.NewRequest("GET", urls, body)
 10826  	if err != nil {
 10827  		return nil, err
 10828  	}
 10829  	req.Header = reqHeaders
 10830  	googleapi.Expand(req.URL, map[string]string{
 10831  		"parent": c.parent,
 10832  	})
 10833  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10834  }
 10835  
 10836  // Do executes the "cloudbuild.projects.locations.workerPools.list" call.
 10837  // Any non-2xx status code is an error. Response headers are in either
 10838  // *ListWorkerPoolsResponse.ServerResponse.Header or (if a response was
 10839  // returned at all) in error.(*googleapi.Error).Header. Use
 10840  // googleapi.IsNotModified to check whether the returned error was because
 10841  // http.StatusNotModified was returned.
 10842  func (c *ProjectsLocationsWorkerPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkerPoolsResponse, error) {
 10843  	gensupport.SetOptions(c.urlParams_, opts...)
 10844  	res, err := c.doRequest("json")
 10845  	if res != nil && res.StatusCode == http.StatusNotModified {
 10846  		if res.Body != nil {
 10847  			res.Body.Close()
 10848  		}
 10849  		return nil, gensupport.WrapError(&googleapi.Error{
 10850  			Code:   res.StatusCode,
 10851  			Header: res.Header,
 10852  		})
 10853  	}
 10854  	if err != nil {
 10855  		return nil, err
 10856  	}
 10857  	defer googleapi.CloseBody(res)
 10858  	if err := googleapi.CheckResponse(res); err != nil {
 10859  		return nil, gensupport.WrapError(err)
 10860  	}
 10861  	ret := &ListWorkerPoolsResponse{
 10862  		ServerResponse: googleapi.ServerResponse{
 10863  			Header:         res.Header,
 10864  			HTTPStatusCode: res.StatusCode,
 10865  		},
 10866  	}
 10867  	target := &ret
 10868  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10869  		return nil, err
 10870  	}
 10871  	return ret, nil
 10872  }
 10873  
 10874  // Pages invokes f for each page of results.
 10875  // A non-nil error returned from f will halt the iteration.
 10876  // The provided context supersedes any context provided to the Context method.
 10877  func (c *ProjectsLocationsWorkerPoolsListCall) Pages(ctx context.Context, f func(*ListWorkerPoolsResponse) error) error {
 10878  	c.ctx_ = ctx
 10879  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10880  	for {
 10881  		x, err := c.Do()
 10882  		if err != nil {
 10883  			return err
 10884  		}
 10885  		if err := f(x); err != nil {
 10886  			return err
 10887  		}
 10888  		if x.NextPageToken == "" {
 10889  			return nil
 10890  		}
 10891  		c.PageToken(x.NextPageToken)
 10892  	}
 10893  }
 10894  
 10895  type ProjectsLocationsWorkerPoolsPatchCall struct {
 10896  	s          *Service
 10897  	name       string
 10898  	workerpool *WorkerPool
 10899  	urlParams_ gensupport.URLParams
 10900  	ctx_       context.Context
 10901  	header_    http.Header
 10902  }
 10903  
 10904  // Patch: Updates a `WorkerPool`.
 10905  //
 10906  //   - name: Output only. The resource name of the `WorkerPool`, with format
 10907  //     `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The
 10908  //     value of `{worker_pool}` is provided by `worker_pool_id` in
 10909  //     `CreateWorkerPool` request and the value of `{location}` is determined by
 10910  //     the endpoint accessed.
 10911  func (r *ProjectsLocationsWorkerPoolsService) Patch(name string, workerpool *WorkerPool) *ProjectsLocationsWorkerPoolsPatchCall {
 10912  	c := &ProjectsLocationsWorkerPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10913  	c.name = name
 10914  	c.workerpool = workerpool
 10915  	return c
 10916  }
 10917  
 10918  // UpdateMask sets the optional parameter "updateMask": A mask specifying which
 10919  // fields in `worker_pool` to update.
 10920  func (c *ProjectsLocationsWorkerPoolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkerPoolsPatchCall {
 10921  	c.urlParams_.Set("updateMask", updateMask)
 10922  	return c
 10923  }
 10924  
 10925  // ValidateOnly sets the optional parameter "validateOnly": If set, validate
 10926  // the request and preview the response, but do not actually post it.
 10927  func (c *ProjectsLocationsWorkerPoolsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkerPoolsPatchCall {
 10928  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 10929  	return c
 10930  }
 10931  
 10932  // Fields allows partial responses to be retrieved. See
 10933  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10934  // details.
 10935  func (c *ProjectsLocationsWorkerPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsPatchCall {
 10936  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10937  	return c
 10938  }
 10939  
 10940  // Context sets the context to be used in this call's Do method.
 10941  func (c *ProjectsLocationsWorkerPoolsPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsPatchCall {
 10942  	c.ctx_ = ctx
 10943  	return c
 10944  }
 10945  
 10946  // Header returns a http.Header that can be modified by the caller to add
 10947  // headers to the request.
 10948  func (c *ProjectsLocationsWorkerPoolsPatchCall) Header() http.Header {
 10949  	if c.header_ == nil {
 10950  		c.header_ = make(http.Header)
 10951  	}
 10952  	return c.header_
 10953  }
 10954  
 10955  func (c *ProjectsLocationsWorkerPoolsPatchCall) doRequest(alt string) (*http.Response, error) {
 10956  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10957  	var body io.Reader = nil
 10958  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.workerpool)
 10959  	if err != nil {
 10960  		return nil, err
 10961  	}
 10962  	c.urlParams_.Set("alt", alt)
 10963  	c.urlParams_.Set("prettyPrint", "false")
 10964  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10965  	urls += "?" + c.urlParams_.Encode()
 10966  	req, err := http.NewRequest("PATCH", urls, body)
 10967  	if err != nil {
 10968  		return nil, err
 10969  	}
 10970  	req.Header = reqHeaders
 10971  	googleapi.Expand(req.URL, map[string]string{
 10972  		"name": c.name,
 10973  	})
 10974  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10975  }
 10976  
 10977  // Do executes the "cloudbuild.projects.locations.workerPools.patch" call.
 10978  // Any non-2xx status code is an error. Response headers are in either
 10979  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10980  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10981  // whether the returned error was because http.StatusNotModified was returned.
 10982  func (c *ProjectsLocationsWorkerPoolsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10983  	gensupport.SetOptions(c.urlParams_, opts...)
 10984  	res, err := c.doRequest("json")
 10985  	if res != nil && res.StatusCode == http.StatusNotModified {
 10986  		if res.Body != nil {
 10987  			res.Body.Close()
 10988  		}
 10989  		return nil, gensupport.WrapError(&googleapi.Error{
 10990  			Code:   res.StatusCode,
 10991  			Header: res.Header,
 10992  		})
 10993  	}
 10994  	if err != nil {
 10995  		return nil, err
 10996  	}
 10997  	defer googleapi.CloseBody(res)
 10998  	if err := googleapi.CheckResponse(res); err != nil {
 10999  		return nil, gensupport.WrapError(err)
 11000  	}
 11001  	ret := &Operation{
 11002  		ServerResponse: googleapi.ServerResponse{
 11003  			Header:         res.Header,
 11004  			HTTPStatusCode: res.StatusCode,
 11005  		},
 11006  	}
 11007  	target := &ret
 11008  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11009  		return nil, err
 11010  	}
 11011  	return ret, nil
 11012  }
 11013  
 11014  type ProjectsTriggersCreateCall struct {
 11015  	s            *Service
 11016  	projectId    string
 11017  	buildtrigger *BuildTrigger
 11018  	urlParams_   gensupport.URLParams
 11019  	ctx_         context.Context
 11020  	header_      http.Header
 11021  }
 11022  
 11023  // Create: Creates a new `BuildTrigger`.
 11024  //
 11025  // - projectId: ID of the project for which to configure automatic builds.
 11026  func (r *ProjectsTriggersService) Create(projectId string, buildtrigger *BuildTrigger) *ProjectsTriggersCreateCall {
 11027  	c := &ProjectsTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11028  	c.projectId = projectId
 11029  	c.buildtrigger = buildtrigger
 11030  	return c
 11031  }
 11032  
 11033  // Parent sets the optional parameter "parent": The parent resource where this
 11034  // trigger will be created. Format: `projects/{project}/locations/{location}`
 11035  func (c *ProjectsTriggersCreateCall) Parent(parent string) *ProjectsTriggersCreateCall {
 11036  	c.urlParams_.Set("parent", parent)
 11037  	return c
 11038  }
 11039  
 11040  // Fields allows partial responses to be retrieved. See
 11041  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11042  // details.
 11043  func (c *ProjectsTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsTriggersCreateCall {
 11044  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11045  	return c
 11046  }
 11047  
 11048  // Context sets the context to be used in this call's Do method.
 11049  func (c *ProjectsTriggersCreateCall) Context(ctx context.Context) *ProjectsTriggersCreateCall {
 11050  	c.ctx_ = ctx
 11051  	return c
 11052  }
 11053  
 11054  // Header returns a http.Header that can be modified by the caller to add
 11055  // headers to the request.
 11056  func (c *ProjectsTriggersCreateCall) Header() http.Header {
 11057  	if c.header_ == nil {
 11058  		c.header_ = make(http.Header)
 11059  	}
 11060  	return c.header_
 11061  }
 11062  
 11063  func (c *ProjectsTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
 11064  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11065  	var body io.Reader = nil
 11066  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildtrigger)
 11067  	if err != nil {
 11068  		return nil, err
 11069  	}
 11070  	c.urlParams_.Set("alt", alt)
 11071  	c.urlParams_.Set("prettyPrint", "false")
 11072  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers")
 11073  	urls += "?" + c.urlParams_.Encode()
 11074  	req, err := http.NewRequest("POST", urls, body)
 11075  	if err != nil {
 11076  		return nil, err
 11077  	}
 11078  	req.Header = reqHeaders
 11079  	googleapi.Expand(req.URL, map[string]string{
 11080  		"projectId": c.projectId,
 11081  	})
 11082  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11083  }
 11084  
 11085  // Do executes the "cloudbuild.projects.triggers.create" call.
 11086  // Any non-2xx status code is an error. Response headers are in either
 11087  // *BuildTrigger.ServerResponse.Header or (if a response was returned at all)
 11088  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11089  // whether the returned error was because http.StatusNotModified was returned.
 11090  func (c *ProjectsTriggersCreateCall) Do(opts ...googleapi.CallOption) (*BuildTrigger, error) {
 11091  	gensupport.SetOptions(c.urlParams_, opts...)
 11092  	res, err := c.doRequest("json")
 11093  	if res != nil && res.StatusCode == http.StatusNotModified {
 11094  		if res.Body != nil {
 11095  			res.Body.Close()
 11096  		}
 11097  		return nil, gensupport.WrapError(&googleapi.Error{
 11098  			Code:   res.StatusCode,
 11099  			Header: res.Header,
 11100  		})
 11101  	}
 11102  	if err != nil {
 11103  		return nil, err
 11104  	}
 11105  	defer googleapi.CloseBody(res)
 11106  	if err := googleapi.CheckResponse(res); err != nil {
 11107  		return nil, gensupport.WrapError(err)
 11108  	}
 11109  	ret := &BuildTrigger{
 11110  		ServerResponse: googleapi.ServerResponse{
 11111  			Header:         res.Header,
 11112  			HTTPStatusCode: res.StatusCode,
 11113  		},
 11114  	}
 11115  	target := &ret
 11116  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11117  		return nil, err
 11118  	}
 11119  	return ret, nil
 11120  }
 11121  
 11122  type ProjectsTriggersDeleteCall struct {
 11123  	s          *Service
 11124  	projectId  string
 11125  	triggerId  string
 11126  	urlParams_ gensupport.URLParams
 11127  	ctx_       context.Context
 11128  	header_    http.Header
 11129  }
 11130  
 11131  // Delete: Deletes a `BuildTrigger` by its project ID and trigger ID.
 11132  //
 11133  // - projectId: ID of the project that owns the trigger.
 11134  // - triggerId: ID of the `BuildTrigger` to delete.
 11135  func (r *ProjectsTriggersService) Delete(projectId string, triggerId string) *ProjectsTriggersDeleteCall {
 11136  	c := &ProjectsTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11137  	c.projectId = projectId
 11138  	c.triggerId = triggerId
 11139  	return c
 11140  }
 11141  
 11142  // Name sets the optional parameter "name": The name of the `Trigger` to
 11143  // delete. Format: `projects/{project}/locations/{location}/triggers/{trigger}`
 11144  func (c *ProjectsTriggersDeleteCall) Name(name string) *ProjectsTriggersDeleteCall {
 11145  	c.urlParams_.Set("name", name)
 11146  	return c
 11147  }
 11148  
 11149  // Fields allows partial responses to be retrieved. See
 11150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11151  // details.
 11152  func (c *ProjectsTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsTriggersDeleteCall {
 11153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11154  	return c
 11155  }
 11156  
 11157  // Context sets the context to be used in this call's Do method.
 11158  func (c *ProjectsTriggersDeleteCall) Context(ctx context.Context) *ProjectsTriggersDeleteCall {
 11159  	c.ctx_ = ctx
 11160  	return c
 11161  }
 11162  
 11163  // Header returns a http.Header that can be modified by the caller to add
 11164  // headers to the request.
 11165  func (c *ProjectsTriggersDeleteCall) Header() http.Header {
 11166  	if c.header_ == nil {
 11167  		c.header_ = make(http.Header)
 11168  	}
 11169  	return c.header_
 11170  }
 11171  
 11172  func (c *ProjectsTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
 11173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11174  	var body io.Reader = nil
 11175  	c.urlParams_.Set("alt", alt)
 11176  	c.urlParams_.Set("prettyPrint", "false")
 11177  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers/{triggerId}")
 11178  	urls += "?" + c.urlParams_.Encode()
 11179  	req, err := http.NewRequest("DELETE", urls, body)
 11180  	if err != nil {
 11181  		return nil, err
 11182  	}
 11183  	req.Header = reqHeaders
 11184  	googleapi.Expand(req.URL, map[string]string{
 11185  		"projectId": c.projectId,
 11186  		"triggerId": c.triggerId,
 11187  	})
 11188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11189  }
 11190  
 11191  // Do executes the "cloudbuild.projects.triggers.delete" call.
 11192  // Any non-2xx status code is an error. Response headers are in either
 11193  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11194  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11195  // whether the returned error was because http.StatusNotModified was returned.
 11196  func (c *ProjectsTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11197  	gensupport.SetOptions(c.urlParams_, opts...)
 11198  	res, err := c.doRequest("json")
 11199  	if res != nil && res.StatusCode == http.StatusNotModified {
 11200  		if res.Body != nil {
 11201  			res.Body.Close()
 11202  		}
 11203  		return nil, gensupport.WrapError(&googleapi.Error{
 11204  			Code:   res.StatusCode,
 11205  			Header: res.Header,
 11206  		})
 11207  	}
 11208  	if err != nil {
 11209  		return nil, err
 11210  	}
 11211  	defer googleapi.CloseBody(res)
 11212  	if err := googleapi.CheckResponse(res); err != nil {
 11213  		return nil, gensupport.WrapError(err)
 11214  	}
 11215  	ret := &Empty{
 11216  		ServerResponse: googleapi.ServerResponse{
 11217  			Header:         res.Header,
 11218  			HTTPStatusCode: res.StatusCode,
 11219  		},
 11220  	}
 11221  	target := &ret
 11222  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11223  		return nil, err
 11224  	}
 11225  	return ret, nil
 11226  }
 11227  
 11228  type ProjectsTriggersGetCall struct {
 11229  	s            *Service
 11230  	projectId    string
 11231  	triggerId    string
 11232  	urlParams_   gensupport.URLParams
 11233  	ifNoneMatch_ string
 11234  	ctx_         context.Context
 11235  	header_      http.Header
 11236  }
 11237  
 11238  // Get: Returns information about a `BuildTrigger`.
 11239  //
 11240  // - projectId: ID of the project that owns the trigger.
 11241  // - triggerId: Identifier (`id` or `name`) of the `BuildTrigger` to get.
 11242  func (r *ProjectsTriggersService) Get(projectId string, triggerId string) *ProjectsTriggersGetCall {
 11243  	c := &ProjectsTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11244  	c.projectId = projectId
 11245  	c.triggerId = triggerId
 11246  	return c
 11247  }
 11248  
 11249  // Name sets the optional parameter "name": The name of the `Trigger` to
 11250  // retrieve. Format:
 11251  // `projects/{project}/locations/{location}/triggers/{trigger}`
 11252  func (c *ProjectsTriggersGetCall) Name(name string) *ProjectsTriggersGetCall {
 11253  	c.urlParams_.Set("name", name)
 11254  	return c
 11255  }
 11256  
 11257  // Fields allows partial responses to be retrieved. See
 11258  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11259  // details.
 11260  func (c *ProjectsTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsTriggersGetCall {
 11261  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11262  	return c
 11263  }
 11264  
 11265  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11266  // object's ETag matches the given value. This is useful for getting updates
 11267  // only after the object has changed since the last request.
 11268  func (c *ProjectsTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsTriggersGetCall {
 11269  	c.ifNoneMatch_ = entityTag
 11270  	return c
 11271  }
 11272  
 11273  // Context sets the context to be used in this call's Do method.
 11274  func (c *ProjectsTriggersGetCall) Context(ctx context.Context) *ProjectsTriggersGetCall {
 11275  	c.ctx_ = ctx
 11276  	return c
 11277  }
 11278  
 11279  // Header returns a http.Header that can be modified by the caller to add
 11280  // headers to the request.
 11281  func (c *ProjectsTriggersGetCall) Header() http.Header {
 11282  	if c.header_ == nil {
 11283  		c.header_ = make(http.Header)
 11284  	}
 11285  	return c.header_
 11286  }
 11287  
 11288  func (c *ProjectsTriggersGetCall) doRequest(alt string) (*http.Response, error) {
 11289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11290  	if c.ifNoneMatch_ != "" {
 11291  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11292  	}
 11293  	var body io.Reader = nil
 11294  	c.urlParams_.Set("alt", alt)
 11295  	c.urlParams_.Set("prettyPrint", "false")
 11296  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers/{triggerId}")
 11297  	urls += "?" + c.urlParams_.Encode()
 11298  	req, err := http.NewRequest("GET", urls, body)
 11299  	if err != nil {
 11300  		return nil, err
 11301  	}
 11302  	req.Header = reqHeaders
 11303  	googleapi.Expand(req.URL, map[string]string{
 11304  		"projectId": c.projectId,
 11305  		"triggerId": c.triggerId,
 11306  	})
 11307  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11308  }
 11309  
 11310  // Do executes the "cloudbuild.projects.triggers.get" call.
 11311  // Any non-2xx status code is an error. Response headers are in either
 11312  // *BuildTrigger.ServerResponse.Header or (if a response was returned at all)
 11313  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11314  // whether the returned error was because http.StatusNotModified was returned.
 11315  func (c *ProjectsTriggersGetCall) Do(opts ...googleapi.CallOption) (*BuildTrigger, error) {
 11316  	gensupport.SetOptions(c.urlParams_, opts...)
 11317  	res, err := c.doRequest("json")
 11318  	if res != nil && res.StatusCode == http.StatusNotModified {
 11319  		if res.Body != nil {
 11320  			res.Body.Close()
 11321  		}
 11322  		return nil, gensupport.WrapError(&googleapi.Error{
 11323  			Code:   res.StatusCode,
 11324  			Header: res.Header,
 11325  		})
 11326  	}
 11327  	if err != nil {
 11328  		return nil, err
 11329  	}
 11330  	defer googleapi.CloseBody(res)
 11331  	if err := googleapi.CheckResponse(res); err != nil {
 11332  		return nil, gensupport.WrapError(err)
 11333  	}
 11334  	ret := &BuildTrigger{
 11335  		ServerResponse: googleapi.ServerResponse{
 11336  			Header:         res.Header,
 11337  			HTTPStatusCode: res.StatusCode,
 11338  		},
 11339  	}
 11340  	target := &ret
 11341  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11342  		return nil, err
 11343  	}
 11344  	return ret, nil
 11345  }
 11346  
 11347  type ProjectsTriggersListCall struct {
 11348  	s            *Service
 11349  	projectId    string
 11350  	urlParams_   gensupport.URLParams
 11351  	ifNoneMatch_ string
 11352  	ctx_         context.Context
 11353  	header_      http.Header
 11354  }
 11355  
 11356  // List: Lists existing `BuildTrigger`s.
 11357  //
 11358  // - projectId: ID of the project for which to list BuildTriggers.
 11359  func (r *ProjectsTriggersService) List(projectId string) *ProjectsTriggersListCall {
 11360  	c := &ProjectsTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11361  	c.projectId = projectId
 11362  	return c
 11363  }
 11364  
 11365  // PageSize sets the optional parameter "pageSize": Number of results to return
 11366  // in the list.
 11367  func (c *ProjectsTriggersListCall) PageSize(pageSize int64) *ProjectsTriggersListCall {
 11368  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11369  	return c
 11370  }
 11371  
 11372  // PageToken sets the optional parameter "pageToken": Token to provide to skip
 11373  // to a particular spot in the list.
 11374  func (c *ProjectsTriggersListCall) PageToken(pageToken string) *ProjectsTriggersListCall {
 11375  	c.urlParams_.Set("pageToken", pageToken)
 11376  	return c
 11377  }
 11378  
 11379  // Parent sets the optional parameter "parent": The parent of the collection of
 11380  // `Triggers`. Format: `projects/{project}/locations/{location}`
 11381  func (c *ProjectsTriggersListCall) Parent(parent string) *ProjectsTriggersListCall {
 11382  	c.urlParams_.Set("parent", parent)
 11383  	return c
 11384  }
 11385  
 11386  // Fields allows partial responses to be retrieved. See
 11387  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11388  // details.
 11389  func (c *ProjectsTriggersListCall) Fields(s ...googleapi.Field) *ProjectsTriggersListCall {
 11390  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11391  	return c
 11392  }
 11393  
 11394  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11395  // object's ETag matches the given value. This is useful for getting updates
 11396  // only after the object has changed since the last request.
 11397  func (c *ProjectsTriggersListCall) IfNoneMatch(entityTag string) *ProjectsTriggersListCall {
 11398  	c.ifNoneMatch_ = entityTag
 11399  	return c
 11400  }
 11401  
 11402  // Context sets the context to be used in this call's Do method.
 11403  func (c *ProjectsTriggersListCall) Context(ctx context.Context) *ProjectsTriggersListCall {
 11404  	c.ctx_ = ctx
 11405  	return c
 11406  }
 11407  
 11408  // Header returns a http.Header that can be modified by the caller to add
 11409  // headers to the request.
 11410  func (c *ProjectsTriggersListCall) Header() http.Header {
 11411  	if c.header_ == nil {
 11412  		c.header_ = make(http.Header)
 11413  	}
 11414  	return c.header_
 11415  }
 11416  
 11417  func (c *ProjectsTriggersListCall) doRequest(alt string) (*http.Response, error) {
 11418  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11419  	if c.ifNoneMatch_ != "" {
 11420  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11421  	}
 11422  	var body io.Reader = nil
 11423  	c.urlParams_.Set("alt", alt)
 11424  	c.urlParams_.Set("prettyPrint", "false")
 11425  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers")
 11426  	urls += "?" + c.urlParams_.Encode()
 11427  	req, err := http.NewRequest("GET", urls, body)
 11428  	if err != nil {
 11429  		return nil, err
 11430  	}
 11431  	req.Header = reqHeaders
 11432  	googleapi.Expand(req.URL, map[string]string{
 11433  		"projectId": c.projectId,
 11434  	})
 11435  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11436  }
 11437  
 11438  // Do executes the "cloudbuild.projects.triggers.list" call.
 11439  // Any non-2xx status code is an error. Response headers are in either
 11440  // *ListBuildTriggersResponse.ServerResponse.Header or (if a response was
 11441  // returned at all) in error.(*googleapi.Error).Header. Use
 11442  // googleapi.IsNotModified to check whether the returned error was because
 11443  // http.StatusNotModified was returned.
 11444  func (c *ProjectsTriggersListCall) Do(opts ...googleapi.CallOption) (*ListBuildTriggersResponse, error) {
 11445  	gensupport.SetOptions(c.urlParams_, opts...)
 11446  	res, err := c.doRequest("json")
 11447  	if res != nil && res.StatusCode == http.StatusNotModified {
 11448  		if res.Body != nil {
 11449  			res.Body.Close()
 11450  		}
 11451  		return nil, gensupport.WrapError(&googleapi.Error{
 11452  			Code:   res.StatusCode,
 11453  			Header: res.Header,
 11454  		})
 11455  	}
 11456  	if err != nil {
 11457  		return nil, err
 11458  	}
 11459  	defer googleapi.CloseBody(res)
 11460  	if err := googleapi.CheckResponse(res); err != nil {
 11461  		return nil, gensupport.WrapError(err)
 11462  	}
 11463  	ret := &ListBuildTriggersResponse{
 11464  		ServerResponse: googleapi.ServerResponse{
 11465  			Header:         res.Header,
 11466  			HTTPStatusCode: res.StatusCode,
 11467  		},
 11468  	}
 11469  	target := &ret
 11470  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11471  		return nil, err
 11472  	}
 11473  	return ret, nil
 11474  }
 11475  
 11476  // Pages invokes f for each page of results.
 11477  // A non-nil error returned from f will halt the iteration.
 11478  // The provided context supersedes any context provided to the Context method.
 11479  func (c *ProjectsTriggersListCall) Pages(ctx context.Context, f func(*ListBuildTriggersResponse) error) error {
 11480  	c.ctx_ = ctx
 11481  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11482  	for {
 11483  		x, err := c.Do()
 11484  		if err != nil {
 11485  			return err
 11486  		}
 11487  		if err := f(x); err != nil {
 11488  			return err
 11489  		}
 11490  		if x.NextPageToken == "" {
 11491  			return nil
 11492  		}
 11493  		c.PageToken(x.NextPageToken)
 11494  	}
 11495  }
 11496  
 11497  type ProjectsTriggersPatchCall struct {
 11498  	s            *Service
 11499  	projectId    string
 11500  	triggerId    string
 11501  	buildtrigger *BuildTrigger
 11502  	urlParams_   gensupport.URLParams
 11503  	ctx_         context.Context
 11504  	header_      http.Header
 11505  }
 11506  
 11507  // Patch: Updates a `BuildTrigger` by its project ID and trigger ID.
 11508  //
 11509  // - projectId: ID of the project that owns the trigger.
 11510  // - triggerId: ID of the `BuildTrigger` to update.
 11511  func (r *ProjectsTriggersService) Patch(projectId string, triggerId string, buildtrigger *BuildTrigger) *ProjectsTriggersPatchCall {
 11512  	c := &ProjectsTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11513  	c.projectId = projectId
 11514  	c.triggerId = triggerId
 11515  	c.buildtrigger = buildtrigger
 11516  	return c
 11517  }
 11518  
 11519  // UpdateMask sets the optional parameter "updateMask": Update mask for the
 11520  // resource. If this is set, the server will only update the fields specified
 11521  // in the field mask. Otherwise, a full update of the mutable resource fields
 11522  // will be performed.
 11523  func (c *ProjectsTriggersPatchCall) UpdateMask(updateMask string) *ProjectsTriggersPatchCall {
 11524  	c.urlParams_.Set("updateMask", updateMask)
 11525  	return c
 11526  }
 11527  
 11528  // Fields allows partial responses to be retrieved. See
 11529  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11530  // details.
 11531  func (c *ProjectsTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsTriggersPatchCall {
 11532  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11533  	return c
 11534  }
 11535  
 11536  // Context sets the context to be used in this call's Do method.
 11537  func (c *ProjectsTriggersPatchCall) Context(ctx context.Context) *ProjectsTriggersPatchCall {
 11538  	c.ctx_ = ctx
 11539  	return c
 11540  }
 11541  
 11542  // Header returns a http.Header that can be modified by the caller to add
 11543  // headers to the request.
 11544  func (c *ProjectsTriggersPatchCall) Header() http.Header {
 11545  	if c.header_ == nil {
 11546  		c.header_ = make(http.Header)
 11547  	}
 11548  	return c.header_
 11549  }
 11550  
 11551  func (c *ProjectsTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
 11552  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11553  	var body io.Reader = nil
 11554  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildtrigger)
 11555  	if err != nil {
 11556  		return nil, err
 11557  	}
 11558  	c.urlParams_.Set("alt", alt)
 11559  	c.urlParams_.Set("prettyPrint", "false")
 11560  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers/{triggerId}")
 11561  	urls += "?" + c.urlParams_.Encode()
 11562  	req, err := http.NewRequest("PATCH", urls, body)
 11563  	if err != nil {
 11564  		return nil, err
 11565  	}
 11566  	req.Header = reqHeaders
 11567  	googleapi.Expand(req.URL, map[string]string{
 11568  		"projectId": c.projectId,
 11569  		"triggerId": c.triggerId,
 11570  	})
 11571  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11572  }
 11573  
 11574  // Do executes the "cloudbuild.projects.triggers.patch" call.
 11575  // Any non-2xx status code is an error. Response headers are in either
 11576  // *BuildTrigger.ServerResponse.Header or (if a response was returned at all)
 11577  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11578  // whether the returned error was because http.StatusNotModified was returned.
 11579  func (c *ProjectsTriggersPatchCall) Do(opts ...googleapi.CallOption) (*BuildTrigger, error) {
 11580  	gensupport.SetOptions(c.urlParams_, opts...)
 11581  	res, err := c.doRequest("json")
 11582  	if res != nil && res.StatusCode == http.StatusNotModified {
 11583  		if res.Body != nil {
 11584  			res.Body.Close()
 11585  		}
 11586  		return nil, gensupport.WrapError(&googleapi.Error{
 11587  			Code:   res.StatusCode,
 11588  			Header: res.Header,
 11589  		})
 11590  	}
 11591  	if err != nil {
 11592  		return nil, err
 11593  	}
 11594  	defer googleapi.CloseBody(res)
 11595  	if err := googleapi.CheckResponse(res); err != nil {
 11596  		return nil, gensupport.WrapError(err)
 11597  	}
 11598  	ret := &BuildTrigger{
 11599  		ServerResponse: googleapi.ServerResponse{
 11600  			Header:         res.Header,
 11601  			HTTPStatusCode: res.StatusCode,
 11602  		},
 11603  	}
 11604  	target := &ret
 11605  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11606  		return nil, err
 11607  	}
 11608  	return ret, nil
 11609  }
 11610  
 11611  type ProjectsTriggersRunCall struct {
 11612  	s          *Service
 11613  	projectId  string
 11614  	triggerId  string
 11615  	reposource *RepoSource
 11616  	urlParams_ gensupport.URLParams
 11617  	ctx_       context.Context
 11618  	header_    http.Header
 11619  }
 11620  
 11621  // Run: Runs a `BuildTrigger` at a particular source revision. To run a
 11622  // regional or global trigger, use the POST request that includes the location
 11623  // endpoint in the path (ex.
 11624  // v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The
 11625  // POST request that does not include the location endpoint in the path can
 11626  // only be used when running global triggers.
 11627  //
 11628  // - projectId: ID of the project.
 11629  // - triggerId: ID of the trigger.
 11630  func (r *ProjectsTriggersService) Run(projectId string, triggerId string, reposource *RepoSource) *ProjectsTriggersRunCall {
 11631  	c := &ProjectsTriggersRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11632  	c.projectId = projectId
 11633  	c.triggerId = triggerId
 11634  	c.reposource = reposource
 11635  	return c
 11636  }
 11637  
 11638  // Name sets the optional parameter "name": The name of the `Trigger` to run.
 11639  // Format: `projects/{project}/locations/{location}/triggers/{trigger}`
 11640  func (c *ProjectsTriggersRunCall) Name(name string) *ProjectsTriggersRunCall {
 11641  	c.urlParams_.Set("name", name)
 11642  	return c
 11643  }
 11644  
 11645  // Fields allows partial responses to be retrieved. See
 11646  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11647  // details.
 11648  func (c *ProjectsTriggersRunCall) Fields(s ...googleapi.Field) *ProjectsTriggersRunCall {
 11649  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11650  	return c
 11651  }
 11652  
 11653  // Context sets the context to be used in this call's Do method.
 11654  func (c *ProjectsTriggersRunCall) Context(ctx context.Context) *ProjectsTriggersRunCall {
 11655  	c.ctx_ = ctx
 11656  	return c
 11657  }
 11658  
 11659  // Header returns a http.Header that can be modified by the caller to add
 11660  // headers to the request.
 11661  func (c *ProjectsTriggersRunCall) Header() http.Header {
 11662  	if c.header_ == nil {
 11663  		c.header_ = make(http.Header)
 11664  	}
 11665  	return c.header_
 11666  }
 11667  
 11668  func (c *ProjectsTriggersRunCall) doRequest(alt string) (*http.Response, error) {
 11669  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11670  	var body io.Reader = nil
 11671  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.reposource)
 11672  	if err != nil {
 11673  		return nil, err
 11674  	}
 11675  	c.urlParams_.Set("alt", alt)
 11676  	c.urlParams_.Set("prettyPrint", "false")
 11677  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers/{triggerId}:run")
 11678  	urls += "?" + c.urlParams_.Encode()
 11679  	req, err := http.NewRequest("POST", urls, body)
 11680  	if err != nil {
 11681  		return nil, err
 11682  	}
 11683  	req.Header = reqHeaders
 11684  	googleapi.Expand(req.URL, map[string]string{
 11685  		"projectId": c.projectId,
 11686  		"triggerId": c.triggerId,
 11687  	})
 11688  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11689  }
 11690  
 11691  // Do executes the "cloudbuild.projects.triggers.run" call.
 11692  // Any non-2xx status code is an error. Response headers are in either
 11693  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11694  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11695  // whether the returned error was because http.StatusNotModified was returned.
 11696  func (c *ProjectsTriggersRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11697  	gensupport.SetOptions(c.urlParams_, opts...)
 11698  	res, err := c.doRequest("json")
 11699  	if res != nil && res.StatusCode == http.StatusNotModified {
 11700  		if res.Body != nil {
 11701  			res.Body.Close()
 11702  		}
 11703  		return nil, gensupport.WrapError(&googleapi.Error{
 11704  			Code:   res.StatusCode,
 11705  			Header: res.Header,
 11706  		})
 11707  	}
 11708  	if err != nil {
 11709  		return nil, err
 11710  	}
 11711  	defer googleapi.CloseBody(res)
 11712  	if err := googleapi.CheckResponse(res); err != nil {
 11713  		return nil, gensupport.WrapError(err)
 11714  	}
 11715  	ret := &Operation{
 11716  		ServerResponse: googleapi.ServerResponse{
 11717  			Header:         res.Header,
 11718  			HTTPStatusCode: res.StatusCode,
 11719  		},
 11720  	}
 11721  	target := &ret
 11722  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11723  		return nil, err
 11724  	}
 11725  	return ret, nil
 11726  }
 11727  
 11728  type ProjectsTriggersWebhookCall struct {
 11729  	s          *Service
 11730  	projectId  string
 11731  	trigger    string
 11732  	httpbody   *HttpBody
 11733  	urlParams_ gensupport.URLParams
 11734  	ctx_       context.Context
 11735  	header_    http.Header
 11736  }
 11737  
 11738  // Webhook: ReceiveTriggerWebhook [Experimental] is called when the API
 11739  // receives a webhook request targeted at a specific trigger.
 11740  //
 11741  // - projectId: Project in which the specified trigger lives.
 11742  // - trigger: Name of the trigger to run the payload against.
 11743  func (r *ProjectsTriggersService) Webhook(projectId string, trigger string, httpbody *HttpBody) *ProjectsTriggersWebhookCall {
 11744  	c := &ProjectsTriggersWebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11745  	c.projectId = projectId
 11746  	c.trigger = trigger
 11747  	c.httpbody = httpbody
 11748  	return c
 11749  }
 11750  
 11751  // Name sets the optional parameter "name": The name of the
 11752  // `ReceiveTriggerWebhook` to retrieve. Format:
 11753  // `projects/{project}/locations/{location}/triggers/{trigger}`
 11754  func (c *ProjectsTriggersWebhookCall) Name(name string) *ProjectsTriggersWebhookCall {
 11755  	c.urlParams_.Set("name", name)
 11756  	return c
 11757  }
 11758  
 11759  // Secret sets the optional parameter "secret": Secret token used for
 11760  // authorization if an OAuth token isn't provided.
 11761  func (c *ProjectsTriggersWebhookCall) Secret(secret string) *ProjectsTriggersWebhookCall {
 11762  	c.urlParams_.Set("secret", secret)
 11763  	return c
 11764  }
 11765  
 11766  // Fields allows partial responses to be retrieved. See
 11767  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11768  // details.
 11769  func (c *ProjectsTriggersWebhookCall) Fields(s ...googleapi.Field) *ProjectsTriggersWebhookCall {
 11770  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11771  	return c
 11772  }
 11773  
 11774  // Context sets the context to be used in this call's Do method.
 11775  func (c *ProjectsTriggersWebhookCall) Context(ctx context.Context) *ProjectsTriggersWebhookCall {
 11776  	c.ctx_ = ctx
 11777  	return c
 11778  }
 11779  
 11780  // Header returns a http.Header that can be modified by the caller to add
 11781  // headers to the request.
 11782  func (c *ProjectsTriggersWebhookCall) Header() http.Header {
 11783  	if c.header_ == nil {
 11784  		c.header_ = make(http.Header)
 11785  	}
 11786  	return c.header_
 11787  }
 11788  
 11789  func (c *ProjectsTriggersWebhookCall) doRequest(alt string) (*http.Response, error) {
 11790  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11791  	var body io.Reader = nil
 11792  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.httpbody)
 11793  	if err != nil {
 11794  		return nil, err
 11795  	}
 11796  	c.urlParams_.Set("alt", alt)
 11797  	c.urlParams_.Set("prettyPrint", "false")
 11798  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/triggers/{trigger}:webhook")
 11799  	urls += "?" + c.urlParams_.Encode()
 11800  	req, err := http.NewRequest("POST", urls, body)
 11801  	if err != nil {
 11802  		return nil, err
 11803  	}
 11804  	req.Header = reqHeaders
 11805  	googleapi.Expand(req.URL, map[string]string{
 11806  		"projectId": c.projectId,
 11807  		"trigger":   c.trigger,
 11808  	})
 11809  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11810  }
 11811  
 11812  // Do executes the "cloudbuild.projects.triggers.webhook" call.
 11813  // Any non-2xx status code is an error. Response headers are in either
 11814  // *ReceiveTriggerWebhookResponse.ServerResponse.Header or (if a response was
 11815  // returned at all) in error.(*googleapi.Error).Header. Use
 11816  // googleapi.IsNotModified to check whether the returned error was because
 11817  // http.StatusNotModified was returned.
 11818  func (c *ProjectsTriggersWebhookCall) Do(opts ...googleapi.CallOption) (*ReceiveTriggerWebhookResponse, error) {
 11819  	gensupport.SetOptions(c.urlParams_, opts...)
 11820  	res, err := c.doRequest("json")
 11821  	if res != nil && res.StatusCode == http.StatusNotModified {
 11822  		if res.Body != nil {
 11823  			res.Body.Close()
 11824  		}
 11825  		return nil, gensupport.WrapError(&googleapi.Error{
 11826  			Code:   res.StatusCode,
 11827  			Header: res.Header,
 11828  		})
 11829  	}
 11830  	if err != nil {
 11831  		return nil, err
 11832  	}
 11833  	defer googleapi.CloseBody(res)
 11834  	if err := googleapi.CheckResponse(res); err != nil {
 11835  		return nil, gensupport.WrapError(err)
 11836  	}
 11837  	ret := &ReceiveTriggerWebhookResponse{
 11838  		ServerResponse: googleapi.ServerResponse{
 11839  			Header:         res.Header,
 11840  			HTTPStatusCode: res.StatusCode,
 11841  		},
 11842  	}
 11843  	target := &ret
 11844  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11845  		return nil, err
 11846  	}
 11847  	return ret, nil
 11848  }
 11849  
 11850  type V1WebhookCall struct {
 11851  	s          *Service
 11852  	httpbody   *HttpBody
 11853  	urlParams_ gensupport.URLParams
 11854  	ctx_       context.Context
 11855  	header_    http.Header
 11856  }
 11857  
 11858  // Webhook: ReceiveWebhook is called when the API receives a GitHub webhook.
 11859  func (r *V1Service) Webhook(httpbody *HttpBody) *V1WebhookCall {
 11860  	c := &V1WebhookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11861  	c.httpbody = httpbody
 11862  	return c
 11863  }
 11864  
 11865  // WebhookKey sets the optional parameter "webhookKey": For GitHub Enterprise
 11866  // webhooks, this key is used to associate the webhook request with the
 11867  // GitHubEnterpriseConfig to use for validation.
 11868  func (c *V1WebhookCall) WebhookKey(webhookKey string) *V1WebhookCall {
 11869  	c.urlParams_.Set("webhookKey", webhookKey)
 11870  	return c
 11871  }
 11872  
 11873  // Fields allows partial responses to be retrieved. See
 11874  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11875  // details.
 11876  func (c *V1WebhookCall) Fields(s ...googleapi.Field) *V1WebhookCall {
 11877  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11878  	return c
 11879  }
 11880  
 11881  // Context sets the context to be used in this call's Do method.
 11882  func (c *V1WebhookCall) Context(ctx context.Context) *V1WebhookCall {
 11883  	c.ctx_ = ctx
 11884  	return c
 11885  }
 11886  
 11887  // Header returns a http.Header that can be modified by the caller to add
 11888  // headers to the request.
 11889  func (c *V1WebhookCall) Header() http.Header {
 11890  	if c.header_ == nil {
 11891  		c.header_ = make(http.Header)
 11892  	}
 11893  	return c.header_
 11894  }
 11895  
 11896  func (c *V1WebhookCall) doRequest(alt string) (*http.Response, error) {
 11897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11898  	var body io.Reader = nil
 11899  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.httpbody)
 11900  	if err != nil {
 11901  		return nil, err
 11902  	}
 11903  	c.urlParams_.Set("alt", alt)
 11904  	c.urlParams_.Set("prettyPrint", "false")
 11905  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/webhook")
 11906  	urls += "?" + c.urlParams_.Encode()
 11907  	req, err := http.NewRequest("POST", urls, body)
 11908  	if err != nil {
 11909  		return nil, err
 11910  	}
 11911  	req.Header = reqHeaders
 11912  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11913  }
 11914  
 11915  // Do executes the "cloudbuild.webhook" call.
 11916  // Any non-2xx status code is an error. Response headers are in either
 11917  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11918  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11919  // whether the returned error was because http.StatusNotModified was returned.
 11920  func (c *V1WebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11921  	gensupport.SetOptions(c.urlParams_, opts...)
 11922  	res, err := c.doRequest("json")
 11923  	if res != nil && res.StatusCode == http.StatusNotModified {
 11924  		if res.Body != nil {
 11925  			res.Body.Close()
 11926  		}
 11927  		return nil, gensupport.WrapError(&googleapi.Error{
 11928  			Code:   res.StatusCode,
 11929  			Header: res.Header,
 11930  		})
 11931  	}
 11932  	if err != nil {
 11933  		return nil, err
 11934  	}
 11935  	defer googleapi.CloseBody(res)
 11936  	if err := googleapi.CheckResponse(res); err != nil {
 11937  		return nil, gensupport.WrapError(err)
 11938  	}
 11939  	ret := &Empty{
 11940  		ServerResponse: googleapi.ServerResponse{
 11941  			Header:         res.Header,
 11942  			HTTPStatusCode: res.StatusCode,
 11943  		},
 11944  	}
 11945  	target := &ret
 11946  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11947  		return nil, err
 11948  	}
 11949  	return ret, nil
 11950  }
 11951  

View as plain text