...

Source file src/google.golang.org/api/dlp/v2/dlp-gen.go

Documentation: google.golang.org/api/dlp/v2

     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 dlp provides access to the Sensitive Data Protection (DLP).
     8  //
     9  // This package is DEPRECATED. Use package cloud.google.com/go/dlp/apiv2 instead.
    10  //
    11  // For product documentation, see: https://cloud.google.com/sensitive-data-protection/docs/
    12  //
    13  // # Library status
    14  //
    15  // These client libraries are officially supported by Google. However, this
    16  // library is considered complete and is in maintenance mode. This means
    17  // that we will address critical bugs and security issues but will not add
    18  // any new features.
    19  //
    20  // When possible, we recommend using our newer
    21  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    22  // that are still actively being worked and iterated on.
    23  //
    24  // # Creating a client
    25  //
    26  // Usage example:
    27  //
    28  //	import "google.golang.org/api/dlp/v2"
    29  //	...
    30  //	ctx := context.Background()
    31  //	dlpService, err := dlp.NewService(ctx)
    32  //
    33  // In this example, Google Application Default Credentials are used for
    34  // authentication. For information on how to create and obtain Application
    35  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    36  //
    37  // # Other authentication options
    38  //
    39  // To use an API key for authentication (note: some APIs do not support API
    40  // keys), use [google.golang.org/api/option.WithAPIKey]:
    41  //
    42  //	dlpService, err := dlp.NewService(ctx, option.WithAPIKey("AIza..."))
    43  //
    44  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    45  // flow, use [google.golang.org/api/option.WithTokenSource]:
    46  //
    47  //	config := &oauth2.Config{...}
    48  //	// ...
    49  //	token, err := config.Exchange(ctx, ...)
    50  //	dlpService, err := dlp.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    51  //
    52  // See [google.golang.org/api/option.ClientOption] for details on options.
    53  package dlp // import "google.golang.org/api/dlp/v2"
    54  
    55  import (
    56  	"bytes"
    57  	"context"
    58  	"encoding/json"
    59  	"errors"
    60  	"fmt"
    61  	"io"
    62  	"net/http"
    63  	"net/url"
    64  	"strconv"
    65  	"strings"
    66  
    67  	googleapi "google.golang.org/api/googleapi"
    68  	internal "google.golang.org/api/internal"
    69  	gensupport "google.golang.org/api/internal/gensupport"
    70  	option "google.golang.org/api/option"
    71  	internaloption "google.golang.org/api/option/internaloption"
    72  	htransport "google.golang.org/api/transport/http"
    73  )
    74  
    75  // Always reference these packages, just in case the auto-generated code
    76  // below doesn't.
    77  var _ = bytes.NewBuffer
    78  var _ = strconv.Itoa
    79  var _ = fmt.Sprintf
    80  var _ = json.NewDecoder
    81  var _ = io.Copy
    82  var _ = url.Parse
    83  var _ = gensupport.MarshalJSON
    84  var _ = googleapi.Version
    85  var _ = errors.New
    86  var _ = strings.Replace
    87  var _ = context.Canceled
    88  var _ = internaloption.WithDefaultEndpoint
    89  var _ = internal.Version
    90  
    91  const apiId = "dlp:v2"
    92  const apiName = "dlp"
    93  const apiVersion = "v2"
    94  const basePath = "https://dlp.googleapis.com/"
    95  const basePathTemplate = "https://dlp.UNIVERSE_DOMAIN/"
    96  const mtlsBasePath = "https://dlp.mtls.googleapis.com/"
    97  
    98  // OAuth2 scopes used by this API.
    99  const (
   100  	// See, edit, configure, and delete your Google Cloud data and see the email
   101  	// address for your Google Account.
   102  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   103  )
   104  
   105  // NewService creates a new Service.
   106  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   107  	scopesOption := internaloption.WithDefaultScopes(
   108  		"https://www.googleapis.com/auth/cloud-platform",
   109  	)
   110  	// NOTE: prepend, so we don't override user-specified scopes.
   111  	opts = append([]option.ClientOption{scopesOption}, opts...)
   112  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   113  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   114  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   115  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   116  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   117  	if err != nil {
   118  		return nil, err
   119  	}
   120  	s, err := New(client)
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	if endpoint != "" {
   125  		s.BasePath = endpoint
   126  	}
   127  	return s, nil
   128  }
   129  
   130  // New creates a new Service. It uses the provided http.Client for requests.
   131  //
   132  // Deprecated: please use NewService instead.
   133  // To provide a custom HTTP client, use option.WithHTTPClient.
   134  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   135  func New(client *http.Client) (*Service, error) {
   136  	if client == nil {
   137  		return nil, errors.New("client is nil")
   138  	}
   139  	s := &Service{client: client, BasePath: basePath}
   140  	s.InfoTypes = NewInfoTypesService(s)
   141  	s.Locations = NewLocationsService(s)
   142  	s.Organizations = NewOrganizationsService(s)
   143  	s.Projects = NewProjectsService(s)
   144  	return s, nil
   145  }
   146  
   147  type Service struct {
   148  	client    *http.Client
   149  	BasePath  string // API endpoint base URL
   150  	UserAgent string // optional additional User-Agent fragment
   151  
   152  	InfoTypes *InfoTypesService
   153  
   154  	Locations *LocationsService
   155  
   156  	Organizations *OrganizationsService
   157  
   158  	Projects *ProjectsService
   159  }
   160  
   161  func (s *Service) userAgent() string {
   162  	if s.UserAgent == "" {
   163  		return googleapi.UserAgent
   164  	}
   165  	return googleapi.UserAgent + " " + s.UserAgent
   166  }
   167  
   168  func NewInfoTypesService(s *Service) *InfoTypesService {
   169  	rs := &InfoTypesService{s: s}
   170  	return rs
   171  }
   172  
   173  type InfoTypesService struct {
   174  	s *Service
   175  }
   176  
   177  func NewLocationsService(s *Service) *LocationsService {
   178  	rs := &LocationsService{s: s}
   179  	rs.InfoTypes = NewLocationsInfoTypesService(s)
   180  	return rs
   181  }
   182  
   183  type LocationsService struct {
   184  	s *Service
   185  
   186  	InfoTypes *LocationsInfoTypesService
   187  }
   188  
   189  func NewLocationsInfoTypesService(s *Service) *LocationsInfoTypesService {
   190  	rs := &LocationsInfoTypesService{s: s}
   191  	return rs
   192  }
   193  
   194  type LocationsInfoTypesService struct {
   195  	s *Service
   196  }
   197  
   198  func NewOrganizationsService(s *Service) *OrganizationsService {
   199  	rs := &OrganizationsService{s: s}
   200  	rs.DeidentifyTemplates = NewOrganizationsDeidentifyTemplatesService(s)
   201  	rs.InspectTemplates = NewOrganizationsInspectTemplatesService(s)
   202  	rs.Locations = NewOrganizationsLocationsService(s)
   203  	rs.StoredInfoTypes = NewOrganizationsStoredInfoTypesService(s)
   204  	return rs
   205  }
   206  
   207  type OrganizationsService struct {
   208  	s *Service
   209  
   210  	DeidentifyTemplates *OrganizationsDeidentifyTemplatesService
   211  
   212  	InspectTemplates *OrganizationsInspectTemplatesService
   213  
   214  	Locations *OrganizationsLocationsService
   215  
   216  	StoredInfoTypes *OrganizationsStoredInfoTypesService
   217  }
   218  
   219  func NewOrganizationsDeidentifyTemplatesService(s *Service) *OrganizationsDeidentifyTemplatesService {
   220  	rs := &OrganizationsDeidentifyTemplatesService{s: s}
   221  	return rs
   222  }
   223  
   224  type OrganizationsDeidentifyTemplatesService struct {
   225  	s *Service
   226  }
   227  
   228  func NewOrganizationsInspectTemplatesService(s *Service) *OrganizationsInspectTemplatesService {
   229  	rs := &OrganizationsInspectTemplatesService{s: s}
   230  	return rs
   231  }
   232  
   233  type OrganizationsInspectTemplatesService struct {
   234  	s *Service
   235  }
   236  
   237  func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService {
   238  	rs := &OrganizationsLocationsService{s: s}
   239  	rs.ColumnDataProfiles = NewOrganizationsLocationsColumnDataProfilesService(s)
   240  	rs.Connections = NewOrganizationsLocationsConnectionsService(s)
   241  	rs.DeidentifyTemplates = NewOrganizationsLocationsDeidentifyTemplatesService(s)
   242  	rs.DiscoveryConfigs = NewOrganizationsLocationsDiscoveryConfigsService(s)
   243  	rs.DlpJobs = NewOrganizationsLocationsDlpJobsService(s)
   244  	rs.InspectTemplates = NewOrganizationsLocationsInspectTemplatesService(s)
   245  	rs.JobTriggers = NewOrganizationsLocationsJobTriggersService(s)
   246  	rs.ProjectDataProfiles = NewOrganizationsLocationsProjectDataProfilesService(s)
   247  	rs.StoredInfoTypes = NewOrganizationsLocationsStoredInfoTypesService(s)
   248  	rs.TableDataProfiles = NewOrganizationsLocationsTableDataProfilesService(s)
   249  	return rs
   250  }
   251  
   252  type OrganizationsLocationsService struct {
   253  	s *Service
   254  
   255  	ColumnDataProfiles *OrganizationsLocationsColumnDataProfilesService
   256  
   257  	Connections *OrganizationsLocationsConnectionsService
   258  
   259  	DeidentifyTemplates *OrganizationsLocationsDeidentifyTemplatesService
   260  
   261  	DiscoveryConfigs *OrganizationsLocationsDiscoveryConfigsService
   262  
   263  	DlpJobs *OrganizationsLocationsDlpJobsService
   264  
   265  	InspectTemplates *OrganizationsLocationsInspectTemplatesService
   266  
   267  	JobTriggers *OrganizationsLocationsJobTriggersService
   268  
   269  	ProjectDataProfiles *OrganizationsLocationsProjectDataProfilesService
   270  
   271  	StoredInfoTypes *OrganizationsLocationsStoredInfoTypesService
   272  
   273  	TableDataProfiles *OrganizationsLocationsTableDataProfilesService
   274  }
   275  
   276  func NewOrganizationsLocationsColumnDataProfilesService(s *Service) *OrganizationsLocationsColumnDataProfilesService {
   277  	rs := &OrganizationsLocationsColumnDataProfilesService{s: s}
   278  	return rs
   279  }
   280  
   281  type OrganizationsLocationsColumnDataProfilesService struct {
   282  	s *Service
   283  }
   284  
   285  func NewOrganizationsLocationsConnectionsService(s *Service) *OrganizationsLocationsConnectionsService {
   286  	rs := &OrganizationsLocationsConnectionsService{s: s}
   287  	return rs
   288  }
   289  
   290  type OrganizationsLocationsConnectionsService struct {
   291  	s *Service
   292  }
   293  
   294  func NewOrganizationsLocationsDeidentifyTemplatesService(s *Service) *OrganizationsLocationsDeidentifyTemplatesService {
   295  	rs := &OrganizationsLocationsDeidentifyTemplatesService{s: s}
   296  	return rs
   297  }
   298  
   299  type OrganizationsLocationsDeidentifyTemplatesService struct {
   300  	s *Service
   301  }
   302  
   303  func NewOrganizationsLocationsDiscoveryConfigsService(s *Service) *OrganizationsLocationsDiscoveryConfigsService {
   304  	rs := &OrganizationsLocationsDiscoveryConfigsService{s: s}
   305  	return rs
   306  }
   307  
   308  type OrganizationsLocationsDiscoveryConfigsService struct {
   309  	s *Service
   310  }
   311  
   312  func NewOrganizationsLocationsDlpJobsService(s *Service) *OrganizationsLocationsDlpJobsService {
   313  	rs := &OrganizationsLocationsDlpJobsService{s: s}
   314  	return rs
   315  }
   316  
   317  type OrganizationsLocationsDlpJobsService struct {
   318  	s *Service
   319  }
   320  
   321  func NewOrganizationsLocationsInspectTemplatesService(s *Service) *OrganizationsLocationsInspectTemplatesService {
   322  	rs := &OrganizationsLocationsInspectTemplatesService{s: s}
   323  	return rs
   324  }
   325  
   326  type OrganizationsLocationsInspectTemplatesService struct {
   327  	s *Service
   328  }
   329  
   330  func NewOrganizationsLocationsJobTriggersService(s *Service) *OrganizationsLocationsJobTriggersService {
   331  	rs := &OrganizationsLocationsJobTriggersService{s: s}
   332  	return rs
   333  }
   334  
   335  type OrganizationsLocationsJobTriggersService struct {
   336  	s *Service
   337  }
   338  
   339  func NewOrganizationsLocationsProjectDataProfilesService(s *Service) *OrganizationsLocationsProjectDataProfilesService {
   340  	rs := &OrganizationsLocationsProjectDataProfilesService{s: s}
   341  	return rs
   342  }
   343  
   344  type OrganizationsLocationsProjectDataProfilesService struct {
   345  	s *Service
   346  }
   347  
   348  func NewOrganizationsLocationsStoredInfoTypesService(s *Service) *OrganizationsLocationsStoredInfoTypesService {
   349  	rs := &OrganizationsLocationsStoredInfoTypesService{s: s}
   350  	return rs
   351  }
   352  
   353  type OrganizationsLocationsStoredInfoTypesService struct {
   354  	s *Service
   355  }
   356  
   357  func NewOrganizationsLocationsTableDataProfilesService(s *Service) *OrganizationsLocationsTableDataProfilesService {
   358  	rs := &OrganizationsLocationsTableDataProfilesService{s: s}
   359  	return rs
   360  }
   361  
   362  type OrganizationsLocationsTableDataProfilesService struct {
   363  	s *Service
   364  }
   365  
   366  func NewOrganizationsStoredInfoTypesService(s *Service) *OrganizationsStoredInfoTypesService {
   367  	rs := &OrganizationsStoredInfoTypesService{s: s}
   368  	return rs
   369  }
   370  
   371  type OrganizationsStoredInfoTypesService struct {
   372  	s *Service
   373  }
   374  
   375  func NewProjectsService(s *Service) *ProjectsService {
   376  	rs := &ProjectsService{s: s}
   377  	rs.Content = NewProjectsContentService(s)
   378  	rs.DeidentifyTemplates = NewProjectsDeidentifyTemplatesService(s)
   379  	rs.DlpJobs = NewProjectsDlpJobsService(s)
   380  	rs.Image = NewProjectsImageService(s)
   381  	rs.InspectTemplates = NewProjectsInspectTemplatesService(s)
   382  	rs.JobTriggers = NewProjectsJobTriggersService(s)
   383  	rs.Locations = NewProjectsLocationsService(s)
   384  	rs.StoredInfoTypes = NewProjectsStoredInfoTypesService(s)
   385  	return rs
   386  }
   387  
   388  type ProjectsService struct {
   389  	s *Service
   390  
   391  	Content *ProjectsContentService
   392  
   393  	DeidentifyTemplates *ProjectsDeidentifyTemplatesService
   394  
   395  	DlpJobs *ProjectsDlpJobsService
   396  
   397  	Image *ProjectsImageService
   398  
   399  	InspectTemplates *ProjectsInspectTemplatesService
   400  
   401  	JobTriggers *ProjectsJobTriggersService
   402  
   403  	Locations *ProjectsLocationsService
   404  
   405  	StoredInfoTypes *ProjectsStoredInfoTypesService
   406  }
   407  
   408  func NewProjectsContentService(s *Service) *ProjectsContentService {
   409  	rs := &ProjectsContentService{s: s}
   410  	return rs
   411  }
   412  
   413  type ProjectsContentService struct {
   414  	s *Service
   415  }
   416  
   417  func NewProjectsDeidentifyTemplatesService(s *Service) *ProjectsDeidentifyTemplatesService {
   418  	rs := &ProjectsDeidentifyTemplatesService{s: s}
   419  	return rs
   420  }
   421  
   422  type ProjectsDeidentifyTemplatesService struct {
   423  	s *Service
   424  }
   425  
   426  func NewProjectsDlpJobsService(s *Service) *ProjectsDlpJobsService {
   427  	rs := &ProjectsDlpJobsService{s: s}
   428  	return rs
   429  }
   430  
   431  type ProjectsDlpJobsService struct {
   432  	s *Service
   433  }
   434  
   435  func NewProjectsImageService(s *Service) *ProjectsImageService {
   436  	rs := &ProjectsImageService{s: s}
   437  	return rs
   438  }
   439  
   440  type ProjectsImageService struct {
   441  	s *Service
   442  }
   443  
   444  func NewProjectsInspectTemplatesService(s *Service) *ProjectsInspectTemplatesService {
   445  	rs := &ProjectsInspectTemplatesService{s: s}
   446  	return rs
   447  }
   448  
   449  type ProjectsInspectTemplatesService struct {
   450  	s *Service
   451  }
   452  
   453  func NewProjectsJobTriggersService(s *Service) *ProjectsJobTriggersService {
   454  	rs := &ProjectsJobTriggersService{s: s}
   455  	return rs
   456  }
   457  
   458  type ProjectsJobTriggersService struct {
   459  	s *Service
   460  }
   461  
   462  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   463  	rs := &ProjectsLocationsService{s: s}
   464  	rs.ColumnDataProfiles = NewProjectsLocationsColumnDataProfilesService(s)
   465  	rs.Connections = NewProjectsLocationsConnectionsService(s)
   466  	rs.Content = NewProjectsLocationsContentService(s)
   467  	rs.DeidentifyTemplates = NewProjectsLocationsDeidentifyTemplatesService(s)
   468  	rs.DiscoveryConfigs = NewProjectsLocationsDiscoveryConfigsService(s)
   469  	rs.DlpJobs = NewProjectsLocationsDlpJobsService(s)
   470  	rs.Image = NewProjectsLocationsImageService(s)
   471  	rs.InspectTemplates = NewProjectsLocationsInspectTemplatesService(s)
   472  	rs.JobTriggers = NewProjectsLocationsJobTriggersService(s)
   473  	rs.ProjectDataProfiles = NewProjectsLocationsProjectDataProfilesService(s)
   474  	rs.StoredInfoTypes = NewProjectsLocationsStoredInfoTypesService(s)
   475  	rs.TableDataProfiles = NewProjectsLocationsTableDataProfilesService(s)
   476  	return rs
   477  }
   478  
   479  type ProjectsLocationsService struct {
   480  	s *Service
   481  
   482  	ColumnDataProfiles *ProjectsLocationsColumnDataProfilesService
   483  
   484  	Connections *ProjectsLocationsConnectionsService
   485  
   486  	Content *ProjectsLocationsContentService
   487  
   488  	DeidentifyTemplates *ProjectsLocationsDeidentifyTemplatesService
   489  
   490  	DiscoveryConfigs *ProjectsLocationsDiscoveryConfigsService
   491  
   492  	DlpJobs *ProjectsLocationsDlpJobsService
   493  
   494  	Image *ProjectsLocationsImageService
   495  
   496  	InspectTemplates *ProjectsLocationsInspectTemplatesService
   497  
   498  	JobTriggers *ProjectsLocationsJobTriggersService
   499  
   500  	ProjectDataProfiles *ProjectsLocationsProjectDataProfilesService
   501  
   502  	StoredInfoTypes *ProjectsLocationsStoredInfoTypesService
   503  
   504  	TableDataProfiles *ProjectsLocationsTableDataProfilesService
   505  }
   506  
   507  func NewProjectsLocationsColumnDataProfilesService(s *Service) *ProjectsLocationsColumnDataProfilesService {
   508  	rs := &ProjectsLocationsColumnDataProfilesService{s: s}
   509  	return rs
   510  }
   511  
   512  type ProjectsLocationsColumnDataProfilesService struct {
   513  	s *Service
   514  }
   515  
   516  func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService {
   517  	rs := &ProjectsLocationsConnectionsService{s: s}
   518  	return rs
   519  }
   520  
   521  type ProjectsLocationsConnectionsService struct {
   522  	s *Service
   523  }
   524  
   525  func NewProjectsLocationsContentService(s *Service) *ProjectsLocationsContentService {
   526  	rs := &ProjectsLocationsContentService{s: s}
   527  	return rs
   528  }
   529  
   530  type ProjectsLocationsContentService struct {
   531  	s *Service
   532  }
   533  
   534  func NewProjectsLocationsDeidentifyTemplatesService(s *Service) *ProjectsLocationsDeidentifyTemplatesService {
   535  	rs := &ProjectsLocationsDeidentifyTemplatesService{s: s}
   536  	return rs
   537  }
   538  
   539  type ProjectsLocationsDeidentifyTemplatesService struct {
   540  	s *Service
   541  }
   542  
   543  func NewProjectsLocationsDiscoveryConfigsService(s *Service) *ProjectsLocationsDiscoveryConfigsService {
   544  	rs := &ProjectsLocationsDiscoveryConfigsService{s: s}
   545  	return rs
   546  }
   547  
   548  type ProjectsLocationsDiscoveryConfigsService struct {
   549  	s *Service
   550  }
   551  
   552  func NewProjectsLocationsDlpJobsService(s *Service) *ProjectsLocationsDlpJobsService {
   553  	rs := &ProjectsLocationsDlpJobsService{s: s}
   554  	return rs
   555  }
   556  
   557  type ProjectsLocationsDlpJobsService struct {
   558  	s *Service
   559  }
   560  
   561  func NewProjectsLocationsImageService(s *Service) *ProjectsLocationsImageService {
   562  	rs := &ProjectsLocationsImageService{s: s}
   563  	return rs
   564  }
   565  
   566  type ProjectsLocationsImageService struct {
   567  	s *Service
   568  }
   569  
   570  func NewProjectsLocationsInspectTemplatesService(s *Service) *ProjectsLocationsInspectTemplatesService {
   571  	rs := &ProjectsLocationsInspectTemplatesService{s: s}
   572  	return rs
   573  }
   574  
   575  type ProjectsLocationsInspectTemplatesService struct {
   576  	s *Service
   577  }
   578  
   579  func NewProjectsLocationsJobTriggersService(s *Service) *ProjectsLocationsJobTriggersService {
   580  	rs := &ProjectsLocationsJobTriggersService{s: s}
   581  	return rs
   582  }
   583  
   584  type ProjectsLocationsJobTriggersService struct {
   585  	s *Service
   586  }
   587  
   588  func NewProjectsLocationsProjectDataProfilesService(s *Service) *ProjectsLocationsProjectDataProfilesService {
   589  	rs := &ProjectsLocationsProjectDataProfilesService{s: s}
   590  	return rs
   591  }
   592  
   593  type ProjectsLocationsProjectDataProfilesService struct {
   594  	s *Service
   595  }
   596  
   597  func NewProjectsLocationsStoredInfoTypesService(s *Service) *ProjectsLocationsStoredInfoTypesService {
   598  	rs := &ProjectsLocationsStoredInfoTypesService{s: s}
   599  	return rs
   600  }
   601  
   602  type ProjectsLocationsStoredInfoTypesService struct {
   603  	s *Service
   604  }
   605  
   606  func NewProjectsLocationsTableDataProfilesService(s *Service) *ProjectsLocationsTableDataProfilesService {
   607  	rs := &ProjectsLocationsTableDataProfilesService{s: s}
   608  	return rs
   609  }
   610  
   611  type ProjectsLocationsTableDataProfilesService struct {
   612  	s *Service
   613  }
   614  
   615  func NewProjectsStoredInfoTypesService(s *Service) *ProjectsStoredInfoTypesService {
   616  	rs := &ProjectsStoredInfoTypesService{s: s}
   617  	return rs
   618  }
   619  
   620  type ProjectsStoredInfoTypesService struct {
   621  	s *Service
   622  }
   623  
   624  // GooglePrivacyDlpV2Action: A task to execute on the completion of a job. See
   625  // https://cloud.google.com/sensitive-data-protection/docs/concepts-actions to
   626  // learn more.
   627  type GooglePrivacyDlpV2Action struct {
   628  	// Deidentify: Create a de-identified copy of the input data.
   629  	Deidentify *GooglePrivacyDlpV2Deidentify `json:"deidentify,omitempty"`
   630  	// JobNotificationEmails: Sends an email when the job completes. The email goes
   631  	// to IAM project owners and technical Essential Contacts
   632  	// (https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
   633  	JobNotificationEmails *GooglePrivacyDlpV2JobNotificationEmails `json:"jobNotificationEmails,omitempty"`
   634  	// PubSub: Publish a notification to a Pub/Sub topic.
   635  	PubSub *GooglePrivacyDlpV2PublishToPubSub `json:"pubSub,omitempty"`
   636  	// PublishFindingsToCloudDataCatalog: Publish findings to Cloud Datahub.
   637  	PublishFindingsToCloudDataCatalog *GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog `json:"publishFindingsToCloudDataCatalog,omitempty"`
   638  	// PublishSummaryToCscc: Publish summary to Cloud Security Command Center
   639  	// (Alpha).
   640  	PublishSummaryToCscc *GooglePrivacyDlpV2PublishSummaryToCscc `json:"publishSummaryToCscc,omitempty"`
   641  	// PublishToStackdriver: Enable Stackdriver metric
   642  	// dlp.googleapis.com/finding_count.
   643  	PublishToStackdriver *GooglePrivacyDlpV2PublishToStackdriver `json:"publishToStackdriver,omitempty"`
   644  	// SaveFindings: Save resulting findings in a provided location.
   645  	SaveFindings *GooglePrivacyDlpV2SaveFindings `json:"saveFindings,omitempty"`
   646  	// ForceSendFields is a list of field names (e.g. "Deidentify") to
   647  	// unconditionally include in API requests. By default, fields with empty or
   648  	// default values are omitted from API requests. See
   649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   650  	// details.
   651  	ForceSendFields []string `json:"-"`
   652  	// NullFields is a list of field names (e.g. "Deidentify") to include in API
   653  	// requests with the JSON null value. By default, fields with empty values are
   654  	// omitted from API requests. See
   655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   656  	NullFields []string `json:"-"`
   657  }
   658  
   659  func (s *GooglePrivacyDlpV2Action) MarshalJSON() ([]byte, error) {
   660  	type NoMethod GooglePrivacyDlpV2Action
   661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   662  }
   663  
   664  // GooglePrivacyDlpV2ActionDetails: The results of an Action.
   665  type GooglePrivacyDlpV2ActionDetails struct {
   666  	// DeidentifyDetails: Outcome of a de-identification action.
   667  	DeidentifyDetails *GooglePrivacyDlpV2DeidentifyDataSourceDetails `json:"deidentifyDetails,omitempty"`
   668  	// ForceSendFields is a list of field names (e.g. "DeidentifyDetails") to
   669  	// unconditionally include in API requests. By default, fields with empty or
   670  	// default values are omitted from API requests. See
   671  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   672  	// details.
   673  	ForceSendFields []string `json:"-"`
   674  	// NullFields is a list of field names (e.g. "DeidentifyDetails") to include in
   675  	// API requests with the JSON null value. By default, fields with empty values
   676  	// are omitted from API requests. See
   677  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   678  	NullFields []string `json:"-"`
   679  }
   680  
   681  func (s *GooglePrivacyDlpV2ActionDetails) MarshalJSON() ([]byte, error) {
   682  	type NoMethod GooglePrivacyDlpV2ActionDetails
   683  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   684  }
   685  
   686  // GooglePrivacyDlpV2ActivateJobTriggerRequest: Request message for
   687  // ActivateJobTrigger.
   688  type GooglePrivacyDlpV2ActivateJobTriggerRequest struct {
   689  }
   690  
   691  // GooglePrivacyDlpV2AllInfoTypes: Apply transformation to all findings.
   692  type GooglePrivacyDlpV2AllInfoTypes struct {
   693  }
   694  
   695  // GooglePrivacyDlpV2AllOtherBigQueryTables: Catch-all for all other tables not
   696  // specified by other filters. Should always be last, except for single-table
   697  // configurations, which will only have a TableReference target.
   698  type GooglePrivacyDlpV2AllOtherBigQueryTables struct {
   699  }
   700  
   701  // GooglePrivacyDlpV2AllOtherDatabaseResources: Match database resources not
   702  // covered by any other filter.
   703  type GooglePrivacyDlpV2AllOtherDatabaseResources struct {
   704  }
   705  
   706  // GooglePrivacyDlpV2AllText: Apply to all text.
   707  type GooglePrivacyDlpV2AllText struct {
   708  }
   709  
   710  // GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails: Result of a risk analysis
   711  // operation request.
   712  type GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails struct {
   713  	// CategoricalStatsResult: Categorical stats result
   714  	CategoricalStatsResult *GooglePrivacyDlpV2CategoricalStatsResult `json:"categoricalStatsResult,omitempty"`
   715  	// DeltaPresenceEstimationResult: Delta-presence result
   716  	DeltaPresenceEstimationResult *GooglePrivacyDlpV2DeltaPresenceEstimationResult `json:"deltaPresenceEstimationResult,omitempty"`
   717  	// KAnonymityResult: K-anonymity result
   718  	KAnonymityResult *GooglePrivacyDlpV2KAnonymityResult `json:"kAnonymityResult,omitempty"`
   719  	// KMapEstimationResult: K-map result
   720  	KMapEstimationResult *GooglePrivacyDlpV2KMapEstimationResult `json:"kMapEstimationResult,omitempty"`
   721  	// LDiversityResult: L-divesity result
   722  	LDiversityResult *GooglePrivacyDlpV2LDiversityResult `json:"lDiversityResult,omitempty"`
   723  	// NumericalStatsResult: Numerical stats result
   724  	NumericalStatsResult *GooglePrivacyDlpV2NumericalStatsResult `json:"numericalStatsResult,omitempty"`
   725  	// RequestedOptions: The configuration used for this job.
   726  	RequestedOptions *GooglePrivacyDlpV2RequestedRiskAnalysisOptions `json:"requestedOptions,omitempty"`
   727  	// RequestedPrivacyMetric: Privacy metric to compute.
   728  	RequestedPrivacyMetric *GooglePrivacyDlpV2PrivacyMetric `json:"requestedPrivacyMetric,omitempty"`
   729  	// RequestedSourceTable: Input dataset to compute metrics over.
   730  	RequestedSourceTable *GooglePrivacyDlpV2BigQueryTable `json:"requestedSourceTable,omitempty"`
   731  	// ForceSendFields is a list of field names (e.g. "CategoricalStatsResult") to
   732  	// unconditionally include in API requests. By default, fields with empty or
   733  	// default values are omitted from API requests. See
   734  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   735  	// details.
   736  	ForceSendFields []string `json:"-"`
   737  	// NullFields is a list of field names (e.g. "CategoricalStatsResult") to
   738  	// include in API requests with the JSON null value. By default, fields with
   739  	// empty values are omitted from API requests. See
   740  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   741  	NullFields []string `json:"-"`
   742  }
   743  
   744  func (s *GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails) MarshalJSON() ([]byte, error) {
   745  	type NoMethod GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
   746  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   747  }
   748  
   749  // GooglePrivacyDlpV2AuxiliaryTable: An auxiliary table contains statistical
   750  // information on the relative frequency of different quasi-identifiers values.
   751  // It has one or several quasi-identifiers columns, and one column that
   752  // indicates the relative frequency of each quasi-identifier tuple. If a tuple
   753  // is present in the data but not in the auxiliary table, the corresponding
   754  // relative frequency is assumed to be zero (and thus, the tuple is highly
   755  // reidentifiable).
   756  type GooglePrivacyDlpV2AuxiliaryTable struct {
   757  	// QuasiIds: Required. Quasi-identifier columns.
   758  	QuasiIds []*GooglePrivacyDlpV2QuasiIdField `json:"quasiIds,omitempty"`
   759  	// RelativeFrequency: Required. The relative frequency column must contain a
   760  	// floating-point number between 0 and 1 (inclusive). Null values are assumed
   761  	// to be zero.
   762  	RelativeFrequency *GooglePrivacyDlpV2FieldId `json:"relativeFrequency,omitempty"`
   763  	// Table: Required. Auxiliary table location.
   764  	Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
   765  	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
   766  	// unconditionally include in API requests. By default, fields with empty or
   767  	// default values are omitted from API requests. See
   768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   769  	// details.
   770  	ForceSendFields []string `json:"-"`
   771  	// NullFields is a list of field names (e.g. "QuasiIds") to include in API
   772  	// requests with the JSON null value. By default, fields with empty values are
   773  	// omitted from API requests. See
   774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   775  	NullFields []string `json:"-"`
   776  }
   777  
   778  func (s *GooglePrivacyDlpV2AuxiliaryTable) MarshalJSON() ([]byte, error) {
   779  	type NoMethod GooglePrivacyDlpV2AuxiliaryTable
   780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   781  }
   782  
   783  // GooglePrivacyDlpV2BigQueryDiscoveryTarget: Target used to match against for
   784  // discovery with BigQuery tables
   785  type GooglePrivacyDlpV2BigQueryDiscoveryTarget struct {
   786  	// Cadence: How often and when to update profiles. New tables that match both
   787  	// the filter and conditions are scanned as quickly as possible depending on
   788  	// system capacity.
   789  	Cadence *GooglePrivacyDlpV2DiscoveryGenerationCadence `json:"cadence,omitempty"`
   790  	// Conditions: In addition to matching the filter, these conditions must be
   791  	// true before a profile is generated.
   792  	Conditions *GooglePrivacyDlpV2DiscoveryBigQueryConditions `json:"conditions,omitempty"`
   793  	// Disabled: Tables that match this filter will not have profiles created.
   794  	Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"`
   795  	// Filter: Required. The tables the discovery cadence applies to. The first
   796  	// target with a matching filter will be the one to apply to a table.
   797  	Filter *GooglePrivacyDlpV2DiscoveryBigQueryFilter `json:"filter,omitempty"`
   798  	// ForceSendFields is a list of field names (e.g. "Cadence") to unconditionally
   799  	// include in API requests. By default, fields with empty or default values are
   800  	// omitted from API requests. See
   801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   802  	// details.
   803  	ForceSendFields []string `json:"-"`
   804  	// NullFields is a list of field names (e.g. "Cadence") to include in API
   805  	// requests with the JSON null value. By default, fields with empty values are
   806  	// omitted from API requests. See
   807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   808  	NullFields []string `json:"-"`
   809  }
   810  
   811  func (s *GooglePrivacyDlpV2BigQueryDiscoveryTarget) MarshalJSON() ([]byte, error) {
   812  	type NoMethod GooglePrivacyDlpV2BigQueryDiscoveryTarget
   813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   814  }
   815  
   816  // GooglePrivacyDlpV2BigQueryField: Message defining a field of a BigQuery
   817  // table.
   818  type GooglePrivacyDlpV2BigQueryField struct {
   819  	// Field: Designated field in the BigQuery table.
   820  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
   821  	// Table: Source table of the field.
   822  	Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
   823  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
   824  	// include in API requests. By default, fields with empty or default values are
   825  	// omitted from API requests. See
   826  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   827  	// details.
   828  	ForceSendFields []string `json:"-"`
   829  	// NullFields is a list of field names (e.g. "Field") to include in API
   830  	// requests with the JSON null value. By default, fields with empty values are
   831  	// omitted from API requests. See
   832  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   833  	NullFields []string `json:"-"`
   834  }
   835  
   836  func (s *GooglePrivacyDlpV2BigQueryField) MarshalJSON() ([]byte, error) {
   837  	type NoMethod GooglePrivacyDlpV2BigQueryField
   838  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   839  }
   840  
   841  // GooglePrivacyDlpV2BigQueryKey: Row key for identifying a record in BigQuery
   842  // table.
   843  type GooglePrivacyDlpV2BigQueryKey struct {
   844  	// RowNumber: Row number inferred at the time the table was scanned. This value
   845  	// is nondeterministic, cannot be queried, and may be null for inspection jobs.
   846  	// To locate findings within a table, specify
   847  	// `inspect_job.storage_config.big_query_options.identifying_fields` in
   848  	// `CreateDlpJobRequest`.
   849  	RowNumber int64 `json:"rowNumber,omitempty,string"`
   850  	// TableReference: Complete BigQuery table reference.
   851  	TableReference *GooglePrivacyDlpV2BigQueryTable `json:"tableReference,omitempty"`
   852  	// ForceSendFields is a list of field names (e.g. "RowNumber") to
   853  	// unconditionally include in API requests. By default, fields with empty or
   854  	// default values are omitted from API requests. See
   855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   856  	// details.
   857  	ForceSendFields []string `json:"-"`
   858  	// NullFields is a list of field names (e.g. "RowNumber") to include in API
   859  	// requests with the JSON null value. By default, fields with empty values are
   860  	// omitted from API requests. See
   861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   862  	NullFields []string `json:"-"`
   863  }
   864  
   865  func (s *GooglePrivacyDlpV2BigQueryKey) MarshalJSON() ([]byte, error) {
   866  	type NoMethod GooglePrivacyDlpV2BigQueryKey
   867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   868  }
   869  
   870  // GooglePrivacyDlpV2BigQueryOptions: Options defining BigQuery table and row
   871  // identifiers.
   872  type GooglePrivacyDlpV2BigQueryOptions struct {
   873  	// ExcludedFields: References to fields excluded from scanning. This allows you
   874  	// to skip inspection of entire columns which you know have no findings. When
   875  	// inspecting a table, we recommend that you inspect all columns. Otherwise,
   876  	// findings might be affected because hints from excluded columns will not be
   877  	// used.
   878  	ExcludedFields []*GooglePrivacyDlpV2FieldId `json:"excludedFields,omitempty"`
   879  	// IdentifyingFields: Table fields that may uniquely identify a row within the
   880  	// table. When `actions.saveFindings.outputConfig.table` is specified, the
   881  	// values of columns specified here are available in the output table under
   882  	// `location.content_locations.record_location.record_key.id_values`. Nested
   883  	// fields such as `person.birthdate.year` are allowed.
   884  	IdentifyingFields []*GooglePrivacyDlpV2FieldId `json:"identifyingFields,omitempty"`
   885  	// IncludedFields: Limit scanning only to these fields. When inspecting a
   886  	// table, we recommend that you inspect all columns. Otherwise, findings might
   887  	// be affected because hints from excluded columns will not be used.
   888  	IncludedFields []*GooglePrivacyDlpV2FieldId `json:"includedFields,omitempty"`
   889  	// RowsLimit: Max number of rows to scan. If the table has more rows than this
   890  	// value, the rest of the rows are omitted. If not set, or if set to 0, all
   891  	// rows will be scanned. Only one of rows_limit and rows_limit_percent can be
   892  	// specified. Cannot be used in conjunction with TimespanConfig.
   893  	RowsLimit int64 `json:"rowsLimit,omitempty,string"`
   894  	// RowsLimitPercent: Max percentage of rows to scan. The rest are omitted. The
   895  	// number of rows scanned is rounded down. Must be between 0 and 100,
   896  	// inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
   897  	// rows_limit and rows_limit_percent can be specified. Cannot be used in
   898  	// conjunction with TimespanConfig. Caution: A known issue
   899  	// (https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling)
   900  	// is causing the `rowsLimitPercent` field to behave unexpectedly. We recommend
   901  	// using `rowsLimit` instead.
   902  	RowsLimitPercent int64 `json:"rowsLimitPercent,omitempty"`
   903  	// SampleMethod: How to sample the data.
   904  	//
   905  	// Possible values:
   906  	//   "SAMPLE_METHOD_UNSPECIFIED" - No sampling.
   907  	//   "TOP" - Scan groups of rows in the order BigQuery provides (default).
   908  	// Multiple groups of rows may be scanned in parallel, so results may not
   909  	// appear in the same order the rows are read.
   910  	//   "RANDOM_START" - Randomly pick groups of rows to scan.
   911  	SampleMethod string `json:"sampleMethod,omitempty"`
   912  	// TableReference: Complete BigQuery table reference.
   913  	TableReference *GooglePrivacyDlpV2BigQueryTable `json:"tableReference,omitempty"`
   914  	// ForceSendFields is a list of field names (e.g. "ExcludedFields") to
   915  	// unconditionally include in API requests. By default, fields with empty or
   916  	// default values are omitted from API requests. See
   917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   918  	// details.
   919  	ForceSendFields []string `json:"-"`
   920  	// NullFields is a list of field names (e.g. "ExcludedFields") to include in
   921  	// API requests with the JSON null value. By default, fields with empty values
   922  	// are omitted from API requests. See
   923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   924  	NullFields []string `json:"-"`
   925  }
   926  
   927  func (s *GooglePrivacyDlpV2BigQueryOptions) MarshalJSON() ([]byte, error) {
   928  	type NoMethod GooglePrivacyDlpV2BigQueryOptions
   929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   930  }
   931  
   932  // GooglePrivacyDlpV2BigQueryRegex: A pattern to match against one or more
   933  // tables, datasets, or projects that contain BigQuery tables. At least one
   934  // pattern must be specified. Regular expressions use RE2 syntax
   935  // (https://github.com/google/re2/wiki/Syntax); a guide can be found under the
   936  // google/re2 repository on GitHub.
   937  type GooglePrivacyDlpV2BigQueryRegex struct {
   938  	// DatasetIdRegex: If unset, this property matches all datasets.
   939  	DatasetIdRegex string `json:"datasetIdRegex,omitempty"`
   940  	// ProjectIdRegex: For organizations, if unset, will match all projects. Has no
   941  	// effect for data profile configurations created within a project.
   942  	ProjectIdRegex string `json:"projectIdRegex,omitempty"`
   943  	// TableIdRegex: If unset, this property matches all tables.
   944  	TableIdRegex string `json:"tableIdRegex,omitempty"`
   945  	// ForceSendFields is a list of field names (e.g. "DatasetIdRegex") to
   946  	// unconditionally include in API requests. By default, fields with empty or
   947  	// default values are omitted from API requests. See
   948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   949  	// details.
   950  	ForceSendFields []string `json:"-"`
   951  	// NullFields is a list of field names (e.g. "DatasetIdRegex") to include in
   952  	// API requests with the JSON null value. By default, fields with empty values
   953  	// are omitted from API requests. See
   954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   955  	NullFields []string `json:"-"`
   956  }
   957  
   958  func (s *GooglePrivacyDlpV2BigQueryRegex) MarshalJSON() ([]byte, error) {
   959  	type NoMethod GooglePrivacyDlpV2BigQueryRegex
   960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   961  }
   962  
   963  // GooglePrivacyDlpV2BigQueryRegexes: A collection of regular expressions to
   964  // determine what tables to match against.
   965  type GooglePrivacyDlpV2BigQueryRegexes struct {
   966  	// Patterns: A single BigQuery regular expression pattern to match against one
   967  	// or more tables, datasets, or projects that contain BigQuery tables.
   968  	Patterns []*GooglePrivacyDlpV2BigQueryRegex `json:"patterns,omitempty"`
   969  	// ForceSendFields is a list of field names (e.g. "Patterns") to
   970  	// unconditionally include in API requests. By default, fields with empty or
   971  	// default values are omitted from API requests. See
   972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   973  	// details.
   974  	ForceSendFields []string `json:"-"`
   975  	// NullFields is a list of field names (e.g. "Patterns") to include in API
   976  	// requests with the JSON null value. By default, fields with empty values are
   977  	// omitted from API requests. See
   978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   979  	NullFields []string `json:"-"`
   980  }
   981  
   982  func (s *GooglePrivacyDlpV2BigQueryRegexes) MarshalJSON() ([]byte, error) {
   983  	type NoMethod GooglePrivacyDlpV2BigQueryRegexes
   984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   985  }
   986  
   987  // GooglePrivacyDlpV2BigQueryTable: Message defining the location of a BigQuery
   988  // table. A table is uniquely identified by its project_id, dataset_id, and
   989  // table_name. Within a query a table is often referenced with a string in the
   990  // format of: `:.` or `..`.
   991  type GooglePrivacyDlpV2BigQueryTable struct {
   992  	// DatasetId: Dataset ID of the table.
   993  	DatasetId string `json:"datasetId,omitempty"`
   994  	// ProjectId: The Google Cloud Platform project ID of the project containing
   995  	// the table. If omitted, project ID is inferred from the API call.
   996  	ProjectId string `json:"projectId,omitempty"`
   997  	// TableId: Name of the table.
   998  	TableId string `json:"tableId,omitempty"`
   999  	// ForceSendFields is a list of field names (e.g. "DatasetId") to
  1000  	// unconditionally include in API requests. By default, fields with empty or
  1001  	// default values are omitted from API requests. See
  1002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1003  	// details.
  1004  	ForceSendFields []string `json:"-"`
  1005  	// NullFields is a list of field names (e.g. "DatasetId") to include in API
  1006  	// requests with the JSON null value. By default, fields with empty values are
  1007  	// omitted from API requests. See
  1008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1009  	NullFields []string `json:"-"`
  1010  }
  1011  
  1012  func (s *GooglePrivacyDlpV2BigQueryTable) MarshalJSON() ([]byte, error) {
  1013  	type NoMethod GooglePrivacyDlpV2BigQueryTable
  1014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1015  }
  1016  
  1017  // GooglePrivacyDlpV2BigQueryTableCollection: Specifies a collection of
  1018  // BigQuery tables. Used for Discovery.
  1019  type GooglePrivacyDlpV2BigQueryTableCollection struct {
  1020  	// IncludeRegexes: A collection of regular expressions to match a BigQuery
  1021  	// table against.
  1022  	IncludeRegexes *GooglePrivacyDlpV2BigQueryRegexes `json:"includeRegexes,omitempty"`
  1023  	// ForceSendFields is a list of field names (e.g. "IncludeRegexes") to
  1024  	// unconditionally include in API requests. By default, fields with empty or
  1025  	// default values are omitted from API requests. See
  1026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1027  	// details.
  1028  	ForceSendFields []string `json:"-"`
  1029  	// NullFields is a list of field names (e.g. "IncludeRegexes") to include in
  1030  	// API requests with the JSON null value. By default, fields with empty values
  1031  	// are omitted from API requests. See
  1032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1033  	NullFields []string `json:"-"`
  1034  }
  1035  
  1036  func (s *GooglePrivacyDlpV2BigQueryTableCollection) MarshalJSON() ([]byte, error) {
  1037  	type NoMethod GooglePrivacyDlpV2BigQueryTableCollection
  1038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1039  }
  1040  
  1041  // GooglePrivacyDlpV2BigQueryTableTypes: The types of BigQuery tables supported
  1042  // by Cloud DLP.
  1043  type GooglePrivacyDlpV2BigQueryTableTypes struct {
  1044  	// Types: A set of BigQuery table types.
  1045  	//
  1046  	// Possible values:
  1047  	//   "BIG_QUERY_TABLE_TYPE_UNSPECIFIED" - Unused.
  1048  	//   "BIG_QUERY_TABLE_TYPE_TABLE" - A normal BigQuery table.
  1049  	//   "BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE" - A table that references data
  1050  	// stored in Cloud Storage.
  1051  	Types []string `json:"types,omitempty"`
  1052  	// ForceSendFields is a list of field names (e.g. "Types") to unconditionally
  1053  	// include in API requests. By default, fields with empty or default values are
  1054  	// omitted from API requests. See
  1055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1056  	// details.
  1057  	ForceSendFields []string `json:"-"`
  1058  	// NullFields is a list of field names (e.g. "Types") to include in API
  1059  	// requests with the JSON null value. By default, fields with empty values are
  1060  	// omitted from API requests. See
  1061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1062  	NullFields []string `json:"-"`
  1063  }
  1064  
  1065  func (s *GooglePrivacyDlpV2BigQueryTableTypes) MarshalJSON() ([]byte, error) {
  1066  	type NoMethod GooglePrivacyDlpV2BigQueryTableTypes
  1067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1068  }
  1069  
  1070  // GooglePrivacyDlpV2BoundingBox: Bounding box encompassing detected text
  1071  // within an image.
  1072  type GooglePrivacyDlpV2BoundingBox struct {
  1073  	// Height: Height of the bounding box in pixels.
  1074  	Height int64 `json:"height,omitempty"`
  1075  	// Left: Left coordinate of the bounding box. (0,0) is upper left.
  1076  	Left int64 `json:"left,omitempty"`
  1077  	// Top: Top coordinate of the bounding box. (0,0) is upper left.
  1078  	Top int64 `json:"top,omitempty"`
  1079  	// Width: Width of the bounding box in pixels.
  1080  	Width int64 `json:"width,omitempty"`
  1081  	// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
  1082  	// include in API requests. By default, fields with empty or default values are
  1083  	// omitted from API requests. See
  1084  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1085  	// details.
  1086  	ForceSendFields []string `json:"-"`
  1087  	// NullFields is a list of field names (e.g. "Height") to include in API
  1088  	// requests with the JSON null value. By default, fields with empty values are
  1089  	// omitted from API requests. See
  1090  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1091  	NullFields []string `json:"-"`
  1092  }
  1093  
  1094  func (s *GooglePrivacyDlpV2BoundingBox) MarshalJSON() ([]byte, error) {
  1095  	type NoMethod GooglePrivacyDlpV2BoundingBox
  1096  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1097  }
  1098  
  1099  // GooglePrivacyDlpV2Bucket: Bucket is represented as a range, along with
  1100  // replacement values.
  1101  type GooglePrivacyDlpV2Bucket struct {
  1102  	// Max: Upper bound of the range, exclusive; type must match min.
  1103  	Max *GooglePrivacyDlpV2Value `json:"max,omitempty"`
  1104  	// Min: Lower bound of the range, inclusive. Type should be the same as max if
  1105  	// used.
  1106  	Min *GooglePrivacyDlpV2Value `json:"min,omitempty"`
  1107  	// ReplacementValue: Required. Replacement value for this bucket.
  1108  	ReplacementValue *GooglePrivacyDlpV2Value `json:"replacementValue,omitempty"`
  1109  	// ForceSendFields is a list of field names (e.g. "Max") to unconditionally
  1110  	// include in API requests. By default, fields with empty or default values are
  1111  	// omitted from API requests. See
  1112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1113  	// details.
  1114  	ForceSendFields []string `json:"-"`
  1115  	// NullFields is a list of field names (e.g. "Max") to include in API requests
  1116  	// with the JSON null value. By default, fields with empty values are omitted
  1117  	// from API requests. See
  1118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1119  	NullFields []string `json:"-"`
  1120  }
  1121  
  1122  func (s *GooglePrivacyDlpV2Bucket) MarshalJSON() ([]byte, error) {
  1123  	type NoMethod GooglePrivacyDlpV2Bucket
  1124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1125  }
  1126  
  1127  // GooglePrivacyDlpV2BucketingConfig: Generalization function that buckets
  1128  // values based on ranges. The ranges and replacement values are dynamically
  1129  // provided by the user for custom behavior, such as 1-30 -> LOW 31-65 ->
  1130  // MEDIUM 66-100 -> HIGH This can be used on data of type: number, long,
  1131  // string, timestamp. If the bound `Value` type differs from the type of data
  1132  // being transformed, we will first attempt converting the type of the data to
  1133  // be transformed to match the type of the bound before comparing. See
  1134  // https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing
  1135  // to learn more.
  1136  type GooglePrivacyDlpV2BucketingConfig struct {
  1137  	// Buckets: Set of buckets. Ranges must be non-overlapping.
  1138  	Buckets []*GooglePrivacyDlpV2Bucket `json:"buckets,omitempty"`
  1139  	// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally
  1140  	// include in API requests. By default, fields with empty or default values are
  1141  	// omitted from API requests. See
  1142  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1143  	// details.
  1144  	ForceSendFields []string `json:"-"`
  1145  	// NullFields is a list of field names (e.g. "Buckets") to include in API
  1146  	// requests with the JSON null value. By default, fields with empty values are
  1147  	// omitted from API requests. See
  1148  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1149  	NullFields []string `json:"-"`
  1150  }
  1151  
  1152  func (s *GooglePrivacyDlpV2BucketingConfig) MarshalJSON() ([]byte, error) {
  1153  	type NoMethod GooglePrivacyDlpV2BucketingConfig
  1154  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1155  }
  1156  
  1157  // GooglePrivacyDlpV2ByteContentItem: Container for bytes to inspect or redact.
  1158  type GooglePrivacyDlpV2ByteContentItem struct {
  1159  	// Data: Content data to inspect or redact.
  1160  	Data string `json:"data,omitempty"`
  1161  	// Type: The type of data stored in the bytes string. Default will be
  1162  	// TEXT_UTF8.
  1163  	//
  1164  	// Possible values:
  1165  	//   "BYTES_TYPE_UNSPECIFIED" - Unused
  1166  	//   "IMAGE" - Any image type.
  1167  	//   "IMAGE_JPEG" - jpeg
  1168  	//   "IMAGE_BMP" - bmp
  1169  	//   "IMAGE_PNG" - png
  1170  	//   "IMAGE_SVG" - svg
  1171  	//   "TEXT_UTF8" - plain text
  1172  	//   "WORD_DOCUMENT" - docx, docm, dotx, dotm
  1173  	//   "PDF" - pdf
  1174  	//   "POWERPOINT_DOCUMENT" - pptx, pptm, potx, potm, pot
  1175  	//   "EXCEL_DOCUMENT" - xlsx, xlsm, xltx, xltm
  1176  	//   "AVRO" - avro
  1177  	//   "CSV" - csv
  1178  	//   "TSV" - tsv
  1179  	Type string `json:"type,omitempty"`
  1180  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  1181  	// include in API requests. By default, fields with empty or default values are
  1182  	// omitted from API requests. See
  1183  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1184  	// details.
  1185  	ForceSendFields []string `json:"-"`
  1186  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  1187  	// with the JSON null value. By default, fields with empty values are omitted
  1188  	// from API requests. See
  1189  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1190  	NullFields []string `json:"-"`
  1191  }
  1192  
  1193  func (s *GooglePrivacyDlpV2ByteContentItem) MarshalJSON() ([]byte, error) {
  1194  	type NoMethod GooglePrivacyDlpV2ByteContentItem
  1195  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1196  }
  1197  
  1198  // GooglePrivacyDlpV2CancelDlpJobRequest: The request message for canceling a
  1199  // DLP job.
  1200  type GooglePrivacyDlpV2CancelDlpJobRequest struct {
  1201  }
  1202  
  1203  // GooglePrivacyDlpV2CategoricalStatsConfig: Compute numerical stats over an
  1204  // individual column, including number of distinct values and value count
  1205  // distribution.
  1206  type GooglePrivacyDlpV2CategoricalStatsConfig struct {
  1207  	// Field: Field to compute categorical stats on. All column types are supported
  1208  	// except for arrays and structs. However, it may be more informative to use
  1209  	// NumericalStats when the field type is supported, depending on the data.
  1210  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  1211  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  1212  	// include in API requests. By default, fields with empty or default values are
  1213  	// omitted from API requests. See
  1214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1215  	// details.
  1216  	ForceSendFields []string `json:"-"`
  1217  	// NullFields is a list of field names (e.g. "Field") to include in API
  1218  	// requests with the JSON null value. By default, fields with empty values are
  1219  	// omitted from API requests. See
  1220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1221  	NullFields []string `json:"-"`
  1222  }
  1223  
  1224  func (s *GooglePrivacyDlpV2CategoricalStatsConfig) MarshalJSON() ([]byte, error) {
  1225  	type NoMethod GooglePrivacyDlpV2CategoricalStatsConfig
  1226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1227  }
  1228  
  1229  // GooglePrivacyDlpV2CategoricalStatsHistogramBucket: Histogram of value
  1230  // frequencies in the column.
  1231  type GooglePrivacyDlpV2CategoricalStatsHistogramBucket struct {
  1232  	// BucketSize: Total number of values in this bucket.
  1233  	BucketSize int64 `json:"bucketSize,omitempty,string"`
  1234  	// BucketValueCount: Total number of distinct values in this bucket.
  1235  	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
  1236  	// BucketValues: Sample of value frequencies in this bucket. The total number
  1237  	// of values returned per bucket is capped at 20.
  1238  	BucketValues []*GooglePrivacyDlpV2ValueFrequency `json:"bucketValues,omitempty"`
  1239  	// ValueFrequencyLowerBound: Lower bound on the value frequency of the values
  1240  	// in this bucket.
  1241  	ValueFrequencyLowerBound int64 `json:"valueFrequencyLowerBound,omitempty,string"`
  1242  	// ValueFrequencyUpperBound: Upper bound on the value frequency of the values
  1243  	// in this bucket.
  1244  	ValueFrequencyUpperBound int64 `json:"valueFrequencyUpperBound,omitempty,string"`
  1245  	// ForceSendFields is a list of field names (e.g. "BucketSize") to
  1246  	// unconditionally include in API requests. By default, fields with empty or
  1247  	// default values are omitted from API requests. See
  1248  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1249  	// details.
  1250  	ForceSendFields []string `json:"-"`
  1251  	// NullFields is a list of field names (e.g. "BucketSize") to include in API
  1252  	// requests with the JSON null value. By default, fields with empty values are
  1253  	// omitted from API requests. See
  1254  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1255  	NullFields []string `json:"-"`
  1256  }
  1257  
  1258  func (s *GooglePrivacyDlpV2CategoricalStatsHistogramBucket) MarshalJSON() ([]byte, error) {
  1259  	type NoMethod GooglePrivacyDlpV2CategoricalStatsHistogramBucket
  1260  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1261  }
  1262  
  1263  // GooglePrivacyDlpV2CategoricalStatsResult: Result of the categorical stats
  1264  // computation.
  1265  type GooglePrivacyDlpV2CategoricalStatsResult struct {
  1266  	// ValueFrequencyHistogramBuckets: Histogram of value frequencies in the
  1267  	// column.
  1268  	ValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2CategoricalStatsHistogramBucket `json:"valueFrequencyHistogramBuckets,omitempty"`
  1269  	// ForceSendFields is a list of field names (e.g.
  1270  	// "ValueFrequencyHistogramBuckets") to unconditionally include in API
  1271  	// requests. By default, fields with empty or default values are omitted from
  1272  	// API requests. See
  1273  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1274  	// details.
  1275  	ForceSendFields []string `json:"-"`
  1276  	// NullFields is a list of field names (e.g. "ValueFrequencyHistogramBuckets")
  1277  	// to include in API requests with the JSON null value. By default, fields with
  1278  	// empty values are omitted from API requests. See
  1279  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1280  	NullFields []string `json:"-"`
  1281  }
  1282  
  1283  func (s *GooglePrivacyDlpV2CategoricalStatsResult) MarshalJSON() ([]byte, error) {
  1284  	type NoMethod GooglePrivacyDlpV2CategoricalStatsResult
  1285  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1286  }
  1287  
  1288  // GooglePrivacyDlpV2CharacterMaskConfig: Partially mask a string by replacing
  1289  // a given number of characters with a fixed character. Masking can start from
  1290  // the beginning or end of the string. This can be used on data of any type
  1291  // (numbers, longs, and so on) and when de-identifying structured data we'll
  1292  // attempt to preserve the original data's type. (This allows you to take a
  1293  // long like 123 and modify it to a string like **3.
  1294  type GooglePrivacyDlpV2CharacterMaskConfig struct {
  1295  	// CharactersToIgnore: When masking a string, items in this list will be
  1296  	// skipped when replacing characters. For example, if the input string is
  1297  	// `555-555-5555` and you instruct Cloud DLP to skip `-` and mask 5 characters
  1298  	// with `*`, Cloud DLP returns `***-**5-5555`.
  1299  	CharactersToIgnore []*GooglePrivacyDlpV2CharsToIgnore `json:"charactersToIgnore,omitempty"`
  1300  	// MaskingCharacter: Character to use to mask the sensitive values—for
  1301  	// example, `*` for an alphabetic string such as a name, or `0` for a numeric
  1302  	// string such as ZIP code or credit card number. This string must have a
  1303  	// length of 1. If not supplied, this value defaults to `*` for strings, and
  1304  	// `0` for digits.
  1305  	MaskingCharacter string `json:"maskingCharacter,omitempty"`
  1306  	// NumberToMask: Number of characters to mask. If not set, all matching chars
  1307  	// will be masked. Skipped characters do not count towards this tally. If
  1308  	// `number_to_mask` is negative, this denotes inverse masking. Cloud DLP masks
  1309  	// all but a number of characters. For example, suppose you have the following
  1310  	// values: - `masking_character` is `*` - `number_to_mask` is `-4` -
  1311  	// `reverse_order` is `false` - `CharsToIgnore` includes `-` - Input string is
  1312  	// `1234-5678-9012-3456` The resulting de-identified string is
  1313  	// `****-****-****-3456`. Cloud DLP masks all but the last four characters. If
  1314  	// `reverse_order` is `true`, all but the first four characters are masked as
  1315  	// `1234-****-****-****`.
  1316  	NumberToMask int64 `json:"numberToMask,omitempty"`
  1317  	// ReverseOrder: Mask characters in reverse order. For example, if
  1318  	// `masking_character` is `0`, `number_to_mask` is `14`, and `reverse_order` is
  1319  	// `false`, then the input string `1234-5678-9012-3456` is masked as
  1320  	// `00000000000000-3456`. If `masking_character` is `*`, `number_to_mask` is
  1321  	// `3`, and `reverse_order` is `true`, then the string `12345` is masked as
  1322  	// `12***`.
  1323  	ReverseOrder bool `json:"reverseOrder,omitempty"`
  1324  	// ForceSendFields is a list of field names (e.g. "CharactersToIgnore") to
  1325  	// unconditionally include in API requests. By default, fields with empty or
  1326  	// default values are omitted from API requests. See
  1327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1328  	// details.
  1329  	ForceSendFields []string `json:"-"`
  1330  	// NullFields is a list of field names (e.g. "CharactersToIgnore") to include
  1331  	// in API requests with the JSON null value. By default, fields with empty
  1332  	// values are omitted from API requests. See
  1333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1334  	NullFields []string `json:"-"`
  1335  }
  1336  
  1337  func (s *GooglePrivacyDlpV2CharacterMaskConfig) MarshalJSON() ([]byte, error) {
  1338  	type NoMethod GooglePrivacyDlpV2CharacterMaskConfig
  1339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1340  }
  1341  
  1342  // GooglePrivacyDlpV2CharsToIgnore: Characters to skip when doing
  1343  // deidentification of a value. These will be left alone and skipped.
  1344  type GooglePrivacyDlpV2CharsToIgnore struct {
  1345  	// CharactersToSkip: Characters to not transform when masking.
  1346  	CharactersToSkip string `json:"charactersToSkip,omitempty"`
  1347  	// CommonCharactersToIgnore: Common characters to not transform when masking.
  1348  	// Useful to avoid removing punctuation.
  1349  	//
  1350  	// Possible values:
  1351  	//   "COMMON_CHARS_TO_IGNORE_UNSPECIFIED" - Unused.
  1352  	//   "NUMERIC" - 0-9
  1353  	//   "ALPHA_UPPER_CASE" - A-Z
  1354  	//   "ALPHA_LOWER_CASE" - a-z
  1355  	//   "PUNCTUATION" - US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
  1356  	//   "WHITESPACE" - Whitespace character, one of [ \t\n\x0B\f\r]
  1357  	CommonCharactersToIgnore string `json:"commonCharactersToIgnore,omitempty"`
  1358  	// ForceSendFields is a list of field names (e.g. "CharactersToSkip") to
  1359  	// unconditionally include in API requests. By default, fields with empty or
  1360  	// default values are omitted from API requests. See
  1361  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1362  	// details.
  1363  	ForceSendFields []string `json:"-"`
  1364  	// NullFields is a list of field names (e.g. "CharactersToSkip") to include in
  1365  	// API requests with the JSON null value. By default, fields with empty values
  1366  	// are omitted from API requests. See
  1367  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1368  	NullFields []string `json:"-"`
  1369  }
  1370  
  1371  func (s *GooglePrivacyDlpV2CharsToIgnore) MarshalJSON() ([]byte, error) {
  1372  	type NoMethod GooglePrivacyDlpV2CharsToIgnore
  1373  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1374  }
  1375  
  1376  // GooglePrivacyDlpV2CloudSqlDiscoveryTarget: Target used to match against for
  1377  // discovery with Cloud SQL tables.
  1378  type GooglePrivacyDlpV2CloudSqlDiscoveryTarget struct {
  1379  	// Conditions: In addition to matching the filter, these conditions must be
  1380  	// true before a profile is generated.
  1381  	Conditions *GooglePrivacyDlpV2DiscoveryCloudSqlConditions `json:"conditions,omitempty"`
  1382  	// Disabled: Disable profiling for database resources that match this filter.
  1383  	Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"`
  1384  	// Filter: Required. The tables the discovery cadence applies to. The first
  1385  	// target with a matching filter will be the one to apply to a table.
  1386  	Filter *GooglePrivacyDlpV2DiscoveryCloudSqlFilter `json:"filter,omitempty"`
  1387  	// GenerationCadence: How often and when to update profiles. New tables that
  1388  	// match both the filter and conditions are scanned as quickly as possible
  1389  	// depending on system capacity.
  1390  	GenerationCadence *GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence `json:"generationCadence,omitempty"`
  1391  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  1392  	// unconditionally include in API requests. By default, fields with empty or
  1393  	// default values are omitted from API requests. See
  1394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1395  	// details.
  1396  	ForceSendFields []string `json:"-"`
  1397  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  1398  	// requests with the JSON null value. By default, fields with empty values are
  1399  	// omitted from API requests. See
  1400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1401  	NullFields []string `json:"-"`
  1402  }
  1403  
  1404  func (s *GooglePrivacyDlpV2CloudSqlDiscoveryTarget) MarshalJSON() ([]byte, error) {
  1405  	type NoMethod GooglePrivacyDlpV2CloudSqlDiscoveryTarget
  1406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1407  }
  1408  
  1409  // GooglePrivacyDlpV2CloudSqlIamCredential: Use IAM auth to connect. This
  1410  // requires the Cloud SQL IAM feature to be enabled on the instance, which is
  1411  // not the default for Cloud SQL. See
  1412  // https://cloud.google.com/sql/docs/postgres/authentication and
  1413  // https://cloud.google.com/sql/docs/mysql/authentication.
  1414  type GooglePrivacyDlpV2CloudSqlIamCredential struct {
  1415  }
  1416  
  1417  // GooglePrivacyDlpV2CloudSqlProperties: Cloud SQL connection properties.
  1418  type GooglePrivacyDlpV2CloudSqlProperties struct {
  1419  	// CloudSqlIam: Built-in IAM authentication (must be configured in Cloud SQL).
  1420  	CloudSqlIam *GooglePrivacyDlpV2CloudSqlIamCredential `json:"cloudSqlIam,omitempty"`
  1421  	// ConnectionName: Optional. Immutable. The Cloud SQL instance for which the
  1422  	// connection is defined. Only one connection per instance is allowed. This can
  1423  	// only be set at creation time, and cannot be updated. It is an error to use a
  1424  	// connection_name from different project or region than the one that holds the
  1425  	// connection. For example, a Connection resource for Cloud SQL connection_name
  1426  	// `project-id:us-central1:sql-instance` must be created under the parent
  1427  	// `projects/project-id/locations/us-central1`
  1428  	ConnectionName string `json:"connectionName,omitempty"`
  1429  	// DatabaseEngine: Required. The database engine used by the Cloud SQL instance
  1430  	// that this connection configures.
  1431  	//
  1432  	// Possible values:
  1433  	//   "DATABASE_ENGINE_UNKNOWN" - An engine that is not currently supported by
  1434  	// SDP.
  1435  	//   "DATABASE_ENGINE_MYSQL" - Cloud SQL for MySQL instance.
  1436  	//   "DATABASE_ENGINE_POSTGRES" - Cloud SQL for Postgres instance.
  1437  	DatabaseEngine string `json:"databaseEngine,omitempty"`
  1438  	// MaxConnections: Required. DLP will limit its connections to max_connections.
  1439  	// Must be 2 or greater.
  1440  	MaxConnections int64 `json:"maxConnections,omitempty"`
  1441  	// UsernamePassword: A username and password stored in Secret Manager.
  1442  	UsernamePassword *GooglePrivacyDlpV2SecretManagerCredential `json:"usernamePassword,omitempty"`
  1443  	// ForceSendFields is a list of field names (e.g. "CloudSqlIam") to
  1444  	// unconditionally include in API requests. By default, fields with empty or
  1445  	// default values are omitted from API requests. See
  1446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1447  	// details.
  1448  	ForceSendFields []string `json:"-"`
  1449  	// NullFields is a list of field names (e.g. "CloudSqlIam") to include in API
  1450  	// requests with the JSON null value. By default, fields with empty values are
  1451  	// omitted from API requests. See
  1452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1453  	NullFields []string `json:"-"`
  1454  }
  1455  
  1456  func (s *GooglePrivacyDlpV2CloudSqlProperties) MarshalJSON() ([]byte, error) {
  1457  	type NoMethod GooglePrivacyDlpV2CloudSqlProperties
  1458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1459  }
  1460  
  1461  // GooglePrivacyDlpV2CloudStorageFileSet: Message representing a set of files
  1462  // in Cloud Storage.
  1463  type GooglePrivacyDlpV2CloudStorageFileSet struct {
  1464  	// Url: The url, in the format `gs:///`. Trailing wildcard in the path is
  1465  	// allowed.
  1466  	Url string `json:"url,omitempty"`
  1467  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
  1468  	// include in API requests. By default, fields with empty or default values are
  1469  	// omitted from API requests. See
  1470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1471  	// details.
  1472  	ForceSendFields []string `json:"-"`
  1473  	// NullFields is a list of field names (e.g. "Url") to include in API requests
  1474  	// with the JSON null value. By default, fields with empty values are omitted
  1475  	// from API requests. See
  1476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1477  	NullFields []string `json:"-"`
  1478  }
  1479  
  1480  func (s *GooglePrivacyDlpV2CloudStorageFileSet) MarshalJSON() ([]byte, error) {
  1481  	type NoMethod GooglePrivacyDlpV2CloudStorageFileSet
  1482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1483  }
  1484  
  1485  // GooglePrivacyDlpV2CloudStorageOptions: Options defining a file or a set of
  1486  // files within a Cloud Storage bucket.
  1487  type GooglePrivacyDlpV2CloudStorageOptions struct {
  1488  	// BytesLimitPerFile: Max number of bytes to scan from a file. If a scanned
  1489  	// file's size is bigger than this value then the rest of the bytes are
  1490  	// omitted. Only one of `bytes_limit_per_file` and
  1491  	// `bytes_limit_per_file_percent` can be specified. This field can't be set if
  1492  	// de-identification is requested. For certain file types, setting this field
  1493  	// has no effect. For more information, see Limits on bytes scanned per file
  1494  	// (https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
  1495  	BytesLimitPerFile int64 `json:"bytesLimitPerFile,omitempty,string"`
  1496  	// BytesLimitPerFilePercent: Max percentage of bytes to scan from a file. The
  1497  	// rest are omitted. The number of bytes scanned is rounded down. Must be
  1498  	// between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to
  1499  	// 0. Only one of bytes_limit_per_file and bytes_limit_per_file_percent can be
  1500  	// specified. This field can't be set if de-identification is requested. For
  1501  	// certain file types, setting this field has no effect. For more information,
  1502  	// see Limits on bytes scanned per file
  1503  	// (https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
  1504  	BytesLimitPerFilePercent int64 `json:"bytesLimitPerFilePercent,omitempty"`
  1505  	// FileSet: The set of one or more files to scan.
  1506  	FileSet *GooglePrivacyDlpV2FileSet `json:"fileSet,omitempty"`
  1507  	// FileTypes: List of file type groups to include in the scan. If empty, all
  1508  	// files are scanned and available data format processors are applied. In
  1509  	// addition, the binary content of the selected files is always scanned as
  1510  	// well. Images are scanned only as binary if the specified region does not
  1511  	// support image inspection and no file_types were specified. Image inspection
  1512  	// is restricted to 'global', 'us', 'asia', and 'europe'.
  1513  	//
  1514  	// Possible values:
  1515  	//   "FILE_TYPE_UNSPECIFIED" - Includes all files.
  1516  	//   "BINARY_FILE" - Includes all file extensions not covered by another entry.
  1517  	// Binary scanning attempts to convert the content of the file to utf_8 to scan
  1518  	// the file. If you wish to avoid this fall back, specify one or more of the
  1519  	// other file types in your storage scan.
  1520  	//   "TEXT_FILE" - Included file extensions: asc,asp, aspx, brf, c, cc,cfm,
  1521  	// cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h,
  1522  	// hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl,
  1523  	// plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc,
  1524  	// scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js,
  1525  	// json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml,
  1526  	// xcodeproj, xml, xsl, xsd, yml, yaml.
  1527  	//   "IMAGE" - Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting
  1528  	// bytes_limit_per_file or bytes_limit_per_file_percent has no effect on image
  1529  	// files. Image inspection is restricted to the `global`, `us`, `asia`, and
  1530  	// `europe` regions.
  1531  	//   "WORD" - Microsoft Word files larger than 30 MB will be scanned as binary
  1532  	// files. Included file extensions: docx, dotx, docm, dotm. Setting
  1533  	// `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on
  1534  	// Word files.
  1535  	//   "PDF" - PDF files larger than 30 MB will be scanned as binary files.
  1536  	// Included file extensions: pdf. Setting `bytes_limit_per_file` or
  1537  	// `bytes_limit_per_file_percent` has no effect on PDF files.
  1538  	//   "AVRO" - Included file extensions: avro
  1539  	//   "CSV" - Included file extensions: csv
  1540  	//   "TSV" - Included file extensions: tsv
  1541  	//   "POWERPOINT" - Microsoft PowerPoint files larger than 30 MB will be
  1542  	// scanned as binary files. Included file extensions: pptx, pptm, potx, potm,
  1543  	// pot. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no
  1544  	// effect on PowerPoint files.
  1545  	//   "EXCEL" - Microsoft Excel files larger than 30 MB will be scanned as
  1546  	// binary files. Included file extensions: xlsx, xlsm, xltx, xltm. Setting
  1547  	// `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on
  1548  	// Excel files.
  1549  	FileTypes []string `json:"fileTypes,omitempty"`
  1550  	// FilesLimitPercent: Limits the number of files to scan to this percentage of
  1551  	// the input FileSet. Number of files scanned is rounded down. Must be between
  1552  	// 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0.
  1553  	FilesLimitPercent int64 `json:"filesLimitPercent,omitempty"`
  1554  	// SampleMethod: How to sample the data.
  1555  	//
  1556  	// Possible values:
  1557  	//   "SAMPLE_METHOD_UNSPECIFIED" - No sampling.
  1558  	//   "TOP" - Scan from the top (default).
  1559  	//   "RANDOM_START" - For each file larger than bytes_limit_per_file, randomly
  1560  	// pick the offset to start scanning. The scanned bytes are contiguous.
  1561  	SampleMethod string `json:"sampleMethod,omitempty"`
  1562  	// ForceSendFields is a list of field names (e.g. "BytesLimitPerFile") to
  1563  	// unconditionally include in API requests. By default, fields with empty or
  1564  	// default values are omitted from API requests. See
  1565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1566  	// details.
  1567  	ForceSendFields []string `json:"-"`
  1568  	// NullFields is a list of field names (e.g. "BytesLimitPerFile") to include in
  1569  	// API requests with the JSON null value. By default, fields with empty values
  1570  	// are omitted from API requests. See
  1571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1572  	NullFields []string `json:"-"`
  1573  }
  1574  
  1575  func (s *GooglePrivacyDlpV2CloudStorageOptions) MarshalJSON() ([]byte, error) {
  1576  	type NoMethod GooglePrivacyDlpV2CloudStorageOptions
  1577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1578  }
  1579  
  1580  // GooglePrivacyDlpV2CloudStoragePath: Message representing a single file or
  1581  // path in Cloud Storage.
  1582  type GooglePrivacyDlpV2CloudStoragePath struct {
  1583  	// Path: A URL representing a file or path (no wildcards) in Cloud Storage.
  1584  	// Example: `gs://[BUCKET_NAME]/dictionary.txt`
  1585  	Path string `json:"path,omitempty"`
  1586  	// ForceSendFields is a list of field names (e.g. "Path") to unconditionally
  1587  	// include in API requests. By default, fields with empty or default values are
  1588  	// omitted from API requests. See
  1589  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1590  	// details.
  1591  	ForceSendFields []string `json:"-"`
  1592  	// NullFields is a list of field names (e.g. "Path") to include in API requests
  1593  	// with the JSON null value. By default, fields with empty values are omitted
  1594  	// from API requests. See
  1595  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1596  	NullFields []string `json:"-"`
  1597  }
  1598  
  1599  func (s *GooglePrivacyDlpV2CloudStoragePath) MarshalJSON() ([]byte, error) {
  1600  	type NoMethod GooglePrivacyDlpV2CloudStoragePath
  1601  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1602  }
  1603  
  1604  // GooglePrivacyDlpV2CloudStorageRegexFileSet: Message representing a set of
  1605  // files in a Cloud Storage bucket. Regular expressions are used to allow
  1606  // fine-grained control over which files in the bucket to include. Included
  1607  // files are those that match at least one item in `include_regex` and do not
  1608  // match any items in `exclude_regex`. Note that a file that matches items from
  1609  // both lists will _not_ be included. For a match to occur, the entire file
  1610  // path (i.e., everything in the url after the bucket name) must match the
  1611  // regular expression. For example, given the input `{bucket_name: "mybucket",
  1612  // include_regex: ["directory1/.*"], exclude_regex:
  1613  // ["directory1/excluded.*"]}`: * `gs://mybucket/directory1/myfile` will be
  1614  // included * `gs://mybucket/directory1/directory2/myfile` will be included
  1615  // (`.*` matches across `/`) * `gs://mybucket/directory0/directory1/myfile`
  1616  // will _not_ be included (the full path doesn't match any items in
  1617  // `include_regex`) * `gs://mybucket/directory1/excludedfile` will _not_ be
  1618  // included (the path matches an item in `exclude_regex`) If `include_regex` is
  1619  // left empty, it will match all files by default (this is equivalent to
  1620  // setting `include_regex: [".*"]`). Some other common use cases: *
  1621  // `{bucket_name: "mybucket", exclude_regex: [".*\.pdf"]}` will include all
  1622  // files in `mybucket` except for .pdf files * `{bucket_name: "mybucket",
  1623  // include_regex: ["directory/[^/]+"]}` will include all files directly under
  1624  // `gs://mybucket/directory/`, without matching across `/`
  1625  type GooglePrivacyDlpV2CloudStorageRegexFileSet struct {
  1626  	// BucketName: The name of a Cloud Storage bucket. Required.
  1627  	BucketName string `json:"bucketName,omitempty"`
  1628  	// ExcludeRegex: A list of regular expressions matching file paths to exclude.
  1629  	// All files in the bucket that match at least one of these regular expressions
  1630  	// will be excluded from the scan. Regular expressions use RE2 syntax
  1631  	// (https://github.com/google/re2/wiki/Syntax); a guide can be found under the
  1632  	// google/re2 repository on GitHub.
  1633  	ExcludeRegex []string `json:"excludeRegex,omitempty"`
  1634  	// IncludeRegex: A list of regular expressions matching file paths to include.
  1635  	// All files in the bucket that match at least one of these regular expressions
  1636  	// will be included in the set of files, except for those that also match an
  1637  	// item in `exclude_regex`. Leaving this field empty will match all files by
  1638  	// default (this is equivalent to including `.*` in the list). Regular
  1639  	// expressions use RE2 syntax (https://github.com/google/re2/wiki/Syntax); a
  1640  	// guide can be found under the google/re2 repository on GitHub.
  1641  	IncludeRegex []string `json:"includeRegex,omitempty"`
  1642  	// ForceSendFields is a list of field names (e.g. "BucketName") to
  1643  	// unconditionally include in API requests. By default, fields with empty or
  1644  	// default values are omitted from API requests. See
  1645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1646  	// details.
  1647  	ForceSendFields []string `json:"-"`
  1648  	// NullFields is a list of field names (e.g. "BucketName") to include in API
  1649  	// requests with the JSON null value. By default, fields with empty values are
  1650  	// omitted from API requests. See
  1651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1652  	NullFields []string `json:"-"`
  1653  }
  1654  
  1655  func (s *GooglePrivacyDlpV2CloudStorageRegexFileSet) MarshalJSON() ([]byte, error) {
  1656  	type NoMethod GooglePrivacyDlpV2CloudStorageRegexFileSet
  1657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1658  }
  1659  
  1660  // GooglePrivacyDlpV2Color: Represents a color in the RGB color space.
  1661  type GooglePrivacyDlpV2Color struct {
  1662  	// Blue: The amount of blue in the color as a value in the interval [0, 1].
  1663  	Blue float64 `json:"blue,omitempty"`
  1664  	// Green: The amount of green in the color as a value in the interval [0, 1].
  1665  	Green float64 `json:"green,omitempty"`
  1666  	// Red: The amount of red in the color as a value in the interval [0, 1].
  1667  	Red float64 `json:"red,omitempty"`
  1668  	// ForceSendFields is a list of field names (e.g. "Blue") to unconditionally
  1669  	// include in API requests. By default, fields with empty or default values are
  1670  	// omitted from API requests. See
  1671  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1672  	// details.
  1673  	ForceSendFields []string `json:"-"`
  1674  	// NullFields is a list of field names (e.g. "Blue") to include in API requests
  1675  	// with the JSON null value. By default, fields with empty values are omitted
  1676  	// from API requests. See
  1677  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1678  	NullFields []string `json:"-"`
  1679  }
  1680  
  1681  func (s *GooglePrivacyDlpV2Color) MarshalJSON() ([]byte, error) {
  1682  	type NoMethod GooglePrivacyDlpV2Color
  1683  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1684  }
  1685  
  1686  func (s *GooglePrivacyDlpV2Color) UnmarshalJSON(data []byte) error {
  1687  	type NoMethod GooglePrivacyDlpV2Color
  1688  	var s1 struct {
  1689  		Blue  gensupport.JSONFloat64 `json:"blue"`
  1690  		Green gensupport.JSONFloat64 `json:"green"`
  1691  		Red   gensupport.JSONFloat64 `json:"red"`
  1692  		*NoMethod
  1693  	}
  1694  	s1.NoMethod = (*NoMethod)(s)
  1695  	if err := json.Unmarshal(data, &s1); err != nil {
  1696  		return err
  1697  	}
  1698  	s.Blue = float64(s1.Blue)
  1699  	s.Green = float64(s1.Green)
  1700  	s.Red = float64(s1.Red)
  1701  	return nil
  1702  }
  1703  
  1704  // GooglePrivacyDlpV2ColumnDataProfile: The profile for a scanned column within
  1705  // a table.
  1706  type GooglePrivacyDlpV2ColumnDataProfile struct {
  1707  	// Column: The name of the column.
  1708  	Column string `json:"column,omitempty"`
  1709  	// ColumnInfoType: If it's been determined this column can be identified as a
  1710  	// single type, this will be set. Otherwise the column either has
  1711  	// unidentifiable content or mixed types.
  1712  	ColumnInfoType *GooglePrivacyDlpV2InfoTypeSummary `json:"columnInfoType,omitempty"`
  1713  	// ColumnType: The data type of a given column.
  1714  	//
  1715  	// Possible values:
  1716  	//   "COLUMN_DATA_TYPE_UNSPECIFIED" - Invalid type.
  1717  	//   "TYPE_INT64" - Encoded as a string in decimal format.
  1718  	//   "TYPE_BOOL" - Encoded as a boolean "false" or "true".
  1719  	//   "TYPE_FLOAT64" - Encoded as a number, or string "NaN", "Infinity" or
  1720  	// "-Infinity".
  1721  	//   "TYPE_STRING" - Encoded as a string value.
  1722  	//   "TYPE_BYTES" - Encoded as a base64 string per RFC 4648, section 4.
  1723  	//   "TYPE_TIMESTAMP" - Encoded as an RFC 3339 timestamp with mandatory "Z"
  1724  	// time zone string: 1985-04-12T23:20:50.52Z
  1725  	//   "TYPE_DATE" - Encoded as RFC 3339 full-date format string: 1985-04-12
  1726  	//   "TYPE_TIME" - Encoded as RFC 3339 partial-time format string: 23:20:50.52
  1727  	//   "TYPE_DATETIME" - Encoded as RFC 3339 full-date "T" partial-time:
  1728  	// 1985-04-12T23:20:50.52
  1729  	//   "TYPE_GEOGRAPHY" - Encoded as WKT
  1730  	//   "TYPE_NUMERIC" - Encoded as a decimal string.
  1731  	//   "TYPE_RECORD" - Container of ordered fields, each with a type and field
  1732  	// name.
  1733  	//   "TYPE_BIGNUMERIC" - Decimal type.
  1734  	//   "TYPE_JSON" - Json type.
  1735  	//   "TYPE_INTERVAL" - Interval type.
  1736  	//   "TYPE_RANGE_DATE" - `Range` type.
  1737  	//   "TYPE_RANGE_DATETIME" - `Range` type.
  1738  	//   "TYPE_RANGE_TIMESTAMP" - `Range` type.
  1739  	ColumnType string `json:"columnType,omitempty"`
  1740  	// DataRiskLevel: The data risk level for this column.
  1741  	DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"`
  1742  	// DatasetId: The BigQuery dataset ID.
  1743  	DatasetId string `json:"datasetId,omitempty"`
  1744  	// DatasetLocation: The BigQuery location where the dataset's data is stored.
  1745  	// See https://cloud.google.com/bigquery/docs/locations for supported
  1746  	// locations.
  1747  	DatasetLocation string `json:"datasetLocation,omitempty"`
  1748  	// DatasetProjectId: The Google Cloud project ID that owns the profiled
  1749  	// resource.
  1750  	DatasetProjectId string `json:"datasetProjectId,omitempty"`
  1751  	// EstimatedNullPercentage: Approximate percentage of entries being null in the
  1752  	// column.
  1753  	//
  1754  	// Possible values:
  1755  	//   "NULL_PERCENTAGE_LEVEL_UNSPECIFIED" - Unused.
  1756  	//   "NULL_PERCENTAGE_VERY_LOW" - Very few null entries.
  1757  	//   "NULL_PERCENTAGE_LOW" - Some null entries.
  1758  	//   "NULL_PERCENTAGE_MEDIUM" - A few null entries.
  1759  	//   "NULL_PERCENTAGE_HIGH" - A lot of null entries.
  1760  	EstimatedNullPercentage string `json:"estimatedNullPercentage,omitempty"`
  1761  	// EstimatedUniquenessScore: Approximate uniqueness of the column.
  1762  	//
  1763  	// Possible values:
  1764  	//   "UNIQUENESS_SCORE_LEVEL_UNSPECIFIED" - Some columns do not have estimated
  1765  	// uniqueness. Possible reasons include having too few values.
  1766  	//   "UNIQUENESS_SCORE_LOW" - Low uniqueness, possibly a boolean, enum or
  1767  	// similiarly typed column.
  1768  	//   "UNIQUENESS_SCORE_MEDIUM" - Medium uniqueness.
  1769  	//   "UNIQUENESS_SCORE_HIGH" - High uniqueness, possibly a column of free text
  1770  	// or unique identifiers.
  1771  	EstimatedUniquenessScore string `json:"estimatedUniquenessScore,omitempty"`
  1772  	// FreeTextScore: The likelihood that this column contains free-form text. A
  1773  	// value close to 1 may indicate the column is likely to contain free-form or
  1774  	// natural language text. Range in 0-1.
  1775  	FreeTextScore float64 `json:"freeTextScore,omitempty"`
  1776  	// Name: The name of the profile.
  1777  	Name string `json:"name,omitempty"`
  1778  	// OtherMatches: Other types found within this column. List will be unordered.
  1779  	OtherMatches []*GooglePrivacyDlpV2OtherInfoTypeSummary `json:"otherMatches,omitempty"`
  1780  	// PolicyState: Indicates if a policy tag has been applied to the column.
  1781  	//
  1782  	// Possible values:
  1783  	//   "COLUMN_POLICY_STATE_UNSPECIFIED" - No policy tags.
  1784  	//   "COLUMN_POLICY_TAGGED" - Column has policy tag applied.
  1785  	PolicyState string `json:"policyState,omitempty"`
  1786  	// ProfileLastGenerated: The last time the profile was generated.
  1787  	ProfileLastGenerated string `json:"profileLastGenerated,omitempty"`
  1788  	// ProfileStatus: Success or error status from the most recent profile
  1789  	// generation attempt. May be empty if the profile is still being generated.
  1790  	ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"`
  1791  	// SensitivityScore: The sensitivity of this column.
  1792  	SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
  1793  	// State: State of a profile.
  1794  	//
  1795  	// Possible values:
  1796  	//   "STATE_UNSPECIFIED" - Unused.
  1797  	//   "RUNNING" - The profile is currently running. Once a profile has finished
  1798  	// it will transition to DONE.
  1799  	//   "DONE" - The profile is no longer generating. If
  1800  	// profile_status.status.code is 0, the profile succeeded, otherwise, it
  1801  	// failed.
  1802  	State string `json:"state,omitempty"`
  1803  	// TableDataProfile: The resource name of the table data profile.
  1804  	TableDataProfile string `json:"tableDataProfile,omitempty"`
  1805  	// TableFullResource: The resource name of the resource this column is within.
  1806  	TableFullResource string `json:"tableFullResource,omitempty"`
  1807  	// TableId: The BigQuery table ID.
  1808  	TableId string `json:"tableId,omitempty"`
  1809  
  1810  	// ServerResponse contains the HTTP response code and headers from the server.
  1811  	googleapi.ServerResponse `json:"-"`
  1812  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  1813  	// include in API requests. By default, fields with empty or default values are
  1814  	// omitted from API requests. See
  1815  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1816  	// details.
  1817  	ForceSendFields []string `json:"-"`
  1818  	// NullFields is a list of field names (e.g. "Column") to include in API
  1819  	// requests with the JSON null value. By default, fields with empty values are
  1820  	// omitted from API requests. See
  1821  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1822  	NullFields []string `json:"-"`
  1823  }
  1824  
  1825  func (s *GooglePrivacyDlpV2ColumnDataProfile) MarshalJSON() ([]byte, error) {
  1826  	type NoMethod GooglePrivacyDlpV2ColumnDataProfile
  1827  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1828  }
  1829  
  1830  func (s *GooglePrivacyDlpV2ColumnDataProfile) UnmarshalJSON(data []byte) error {
  1831  	type NoMethod GooglePrivacyDlpV2ColumnDataProfile
  1832  	var s1 struct {
  1833  		FreeTextScore gensupport.JSONFloat64 `json:"freeTextScore"`
  1834  		*NoMethod
  1835  	}
  1836  	s1.NoMethod = (*NoMethod)(s)
  1837  	if err := json.Unmarshal(data, &s1); err != nil {
  1838  		return err
  1839  	}
  1840  	s.FreeTextScore = float64(s1.FreeTextScore)
  1841  	return nil
  1842  }
  1843  
  1844  // GooglePrivacyDlpV2Condition: The field type of `value` and `field` do not
  1845  // need to match to be considered equal, but not all comparisons are possible.
  1846  // EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types,
  1847  // but all other comparisons are invalid with incompatible types. A `value` of
  1848  // type: - `string` can be compared against all other types - `boolean` can
  1849  // only be compared against other booleans - `integer` can be compared against
  1850  // doubles or a string if the string value can be parsed as an integer. -
  1851  // `double` can be compared against integers or a string if the string can be
  1852  // parsed as a double. - `Timestamp` can be compared against strings in RFC
  1853  // 3339 date string format. - `TimeOfDay` can be compared against timestamps
  1854  // and strings in the format of 'HH:mm:ss'. If we fail to compare do to type
  1855  // mismatch, a warning will be given and the condition will evaluate to false.
  1856  type GooglePrivacyDlpV2Condition struct {
  1857  	// Field: Required. Field within the record this condition is evaluated
  1858  	// against.
  1859  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  1860  	// Operator: Required. Operator used to compare the field or infoType to the
  1861  	// value.
  1862  	//
  1863  	// Possible values:
  1864  	//   "RELATIONAL_OPERATOR_UNSPECIFIED" - Unused
  1865  	//   "EQUAL_TO" - Equal. Attempts to match even with incompatible types.
  1866  	//   "NOT_EQUAL_TO" - Not equal to. Attempts to match even with incompatible
  1867  	// types.
  1868  	//   "GREATER_THAN" - Greater than.
  1869  	//   "LESS_THAN" - Less than.
  1870  	//   "GREATER_THAN_OR_EQUALS" - Greater than or equals.
  1871  	//   "LESS_THAN_OR_EQUALS" - Less than or equals.
  1872  	//   "EXISTS" - Exists
  1873  	Operator string `json:"operator,omitempty"`
  1874  	// Value: Value to compare against. [Mandatory, except for `EXISTS` tests.]
  1875  	Value *GooglePrivacyDlpV2Value `json:"value,omitempty"`
  1876  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  1877  	// include in API requests. By default, fields with empty or default values are
  1878  	// omitted from API requests. See
  1879  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1880  	// details.
  1881  	ForceSendFields []string `json:"-"`
  1882  	// NullFields is a list of field names (e.g. "Field") to include in API
  1883  	// requests with the JSON null value. By default, fields with empty values are
  1884  	// omitted from API requests. See
  1885  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1886  	NullFields []string `json:"-"`
  1887  }
  1888  
  1889  func (s *GooglePrivacyDlpV2Condition) MarshalJSON() ([]byte, error) {
  1890  	type NoMethod GooglePrivacyDlpV2Condition
  1891  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1892  }
  1893  
  1894  // GooglePrivacyDlpV2Conditions: A collection of conditions.
  1895  type GooglePrivacyDlpV2Conditions struct {
  1896  	// Conditions: A collection of conditions.
  1897  	Conditions []*GooglePrivacyDlpV2Condition `json:"conditions,omitempty"`
  1898  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  1899  	// unconditionally include in API requests. By default, fields with empty or
  1900  	// default values are omitted from API requests. See
  1901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1902  	// details.
  1903  	ForceSendFields []string `json:"-"`
  1904  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  1905  	// requests with the JSON null value. By default, fields with empty values are
  1906  	// omitted from API requests. See
  1907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1908  	NullFields []string `json:"-"`
  1909  }
  1910  
  1911  func (s *GooglePrivacyDlpV2Conditions) MarshalJSON() ([]byte, error) {
  1912  	type NoMethod GooglePrivacyDlpV2Conditions
  1913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1914  }
  1915  
  1916  // GooglePrivacyDlpV2Connection: A data connection to allow DLP to profile data
  1917  // in locations that require additional configuration.
  1918  type GooglePrivacyDlpV2Connection struct {
  1919  	// CloudSql: Connect to a Cloud SQL instance.
  1920  	CloudSql *GooglePrivacyDlpV2CloudSqlProperties `json:"cloudSql,omitempty"`
  1921  	// Errors: Output only. Set if status == ERROR, to provide additional details.
  1922  	// Will store the last 10 errors sorted with the most recent first.
  1923  	Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
  1924  	// Name: Output only. Name of the connection:
  1925  	// `projects/{project}/locations/{location}/connections/{name}`.
  1926  	Name string `json:"name,omitempty"`
  1927  	// State: Required. The connection's state in its lifecycle.
  1928  	//
  1929  	// Possible values:
  1930  	//   "CONNECTION_STATE_UNSPECIFIED" - Unused
  1931  	//   "MISSING_CREDENTIALS" - DLP automatically created this connection during
  1932  	// an initial scan, and it is awaiting full configuration by a user.
  1933  	//   "AVAILABLE" - A configured connection that has not encountered any errors.
  1934  	//   "ERROR" - A configured connection that encountered errors during its last
  1935  	// use. It will not be used again until it is set to AVAILABLE. If the
  1936  	// resolution requires external action, then a request to set the status to
  1937  	// AVAILABLE will mark this connection for use. Otherwise, any changes to the
  1938  	// connection properties will automatically mark it as AVAILABLE.
  1939  	State string `json:"state,omitempty"`
  1940  
  1941  	// ServerResponse contains the HTTP response code and headers from the server.
  1942  	googleapi.ServerResponse `json:"-"`
  1943  	// ForceSendFields is a list of field names (e.g. "CloudSql") to
  1944  	// unconditionally include in API requests. By default, fields with empty or
  1945  	// default values are omitted from API requests. See
  1946  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1947  	// details.
  1948  	ForceSendFields []string `json:"-"`
  1949  	// NullFields is a list of field names (e.g. "CloudSql") to include in API
  1950  	// requests with the JSON null value. By default, fields with empty values are
  1951  	// omitted from API requests. See
  1952  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1953  	NullFields []string `json:"-"`
  1954  }
  1955  
  1956  func (s *GooglePrivacyDlpV2Connection) MarshalJSON() ([]byte, error) {
  1957  	type NoMethod GooglePrivacyDlpV2Connection
  1958  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1959  }
  1960  
  1961  // GooglePrivacyDlpV2Container: Represents a container that may contain DLP
  1962  // findings. Examples of a container include a file, table, or database record.
  1963  type GooglePrivacyDlpV2Container struct {
  1964  	// FullPath: A string representation of the full container name. Examples: -
  1965  	// BigQuery: 'Project:DataSetId.TableId' - Cloud Storage:
  1966  	// 'gs://Bucket/folders/filename.txt'
  1967  	FullPath string `json:"fullPath,omitempty"`
  1968  	// ProjectId: Project where the finding was found. Can be different from the
  1969  	// project that owns the finding.
  1970  	ProjectId string `json:"projectId,omitempty"`
  1971  	// RelativePath: The rest of the path after the root. Examples: - For BigQuery
  1972  	// table `project_id:dataset_id.table_id`, the relative path is `table_id` -
  1973  	// For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative path
  1974  	// is `folder/filename.txt`
  1975  	RelativePath string `json:"relativePath,omitempty"`
  1976  	// RootPath: The root of the container. Examples: - For BigQuery table
  1977  	// `project_id:dataset_id.table_id`, the root is `dataset_id` - For Cloud
  1978  	// Storage file `gs://bucket/folder/filename.txt`, the root is `gs://bucket`
  1979  	RootPath string `json:"rootPath,omitempty"`
  1980  	// Type: Container type, for example BigQuery or Cloud Storage.
  1981  	Type string `json:"type,omitempty"`
  1982  	// UpdateTime: Findings container modification timestamp, if applicable. For
  1983  	// Cloud Storage, this field contains the last file modification timestamp. For
  1984  	// a BigQuery table, this field contains the last_modified_time property. For
  1985  	// Datastore, this field isn't populated.
  1986  	UpdateTime string `json:"updateTime,omitempty"`
  1987  	// Version: Findings container version, if available ("generation" for Cloud
  1988  	// Storage).
  1989  	Version string `json:"version,omitempty"`
  1990  	// ForceSendFields is a list of field names (e.g. "FullPath") to
  1991  	// unconditionally include in API requests. By default, fields with empty or
  1992  	// default values are omitted from API requests. See
  1993  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1994  	// details.
  1995  	ForceSendFields []string `json:"-"`
  1996  	// NullFields is a list of field names (e.g. "FullPath") to include in API
  1997  	// requests with the JSON null value. By default, fields with empty values are
  1998  	// omitted from API requests. See
  1999  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2000  	NullFields []string `json:"-"`
  2001  }
  2002  
  2003  func (s *GooglePrivacyDlpV2Container) MarshalJSON() ([]byte, error) {
  2004  	type NoMethod GooglePrivacyDlpV2Container
  2005  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2006  }
  2007  
  2008  // GooglePrivacyDlpV2ContentItem: Type of content to inspect.
  2009  type GooglePrivacyDlpV2ContentItem struct {
  2010  	// ByteItem: Content data to inspect or redact. Replaces `type` and `data`.
  2011  	ByteItem *GooglePrivacyDlpV2ByteContentItem `json:"byteItem,omitempty"`
  2012  	// Table: Structured content for inspection. See
  2013  	// https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
  2014  	// to learn more.
  2015  	Table *GooglePrivacyDlpV2Table `json:"table,omitempty"`
  2016  	// Value: String data to inspect or redact.
  2017  	Value string `json:"value,omitempty"`
  2018  	// ForceSendFields is a list of field names (e.g. "ByteItem") to
  2019  	// unconditionally include in API requests. By default, fields with empty or
  2020  	// default values are 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. "ByteItem") 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 *GooglePrivacyDlpV2ContentItem) MarshalJSON() ([]byte, error) {
  2032  	type NoMethod GooglePrivacyDlpV2ContentItem
  2033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2034  }
  2035  
  2036  // GooglePrivacyDlpV2ContentLocation: Precise location of the finding within a
  2037  // document, record, image, or metadata container.
  2038  type GooglePrivacyDlpV2ContentLocation struct {
  2039  	// ContainerName: Name of the container where the finding is located. The top
  2040  	// level name is the source file name or table name. Names of some common
  2041  	// storage containers are formatted as follows: * BigQuery tables:
  2042  	// `{project_id}:{dataset_id}.{table_id}` * Cloud Storage files:
  2043  	// `gs://{bucket}/{path}` * Datastore namespace: {namespace} Nested names could
  2044  	// be absent if the embedded object has no string identifier (for example, an
  2045  	// image contained within a document).
  2046  	ContainerName string `json:"containerName,omitempty"`
  2047  	// ContainerTimestamp: Finding container modification timestamp, if applicable.
  2048  	// For Cloud Storage, this field contains the last file modification timestamp.
  2049  	// For a BigQuery table, this field contains the last_modified_time property.
  2050  	// For Datastore, this field isn't populated.
  2051  	ContainerTimestamp string `json:"containerTimestamp,omitempty"`
  2052  	// ContainerVersion: Finding container version, if available ("generation" for
  2053  	// Cloud Storage).
  2054  	ContainerVersion string `json:"containerVersion,omitempty"`
  2055  	// DocumentLocation: Location data for document files.
  2056  	DocumentLocation *GooglePrivacyDlpV2DocumentLocation `json:"documentLocation,omitempty"`
  2057  	// ImageLocation: Location within an image's pixels.
  2058  	ImageLocation *GooglePrivacyDlpV2ImageLocation `json:"imageLocation,omitempty"`
  2059  	// MetadataLocation: Location within the metadata for inspected content.
  2060  	MetadataLocation *GooglePrivacyDlpV2MetadataLocation `json:"metadataLocation,omitempty"`
  2061  	// RecordLocation: Location within a row or record of a database table.
  2062  	RecordLocation *GooglePrivacyDlpV2RecordLocation `json:"recordLocation,omitempty"`
  2063  	// ForceSendFields is a list of field names (e.g. "ContainerName") to
  2064  	// unconditionally include in API requests. By default, fields with empty or
  2065  	// default values are 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. "ContainerName") to include in API
  2070  	// requests with the JSON null value. By default, fields with empty values are
  2071  	// omitted 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 *GooglePrivacyDlpV2ContentLocation) MarshalJSON() ([]byte, error) {
  2077  	type NoMethod GooglePrivacyDlpV2ContentLocation
  2078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2079  }
  2080  
  2081  // GooglePrivacyDlpV2CreateConnectionRequest: Request message for
  2082  // CreateConnection.
  2083  type GooglePrivacyDlpV2CreateConnectionRequest struct {
  2084  	// Connection: Required. The connection resource.
  2085  	Connection *GooglePrivacyDlpV2Connection `json:"connection,omitempty"`
  2086  	// ForceSendFields is a list of field names (e.g. "Connection") to
  2087  	// unconditionally include in API requests. By default, fields with empty or
  2088  	// default values are omitted from API requests. See
  2089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2090  	// details.
  2091  	ForceSendFields []string `json:"-"`
  2092  	// NullFields is a list of field names (e.g. "Connection") to include in API
  2093  	// requests with the JSON null value. By default, fields with empty values are
  2094  	// omitted from API requests. See
  2095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2096  	NullFields []string `json:"-"`
  2097  }
  2098  
  2099  func (s *GooglePrivacyDlpV2CreateConnectionRequest) MarshalJSON() ([]byte, error) {
  2100  	type NoMethod GooglePrivacyDlpV2CreateConnectionRequest
  2101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2102  }
  2103  
  2104  // GooglePrivacyDlpV2CreateDeidentifyTemplateRequest: Request message for
  2105  // CreateDeidentifyTemplate.
  2106  type GooglePrivacyDlpV2CreateDeidentifyTemplateRequest struct {
  2107  	// DeidentifyTemplate: Required. The DeidentifyTemplate to create.
  2108  	DeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"deidentifyTemplate,omitempty"`
  2109  	// LocationId: Deprecated. This field has no effect.
  2110  	LocationId string `json:"locationId,omitempty"`
  2111  	// TemplateId: The template id can contain uppercase and lowercase letters,
  2112  	// numbers, and hyphens; that is, it must match the regular expression:
  2113  	// `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow
  2114  	// the system to generate one.
  2115  	TemplateId string `json:"templateId,omitempty"`
  2116  	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") to
  2117  	// unconditionally include in API requests. By default, fields with empty or
  2118  	// default values are omitted from API requests. See
  2119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2120  	// details.
  2121  	ForceSendFields []string `json:"-"`
  2122  	// NullFields is a list of field names (e.g. "DeidentifyTemplate") to include
  2123  	// in API requests with the JSON null value. By default, fields with empty
  2124  	// values are omitted from API requests. See
  2125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2126  	NullFields []string `json:"-"`
  2127  }
  2128  
  2129  func (s *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) MarshalJSON() ([]byte, error) {
  2130  	type NoMethod GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
  2131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2132  }
  2133  
  2134  // GooglePrivacyDlpV2CreateDiscoveryConfigRequest: Request message for
  2135  // CreateDiscoveryConfig.
  2136  type GooglePrivacyDlpV2CreateDiscoveryConfigRequest struct {
  2137  	// ConfigId: The config ID can contain uppercase and lowercase letters,
  2138  	// numbers, and hyphens; that is, it must match the regular expression:
  2139  	// `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow
  2140  	// the system to generate one.
  2141  	ConfigId string `json:"configId,omitempty"`
  2142  	// DiscoveryConfig: Required. The DiscoveryConfig to create.
  2143  	DiscoveryConfig *GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfig,omitempty"`
  2144  	// ForceSendFields is a list of field names (e.g. "ConfigId") to
  2145  	// unconditionally include in API requests. By default, fields with empty or
  2146  	// default values are omitted from API requests. See
  2147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2148  	// details.
  2149  	ForceSendFields []string `json:"-"`
  2150  	// NullFields is a list of field names (e.g. "ConfigId") to include in API
  2151  	// requests with the JSON null value. By default, fields with empty values are
  2152  	// omitted from API requests. See
  2153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2154  	NullFields []string `json:"-"`
  2155  }
  2156  
  2157  func (s *GooglePrivacyDlpV2CreateDiscoveryConfigRequest) MarshalJSON() ([]byte, error) {
  2158  	type NoMethod GooglePrivacyDlpV2CreateDiscoveryConfigRequest
  2159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2160  }
  2161  
  2162  // GooglePrivacyDlpV2CreateDlpJobRequest: Request message for
  2163  // CreateDlpJobRequest. Used to initiate long running jobs such as calculating
  2164  // risk metrics or inspecting Google Cloud Storage.
  2165  type GooglePrivacyDlpV2CreateDlpJobRequest struct {
  2166  	// InspectJob: An inspection job scans a storage repository for InfoTypes.
  2167  	InspectJob *GooglePrivacyDlpV2InspectJobConfig `json:"inspectJob,omitempty"`
  2168  	// JobId: The job id can contain uppercase and lowercase letters, numbers, and
  2169  	// hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The
  2170  	// maximum length is 100 characters. Can be empty to allow the system to
  2171  	// generate one.
  2172  	JobId string `json:"jobId,omitempty"`
  2173  	// LocationId: Deprecated. This field has no effect.
  2174  	LocationId string `json:"locationId,omitempty"`
  2175  	// RiskJob: A risk analysis job calculates re-identification risk metrics for a
  2176  	// BigQuery table.
  2177  	RiskJob *GooglePrivacyDlpV2RiskAnalysisJobConfig `json:"riskJob,omitempty"`
  2178  	// ForceSendFields is a list of field names (e.g. "InspectJob") to
  2179  	// unconditionally include in API requests. By default, fields with empty or
  2180  	// default values are 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. "InspectJob") 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 *GooglePrivacyDlpV2CreateDlpJobRequest) MarshalJSON() ([]byte, error) {
  2192  	type NoMethod GooglePrivacyDlpV2CreateDlpJobRequest
  2193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2194  }
  2195  
  2196  // GooglePrivacyDlpV2CreateInspectTemplateRequest: Request message for
  2197  // CreateInspectTemplate.
  2198  type GooglePrivacyDlpV2CreateInspectTemplateRequest struct {
  2199  	// InspectTemplate: Required. The InspectTemplate to create.
  2200  	InspectTemplate *GooglePrivacyDlpV2InspectTemplate `json:"inspectTemplate,omitempty"`
  2201  	// LocationId: Deprecated. This field has no effect.
  2202  	LocationId string `json:"locationId,omitempty"`
  2203  	// TemplateId: The template id can contain uppercase and lowercase letters,
  2204  	// numbers, and hyphens; that is, it must match the regular expression:
  2205  	// `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow
  2206  	// the system to generate one.
  2207  	TemplateId string `json:"templateId,omitempty"`
  2208  	// ForceSendFields is a list of field names (e.g. "InspectTemplate") to
  2209  	// unconditionally include in API requests. By default, fields with empty or
  2210  	// default values are omitted from API requests. See
  2211  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2212  	// details.
  2213  	ForceSendFields []string `json:"-"`
  2214  	// NullFields is a list of field names (e.g. "InspectTemplate") to include in
  2215  	// API requests with the JSON null value. By default, fields with empty values
  2216  	// are omitted from API requests. See
  2217  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2218  	NullFields []string `json:"-"`
  2219  }
  2220  
  2221  func (s *GooglePrivacyDlpV2CreateInspectTemplateRequest) MarshalJSON() ([]byte, error) {
  2222  	type NoMethod GooglePrivacyDlpV2CreateInspectTemplateRequest
  2223  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2224  }
  2225  
  2226  // GooglePrivacyDlpV2CreateJobTriggerRequest: Request message for
  2227  // CreateJobTrigger.
  2228  type GooglePrivacyDlpV2CreateJobTriggerRequest struct {
  2229  	// JobTrigger: Required. The JobTrigger to create.
  2230  	JobTrigger *GooglePrivacyDlpV2JobTrigger `json:"jobTrigger,omitempty"`
  2231  	// LocationId: Deprecated. This field has no effect.
  2232  	LocationId string `json:"locationId,omitempty"`
  2233  	// TriggerId: The trigger id can contain uppercase and lowercase letters,
  2234  	// numbers, and hyphens; that is, it must match the regular expression:
  2235  	// `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be empty to allow
  2236  	// the system to generate one.
  2237  	TriggerId string `json:"triggerId,omitempty"`
  2238  	// ForceSendFields is a list of field names (e.g. "JobTrigger") to
  2239  	// unconditionally include in API requests. By default, fields with empty or
  2240  	// default values are omitted from API requests. See
  2241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2242  	// details.
  2243  	ForceSendFields []string `json:"-"`
  2244  	// NullFields is a list of field names (e.g. "JobTrigger") to include in API
  2245  	// requests with the JSON null value. By default, fields with empty values are
  2246  	// omitted from API requests. See
  2247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2248  	NullFields []string `json:"-"`
  2249  }
  2250  
  2251  func (s *GooglePrivacyDlpV2CreateJobTriggerRequest) MarshalJSON() ([]byte, error) {
  2252  	type NoMethod GooglePrivacyDlpV2CreateJobTriggerRequest
  2253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2254  }
  2255  
  2256  // GooglePrivacyDlpV2CreateStoredInfoTypeRequest: Request message for
  2257  // CreateStoredInfoType.
  2258  type GooglePrivacyDlpV2CreateStoredInfoTypeRequest struct {
  2259  	// Config: Required. Configuration of the storedInfoType to create.
  2260  	Config *GooglePrivacyDlpV2StoredInfoTypeConfig `json:"config,omitempty"`
  2261  	// LocationId: Deprecated. This field has no effect.
  2262  	LocationId string `json:"locationId,omitempty"`
  2263  	// StoredInfoTypeId: The storedInfoType ID can contain uppercase and lowercase
  2264  	// letters, numbers, and hyphens; that is, it must match the regular
  2265  	// expression: `[a-zA-Z\d-_]+`. The maximum length is 100 characters. Can be
  2266  	// empty to allow the system to generate one.
  2267  	StoredInfoTypeId string `json:"storedInfoTypeId,omitempty"`
  2268  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2269  	// include in API requests. By default, fields with empty or default values are
  2270  	// omitted from API requests. See
  2271  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2272  	// details.
  2273  	ForceSendFields []string `json:"-"`
  2274  	// NullFields is a list of field names (e.g. "Config") to include in API
  2275  	// requests with the JSON null value. By default, fields with empty values are
  2276  	// omitted from API requests. See
  2277  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2278  	NullFields []string `json:"-"`
  2279  }
  2280  
  2281  func (s *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) MarshalJSON() ([]byte, error) {
  2282  	type NoMethod GooglePrivacyDlpV2CreateStoredInfoTypeRequest
  2283  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2284  }
  2285  
  2286  // GooglePrivacyDlpV2CryptoDeterministicConfig: Pseudonymization method that
  2287  // generates deterministic encryption for the given input. Outputs a base64
  2288  // encoded representation of the encrypted output. Uses AES-SIV based on the
  2289  // RFC https://tools.ietf.org/html/rfc5297.
  2290  type GooglePrivacyDlpV2CryptoDeterministicConfig struct {
  2291  	// Context: A context may be used for higher security and maintaining
  2292  	// referential integrity such that the same identifier in two different
  2293  	// contexts will be given a distinct surrogate. The context is appended to
  2294  	// plaintext value being encrypted. On decryption the provided context is
  2295  	// validated against the value used during encryption. If a context was
  2296  	// provided during encryption, same context must be provided during decryption
  2297  	// as well. If the context is not set, plaintext would be used as is for
  2298  	// encryption. If the context is set but: 1. there is no record present when
  2299  	// transforming a given value or 2. the field is not present when transforming
  2300  	// a given value, plaintext would be used as is for encryption. Note that case
  2301  	// (1) is expected when an `InfoTypeTransformation` is applied to both
  2302  	// structured and unstructured `ContentItem`s.
  2303  	Context *GooglePrivacyDlpV2FieldId `json:"context,omitempty"`
  2304  	// CryptoKey: The key used by the encryption function. For deterministic
  2305  	// encryption using AES-SIV, the provided key is internally expanded to 64
  2306  	// bytes prior to use.
  2307  	CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
  2308  	// SurrogateInfoType: The custom info type to annotate the surrogate with. This
  2309  	// annotation will be applied to the surrogate by prefixing it with the name of
  2310  	// the custom info type followed by the number of characters comprising the
  2311  	// surrogate. The following scheme defines the format: {info type
  2312  	// name}({surrogate character count}):{surrogate} For example, if the name of
  2313  	// custom info type is 'MY_TOKEN_INFO_TYPE' and the surrogate is 'abc', the
  2314  	// full replacement value will be: 'MY_TOKEN_INFO_TYPE(3):abc' This annotation
  2315  	// identifies the surrogate when inspecting content using the custom info type
  2316  	// 'Surrogate'. This facilitates reversal of the surrogate when it occurs in
  2317  	// free text. Note: For record transformations where the entire cell in a table
  2318  	// is being transformed, surrogates are not mandatory. Surrogates are used to
  2319  	// denote the location of the token and are necessary for re-identification in
  2320  	// free form text. In order for inspection to work properly, the name of this
  2321  	// info type must not occur naturally anywhere in your data; otherwise,
  2322  	// inspection may either - reverse a surrogate that does not correspond to an
  2323  	// actual identifier - be unable to parse the surrogate and result in an error
  2324  	// Therefore, choose your custom info type name carefully after considering
  2325  	// what your data looks like. One way to select a name that has a high chance
  2326  	// of yielding reliable detection is to include one or more unicode characters
  2327  	// that are highly improbable to exist in your data. For example, assuming your
  2328  	// data is entered from a regular ASCII keyboard, the symbol with the hex code
  2329  	// point 29DD might be used like so: ⧝MY_TOKEN_TYPE.
  2330  	SurrogateInfoType *GooglePrivacyDlpV2InfoType `json:"surrogateInfoType,omitempty"`
  2331  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
  2332  	// include in API requests. By default, fields with empty or default values are
  2333  	// omitted from API requests. See
  2334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2335  	// details.
  2336  	ForceSendFields []string `json:"-"`
  2337  	// NullFields is a list of field names (e.g. "Context") to include in API
  2338  	// requests with the JSON null value. By default, fields with empty values are
  2339  	// omitted from API requests. See
  2340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2341  	NullFields []string `json:"-"`
  2342  }
  2343  
  2344  func (s *GooglePrivacyDlpV2CryptoDeterministicConfig) MarshalJSON() ([]byte, error) {
  2345  	type NoMethod GooglePrivacyDlpV2CryptoDeterministicConfig
  2346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2347  }
  2348  
  2349  // GooglePrivacyDlpV2CryptoHashConfig: Pseudonymization method that generates
  2350  // surrogates via cryptographic hashing. Uses SHA-256. The key size must be
  2351  // either 32 or 64 bytes. Outputs a base64 encoded representation of the hashed
  2352  // output (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
  2353  // Currently, only string and integer values can be hashed. See
  2354  // https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to
  2355  // learn more.
  2356  type GooglePrivacyDlpV2CryptoHashConfig struct {
  2357  	// CryptoKey: The key used by the hash function.
  2358  	CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
  2359  	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
  2360  	// unconditionally include in API requests. By default, fields with empty or
  2361  	// default values are omitted from API requests. See
  2362  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2363  	// details.
  2364  	ForceSendFields []string `json:"-"`
  2365  	// NullFields is a list of field names (e.g. "CryptoKey") to include in API
  2366  	// requests with the JSON null value. By default, fields with empty values are
  2367  	// omitted from API requests. See
  2368  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2369  	NullFields []string `json:"-"`
  2370  }
  2371  
  2372  func (s *GooglePrivacyDlpV2CryptoHashConfig) MarshalJSON() ([]byte, error) {
  2373  	type NoMethod GooglePrivacyDlpV2CryptoHashConfig
  2374  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2375  }
  2376  
  2377  // GooglePrivacyDlpV2CryptoKey: This is a data encryption key (DEK) (as opposed
  2378  // to a key encryption key (KEK) stored by Cloud Key Management Service (Cloud
  2379  // KMS). When using Cloud KMS to wrap or unwrap a DEK, be sure to set an
  2380  // appropriate IAM policy on the KEK to ensure an attacker cannot unwrap the
  2381  // DEK.
  2382  type GooglePrivacyDlpV2CryptoKey struct {
  2383  	// KmsWrapped: Key wrapped using Cloud KMS
  2384  	KmsWrapped *GooglePrivacyDlpV2KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
  2385  	// Transient: Transient crypto key
  2386  	Transient *GooglePrivacyDlpV2TransientCryptoKey `json:"transient,omitempty"`
  2387  	// Unwrapped: Unwrapped crypto key
  2388  	Unwrapped *GooglePrivacyDlpV2UnwrappedCryptoKey `json:"unwrapped,omitempty"`
  2389  	// ForceSendFields is a list of field names (e.g. "KmsWrapped") to
  2390  	// unconditionally include in API requests. By default, fields with empty or
  2391  	// default values are omitted from API requests. See
  2392  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2393  	// details.
  2394  	ForceSendFields []string `json:"-"`
  2395  	// NullFields is a list of field names (e.g. "KmsWrapped") to include in API
  2396  	// requests with the JSON null value. By default, fields with empty values are
  2397  	// omitted from API requests. See
  2398  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2399  	NullFields []string `json:"-"`
  2400  }
  2401  
  2402  func (s *GooglePrivacyDlpV2CryptoKey) MarshalJSON() ([]byte, error) {
  2403  	type NoMethod GooglePrivacyDlpV2CryptoKey
  2404  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2405  }
  2406  
  2407  // GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig: Replaces an identifier with a
  2408  // surrogate using Format Preserving Encryption (FPE) with the FFX mode of
  2409  // operation; however when used in the `ReidentifyContent` API method, it
  2410  // serves the opposite function by reversing the surrogate back into the
  2411  // original identifier. The identifier must be encoded as ASCII. For a given
  2412  // crypto key and context, the same identifier will be replaced with the same
  2413  // surrogate. Identifiers must be at least two characters long. In the case
  2414  // that the identifier is the empty string, it will be skipped. See
  2415  // https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to
  2416  // learn more. Note: We recommend using CryptoDeterministicConfig for all use
  2417  // cases which do not require preserving the input alphabet space and size,
  2418  // plus warrant referential integrity.
  2419  type GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig struct {
  2420  	// CommonAlphabet: Common alphabets.
  2421  	//
  2422  	// Possible values:
  2423  	//   "FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED" - Unused.
  2424  	//   "NUMERIC" - `[0-9]` (radix of 10)
  2425  	//   "HEXADECIMAL" - `[0-9A-F]` (radix of 16)
  2426  	//   "UPPER_CASE_ALPHA_NUMERIC" - `[0-9A-Z]` (radix of 36)
  2427  	//   "ALPHA_NUMERIC" - `[0-9A-Za-z]` (radix of 62)
  2428  	CommonAlphabet string `json:"commonAlphabet,omitempty"`
  2429  	// Context: The 'tweak', a context may be used for higher security since the
  2430  	// same identifier in two different contexts won't be given the same surrogate.
  2431  	// If the context is not set, a default tweak will be used. If the context is
  2432  	// set but: 1. there is no record present when transforming a given value or 1.
  2433  	// the field is not present when transforming a given value, a default tweak
  2434  	// will be used. Note that case (1) is expected when an
  2435  	// `InfoTypeTransformation` is applied to both structured and unstructured
  2436  	// `ContentItem`s. Currently, the referenced field may be of value type integer
  2437  	// or string. The tweak is constructed as a sequence of bytes in big endian
  2438  	// byte order such that: - a 64 bit integer is encoded followed by a single
  2439  	// byte of value 1 - a string is encoded in UTF-8 format followed by a single
  2440  	// byte of value 2
  2441  	Context *GooglePrivacyDlpV2FieldId `json:"context,omitempty"`
  2442  	// CryptoKey: Required. The key used by the encryption algorithm.
  2443  	CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
  2444  	// CustomAlphabet: This is supported by mapping these to the alphanumeric
  2445  	// characters that the FFX mode natively supports. This happens before/after
  2446  	// encryption/decryption. Each character listed must appear only once. Number
  2447  	// of characters must be in the range [2, 95]. This must be encoded as ASCII.
  2448  	// The order of characters does not matter. The full list of allowed characters
  2449  	// is: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  2450  	// ~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/
  2451  	CustomAlphabet string `json:"customAlphabet,omitempty"`
  2452  	// Radix: The native way to select the alphabet. Must be in the range [2, 95].
  2453  	Radix int64 `json:"radix,omitempty"`
  2454  	// SurrogateInfoType: The custom infoType to annotate the surrogate with. This
  2455  	// annotation will be applied to the surrogate by prefixing it with the name of
  2456  	// the custom infoType followed by the number of characters comprising the
  2457  	// surrogate. The following scheme defines the format:
  2458  	// info_type_name(surrogate_character_count):surrogate For example, if the name
  2459  	// of custom infoType is 'MY_TOKEN_INFO_TYPE' and the surrogate is 'abc', the
  2460  	// full replacement value will be: 'MY_TOKEN_INFO_TYPE(3):abc' This annotation
  2461  	// identifies the surrogate when inspecting content using the custom infoType
  2462  	// `SurrogateType`
  2463  	// (https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype).
  2464  	// This facilitates reversal of the surrogate when it occurs in free text. In
  2465  	// order for inspection to work properly, the name of this infoType must not
  2466  	// occur naturally anywhere in your data; otherwise, inspection may find a
  2467  	// surrogate that does not correspond to an actual identifier. Therefore,
  2468  	// choose your custom infoType name carefully after considering what your data
  2469  	// looks like. One way to select a name that has a high chance of yielding
  2470  	// reliable detection is to include one or more unicode characters that are
  2471  	// highly improbable to exist in your data. For example, assuming your data is
  2472  	// entered from a regular ASCII keyboard, the symbol with the hex code point
  2473  	// 29DD might be used like so: ⧝MY_TOKEN_TYPE
  2474  	SurrogateInfoType *GooglePrivacyDlpV2InfoType `json:"surrogateInfoType,omitempty"`
  2475  	// ForceSendFields is a list of field names (e.g. "CommonAlphabet") to
  2476  	// unconditionally include in API requests. By default, fields with empty or
  2477  	// default values are omitted from API requests. See
  2478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2479  	// details.
  2480  	ForceSendFields []string `json:"-"`
  2481  	// NullFields is a list of field names (e.g. "CommonAlphabet") to include in
  2482  	// API requests with the JSON null value. By default, fields with empty values
  2483  	// are omitted from API requests. See
  2484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2485  	NullFields []string `json:"-"`
  2486  }
  2487  
  2488  func (s *GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig) MarshalJSON() ([]byte, error) {
  2489  	type NoMethod GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig
  2490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2491  }
  2492  
  2493  // GooglePrivacyDlpV2CustomInfoType: Custom information type provided by the
  2494  // user. Used to find domain-specific sensitive information configurable to the
  2495  // data in question.
  2496  type GooglePrivacyDlpV2CustomInfoType struct {
  2497  	// DetectionRules: Set of detection rules to apply to all findings of this
  2498  	// CustomInfoType. Rules are applied in order that they are specified. Not
  2499  	// supported for the `surrogate_type` CustomInfoType.
  2500  	DetectionRules []*GooglePrivacyDlpV2DetectionRule `json:"detectionRules,omitempty"`
  2501  	// Dictionary: A list of phrases to detect as a CustomInfoType.
  2502  	Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"`
  2503  	// ExclusionType: If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause
  2504  	// a finding to be returned. It still can be used for rules matching.
  2505  	//
  2506  	// Possible values:
  2507  	//   "EXCLUSION_TYPE_UNSPECIFIED" - A finding of this custom info type will not
  2508  	// be excluded from results.
  2509  	//   "EXCLUSION_TYPE_EXCLUDE" - A finding of this custom info type will be
  2510  	// excluded from final results, but can still affect rule execution.
  2511  	ExclusionType string `json:"exclusionType,omitempty"`
  2512  	// InfoType: CustomInfoType can either be a new infoType, or an extension of
  2513  	// built-in infoType, when the name matches one of existing infoTypes and that
  2514  	// infoType is specified in `InspectContent.info_types` field. Specifying the
  2515  	// latter adds findings to the one detected by the system. If built-in info
  2516  	// type is not specified in `InspectContent.info_types` list then the name is
  2517  	// treated as a custom info type.
  2518  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  2519  	// Likelihood: Likelihood to return for this CustomInfoType. This base value
  2520  	// can be altered by a detection rule if the finding meets the criteria
  2521  	// specified by the rule. Defaults to `VERY_LIKELY` if not specified.
  2522  	//
  2523  	// Possible values:
  2524  	//   "LIKELIHOOD_UNSPECIFIED" - Default value; same as POSSIBLE.
  2525  	//   "VERY_UNLIKELY" - Highest chance of a false positive.
  2526  	//   "UNLIKELY" - High chance of a false positive.
  2527  	//   "POSSIBLE" - Some matching signals. The default value.
  2528  	//   "LIKELY" - Low chance of a false positive.
  2529  	//   "VERY_LIKELY" - Confidence level is high. Lowest chance of a false
  2530  	// positive.
  2531  	Likelihood string `json:"likelihood,omitempty"`
  2532  	// Regex: Regular expression based CustomInfoType.
  2533  	Regex *GooglePrivacyDlpV2Regex `json:"regex,omitempty"`
  2534  	// SensitivityScore: Sensitivity for this CustomInfoType. If this
  2535  	// CustomInfoType extends an existing InfoType, the sensitivity here will take
  2536  	// precedence over that of the original InfoType. If unset for a
  2537  	// CustomInfoType, it will default to HIGH. This only applies to data
  2538  	// profiling.
  2539  	SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
  2540  	// StoredType: Load an existing `StoredInfoType` resource for use in
  2541  	// `InspectDataSource`. Not currently supported in `InspectContent`.
  2542  	StoredType *GooglePrivacyDlpV2StoredType `json:"storedType,omitempty"`
  2543  	// SurrogateType: Message for detecting output from deidentification
  2544  	// transformations that support reversing.
  2545  	SurrogateType *GooglePrivacyDlpV2SurrogateType `json:"surrogateType,omitempty"`
  2546  	// ForceSendFields is a list of field names (e.g. "DetectionRules") to
  2547  	// unconditionally include in API requests. By default, fields with empty or
  2548  	// default values are omitted from API requests. See
  2549  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2550  	// details.
  2551  	ForceSendFields []string `json:"-"`
  2552  	// NullFields is a list of field names (e.g. "DetectionRules") to include in
  2553  	// API requests with the JSON null value. By default, fields with empty values
  2554  	// are omitted from API requests. See
  2555  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2556  	NullFields []string `json:"-"`
  2557  }
  2558  
  2559  func (s *GooglePrivacyDlpV2CustomInfoType) MarshalJSON() ([]byte, error) {
  2560  	type NoMethod GooglePrivacyDlpV2CustomInfoType
  2561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2562  }
  2563  
  2564  // GooglePrivacyDlpV2DataProfileAction: A task to execute when a data profile
  2565  // has been generated.
  2566  type GooglePrivacyDlpV2DataProfileAction struct {
  2567  	// ExportData: Export data profiles into a provided location.
  2568  	ExportData *GooglePrivacyDlpV2Export `json:"exportData,omitempty"`
  2569  	// PubSubNotification: Publish a message into the Pub/Sub topic.
  2570  	PubSubNotification *GooglePrivacyDlpV2PubSubNotification `json:"pubSubNotification,omitempty"`
  2571  	// ForceSendFields is a list of field names (e.g. "ExportData") to
  2572  	// unconditionally include in API requests. By default, fields with empty or
  2573  	// default values are omitted from API requests. See
  2574  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2575  	// details.
  2576  	ForceSendFields []string `json:"-"`
  2577  	// NullFields is a list of field names (e.g. "ExportData") to include in API
  2578  	// requests with the JSON null value. By default, fields with empty values are
  2579  	// omitted from API requests. See
  2580  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2581  	NullFields []string `json:"-"`
  2582  }
  2583  
  2584  func (s *GooglePrivacyDlpV2DataProfileAction) MarshalJSON() ([]byte, error) {
  2585  	type NoMethod GooglePrivacyDlpV2DataProfileAction
  2586  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2587  }
  2588  
  2589  // GooglePrivacyDlpV2DataProfileBigQueryRowSchema: The schema of data to be
  2590  // saved to the BigQuery table when the `DataProfileAction` is enabled.
  2591  type GooglePrivacyDlpV2DataProfileBigQueryRowSchema struct {
  2592  	// ColumnProfile: Column data profile column
  2593  	ColumnProfile *GooglePrivacyDlpV2ColumnDataProfile `json:"columnProfile,omitempty"`
  2594  	// TableProfile: Table data profile column
  2595  	TableProfile *GooglePrivacyDlpV2TableDataProfile `json:"tableProfile,omitempty"`
  2596  	// ForceSendFields is a list of field names (e.g. "ColumnProfile") to
  2597  	// unconditionally include in API requests. By default, fields with empty or
  2598  	// default values are omitted from API requests. See
  2599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2600  	// details.
  2601  	ForceSendFields []string `json:"-"`
  2602  	// NullFields is a list of field names (e.g. "ColumnProfile") to include in API
  2603  	// requests with the JSON null value. By default, fields with empty values are
  2604  	// omitted from API requests. See
  2605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2606  	NullFields []string `json:"-"`
  2607  }
  2608  
  2609  func (s *GooglePrivacyDlpV2DataProfileBigQueryRowSchema) MarshalJSON() ([]byte, error) {
  2610  	type NoMethod GooglePrivacyDlpV2DataProfileBigQueryRowSchema
  2611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2612  }
  2613  
  2614  // GooglePrivacyDlpV2DataProfileConfigSnapshot: Snapshot of the configurations
  2615  // used to generate the profile.
  2616  type GooglePrivacyDlpV2DataProfileConfigSnapshot struct {
  2617  	// DataProfileJob: A copy of the configuration used to generate this profile.
  2618  	// This is deprecated, and the DiscoveryConfig field is preferred moving
  2619  	// forward. DataProfileJobConfig will still be written here for Discovery in
  2620  	// BigQuery for backwards compatibility, but will not be updated with new
  2621  	// fields, while DiscoveryConfig will.
  2622  	DataProfileJob *GooglePrivacyDlpV2DataProfileJobConfig `json:"dataProfileJob,omitempty"`
  2623  	// DiscoveryConfig: A copy of the configuration used to generate this profile.
  2624  	DiscoveryConfig *GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfig,omitempty"`
  2625  	// InspectConfig: A copy of the inspection config used to generate this
  2626  	// profile. This is a copy of the inspect_template specified in
  2627  	// `DataProfileJobConfig`.
  2628  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  2629  	// InspectTemplateModifiedTime: Timestamp when the template was modified
  2630  	InspectTemplateModifiedTime string `json:"inspectTemplateModifiedTime,omitempty"`
  2631  	// InspectTemplateName: Name of the inspection template used to generate this
  2632  	// profile
  2633  	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
  2634  	// ForceSendFields is a list of field names (e.g. "DataProfileJob") to
  2635  	// unconditionally include in API requests. By default, fields with empty or
  2636  	// default values are omitted from API requests. See
  2637  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2638  	// details.
  2639  	ForceSendFields []string `json:"-"`
  2640  	// NullFields is a list of field names (e.g. "DataProfileJob") to include in
  2641  	// API requests with the JSON null value. By default, fields with empty values
  2642  	// are omitted from API requests. See
  2643  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2644  	NullFields []string `json:"-"`
  2645  }
  2646  
  2647  func (s *GooglePrivacyDlpV2DataProfileConfigSnapshot) MarshalJSON() ([]byte, error) {
  2648  	type NoMethod GooglePrivacyDlpV2DataProfileConfigSnapshot
  2649  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2650  }
  2651  
  2652  // GooglePrivacyDlpV2DataProfileJobConfig: Configuration for setting up a job
  2653  // to scan resources for profile generation. Only one data profile
  2654  // configuration may exist per organization, folder, or project. The generated
  2655  // data profiles are retained according to the [data retention policy]
  2656  // (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
  2657  type GooglePrivacyDlpV2DataProfileJobConfig struct {
  2658  	// DataProfileActions: Actions to execute at the completion of the job.
  2659  	DataProfileActions []*GooglePrivacyDlpV2DataProfileAction `json:"dataProfileActions,omitempty"`
  2660  	// InspectTemplates: Detection logic for profile generation. Not all template
  2661  	// features are used by profiles. FindingLimits, include_quote and
  2662  	// exclude_info_types have no impact on data profiling. Multiple templates may
  2663  	// be provided if there is data in multiple regions. At most one template must
  2664  	// be specified per-region (including "global"). Each region is scanned using
  2665  	// the applicable template. If no region-specific template is specified, but a
  2666  	// "global" template is specified, it will be copied to that region and used
  2667  	// instead. If no global or region-specific template is provided for a region
  2668  	// with data, that region's data will not be scanned. For more information, see
  2669  	// https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
  2670  	InspectTemplates []string `json:"inspectTemplates,omitempty"`
  2671  	// Location: The data to scan.
  2672  	Location *GooglePrivacyDlpV2DataProfileLocation `json:"location,omitempty"`
  2673  	// ProjectId: The project that will run the scan. The DLP service account that
  2674  	// exists within this project must have access to all resources that are
  2675  	// profiled, and the Cloud DLP API must be enabled.
  2676  	ProjectId string `json:"projectId,omitempty"`
  2677  	// ForceSendFields is a list of field names (e.g. "DataProfileActions") to
  2678  	// unconditionally include in API requests. By default, fields with empty or
  2679  	// default values are omitted from API requests. See
  2680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2681  	// details.
  2682  	ForceSendFields []string `json:"-"`
  2683  	// NullFields is a list of field names (e.g. "DataProfileActions") to include
  2684  	// in API requests with the JSON null value. By default, fields with empty
  2685  	// values are omitted from API requests. See
  2686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2687  	NullFields []string `json:"-"`
  2688  }
  2689  
  2690  func (s *GooglePrivacyDlpV2DataProfileJobConfig) MarshalJSON() ([]byte, error) {
  2691  	type NoMethod GooglePrivacyDlpV2DataProfileJobConfig
  2692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2693  }
  2694  
  2695  // GooglePrivacyDlpV2DataProfileLocation: The data that will be profiled.
  2696  type GooglePrivacyDlpV2DataProfileLocation struct {
  2697  	// FolderId: The ID of the Folder within an organization to scan.
  2698  	FolderId int64 `json:"folderId,omitempty,string"`
  2699  	// OrganizationId: The ID of an organization to scan.
  2700  	OrganizationId int64 `json:"organizationId,omitempty,string"`
  2701  	// ForceSendFields is a list of field names (e.g. "FolderId") to
  2702  	// unconditionally include in API requests. By default, fields with empty or
  2703  	// default values are omitted from API requests. See
  2704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2705  	// details.
  2706  	ForceSendFields []string `json:"-"`
  2707  	// NullFields is a list of field names (e.g. "FolderId") to include in API
  2708  	// requests with the JSON null value. By default, fields with empty values are
  2709  	// omitted from API requests. See
  2710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2711  	NullFields []string `json:"-"`
  2712  }
  2713  
  2714  func (s *GooglePrivacyDlpV2DataProfileLocation) MarshalJSON() ([]byte, error) {
  2715  	type NoMethod GooglePrivacyDlpV2DataProfileLocation
  2716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2717  }
  2718  
  2719  // GooglePrivacyDlpV2DataProfilePubSubCondition: A condition for determining
  2720  // whether a Pub/Sub should be triggered.
  2721  type GooglePrivacyDlpV2DataProfilePubSubCondition struct {
  2722  	// Expressions: An expression.
  2723  	Expressions *GooglePrivacyDlpV2PubSubExpressions `json:"expressions,omitempty"`
  2724  	// ForceSendFields is a list of field names (e.g. "Expressions") to
  2725  	// unconditionally include in API requests. By default, fields with empty or
  2726  	// default values are omitted from API requests. See
  2727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2728  	// details.
  2729  	ForceSendFields []string `json:"-"`
  2730  	// NullFields is a list of field names (e.g. "Expressions") to include in API
  2731  	// requests with the JSON null value. By default, fields with empty values are
  2732  	// omitted from API requests. See
  2733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2734  	NullFields []string `json:"-"`
  2735  }
  2736  
  2737  func (s *GooglePrivacyDlpV2DataProfilePubSubCondition) MarshalJSON() ([]byte, error) {
  2738  	type NoMethod GooglePrivacyDlpV2DataProfilePubSubCondition
  2739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2740  }
  2741  
  2742  // GooglePrivacyDlpV2DataProfilePubSubMessage: Pub/Sub topic message for a
  2743  // DataProfileAction.PubSubNotification event. To receive a message of protocol
  2744  // buffer schema type, convert the message data to an object of this proto
  2745  // class.
  2746  type GooglePrivacyDlpV2DataProfilePubSubMessage struct {
  2747  	// Event: The event that caused the Pub/Sub message to be sent.
  2748  	//
  2749  	// Possible values:
  2750  	//   "EVENT_TYPE_UNSPECIFIED" - Unused.
  2751  	//   "NEW_PROFILE" - New profile (not a re-profile).
  2752  	//   "CHANGED_PROFILE" - Changed one of the following profile metrics: * Data
  2753  	// risk score * Sensitivity score * Resource visibility * Encryption type *
  2754  	// Predicted infoTypes * Other infoTypes
  2755  	//   "SCORE_INCREASED" - Table data risk score or sensitivity score increased.
  2756  	//   "ERROR_CHANGED" - A user (non-internal) error occurred.
  2757  	Event string `json:"event,omitempty"`
  2758  	// Profile: If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
  2759  	// Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
  2760  	// `full_resource` will be populated.
  2761  	Profile *GooglePrivacyDlpV2TableDataProfile `json:"profile,omitempty"`
  2762  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  2763  	// include in API requests. By default, fields with empty or default values are
  2764  	// omitted from API requests. See
  2765  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2766  	// details.
  2767  	ForceSendFields []string `json:"-"`
  2768  	// NullFields is a list of field names (e.g. "Event") to include in API
  2769  	// requests with the JSON null value. By default, fields with empty values are
  2770  	// omitted from API requests. See
  2771  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2772  	NullFields []string `json:"-"`
  2773  }
  2774  
  2775  func (s *GooglePrivacyDlpV2DataProfilePubSubMessage) MarshalJSON() ([]byte, error) {
  2776  	type NoMethod GooglePrivacyDlpV2DataProfilePubSubMessage
  2777  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2778  }
  2779  
  2780  // GooglePrivacyDlpV2DataRiskLevel: Score is a summary of all elements in the
  2781  // data profile. A higher number means more risk.
  2782  type GooglePrivacyDlpV2DataRiskLevel struct {
  2783  	// Score: The score applied to the resource.
  2784  	//
  2785  	// Possible values:
  2786  	//   "RISK_SCORE_UNSPECIFIED" - Unused.
  2787  	//   "RISK_LOW" - Low risk - Lower indication of sensitive data that appears to
  2788  	// have additional access restrictions in place or no indication of sensitive
  2789  	// data found.
  2790  	//   "RISK_MODERATE" - Medium risk - Sensitive data may be present but
  2791  	// additional access or fine grain access restrictions appear to be present.
  2792  	// Consider limiting access even further or transform data to mask.
  2793  	//   "RISK_HIGH" - High risk – SPII may be present. Access controls may
  2794  	// include public ACLs. Exfiltration of data may lead to user data loss.
  2795  	// Re-identification of users may be possible. Consider limiting usage and or
  2796  	// removing SPII.
  2797  	Score string `json:"score,omitempty"`
  2798  	// ForceSendFields is a list of field names (e.g. "Score") to unconditionally
  2799  	// include in API requests. By default, fields with empty or default values are
  2800  	// omitted from API requests. See
  2801  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2802  	// details.
  2803  	ForceSendFields []string `json:"-"`
  2804  	// NullFields is a list of field names (e.g. "Score") to include in API
  2805  	// requests with the JSON null value. By default, fields with empty values are
  2806  	// omitted from API requests. See
  2807  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2808  	NullFields []string `json:"-"`
  2809  }
  2810  
  2811  func (s *GooglePrivacyDlpV2DataRiskLevel) MarshalJSON() ([]byte, error) {
  2812  	type NoMethod GooglePrivacyDlpV2DataRiskLevel
  2813  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2814  }
  2815  
  2816  // GooglePrivacyDlpV2DataSourceType: Message used to identify the type of
  2817  // resource being profiled.
  2818  type GooglePrivacyDlpV2DataSourceType struct {
  2819  	// DataSource: Output only. An identifying string to the type of resource being
  2820  	// profiled. Current values: google/bigquery/table, google/project
  2821  	DataSource string `json:"dataSource,omitempty"`
  2822  	// ForceSendFields is a list of field names (e.g. "DataSource") to
  2823  	// unconditionally include in API requests. By default, fields with empty or
  2824  	// default values are omitted from API requests. See
  2825  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2826  	// details.
  2827  	ForceSendFields []string `json:"-"`
  2828  	// NullFields is a list of field names (e.g. "DataSource") to include in API
  2829  	// requests with the JSON null value. By default, fields with empty values are
  2830  	// omitted from API requests. See
  2831  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2832  	NullFields []string `json:"-"`
  2833  }
  2834  
  2835  func (s *GooglePrivacyDlpV2DataSourceType) MarshalJSON() ([]byte, error) {
  2836  	type NoMethod GooglePrivacyDlpV2DataSourceType
  2837  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2838  }
  2839  
  2840  // GooglePrivacyDlpV2DatabaseResourceCollection: Match database resources using
  2841  // regex filters. Examples of database resources are tables, views, and stored
  2842  // procedures.
  2843  type GooglePrivacyDlpV2DatabaseResourceCollection struct {
  2844  	// IncludeRegexes: A collection of regular expressions to match a database
  2845  	// resource against.
  2846  	IncludeRegexes *GooglePrivacyDlpV2DatabaseResourceRegexes `json:"includeRegexes,omitempty"`
  2847  	// ForceSendFields is a list of field names (e.g. "IncludeRegexes") to
  2848  	// unconditionally include in API requests. By default, fields with empty or
  2849  	// default values are omitted from API requests. See
  2850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2851  	// details.
  2852  	ForceSendFields []string `json:"-"`
  2853  	// NullFields is a list of field names (e.g. "IncludeRegexes") to include in
  2854  	// API requests with the JSON null value. By default, fields with empty values
  2855  	// are omitted from API requests. See
  2856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2857  	NullFields []string `json:"-"`
  2858  }
  2859  
  2860  func (s *GooglePrivacyDlpV2DatabaseResourceCollection) MarshalJSON() ([]byte, error) {
  2861  	type NoMethod GooglePrivacyDlpV2DatabaseResourceCollection
  2862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2863  }
  2864  
  2865  // GooglePrivacyDlpV2DatabaseResourceReference: Identifies a single database
  2866  // resource, like a table within a database.
  2867  type GooglePrivacyDlpV2DatabaseResourceReference struct {
  2868  	// Instance: Required. The instance where this resource is located. For
  2869  	// example: Cloud SQL's instance id.
  2870  	Instance string `json:"instance,omitempty"`
  2871  	// ProjectId: Required. If within a project-level config, then this must match
  2872  	// the config's project id.
  2873  	ProjectId string `json:"projectId,omitempty"`
  2874  	// ForceSendFields is a list of field names (e.g. "Instance") to
  2875  	// unconditionally include in API requests. By default, fields with empty or
  2876  	// default values are omitted from API requests. See
  2877  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2878  	// details.
  2879  	ForceSendFields []string `json:"-"`
  2880  	// NullFields is a list of field names (e.g. "Instance") to include in API
  2881  	// requests with the JSON null value. By default, fields with empty values are
  2882  	// omitted from API requests. See
  2883  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2884  	NullFields []string `json:"-"`
  2885  }
  2886  
  2887  func (s *GooglePrivacyDlpV2DatabaseResourceReference) MarshalJSON() ([]byte, error) {
  2888  	type NoMethod GooglePrivacyDlpV2DatabaseResourceReference
  2889  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2890  }
  2891  
  2892  // GooglePrivacyDlpV2DatabaseResourceRegex: A pattern to match against one or
  2893  // more database resources. At least one pattern must be specified. Regular
  2894  // expressions use RE2 syntax (https://github.com/google/re2/wiki/Syntax); a
  2895  // guide can be found under the google/re2 repository on GitHub.
  2896  type GooglePrivacyDlpV2DatabaseResourceRegex struct {
  2897  	// DatabaseRegex: Regex to test the database name against. If empty, all
  2898  	// databases match.
  2899  	DatabaseRegex string `json:"databaseRegex,omitempty"`
  2900  	// DatabaseResourceNameRegex: Regex to test the database resource's name
  2901  	// against. An example of a database resource name is a table's name. Other
  2902  	// database resource names like view names could be included in the future. If
  2903  	// empty, all database resources match.
  2904  	DatabaseResourceNameRegex string `json:"databaseResourceNameRegex,omitempty"`
  2905  	// InstanceRegex: Regex to test the instance name against. If empty, all
  2906  	// instances match.
  2907  	InstanceRegex string `json:"instanceRegex,omitempty"`
  2908  	// ProjectIdRegex: For organizations, if unset, will match all projects. Has no
  2909  	// effect for Data Profile configurations created within a project.
  2910  	ProjectIdRegex string `json:"projectIdRegex,omitempty"`
  2911  	// ForceSendFields is a list of field names (e.g. "DatabaseRegex") to
  2912  	// unconditionally include in API requests. By default, fields with empty or
  2913  	// default values are omitted from API requests. See
  2914  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2915  	// details.
  2916  	ForceSendFields []string `json:"-"`
  2917  	// NullFields is a list of field names (e.g. "DatabaseRegex") to include in API
  2918  	// requests with the JSON null value. By default, fields with empty values are
  2919  	// omitted from API requests. See
  2920  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2921  	NullFields []string `json:"-"`
  2922  }
  2923  
  2924  func (s *GooglePrivacyDlpV2DatabaseResourceRegex) MarshalJSON() ([]byte, error) {
  2925  	type NoMethod GooglePrivacyDlpV2DatabaseResourceRegex
  2926  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2927  }
  2928  
  2929  // GooglePrivacyDlpV2DatabaseResourceRegexes: A collection of regular
  2930  // expressions to determine what database resources to match against.
  2931  type GooglePrivacyDlpV2DatabaseResourceRegexes struct {
  2932  	// Patterns: A group of regular expression patterns to match against one or
  2933  	// more database resources. Maximum of 100 entries. The sum of all regular
  2934  	// expression's length can't exceed 10 KiB.
  2935  	Patterns []*GooglePrivacyDlpV2DatabaseResourceRegex `json:"patterns,omitempty"`
  2936  	// ForceSendFields is a list of field names (e.g. "Patterns") to
  2937  	// unconditionally include in API requests. By default, fields with empty or
  2938  	// default values are omitted from API requests. See
  2939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2940  	// details.
  2941  	ForceSendFields []string `json:"-"`
  2942  	// NullFields is a list of field names (e.g. "Patterns") to include in API
  2943  	// requests with the JSON null value. By default, fields with empty values are
  2944  	// omitted from API requests. See
  2945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2946  	NullFields []string `json:"-"`
  2947  }
  2948  
  2949  func (s *GooglePrivacyDlpV2DatabaseResourceRegexes) MarshalJSON() ([]byte, error) {
  2950  	type NoMethod GooglePrivacyDlpV2DatabaseResourceRegexes
  2951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2952  }
  2953  
  2954  // GooglePrivacyDlpV2DatastoreKey: Record key for a finding in Cloud Datastore.
  2955  type GooglePrivacyDlpV2DatastoreKey struct {
  2956  	// EntityKey: Datastore entity key.
  2957  	EntityKey *GooglePrivacyDlpV2Key `json:"entityKey,omitempty"`
  2958  	// ForceSendFields is a list of field names (e.g. "EntityKey") to
  2959  	// unconditionally include in API requests. By default, fields with empty or
  2960  	// default values are omitted from API requests. See
  2961  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2962  	// details.
  2963  	ForceSendFields []string `json:"-"`
  2964  	// NullFields is a list of field names (e.g. "EntityKey") to include in API
  2965  	// requests with the JSON null value. By default, fields with empty values are
  2966  	// omitted from API requests. See
  2967  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2968  	NullFields []string `json:"-"`
  2969  }
  2970  
  2971  func (s *GooglePrivacyDlpV2DatastoreKey) MarshalJSON() ([]byte, error) {
  2972  	type NoMethod GooglePrivacyDlpV2DatastoreKey
  2973  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2974  }
  2975  
  2976  // GooglePrivacyDlpV2DatastoreOptions: Options defining a data set within
  2977  // Google Cloud Datastore.
  2978  type GooglePrivacyDlpV2DatastoreOptions struct {
  2979  	// Kind: The kind to process.
  2980  	Kind *GooglePrivacyDlpV2KindExpression `json:"kind,omitempty"`
  2981  	// PartitionId: A partition ID identifies a grouping of entities. The grouping
  2982  	// is always by project and namespace, however the namespace ID may be empty.
  2983  	PartitionId *GooglePrivacyDlpV2PartitionId `json:"partitionId,omitempty"`
  2984  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2985  	// include in API requests. By default, fields with empty or default values are
  2986  	// omitted from API requests. See
  2987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2988  	// details.
  2989  	ForceSendFields []string `json:"-"`
  2990  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2991  	// with the JSON null value. By default, fields with empty values are omitted
  2992  	// from API requests. See
  2993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2994  	NullFields []string `json:"-"`
  2995  }
  2996  
  2997  func (s *GooglePrivacyDlpV2DatastoreOptions) MarshalJSON() ([]byte, error) {
  2998  	type NoMethod GooglePrivacyDlpV2DatastoreOptions
  2999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3000  }
  3001  
  3002  // GooglePrivacyDlpV2DateShiftConfig: Shifts dates by random number of days,
  3003  // with option to be consistent for the same context. See
  3004  // https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting
  3005  // to learn more.
  3006  type GooglePrivacyDlpV2DateShiftConfig struct {
  3007  	// Context: Points to the field that contains the context, for example, an
  3008  	// entity id. If set, must also set cryptoKey. If set, shift will be consistent
  3009  	// for the given context.
  3010  	Context *GooglePrivacyDlpV2FieldId `json:"context,omitempty"`
  3011  	// CryptoKey: Causes the shift to be computed based on this key and the
  3012  	// context. This results in the same shift for the same context and crypto_key.
  3013  	// If set, must also set context. Can only be applied to table items.
  3014  	CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
  3015  	// LowerBoundDays: Required. For example, -5 means shift date to at most 5 days
  3016  	// back in the past.
  3017  	LowerBoundDays int64 `json:"lowerBoundDays,omitempty"`
  3018  	// UpperBoundDays: Required. Range of shift in days. Actual shift will be
  3019  	// selected at random within this range (inclusive ends). Negative means shift
  3020  	// to earlier in time. Must not be more than 365250 days (1000 years) each
  3021  	// direction. For example, 3 means shift date to at most 3 days into the
  3022  	// future.
  3023  	UpperBoundDays int64 `json:"upperBoundDays,omitempty"`
  3024  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
  3025  	// include in API requests. By default, fields with empty or default values are
  3026  	// omitted from API requests. See
  3027  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3028  	// details.
  3029  	ForceSendFields []string `json:"-"`
  3030  	// NullFields is a list of field names (e.g. "Context") to include in API
  3031  	// requests with the JSON null value. By default, fields with empty values are
  3032  	// omitted from API requests. See
  3033  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3034  	NullFields []string `json:"-"`
  3035  }
  3036  
  3037  func (s *GooglePrivacyDlpV2DateShiftConfig) MarshalJSON() ([]byte, error) {
  3038  	type NoMethod GooglePrivacyDlpV2DateShiftConfig
  3039  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3040  }
  3041  
  3042  // GooglePrivacyDlpV2DateTime: Message for a date time object. e.g. 2018-01-01,
  3043  // 5th August.
  3044  type GooglePrivacyDlpV2DateTime struct {
  3045  	// Date: One or more of the following must be set. Must be a valid date or time
  3046  	// value.
  3047  	Date *GoogleTypeDate `json:"date,omitempty"`
  3048  	// DayOfWeek: Day of week
  3049  	//
  3050  	// Possible values:
  3051  	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
  3052  	//   "MONDAY" - Monday
  3053  	//   "TUESDAY" - Tuesday
  3054  	//   "WEDNESDAY" - Wednesday
  3055  	//   "THURSDAY" - Thursday
  3056  	//   "FRIDAY" - Friday
  3057  	//   "SATURDAY" - Saturday
  3058  	//   "SUNDAY" - Sunday
  3059  	DayOfWeek string `json:"dayOfWeek,omitempty"`
  3060  	// Time: Time of day
  3061  	Time *GoogleTypeTimeOfDay `json:"time,omitempty"`
  3062  	// TimeZone: Time zone
  3063  	TimeZone *GooglePrivacyDlpV2TimeZone `json:"timeZone,omitempty"`
  3064  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
  3065  	// include in API requests. By default, fields with empty or default values are
  3066  	// omitted from API requests. See
  3067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3068  	// details.
  3069  	ForceSendFields []string `json:"-"`
  3070  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  3071  	// with the JSON null value. By default, fields with empty values are omitted
  3072  	// from API requests. See
  3073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3074  	NullFields []string `json:"-"`
  3075  }
  3076  
  3077  func (s *GooglePrivacyDlpV2DateTime) MarshalJSON() ([]byte, error) {
  3078  	type NoMethod GooglePrivacyDlpV2DateTime
  3079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3080  }
  3081  
  3082  // GooglePrivacyDlpV2Deidentify: Create a de-identified copy of the requested
  3083  // table or files. A TransformationDetail will be created for each
  3084  // transformation. If any rows in BigQuery are skipped during de-identification
  3085  // (transformation errors or row size exceeds BigQuery insert API limits) they
  3086  // are placed in the failure output table. If the original row exceeds the
  3087  // BigQuery insert API limit it will be truncated when written to the failure
  3088  // output table. The failure output table can be set in the
  3089  // action.deidentify.output.big_query_output.deidentified_failure_output_table
  3090  // field, if no table is set, a table will be automatically created in the same
  3091  // project and dataset as the original table. Compatible with: Inspect
  3092  type GooglePrivacyDlpV2Deidentify struct {
  3093  	// CloudStorageOutput: Required. User settable Cloud Storage bucket and folders
  3094  	// to store de-identified files. This field must be set for cloud storage
  3095  	// deidentification. The output Cloud Storage bucket must be different from the
  3096  	// input bucket. De-identified files will overwrite files in the output path.
  3097  	// Form of: gs://bucket/folder/ or gs://bucket
  3098  	CloudStorageOutput string `json:"cloudStorageOutput,omitempty"`
  3099  	// FileTypesToTransform: List of user-specified file type groups to transform.
  3100  	// If specified, only the files with these filetypes will be transformed. If
  3101  	// empty, all supported files will be transformed. Supported types may be
  3102  	// automatically added over time. If a file type is set in this field that
  3103  	// isn't supported by the Deidentify action then the job will fail and will not
  3104  	// be successfully created/started. Currently the only filetypes supported are:
  3105  	// IMAGES, TEXT_FILES, CSV, TSV.
  3106  	//
  3107  	// Possible values:
  3108  	//   "FILE_TYPE_UNSPECIFIED" - Includes all files.
  3109  	//   "BINARY_FILE" - Includes all file extensions not covered by another entry.
  3110  	// Binary scanning attempts to convert the content of the file to utf_8 to scan
  3111  	// the file. If you wish to avoid this fall back, specify one or more of the
  3112  	// other file types in your storage scan.
  3113  	//   "TEXT_FILE" - Included file extensions: asc,asp, aspx, brf, c, cc,cfm,
  3114  	// cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h,
  3115  	// hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl,
  3116  	// plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc,
  3117  	// scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js,
  3118  	// json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml,
  3119  	// xcodeproj, xml, xsl, xsd, yml, yaml.
  3120  	//   "IMAGE" - Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting
  3121  	// bytes_limit_per_file or bytes_limit_per_file_percent has no effect on image
  3122  	// files. Image inspection is restricted to the `global`, `us`, `asia`, and
  3123  	// `europe` regions.
  3124  	//   "WORD" - Microsoft Word files larger than 30 MB will be scanned as binary
  3125  	// files. Included file extensions: docx, dotx, docm, dotm. Setting
  3126  	// `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on
  3127  	// Word files.
  3128  	//   "PDF" - PDF files larger than 30 MB will be scanned as binary files.
  3129  	// Included file extensions: pdf. Setting `bytes_limit_per_file` or
  3130  	// `bytes_limit_per_file_percent` has no effect on PDF files.
  3131  	//   "AVRO" - Included file extensions: avro
  3132  	//   "CSV" - Included file extensions: csv
  3133  	//   "TSV" - Included file extensions: tsv
  3134  	//   "POWERPOINT" - Microsoft PowerPoint files larger than 30 MB will be
  3135  	// scanned as binary files. Included file extensions: pptx, pptm, potx, potm,
  3136  	// pot. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no
  3137  	// effect on PowerPoint files.
  3138  	//   "EXCEL" - Microsoft Excel files larger than 30 MB will be scanned as
  3139  	// binary files. Included file extensions: xlsx, xlsm, xltx, xltm. Setting
  3140  	// `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on
  3141  	// Excel files.
  3142  	FileTypesToTransform []string `json:"fileTypesToTransform,omitempty"`
  3143  	// TransformationConfig: User specified deidentify templates and configs for
  3144  	// structured, unstructured, and image files.
  3145  	TransformationConfig *GooglePrivacyDlpV2TransformationConfig `json:"transformationConfig,omitempty"`
  3146  	// TransformationDetailsStorageConfig: Config for storing transformation
  3147  	// details. This is separate from the de-identified content, and contains
  3148  	// metadata about the successful transformations and/or failures that occurred
  3149  	// while de-identifying. This needs to be set in order for users to access
  3150  	// information about the status of each transformation (see
  3151  	// TransformationDetails message for more information about what is noted).
  3152  	TransformationDetailsStorageConfig *GooglePrivacyDlpV2TransformationDetailsStorageConfig `json:"transformationDetailsStorageConfig,omitempty"`
  3153  	// ForceSendFields is a list of field names (e.g. "CloudStorageOutput") to
  3154  	// unconditionally include in API requests. By default, fields with empty or
  3155  	// default values are omitted from API requests. See
  3156  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3157  	// details.
  3158  	ForceSendFields []string `json:"-"`
  3159  	// NullFields is a list of field names (e.g. "CloudStorageOutput") to include
  3160  	// in API requests with the JSON null value. By default, fields with empty
  3161  	// values are omitted from API requests. See
  3162  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3163  	NullFields []string `json:"-"`
  3164  }
  3165  
  3166  func (s *GooglePrivacyDlpV2Deidentify) MarshalJSON() ([]byte, error) {
  3167  	type NoMethod GooglePrivacyDlpV2Deidentify
  3168  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3169  }
  3170  
  3171  // GooglePrivacyDlpV2DeidentifyConfig: The configuration that controls how the
  3172  // data will change.
  3173  type GooglePrivacyDlpV2DeidentifyConfig struct {
  3174  	// ImageTransformations: Treat the dataset as an image and redact.
  3175  	ImageTransformations *GooglePrivacyDlpV2ImageTransformations `json:"imageTransformations,omitempty"`
  3176  	// InfoTypeTransformations: Treat the dataset as free-form text and apply the
  3177  	// same free text transformation everywhere.
  3178  	InfoTypeTransformations *GooglePrivacyDlpV2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
  3179  	// RecordTransformations: Treat the dataset as structured. Transformations can
  3180  	// be applied to specific locations within structured datasets, such as
  3181  	// transforming a column within a table.
  3182  	RecordTransformations *GooglePrivacyDlpV2RecordTransformations `json:"recordTransformations,omitempty"`
  3183  	// TransformationErrorHandling: Mode for handling transformation errors. If
  3184  	// left unspecified, the default mode is
  3185  	// `TransformationErrorHandling.ThrowError`.
  3186  	TransformationErrorHandling *GooglePrivacyDlpV2TransformationErrorHandling `json:"transformationErrorHandling,omitempty"`
  3187  	// ForceSendFields is a list of field names (e.g. "ImageTransformations") to
  3188  	// unconditionally include in API requests. By default, fields with empty or
  3189  	// default values are omitted from API requests. See
  3190  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3191  	// details.
  3192  	ForceSendFields []string `json:"-"`
  3193  	// NullFields is a list of field names (e.g. "ImageTransformations") to include
  3194  	// in API requests with the JSON null value. By default, fields with empty
  3195  	// values are omitted from API requests. See
  3196  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3197  	NullFields []string `json:"-"`
  3198  }
  3199  
  3200  func (s *GooglePrivacyDlpV2DeidentifyConfig) MarshalJSON() ([]byte, error) {
  3201  	type NoMethod GooglePrivacyDlpV2DeidentifyConfig
  3202  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3203  }
  3204  
  3205  // GooglePrivacyDlpV2DeidentifyContentRequest: Request to de-identify a
  3206  // ContentItem.
  3207  type GooglePrivacyDlpV2DeidentifyContentRequest struct {
  3208  	// DeidentifyConfig: Configuration for the de-identification of the content
  3209  	// item. Items specified here will override the template referenced by the
  3210  	// deidentify_template_name argument.
  3211  	DeidentifyConfig *GooglePrivacyDlpV2DeidentifyConfig `json:"deidentifyConfig,omitempty"`
  3212  	// DeidentifyTemplateName: Template to use. Any configuration directly
  3213  	// specified in deidentify_config will override those set in the template.
  3214  	// Singular fields that are set in this request will replace their
  3215  	// corresponding fields in the template. Repeated fields are appended. Singular
  3216  	// sub-messages and groups are recursively merged.
  3217  	DeidentifyTemplateName string `json:"deidentifyTemplateName,omitempty"`
  3218  	// InspectConfig: Configuration for the inspector. Items specified here will
  3219  	// override the template referenced by the inspect_template_name argument.
  3220  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  3221  	// InspectTemplateName: Template to use. Any configuration directly specified
  3222  	// in inspect_config will override those set in the template. Singular fields
  3223  	// that are set in this request will replace their corresponding fields in the
  3224  	// template. Repeated fields are appended. Singular sub-messages and groups are
  3225  	// recursively merged.
  3226  	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
  3227  	// Item: The item to de-identify. Will be treated as text. This value must be
  3228  	// of type Table if your deidentify_config is a RecordTransformations object.
  3229  	Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
  3230  	// LocationId: Deprecated. This field has no effect.
  3231  	LocationId string `json:"locationId,omitempty"`
  3232  	// ForceSendFields is a list of field names (e.g. "DeidentifyConfig") to
  3233  	// unconditionally include in API requests. By default, fields with empty or
  3234  	// default values are omitted from API requests. See
  3235  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3236  	// details.
  3237  	ForceSendFields []string `json:"-"`
  3238  	// NullFields is a list of field names (e.g. "DeidentifyConfig") to include in
  3239  	// API requests with the JSON null value. By default, fields with empty values
  3240  	// are omitted from API requests. See
  3241  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3242  	NullFields []string `json:"-"`
  3243  }
  3244  
  3245  func (s *GooglePrivacyDlpV2DeidentifyContentRequest) MarshalJSON() ([]byte, error) {
  3246  	type NoMethod GooglePrivacyDlpV2DeidentifyContentRequest
  3247  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3248  }
  3249  
  3250  // GooglePrivacyDlpV2DeidentifyContentResponse: Results of de-identifying a
  3251  // ContentItem.
  3252  type GooglePrivacyDlpV2DeidentifyContentResponse struct {
  3253  	// Item: The de-identified item.
  3254  	Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
  3255  	// Overview: An overview of the changes that were made on the `item`.
  3256  	Overview *GooglePrivacyDlpV2TransformationOverview `json:"overview,omitempty"`
  3257  
  3258  	// ServerResponse contains the HTTP response code and headers from the server.
  3259  	googleapi.ServerResponse `json:"-"`
  3260  	// ForceSendFields is a list of field names (e.g. "Item") to unconditionally
  3261  	// include in API requests. By default, fields with empty or default values are
  3262  	// omitted from API requests. See
  3263  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3264  	// details.
  3265  	ForceSendFields []string `json:"-"`
  3266  	// NullFields is a list of field names (e.g. "Item") to include in API requests
  3267  	// with the JSON null value. By default, fields with empty values are omitted
  3268  	// from API requests. See
  3269  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3270  	NullFields []string `json:"-"`
  3271  }
  3272  
  3273  func (s *GooglePrivacyDlpV2DeidentifyContentResponse) MarshalJSON() ([]byte, error) {
  3274  	type NoMethod GooglePrivacyDlpV2DeidentifyContentResponse
  3275  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3276  }
  3277  
  3278  // GooglePrivacyDlpV2DeidentifyDataSourceDetails: The results of a Deidentify
  3279  // action from an inspect job.
  3280  type GooglePrivacyDlpV2DeidentifyDataSourceDetails struct {
  3281  	// DeidentifyStats: Stats about the de-identification operation.
  3282  	DeidentifyStats *GooglePrivacyDlpV2DeidentifyDataSourceStats `json:"deidentifyStats,omitempty"`
  3283  	// RequestedOptions: De-identification config used for the request.
  3284  	RequestedOptions *GooglePrivacyDlpV2RequestedDeidentifyOptions `json:"requestedOptions,omitempty"`
  3285  	// ForceSendFields is a list of field names (e.g. "DeidentifyStats") to
  3286  	// unconditionally include in API requests. By default, fields with empty or
  3287  	// default values are omitted from API requests. See
  3288  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3289  	// details.
  3290  	ForceSendFields []string `json:"-"`
  3291  	// NullFields is a list of field names (e.g. "DeidentifyStats") to include in
  3292  	// API requests with the JSON null value. By default, fields with empty values
  3293  	// are omitted from API requests. See
  3294  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3295  	NullFields []string `json:"-"`
  3296  }
  3297  
  3298  func (s *GooglePrivacyDlpV2DeidentifyDataSourceDetails) MarshalJSON() ([]byte, error) {
  3299  	type NoMethod GooglePrivacyDlpV2DeidentifyDataSourceDetails
  3300  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3301  }
  3302  
  3303  // GooglePrivacyDlpV2DeidentifyDataSourceStats: Summary of what was modified
  3304  // during a transformation.
  3305  type GooglePrivacyDlpV2DeidentifyDataSourceStats struct {
  3306  	// TransformationCount: Number of successfully applied transformations.
  3307  	TransformationCount int64 `json:"transformationCount,omitempty,string"`
  3308  	// TransformationErrorCount: Number of errors encountered while trying to apply
  3309  	// transformations.
  3310  	TransformationErrorCount int64 `json:"transformationErrorCount,omitempty,string"`
  3311  	// TransformedBytes: Total size in bytes that were transformed in some way.
  3312  	TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
  3313  	// ForceSendFields is a list of field names (e.g. "TransformationCount") to
  3314  	// unconditionally include in API requests. By default, fields with empty or
  3315  	// default values are omitted from API requests. See
  3316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3317  	// details.
  3318  	ForceSendFields []string `json:"-"`
  3319  	// NullFields is a list of field names (e.g. "TransformationCount") to include
  3320  	// in API requests with the JSON null value. By default, fields with empty
  3321  	// values are omitted from API requests. See
  3322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3323  	NullFields []string `json:"-"`
  3324  }
  3325  
  3326  func (s *GooglePrivacyDlpV2DeidentifyDataSourceStats) MarshalJSON() ([]byte, error) {
  3327  	type NoMethod GooglePrivacyDlpV2DeidentifyDataSourceStats
  3328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3329  }
  3330  
  3331  // GooglePrivacyDlpV2DeidentifyTemplate: DeidentifyTemplates contains
  3332  // instructions on how to de-identify content. See
  3333  // https://cloud.google.com/sensitive-data-protection/docs/concepts-templates
  3334  // to learn more.
  3335  type GooglePrivacyDlpV2DeidentifyTemplate struct {
  3336  	// CreateTime: Output only. The creation timestamp of an inspectTemplate.
  3337  	CreateTime string `json:"createTime,omitempty"`
  3338  	// DeidentifyConfig: The core content of the template.
  3339  	DeidentifyConfig *GooglePrivacyDlpV2DeidentifyConfig `json:"deidentifyConfig,omitempty"`
  3340  	// Description: Short description (max 256 chars).
  3341  	Description string `json:"description,omitempty"`
  3342  	// DisplayName: Display name (max 256 chars).
  3343  	DisplayName string `json:"displayName,omitempty"`
  3344  	// Name: Output only. The template name. The template will have one of the
  3345  	// following formats: `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR
  3346  	// `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`
  3347  	Name string `json:"name,omitempty"`
  3348  	// UpdateTime: Output only. The last update timestamp of an inspectTemplate.
  3349  	UpdateTime string `json:"updateTime,omitempty"`
  3350  
  3351  	// ServerResponse contains the HTTP response code and headers from the server.
  3352  	googleapi.ServerResponse `json:"-"`
  3353  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3354  	// unconditionally include in API requests. By default, fields with empty or
  3355  	// default values are omitted from API requests. See
  3356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3357  	// details.
  3358  	ForceSendFields []string `json:"-"`
  3359  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3360  	// requests with the JSON null value. By default, fields with empty values are
  3361  	// omitted from API requests. See
  3362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3363  	NullFields []string `json:"-"`
  3364  }
  3365  
  3366  func (s *GooglePrivacyDlpV2DeidentifyTemplate) MarshalJSON() ([]byte, error) {
  3367  	type NoMethod GooglePrivacyDlpV2DeidentifyTemplate
  3368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3369  }
  3370  
  3371  // GooglePrivacyDlpV2DeltaPresenceEstimationConfig: δ-presence metric, used to
  3372  // estimate how likely it is for an attacker to figure out that one given
  3373  // individual appears in a de-identified dataset. Similarly to the k-map
  3374  // metric, we cannot compute δ-presence exactly without knowing the attack
  3375  // dataset, so we use a statistical model instead.
  3376  type GooglePrivacyDlpV2DeltaPresenceEstimationConfig struct {
  3377  	// AuxiliaryTables: Several auxiliary tables can be used in the analysis. Each
  3378  	// custom_tag used to tag a quasi-identifiers field must appear in exactly one
  3379  	// field of one auxiliary table.
  3380  	AuxiliaryTables []*GooglePrivacyDlpV2StatisticalTable `json:"auxiliaryTables,omitempty"`
  3381  	// QuasiIds: Required. Fields considered to be quasi-identifiers. No two fields
  3382  	// can have the same tag.
  3383  	QuasiIds []*GooglePrivacyDlpV2QuasiId `json:"quasiIds,omitempty"`
  3384  	// RegionCode: ISO 3166-1 alpha-2 region code to use in the statistical
  3385  	// modeling. Set if no column is tagged with a region-specific InfoType (like
  3386  	// US_ZIP_5) or a region code.
  3387  	RegionCode string `json:"regionCode,omitempty"`
  3388  	// ForceSendFields is a list of field names (e.g. "AuxiliaryTables") to
  3389  	// unconditionally include in API requests. By default, fields with empty or
  3390  	// default values are omitted from API requests. See
  3391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3392  	// details.
  3393  	ForceSendFields []string `json:"-"`
  3394  	// NullFields is a list of field names (e.g. "AuxiliaryTables") to include in
  3395  	// API requests with the JSON null value. By default, fields with empty values
  3396  	// are omitted from API requests. See
  3397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3398  	NullFields []string `json:"-"`
  3399  }
  3400  
  3401  func (s *GooglePrivacyDlpV2DeltaPresenceEstimationConfig) MarshalJSON() ([]byte, error) {
  3402  	type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationConfig
  3403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3404  }
  3405  
  3406  // GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket: A
  3407  // DeltaPresenceEstimationHistogramBucket message with the following values:
  3408  // min_probability: 0.1 max_probability: 0.2 frequency: 42 means that there are
  3409  // 42 records for which δ is in [0.1, 0.2). An important particular case is
  3410  // when min_probability = max_probability = 1: then, every individual who
  3411  // shares this quasi-identifier combination is in the dataset.
  3412  type GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket struct {
  3413  	// BucketSize: Number of records within these probability bounds.
  3414  	BucketSize int64 `json:"bucketSize,omitempty,string"`
  3415  	// BucketValueCount: Total number of distinct quasi-identifier tuple values in
  3416  	// this bucket.
  3417  	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
  3418  	// BucketValues: Sample of quasi-identifier tuple values in this bucket. The
  3419  	// total number of classes returned per bucket is capped at 20.
  3420  	BucketValues []*GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues `json:"bucketValues,omitempty"`
  3421  	// MaxProbability: Always greater than or equal to min_probability.
  3422  	MaxProbability float64 `json:"maxProbability,omitempty"`
  3423  	// MinProbability: Between 0 and 1.
  3424  	MinProbability float64 `json:"minProbability,omitempty"`
  3425  	// ForceSendFields is a list of field names (e.g. "BucketSize") to
  3426  	// unconditionally include in API requests. By default, fields with empty or
  3427  	// default values are omitted from API requests. See
  3428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3429  	// details.
  3430  	ForceSendFields []string `json:"-"`
  3431  	// NullFields is a list of field names (e.g. "BucketSize") to include in API
  3432  	// requests with the JSON null value. By default, fields with empty values are
  3433  	// omitted from API requests. See
  3434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3435  	NullFields []string `json:"-"`
  3436  }
  3437  
  3438  func (s *GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
  3439  	type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket
  3440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3441  }
  3442  
  3443  func (s *GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket) UnmarshalJSON(data []byte) error {
  3444  	type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket
  3445  	var s1 struct {
  3446  		MaxProbability gensupport.JSONFloat64 `json:"maxProbability"`
  3447  		MinProbability gensupport.JSONFloat64 `json:"minProbability"`
  3448  		*NoMethod
  3449  	}
  3450  	s1.NoMethod = (*NoMethod)(s)
  3451  	if err := json.Unmarshal(data, &s1); err != nil {
  3452  		return err
  3453  	}
  3454  	s.MaxProbability = float64(s1.MaxProbability)
  3455  	s.MinProbability = float64(s1.MinProbability)
  3456  	return nil
  3457  }
  3458  
  3459  // GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues: A tuple of values
  3460  // for the quasi-identifier columns.
  3461  type GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues struct {
  3462  	// EstimatedProbability: The estimated probability that a given individual
  3463  	// sharing these quasi-identifier values is in the dataset. This value,
  3464  	// typically called δ, is the ratio between the number of records in the
  3465  	// dataset with these quasi-identifier values, and the total number of
  3466  	// individuals (inside *and* outside the dataset) with these quasi-identifier
  3467  	// values. For example, if there are 15 individuals in the dataset who share
  3468  	// the same quasi-identifier values, and an estimated 100 people in the entire
  3469  	// population with these values, then δ is 0.15.
  3470  	EstimatedProbability float64 `json:"estimatedProbability,omitempty"`
  3471  	// QuasiIdsValues: The quasi-identifier values.
  3472  	QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
  3473  	// ForceSendFields is a list of field names (e.g. "EstimatedProbability") to
  3474  	// unconditionally include in API requests. By default, fields with empty or
  3475  	// default values are omitted from API requests. See
  3476  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3477  	// details.
  3478  	ForceSendFields []string `json:"-"`
  3479  	// NullFields is a list of field names (e.g. "EstimatedProbability") to include
  3480  	// in API requests with the JSON null value. By default, fields with empty
  3481  	// values are omitted from API requests. See
  3482  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3483  	NullFields []string `json:"-"`
  3484  }
  3485  
  3486  func (s *GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
  3487  	type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues
  3488  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3489  }
  3490  
  3491  func (s *GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues) UnmarshalJSON(data []byte) error {
  3492  	type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues
  3493  	var s1 struct {
  3494  		EstimatedProbability gensupport.JSONFloat64 `json:"estimatedProbability"`
  3495  		*NoMethod
  3496  	}
  3497  	s1.NoMethod = (*NoMethod)(s)
  3498  	if err := json.Unmarshal(data, &s1); err != nil {
  3499  		return err
  3500  	}
  3501  	s.EstimatedProbability = float64(s1.EstimatedProbability)
  3502  	return nil
  3503  }
  3504  
  3505  // GooglePrivacyDlpV2DeltaPresenceEstimationResult: Result of the δ-presence
  3506  // computation. Note that these results are an estimation, not exact values.
  3507  type GooglePrivacyDlpV2DeltaPresenceEstimationResult struct {
  3508  	// DeltaPresenceEstimationHistogram: The intervals [min_probability,
  3509  	// max_probability) do not overlap. If a value doesn't correspond to any such
  3510  	// interval, the associated frequency is zero. For example, the following
  3511  	// records: {min_probability: 0, max_probability: 0.1, frequency: 17}
  3512  	// {min_probability: 0.2, max_probability: 0.3, frequency: 42}
  3513  	// {min_probability: 0.3, max_probability: 0.4, frequency: 99} mean that there
  3514  	// are no record with an estimated probability in [0.1, 0.2) nor larger or
  3515  	// equal to 0.4.
  3516  	DeltaPresenceEstimationHistogram []*GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket `json:"deltaPresenceEstimationHistogram,omitempty"`
  3517  	// ForceSendFields is a list of field names (e.g.
  3518  	// "DeltaPresenceEstimationHistogram") to unconditionally include in API
  3519  	// requests. By default, fields with empty or default values are omitted from
  3520  	// API requests. See
  3521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3522  	// details.
  3523  	ForceSendFields []string `json:"-"`
  3524  	// NullFields is a list of field names (e.g.
  3525  	// "DeltaPresenceEstimationHistogram") to include in API requests with the JSON
  3526  	// null value. By default, fields with empty values are omitted from API
  3527  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  3528  	// more details.
  3529  	NullFields []string `json:"-"`
  3530  }
  3531  
  3532  func (s *GooglePrivacyDlpV2DeltaPresenceEstimationResult) MarshalJSON() ([]byte, error) {
  3533  	type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationResult
  3534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3535  }
  3536  
  3537  // GooglePrivacyDlpV2DetectionRule: Deprecated; use `InspectionRuleSet`
  3538  // instead. Rule for modifying a `CustomInfoType` to alter behavior under
  3539  // certain circumstances, depending on the specific details of the rule. Not
  3540  // supported for the `surrogate_type` custom infoType.
  3541  type GooglePrivacyDlpV2DetectionRule struct {
  3542  	// HotwordRule: Hotword-based detection rule.
  3543  	HotwordRule *GooglePrivacyDlpV2HotwordRule `json:"hotwordRule,omitempty"`
  3544  	// ForceSendFields is a list of field names (e.g. "HotwordRule") to
  3545  	// unconditionally include in API requests. By default, fields with empty or
  3546  	// default values are omitted from API requests. See
  3547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3548  	// details.
  3549  	ForceSendFields []string `json:"-"`
  3550  	// NullFields is a list of field names (e.g. "HotwordRule") to include in API
  3551  	// requests with the JSON null value. By default, fields with empty values are
  3552  	// omitted from API requests. See
  3553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3554  	NullFields []string `json:"-"`
  3555  }
  3556  
  3557  func (s *GooglePrivacyDlpV2DetectionRule) MarshalJSON() ([]byte, error) {
  3558  	type NoMethod GooglePrivacyDlpV2DetectionRule
  3559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3560  }
  3561  
  3562  // GooglePrivacyDlpV2Dictionary: Custom information type based on a dictionary
  3563  // of words or phrases. This can be used to match sensitive information
  3564  // specific to the data, such as a list of employee IDs or job titles.
  3565  // Dictionary words are case-insensitive and all characters other than letters
  3566  // and digits in the unicode Basic Multilingual Plane
  3567  // (https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
  3568  // will be replaced with whitespace when scanning for matches, so the
  3569  // dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
  3570  // "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
  3571  // surrounding any match must be of a different type than the adjacent
  3572  // characters within the word, so letters must be next to non-letters and
  3573  // digits next to non-digits. For example, the dictionary word "jen" will match
  3574  // the first three letters of the text "jen123" but will return no matches for
  3575  // "jennifer". Dictionary words containing a large number of characters that
  3576  // are not letters or digits may result in unexpected findings because such
  3577  // characters are treated as whitespace. The limits
  3578  // (https://cloud.google.com/sensitive-data-protection/limits) page contains
  3579  // details about the size limits of dictionaries. For dictionaries that do not
  3580  // fit within these constraints, consider using `LargeCustomDictionaryConfig`
  3581  // in the `StoredInfoType` API.
  3582  type GooglePrivacyDlpV2Dictionary struct {
  3583  	// CloudStoragePath: Newline-delimited file of words in Cloud Storage. Only a
  3584  	// single file is accepted.
  3585  	CloudStoragePath *GooglePrivacyDlpV2CloudStoragePath `json:"cloudStoragePath,omitempty"`
  3586  	// WordList: List of words or phrases to search for.
  3587  	WordList *GooglePrivacyDlpV2WordList `json:"wordList,omitempty"`
  3588  	// ForceSendFields is a list of field names (e.g. "CloudStoragePath") to
  3589  	// unconditionally include in API requests. By default, fields with empty or
  3590  	// default values are omitted from API requests. See
  3591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3592  	// details.
  3593  	ForceSendFields []string `json:"-"`
  3594  	// NullFields is a list of field names (e.g. "CloudStoragePath") to include in
  3595  	// API requests with the JSON null value. By default, fields with empty values
  3596  	// are omitted from API requests. See
  3597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3598  	NullFields []string `json:"-"`
  3599  }
  3600  
  3601  func (s *GooglePrivacyDlpV2Dictionary) MarshalJSON() ([]byte, error) {
  3602  	type NoMethod GooglePrivacyDlpV2Dictionary
  3603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3604  }
  3605  
  3606  // GooglePrivacyDlpV2Disabled: Do not profile the tables.
  3607  type GooglePrivacyDlpV2Disabled struct {
  3608  }
  3609  
  3610  // GooglePrivacyDlpV2DiscoveryBigQueryConditions: Requirements that must be
  3611  // true before a table is scanned in discovery for the first time. There is an
  3612  // AND relationship between the top-level attributes. Additionally, minimum
  3613  // conditions with an OR relationship that must be met before Cloud DLP scans a
  3614  // table can be set (like a minimum row count or a minimum table age).
  3615  type GooglePrivacyDlpV2DiscoveryBigQueryConditions struct {
  3616  	// CreatedAfter: BigQuery table must have been created after this date. Used to
  3617  	// avoid backfilling.
  3618  	CreatedAfter string `json:"createdAfter,omitempty"`
  3619  	// OrConditions: At least one of the conditions must be true for a table to be
  3620  	// scanned.
  3621  	OrConditions *GooglePrivacyDlpV2OrConditions `json:"orConditions,omitempty"`
  3622  	// TypeCollection: Restrict discovery to categories of table types.
  3623  	//
  3624  	// Possible values:
  3625  	//   "BIG_QUERY_COLLECTION_UNSPECIFIED" - Unused.
  3626  	//   "BIG_QUERY_COLLECTION_ALL_TYPES" - Automatically generate profiles for all
  3627  	// tables, even if the table type is not yet fully supported for analysis.
  3628  	// Profiles for unsupported tables will be generated with errors to indicate
  3629  	// their partial support. When full support is added, the tables will
  3630  	// automatically be profiled during the next scheduled run.
  3631  	//   "BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES" - Only those types fully
  3632  	// supported will be profiled. Will expand automatically as Cloud DLP adds
  3633  	// support for new table types. Unsupported table types will not have partial
  3634  	// profiles generated.
  3635  	TypeCollection string `json:"typeCollection,omitempty"`
  3636  	// Types: Restrict discovery to specific table types.
  3637  	Types *GooglePrivacyDlpV2BigQueryTableTypes `json:"types,omitempty"`
  3638  	// ForceSendFields is a list of field names (e.g. "CreatedAfter") to
  3639  	// unconditionally include in API requests. By default, fields with empty or
  3640  	// default values are omitted from API requests. See
  3641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3642  	// details.
  3643  	ForceSendFields []string `json:"-"`
  3644  	// NullFields is a list of field names (e.g. "CreatedAfter") to include in API
  3645  	// requests with the JSON null value. By default, fields with empty values are
  3646  	// omitted from API requests. See
  3647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3648  	NullFields []string `json:"-"`
  3649  }
  3650  
  3651  func (s *GooglePrivacyDlpV2DiscoveryBigQueryConditions) MarshalJSON() ([]byte, error) {
  3652  	type NoMethod GooglePrivacyDlpV2DiscoveryBigQueryConditions
  3653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3654  }
  3655  
  3656  // GooglePrivacyDlpV2DiscoveryBigQueryFilter: Determines what tables will have
  3657  // profiles generated within an organization or project. Includes the ability
  3658  // to filter by regular expression patterns on project ID, dataset ID, and
  3659  // table ID.
  3660  type GooglePrivacyDlpV2DiscoveryBigQueryFilter struct {
  3661  	// OtherTables: Catch-all. This should always be the last filter in the list
  3662  	// because anything above it will apply first. Should only appear once in a
  3663  	// configuration. If none is specified, a default one will be added
  3664  	// automatically.
  3665  	OtherTables *GooglePrivacyDlpV2AllOtherBigQueryTables `json:"otherTables,omitempty"`
  3666  	// Tables: A specific set of tables for this filter to apply to. A table
  3667  	// collection must be specified in only one filter per config. If a table id or
  3668  	// dataset is empty, Cloud DLP assumes all tables in that collection must be
  3669  	// profiled. Must specify a project ID.
  3670  	Tables *GooglePrivacyDlpV2BigQueryTableCollection `json:"tables,omitempty"`
  3671  	// ForceSendFields is a list of field names (e.g. "OtherTables") to
  3672  	// unconditionally include in API requests. By default, fields with empty or
  3673  	// default values are omitted from API requests. See
  3674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3675  	// details.
  3676  	ForceSendFields []string `json:"-"`
  3677  	// NullFields is a list of field names (e.g. "OtherTables") to include in API
  3678  	// requests with the JSON null value. By default, fields with empty values are
  3679  	// omitted from API requests. See
  3680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3681  	NullFields []string `json:"-"`
  3682  }
  3683  
  3684  func (s *GooglePrivacyDlpV2DiscoveryBigQueryFilter) MarshalJSON() ([]byte, error) {
  3685  	type NoMethod GooglePrivacyDlpV2DiscoveryBigQueryFilter
  3686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3687  }
  3688  
  3689  // GooglePrivacyDlpV2DiscoveryCloudSqlConditions: Requirements that must be
  3690  // true before a table is profiled for the first time.
  3691  type GooglePrivacyDlpV2DiscoveryCloudSqlConditions struct {
  3692  	// DatabaseEngines: Optional. Database engines that should be profiled.
  3693  	// Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
  3694  	//
  3695  	// Possible values:
  3696  	//   "DATABASE_ENGINE_UNSPECIFIED" - Unused.
  3697  	//   "ALL_SUPPORTED_DATABASE_ENGINES" - Include all supported database engines.
  3698  	//   "MYSQL" - MySql database.
  3699  	//   "POSTGRES" - PostGres database.
  3700  	DatabaseEngines []string `json:"databaseEngines,omitempty"`
  3701  	// Types: Data profiles will only be generated for the database resource types
  3702  	// specified in this field. If not specified, defaults to
  3703  	// [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
  3704  	//
  3705  	// Possible values:
  3706  	//   "DATABASE_RESOURCE_TYPE_UNSPECIFIED" - Unused.
  3707  	//   "DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES" - Includes database resource
  3708  	// types that become supported at a later time.
  3709  	//   "DATABASE_RESOURCE_TYPE_TABLE" - Tables.
  3710  	Types []string `json:"types,omitempty"`
  3711  	// ForceSendFields is a list of field names (e.g. "DatabaseEngines") to
  3712  	// unconditionally include in API requests. By default, fields with empty or
  3713  	// default values are omitted from API requests. See
  3714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3715  	// details.
  3716  	ForceSendFields []string `json:"-"`
  3717  	// NullFields is a list of field names (e.g. "DatabaseEngines") to include in
  3718  	// API requests with the JSON null value. By default, fields with empty values
  3719  	// are omitted from API requests. See
  3720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3721  	NullFields []string `json:"-"`
  3722  }
  3723  
  3724  func (s *GooglePrivacyDlpV2DiscoveryCloudSqlConditions) MarshalJSON() ([]byte, error) {
  3725  	type NoMethod GooglePrivacyDlpV2DiscoveryCloudSqlConditions
  3726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3727  }
  3728  
  3729  // GooglePrivacyDlpV2DiscoveryCloudSqlFilter: Determines what tables will have
  3730  // profiles generated within an organization or project. Includes the ability
  3731  // to filter by regular expression patterns on project ID, location, instance,
  3732  // database, and database resource name.
  3733  type GooglePrivacyDlpV2DiscoveryCloudSqlFilter struct {
  3734  	// Collection: A specific set of database resources for this filter to apply
  3735  	// to.
  3736  	Collection *GooglePrivacyDlpV2DatabaseResourceCollection `json:"collection,omitempty"`
  3737  	// DatabaseResourceReference: The database resource to scan. Targets including
  3738  	// this can only include one target (the target with this database resource
  3739  	// reference).
  3740  	DatabaseResourceReference *GooglePrivacyDlpV2DatabaseResourceReference `json:"databaseResourceReference,omitempty"`
  3741  	// Others: Catch-all. This should always be the last target in the list because
  3742  	// anything above it will apply first. Should only appear once in a
  3743  	// configuration. If none is specified, a default one will be added
  3744  	// automatically.
  3745  	Others *GooglePrivacyDlpV2AllOtherDatabaseResources `json:"others,omitempty"`
  3746  	// ForceSendFields is a list of field names (e.g. "Collection") to
  3747  	// unconditionally include in API requests. By default, fields with empty or
  3748  	// default values are omitted from API requests. See
  3749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3750  	// details.
  3751  	ForceSendFields []string `json:"-"`
  3752  	// NullFields is a list of field names (e.g. "Collection") to include in API
  3753  	// requests with the JSON null value. By default, fields with empty values are
  3754  	// omitted from API requests. See
  3755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3756  	NullFields []string `json:"-"`
  3757  }
  3758  
  3759  func (s *GooglePrivacyDlpV2DiscoveryCloudSqlFilter) MarshalJSON() ([]byte, error) {
  3760  	type NoMethod GooglePrivacyDlpV2DiscoveryCloudSqlFilter
  3761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3762  }
  3763  
  3764  // GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence: How often existing
  3765  // tables should have their profiles refreshed. New tables are scanned as
  3766  // quickly as possible depending on system capacity.
  3767  type GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence struct {
  3768  	// RefreshFrequency: Data changes (non-schema changes) in Cloud SQL tables
  3769  	// can't trigger reprofiling. If you set this field, profiles are refreshed at
  3770  	// this frequency regardless of whether the underlying tables have changes.
  3771  	// Defaults to never.
  3772  	//
  3773  	// Possible values:
  3774  	//   "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified.
  3775  	//   "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will
  3776  	// never be updated.
  3777  	//   "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once
  3778  	// every 24 hours.
  3779  	//   "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once
  3780  	// every 30 days. Default.
  3781  	RefreshFrequency string `json:"refreshFrequency,omitempty"`
  3782  	// SchemaModifiedCadence: When to reprofile if the schema has changed.
  3783  	SchemaModifiedCadence *GooglePrivacyDlpV2SchemaModifiedCadence `json:"schemaModifiedCadence,omitempty"`
  3784  	// ForceSendFields is a list of field names (e.g. "RefreshFrequency") to
  3785  	// unconditionally include in API requests. By default, fields with empty or
  3786  	// default values are omitted from API requests. See
  3787  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3788  	// details.
  3789  	ForceSendFields []string `json:"-"`
  3790  	// NullFields is a list of field names (e.g. "RefreshFrequency") to include in
  3791  	// API requests with the JSON null value. By default, fields with empty values
  3792  	// are omitted from API requests. See
  3793  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3794  	NullFields []string `json:"-"`
  3795  }
  3796  
  3797  func (s *GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence) MarshalJSON() ([]byte, error) {
  3798  	type NoMethod GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence
  3799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3800  }
  3801  
  3802  // GooglePrivacyDlpV2DiscoveryConfig: Configuration for discovery to scan
  3803  // resources for profile generation. Only one discovery configuration may exist
  3804  // per organization, folder, or project. The generated data profiles are
  3805  // retained according to the [data retention policy]
  3806  // (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
  3807  type GooglePrivacyDlpV2DiscoveryConfig struct {
  3808  	// Actions: Actions to execute at the completion of scanning.
  3809  	Actions []*GooglePrivacyDlpV2DataProfileAction `json:"actions,omitempty"`
  3810  	// CreateTime: Output only. The creation timestamp of a DiscoveryConfig.
  3811  	CreateTime string `json:"createTime,omitempty"`
  3812  	// DisplayName: Display name (max 100 chars)
  3813  	DisplayName string `json:"displayName,omitempty"`
  3814  	// Errors: Output only. A stream of errors encountered when the config was
  3815  	// activated. Repeated errors may result in the config automatically being
  3816  	// paused. Output only field. Will return the last 100 errors. Whenever the
  3817  	// config is modified this list will be cleared.
  3818  	Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
  3819  	// InspectTemplates: Detection logic for profile generation. Not all template
  3820  	// features are used by Discovery. FindingLimits, include_quote and
  3821  	// exclude_info_types have no impact on Discovery. Multiple templates may be
  3822  	// provided if there is data in multiple regions. At most one template must be
  3823  	// specified per-region (including "global"). Each region is scanned using the
  3824  	// applicable template. If no region-specific template is specified, but a
  3825  	// "global" template is specified, it will be copied to that region and used
  3826  	// instead. If no global or region-specific template is provided for a region
  3827  	// with data, that region's data will not be scanned. For more information, see
  3828  	// https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
  3829  	InspectTemplates []string `json:"inspectTemplates,omitempty"`
  3830  	// LastRunTime: Output only. The timestamp of the last time this config was
  3831  	// executed.
  3832  	LastRunTime string `json:"lastRunTime,omitempty"`
  3833  	// Name: Unique resource name for the DiscoveryConfig, assigned by the service
  3834  	// when the DiscoveryConfig is created, for example
  3835  	// `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
  3836  	Name string `json:"name,omitempty"`
  3837  	// OrgConfig: Only set when the parent is an org.
  3838  	OrgConfig *GooglePrivacyDlpV2OrgConfig `json:"orgConfig,omitempty"`
  3839  	// Status: Required. A status for this configuration.
  3840  	//
  3841  	// Possible values:
  3842  	//   "STATUS_UNSPECIFIED" - Unused
  3843  	//   "RUNNING" - The discovery config is currently active.
  3844  	//   "PAUSED" - The discovery config is paused temporarily.
  3845  	Status string `json:"status,omitempty"`
  3846  	// Targets: Target to match against for determining what to scan and how
  3847  	// frequently.
  3848  	Targets []*GooglePrivacyDlpV2DiscoveryTarget `json:"targets,omitempty"`
  3849  	// UpdateTime: Output only. The last update timestamp of a DiscoveryConfig.
  3850  	UpdateTime string `json:"updateTime,omitempty"`
  3851  
  3852  	// ServerResponse contains the HTTP response code and headers from the server.
  3853  	googleapi.ServerResponse `json:"-"`
  3854  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  3855  	// include in API requests. By default, fields with empty or default values are
  3856  	// omitted from API requests. See
  3857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3858  	// details.
  3859  	ForceSendFields []string `json:"-"`
  3860  	// NullFields is a list of field names (e.g. "Actions") to include in API
  3861  	// requests with the JSON null value. By default, fields with empty values are
  3862  	// omitted from API requests. See
  3863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3864  	NullFields []string `json:"-"`
  3865  }
  3866  
  3867  func (s *GooglePrivacyDlpV2DiscoveryConfig) MarshalJSON() ([]byte, error) {
  3868  	type NoMethod GooglePrivacyDlpV2DiscoveryConfig
  3869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3870  }
  3871  
  3872  // GooglePrivacyDlpV2DiscoveryGenerationCadence: What must take place for a
  3873  // profile to be updated and how frequently it should occur. New tables are
  3874  // scanned as quickly as possible depending on system capacity.
  3875  type GooglePrivacyDlpV2DiscoveryGenerationCadence struct {
  3876  	// SchemaModifiedCadence: Governs when to update data profiles when a schema is
  3877  	// modified.
  3878  	SchemaModifiedCadence *GooglePrivacyDlpV2DiscoverySchemaModifiedCadence `json:"schemaModifiedCadence,omitempty"`
  3879  	// TableModifiedCadence: Governs when to update data profiles when a table is
  3880  	// modified.
  3881  	TableModifiedCadence *GooglePrivacyDlpV2DiscoveryTableModifiedCadence `json:"tableModifiedCadence,omitempty"`
  3882  	// ForceSendFields is a list of field names (e.g. "SchemaModifiedCadence") to
  3883  	// unconditionally include in API requests. By default, fields with empty or
  3884  	// default values are omitted from API requests. See
  3885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3886  	// details.
  3887  	ForceSendFields []string `json:"-"`
  3888  	// NullFields is a list of field names (e.g. "SchemaModifiedCadence") to
  3889  	// include in API requests with the JSON null value. By default, fields with
  3890  	// empty values are omitted from API requests. See
  3891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3892  	NullFields []string `json:"-"`
  3893  }
  3894  
  3895  func (s *GooglePrivacyDlpV2DiscoveryGenerationCadence) MarshalJSON() ([]byte, error) {
  3896  	type NoMethod GooglePrivacyDlpV2DiscoveryGenerationCadence
  3897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3898  }
  3899  
  3900  // GooglePrivacyDlpV2DiscoverySchemaModifiedCadence: The cadence at which to
  3901  // update data profiles when a schema is modified.
  3902  type GooglePrivacyDlpV2DiscoverySchemaModifiedCadence struct {
  3903  	// Frequency: How frequently profiles may be updated when schemas are modified.
  3904  	// Defaults to monthly.
  3905  	//
  3906  	// Possible values:
  3907  	//   "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified.
  3908  	//   "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will
  3909  	// never be updated.
  3910  	//   "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once
  3911  	// every 24 hours.
  3912  	//   "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once
  3913  	// every 30 days. Default.
  3914  	Frequency string `json:"frequency,omitempty"`
  3915  	// Types: The type of events to consider when deciding if the table's schema
  3916  	// has been modified and should have the profile updated. Defaults to
  3917  	// NEW_COLUMNS.
  3918  	//
  3919  	// Possible values:
  3920  	//   "SCHEMA_MODIFICATION_UNSPECIFIED" - Unused
  3921  	//   "SCHEMA_NEW_COLUMNS" - Profiles should be regenerated when new columns are
  3922  	// added to the table. Default.
  3923  	//   "SCHEMA_REMOVED_COLUMNS" - Profiles should be regenerated when columns are
  3924  	// removed from the table.
  3925  	Types []string `json:"types,omitempty"`
  3926  	// ForceSendFields is a list of field names (e.g. "Frequency") to
  3927  	// unconditionally include in API requests. By default, fields with empty or
  3928  	// default values are omitted from API requests. See
  3929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3930  	// details.
  3931  	ForceSendFields []string `json:"-"`
  3932  	// NullFields is a list of field names (e.g. "Frequency") to include in API
  3933  	// requests with the JSON null value. By default, fields with empty values are
  3934  	// omitted from API requests. See
  3935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3936  	NullFields []string `json:"-"`
  3937  }
  3938  
  3939  func (s *GooglePrivacyDlpV2DiscoverySchemaModifiedCadence) MarshalJSON() ([]byte, error) {
  3940  	type NoMethod GooglePrivacyDlpV2DiscoverySchemaModifiedCadence
  3941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3942  }
  3943  
  3944  // GooglePrivacyDlpV2DiscoveryStartingLocation: The location to begin a
  3945  // discovery scan. Denotes an organization ID or folder ID within an
  3946  // organization.
  3947  type GooglePrivacyDlpV2DiscoveryStartingLocation struct {
  3948  	// FolderId: The ID of the Folder within an organization to scan.
  3949  	FolderId int64 `json:"folderId,omitempty,string"`
  3950  	// OrganizationId: The ID of an organization to scan.
  3951  	OrganizationId int64 `json:"organizationId,omitempty,string"`
  3952  	// ForceSendFields is a list of field names (e.g. "FolderId") to
  3953  	// unconditionally include in API requests. By default, fields with empty or
  3954  	// default values are omitted from API requests. See
  3955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3956  	// details.
  3957  	ForceSendFields []string `json:"-"`
  3958  	// NullFields is a list of field names (e.g. "FolderId") to include in API
  3959  	// requests with the JSON null value. By default, fields with empty values are
  3960  	// omitted from API requests. See
  3961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3962  	NullFields []string `json:"-"`
  3963  }
  3964  
  3965  func (s *GooglePrivacyDlpV2DiscoveryStartingLocation) MarshalJSON() ([]byte, error) {
  3966  	type NoMethod GooglePrivacyDlpV2DiscoveryStartingLocation
  3967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3968  }
  3969  
  3970  // GooglePrivacyDlpV2DiscoveryTableModifiedCadence: The cadence at which to
  3971  // update data profiles when a table is modified.
  3972  type GooglePrivacyDlpV2DiscoveryTableModifiedCadence struct {
  3973  	// Frequency: How frequently data profiles can be updated when tables are
  3974  	// modified. Defaults to never.
  3975  	//
  3976  	// Possible values:
  3977  	//   "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified.
  3978  	//   "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will
  3979  	// never be updated.
  3980  	//   "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once
  3981  	// every 24 hours.
  3982  	//   "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once
  3983  	// every 30 days. Default.
  3984  	Frequency string `json:"frequency,omitempty"`
  3985  	// Types: The type of events to consider when deciding if the table has been
  3986  	// modified and should have the profile updated. Defaults to
  3987  	// MODIFIED_TIMESTAMP.
  3988  	//
  3989  	// Possible values:
  3990  	//   "TABLE_MODIFICATION_UNSPECIFIED" - Unused.
  3991  	//   "TABLE_MODIFIED_TIMESTAMP" - A table will be considered modified when the
  3992  	// last_modified_time from BigQuery has been updated.
  3993  	Types []string `json:"types,omitempty"`
  3994  	// ForceSendFields is a list of field names (e.g. "Frequency") to
  3995  	// unconditionally include in API requests. By default, fields with empty or
  3996  	// default values are omitted from API requests. See
  3997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3998  	// details.
  3999  	ForceSendFields []string `json:"-"`
  4000  	// NullFields is a list of field names (e.g. "Frequency") to include in API
  4001  	// requests with the JSON null value. By default, fields with empty values are
  4002  	// omitted from API requests. See
  4003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4004  	NullFields []string `json:"-"`
  4005  }
  4006  
  4007  func (s *GooglePrivacyDlpV2DiscoveryTableModifiedCadence) MarshalJSON() ([]byte, error) {
  4008  	type NoMethod GooglePrivacyDlpV2DiscoveryTableModifiedCadence
  4009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4010  }
  4011  
  4012  // GooglePrivacyDlpV2DiscoveryTarget: Target used to match against for
  4013  // Discovery.
  4014  type GooglePrivacyDlpV2DiscoveryTarget struct {
  4015  	// BigQueryTarget: BigQuery target for Discovery. The first target to match a
  4016  	// table will be the one applied.
  4017  	BigQueryTarget *GooglePrivacyDlpV2BigQueryDiscoveryTarget `json:"bigQueryTarget,omitempty"`
  4018  	// CloudSqlTarget: Cloud SQL target for Discovery. The first target to match a
  4019  	// table will be the one applied.
  4020  	CloudSqlTarget *GooglePrivacyDlpV2CloudSqlDiscoveryTarget `json:"cloudSqlTarget,omitempty"`
  4021  	// ForceSendFields is a list of field names (e.g. "BigQueryTarget") to
  4022  	// unconditionally include in API requests. By default, fields with empty or
  4023  	// default values are omitted from API requests. See
  4024  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4025  	// details.
  4026  	ForceSendFields []string `json:"-"`
  4027  	// NullFields is a list of field names (e.g. "BigQueryTarget") to include in
  4028  	// API requests with the JSON null value. By default, fields with empty values
  4029  	// are omitted from API requests. See
  4030  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4031  	NullFields []string `json:"-"`
  4032  }
  4033  
  4034  func (s *GooglePrivacyDlpV2DiscoveryTarget) MarshalJSON() ([]byte, error) {
  4035  	type NoMethod GooglePrivacyDlpV2DiscoveryTarget
  4036  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4037  }
  4038  
  4039  // GooglePrivacyDlpV2DlpJob: Combines all of the information about a DLP job.
  4040  type GooglePrivacyDlpV2DlpJob struct {
  4041  	// ActionDetails: Events that should occur after the job has completed.
  4042  	ActionDetails []*GooglePrivacyDlpV2ActionDetails `json:"actionDetails,omitempty"`
  4043  	// CreateTime: Time when the job was created.
  4044  	CreateTime string `json:"createTime,omitempty"`
  4045  	// EndTime: Time when the job finished.
  4046  	EndTime string `json:"endTime,omitempty"`
  4047  	// Errors: A stream of errors encountered running the job.
  4048  	Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
  4049  	// InspectDetails: Results from inspecting a data source.
  4050  	InspectDetails *GooglePrivacyDlpV2InspectDataSourceDetails `json:"inspectDetails,omitempty"`
  4051  	// JobTriggerName: If created by a job trigger, the resource name of the
  4052  	// trigger that instantiated the job.
  4053  	JobTriggerName string `json:"jobTriggerName,omitempty"`
  4054  	// LastModified: Time when the job was last modified by the system.
  4055  	LastModified string `json:"lastModified,omitempty"`
  4056  	// Name: The server-assigned name.
  4057  	Name string `json:"name,omitempty"`
  4058  	// RiskDetails: Results from analyzing risk of a data source.
  4059  	RiskDetails *GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails `json:"riskDetails,omitempty"`
  4060  	// StartTime: Time when the job started.
  4061  	StartTime string `json:"startTime,omitempty"`
  4062  	// State: State of a job.
  4063  	//
  4064  	// Possible values:
  4065  	//   "JOB_STATE_UNSPECIFIED" - Unused.
  4066  	//   "PENDING" - The job has not yet started.
  4067  	//   "RUNNING" - The job is currently running. Once a job has finished it will
  4068  	// transition to FAILED or DONE.
  4069  	//   "DONE" - The job is no longer running.
  4070  	//   "CANCELED" - The job was canceled before it could be completed.
  4071  	//   "FAILED" - The job had an error and did not complete.
  4072  	//   "ACTIVE" - The job is currently accepting findings via hybridInspect. A
  4073  	// hybrid job in ACTIVE state may continue to have findings added to it through
  4074  	// the calling of hybridInspect. After the job has finished no more calls to
  4075  	// hybridInspect may be made. ACTIVE jobs can transition to DONE.
  4076  	State string `json:"state,omitempty"`
  4077  	// Type: The type of job.
  4078  	//
  4079  	// Possible values:
  4080  	//   "DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
  4081  	//   "INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
  4082  	//   "RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
  4083  	Type string `json:"type,omitempty"`
  4084  
  4085  	// ServerResponse contains the HTTP response code and headers from the server.
  4086  	googleapi.ServerResponse `json:"-"`
  4087  	// ForceSendFields is a list of field names (e.g. "ActionDetails") to
  4088  	// unconditionally include in API requests. By default, fields with empty or
  4089  	// default values are omitted from API requests. See
  4090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4091  	// details.
  4092  	ForceSendFields []string `json:"-"`
  4093  	// NullFields is a list of field names (e.g. "ActionDetails") to include in API
  4094  	// requests with the JSON null value. By default, fields with empty values are
  4095  	// omitted from API requests. See
  4096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4097  	NullFields []string `json:"-"`
  4098  }
  4099  
  4100  func (s *GooglePrivacyDlpV2DlpJob) MarshalJSON() ([]byte, error) {
  4101  	type NoMethod GooglePrivacyDlpV2DlpJob
  4102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4103  }
  4104  
  4105  // GooglePrivacyDlpV2DocumentLocation: Location of a finding within a document.
  4106  type GooglePrivacyDlpV2DocumentLocation struct {
  4107  	// FileOffset: Offset of the line, from the beginning of the file, where the
  4108  	// finding is located.
  4109  	FileOffset int64 `json:"fileOffset,omitempty,string"`
  4110  	// ForceSendFields is a list of field names (e.g. "FileOffset") to
  4111  	// unconditionally include in API requests. By default, fields with empty or
  4112  	// default values are omitted from API requests. See
  4113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4114  	// details.
  4115  	ForceSendFields []string `json:"-"`
  4116  	// NullFields is a list of field names (e.g. "FileOffset") to include in API
  4117  	// requests with the JSON null value. By default, fields with empty values are
  4118  	// omitted from API requests. See
  4119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4120  	NullFields []string `json:"-"`
  4121  }
  4122  
  4123  func (s *GooglePrivacyDlpV2DocumentLocation) MarshalJSON() ([]byte, error) {
  4124  	type NoMethod GooglePrivacyDlpV2DocumentLocation
  4125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4126  }
  4127  
  4128  // GooglePrivacyDlpV2EntityId: An entity in a dataset is a field or set of
  4129  // fields that correspond to a single person. For example, in medical records
  4130  // the `EntityId` might be a patient identifier, or for financial records it
  4131  // might be an account identifier. This message is used when generalizations or
  4132  // analysis must take into account that multiple rows correspond to the same
  4133  // entity.
  4134  type GooglePrivacyDlpV2EntityId struct {
  4135  	// Field: Composite key indicating which field contains the entity identifier.
  4136  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  4137  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  4138  	// include in API requests. By default, fields with empty or default values are
  4139  	// omitted from API requests. See
  4140  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4141  	// details.
  4142  	ForceSendFields []string `json:"-"`
  4143  	// NullFields is a list of field names (e.g. "Field") to include in API
  4144  	// requests with the JSON null value. By default, fields with empty values are
  4145  	// omitted from API requests. See
  4146  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4147  	NullFields []string `json:"-"`
  4148  }
  4149  
  4150  func (s *GooglePrivacyDlpV2EntityId) MarshalJSON() ([]byte, error) {
  4151  	type NoMethod GooglePrivacyDlpV2EntityId
  4152  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4153  }
  4154  
  4155  // GooglePrivacyDlpV2Error: Details information about an error encountered
  4156  // during job execution or the results of an unsuccessful activation of the
  4157  // JobTrigger.
  4158  type GooglePrivacyDlpV2Error struct {
  4159  	// Details: Detailed error codes and messages.
  4160  	Details *GoogleRpcStatus `json:"details,omitempty"`
  4161  	// Timestamps: The times the error occurred. List includes the oldest timestamp
  4162  	// and the last 9 timestamps.
  4163  	Timestamps []string `json:"timestamps,omitempty"`
  4164  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  4165  	// include in API requests. By default, fields with empty or default values are
  4166  	// omitted from API requests. See
  4167  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4168  	// details.
  4169  	ForceSendFields []string `json:"-"`
  4170  	// NullFields is a list of field names (e.g. "Details") to include in API
  4171  	// requests with the JSON null value. By default, fields with empty values are
  4172  	// omitted from API requests. See
  4173  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4174  	NullFields []string `json:"-"`
  4175  }
  4176  
  4177  func (s *GooglePrivacyDlpV2Error) MarshalJSON() ([]byte, error) {
  4178  	type NoMethod GooglePrivacyDlpV2Error
  4179  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4180  }
  4181  
  4182  // GooglePrivacyDlpV2ExcludeByHotword: The rule to exclude findings based on a
  4183  // hotword. For record inspection of tables, column names are considered
  4184  // hotwords. An example of this is to exclude a finding if it belongs to a
  4185  // BigQuery column that matches a specific pattern.
  4186  type GooglePrivacyDlpV2ExcludeByHotword struct {
  4187  	// HotwordRegex: Regular expression pattern defining what qualifies as a
  4188  	// hotword.
  4189  	HotwordRegex *GooglePrivacyDlpV2Regex `json:"hotwordRegex,omitempty"`
  4190  	// Proximity: Range of characters within which the entire hotword must reside.
  4191  	// The total length of the window cannot exceed 1000 characters. The
  4192  	// windowBefore property in proximity should be set to 1 if the hotword needs
  4193  	// to be included in a column header.
  4194  	Proximity *GooglePrivacyDlpV2Proximity `json:"proximity,omitempty"`
  4195  	// ForceSendFields is a list of field names (e.g. "HotwordRegex") to
  4196  	// unconditionally include in API requests. By default, fields with empty or
  4197  	// default values are omitted from API requests. See
  4198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4199  	// details.
  4200  	ForceSendFields []string `json:"-"`
  4201  	// NullFields is a list of field names (e.g. "HotwordRegex") to include in API
  4202  	// requests with the JSON null value. By default, fields with empty values are
  4203  	// omitted from API requests. See
  4204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4205  	NullFields []string `json:"-"`
  4206  }
  4207  
  4208  func (s *GooglePrivacyDlpV2ExcludeByHotword) MarshalJSON() ([]byte, error) {
  4209  	type NoMethod GooglePrivacyDlpV2ExcludeByHotword
  4210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4211  }
  4212  
  4213  // GooglePrivacyDlpV2ExcludeInfoTypes: List of excluded infoTypes.
  4214  type GooglePrivacyDlpV2ExcludeInfoTypes struct {
  4215  	// InfoTypes: InfoType list in ExclusionRule rule drops a finding when it
  4216  	// overlaps or contained within with a finding of an infoType from this list.
  4217  	// For example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"
  4218  	// and `exclusion_rule` containing `exclude_info_types.info_types` with
  4219  	// "EMAIL_ADDRESS" the phone number findings are dropped if they overlap with
  4220  	// EMAIL_ADDRESS finding. That leads to "555-222-2222@example.org" to generate
  4221  	// only a single finding, namely email address.
  4222  	InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
  4223  	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
  4224  	// unconditionally include in API requests. By default, fields with empty or
  4225  	// default values are omitted from API requests. See
  4226  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4227  	// details.
  4228  	ForceSendFields []string `json:"-"`
  4229  	// NullFields is a list of field names (e.g. "InfoTypes") to include in API
  4230  	// requests with the JSON null value. By default, fields with empty values are
  4231  	// omitted from API requests. See
  4232  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4233  	NullFields []string `json:"-"`
  4234  }
  4235  
  4236  func (s *GooglePrivacyDlpV2ExcludeInfoTypes) MarshalJSON() ([]byte, error) {
  4237  	type NoMethod GooglePrivacyDlpV2ExcludeInfoTypes
  4238  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4239  }
  4240  
  4241  // GooglePrivacyDlpV2ExclusionRule: The rule that specifies conditions when
  4242  // findings of infoTypes specified in `InspectionRuleSet` are removed from
  4243  // results.
  4244  type GooglePrivacyDlpV2ExclusionRule struct {
  4245  	// Dictionary: Dictionary which defines the rule.
  4246  	Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"`
  4247  	// ExcludeByHotword: Drop if the hotword rule is contained in the proximate
  4248  	// context. For tabular data, the context includes the column name.
  4249  	ExcludeByHotword *GooglePrivacyDlpV2ExcludeByHotword `json:"excludeByHotword,omitempty"`
  4250  	// ExcludeInfoTypes: Set of infoTypes for which findings would affect this
  4251  	// rule.
  4252  	ExcludeInfoTypes *GooglePrivacyDlpV2ExcludeInfoTypes `json:"excludeInfoTypes,omitempty"`
  4253  	// MatchingType: How the rule is applied, see MatchingType documentation for
  4254  	// details.
  4255  	//
  4256  	// Possible values:
  4257  	//   "MATCHING_TYPE_UNSPECIFIED" - Invalid.
  4258  	//   "MATCHING_TYPE_FULL_MATCH" - Full match. - Dictionary: join of Dictionary
  4259  	// results matched complete finding quote - Regex: all regex matches fill a
  4260  	// finding quote start to end - Exclude info type: completely inside affecting
  4261  	// info types findings
  4262  	//   "MATCHING_TYPE_PARTIAL_MATCH" - Partial match. - Dictionary: at least one
  4263  	// of the tokens in the finding matches - Regex: substring of the finding
  4264  	// matches - Exclude info type: intersects with affecting info types findings
  4265  	//   "MATCHING_TYPE_INVERSE_MATCH" - Inverse match. - Dictionary: no tokens in
  4266  	// the finding match the dictionary - Regex: finding doesn't match the regex -
  4267  	// Exclude info type: no intersection with affecting info types findings
  4268  	MatchingType string `json:"matchingType,omitempty"`
  4269  	// Regex: Regular expression which defines the rule.
  4270  	Regex *GooglePrivacyDlpV2Regex `json:"regex,omitempty"`
  4271  	// ForceSendFields is a list of field names (e.g. "Dictionary") to
  4272  	// unconditionally include in API requests. By default, fields with empty or
  4273  	// default values are omitted from API requests. See
  4274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4275  	// details.
  4276  	ForceSendFields []string `json:"-"`
  4277  	// NullFields is a list of field names (e.g. "Dictionary") to include in API
  4278  	// requests with the JSON null value. By default, fields with empty values are
  4279  	// omitted from API requests. See
  4280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4281  	NullFields []string `json:"-"`
  4282  }
  4283  
  4284  func (s *GooglePrivacyDlpV2ExclusionRule) MarshalJSON() ([]byte, error) {
  4285  	type NoMethod GooglePrivacyDlpV2ExclusionRule
  4286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4287  }
  4288  
  4289  // GooglePrivacyDlpV2Export: If set, the detailed data profiles will be
  4290  // persisted to the location of your choice whenever updated.
  4291  type GooglePrivacyDlpV2Export struct {
  4292  	// ProfileTable: Store all table and column profiles in an existing table or a
  4293  	// new table in an existing dataset. Each re-generation will result in new rows
  4294  	// in BigQuery. Data is inserted using streaming insert
  4295  	// (https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
  4296  	// and so data may be in the buffer for a period of time after the profile has
  4297  	// finished. The Pub/Sub notification is sent before the streaming buffer is
  4298  	// guaranteed to be written, so data may not be instantly visible to queries by
  4299  	// the time your topic receives the Pub/Sub notification.
  4300  	ProfileTable *GooglePrivacyDlpV2BigQueryTable `json:"profileTable,omitempty"`
  4301  	// ForceSendFields is a list of field names (e.g. "ProfileTable") to
  4302  	// unconditionally include in API requests. By default, fields with empty or
  4303  	// default values are omitted from API requests. See
  4304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4305  	// details.
  4306  	ForceSendFields []string `json:"-"`
  4307  	// NullFields is a list of field names (e.g. "ProfileTable") to include in API
  4308  	// requests with the JSON null value. By default, fields with empty values are
  4309  	// omitted from API requests. See
  4310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4311  	NullFields []string `json:"-"`
  4312  }
  4313  
  4314  func (s *GooglePrivacyDlpV2Export) MarshalJSON() ([]byte, error) {
  4315  	type NoMethod GooglePrivacyDlpV2Export
  4316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4317  }
  4318  
  4319  // GooglePrivacyDlpV2Expressions: An expression, consisting of an operator and
  4320  // conditions.
  4321  type GooglePrivacyDlpV2Expressions struct {
  4322  	// Conditions: Conditions to apply to the expression.
  4323  	Conditions *GooglePrivacyDlpV2Conditions `json:"conditions,omitempty"`
  4324  	// LogicalOperator: The operator to apply to the result of conditions. Default
  4325  	// and currently only supported value is `AND`.
  4326  	//
  4327  	// Possible values:
  4328  	//   "LOGICAL_OPERATOR_UNSPECIFIED" - Unused
  4329  	//   "AND" - Conditional AND
  4330  	LogicalOperator string `json:"logicalOperator,omitempty"`
  4331  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  4332  	// unconditionally include in API requests. By default, fields with empty or
  4333  	// default values are omitted from API requests. See
  4334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4335  	// details.
  4336  	ForceSendFields []string `json:"-"`
  4337  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  4338  	// requests with the JSON null value. By default, fields with empty values are
  4339  	// omitted from API requests. See
  4340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4341  	NullFields []string `json:"-"`
  4342  }
  4343  
  4344  func (s *GooglePrivacyDlpV2Expressions) MarshalJSON() ([]byte, error) {
  4345  	type NoMethod GooglePrivacyDlpV2Expressions
  4346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4347  }
  4348  
  4349  // GooglePrivacyDlpV2FieldId: General identifier of a data field in a storage
  4350  // service.
  4351  type GooglePrivacyDlpV2FieldId struct {
  4352  	// Name: Name describing the field.
  4353  	Name string `json:"name,omitempty"`
  4354  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4355  	// include in API requests. By default, fields with empty or default values are
  4356  	// omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4358  	// details.
  4359  	ForceSendFields []string `json:"-"`
  4360  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4361  	// with the JSON null value. By default, fields with empty values are omitted
  4362  	// from API requests. See
  4363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4364  	NullFields []string `json:"-"`
  4365  }
  4366  
  4367  func (s *GooglePrivacyDlpV2FieldId) MarshalJSON() ([]byte, error) {
  4368  	type NoMethod GooglePrivacyDlpV2FieldId
  4369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4370  }
  4371  
  4372  // GooglePrivacyDlpV2FieldTransformation: The transformation to apply to the
  4373  // field.
  4374  type GooglePrivacyDlpV2FieldTransformation struct {
  4375  	// Condition: Only apply the transformation if the condition evaluates to true
  4376  	// for the given `RecordCondition`. The conditions are allowed to reference
  4377  	// fields that are not used in the actual transformation. Example Use Cases: -
  4378  	// Apply a different bucket transformation to an age column if the zip code
  4379  	// column for the same record is within a specific range. - Redact a field if
  4380  	// the date of birth field is greater than 85.
  4381  	Condition *GooglePrivacyDlpV2RecordCondition `json:"condition,omitempty"`
  4382  	// Fields: Required. Input field(s) to apply the transformation to. When you
  4383  	// have columns that reference their position within a list, omit the index
  4384  	// from the FieldId. FieldId name matching ignores the index. For example,
  4385  	// instead of "contact.nums[0].type", use "contact.nums.type".
  4386  	Fields []*GooglePrivacyDlpV2FieldId `json:"fields,omitempty"`
  4387  	// InfoTypeTransformations: Treat the contents of the field as free text, and
  4388  	// selectively transform content that matches an `InfoType`.
  4389  	InfoTypeTransformations *GooglePrivacyDlpV2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
  4390  	// PrimitiveTransformation: Apply the transformation to the entire field.
  4391  	PrimitiveTransformation *GooglePrivacyDlpV2PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
  4392  	// ForceSendFields is a list of field names (e.g. "Condition") to
  4393  	// unconditionally include in API requests. By default, fields with empty or
  4394  	// default values are omitted from API requests. See
  4395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4396  	// details.
  4397  	ForceSendFields []string `json:"-"`
  4398  	// NullFields is a list of field names (e.g. "Condition") to include in API
  4399  	// requests with the JSON null value. By default, fields with empty values are
  4400  	// omitted from API requests. See
  4401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4402  	NullFields []string `json:"-"`
  4403  }
  4404  
  4405  func (s *GooglePrivacyDlpV2FieldTransformation) MarshalJSON() ([]byte, error) {
  4406  	type NoMethod GooglePrivacyDlpV2FieldTransformation
  4407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4408  }
  4409  
  4410  // GooglePrivacyDlpV2FileSet: Set of files to scan.
  4411  type GooglePrivacyDlpV2FileSet struct {
  4412  	// RegexFileSet: The regex-filtered set of files to scan. Exactly one of `url`
  4413  	// or `regex_file_set` must be set.
  4414  	RegexFileSet *GooglePrivacyDlpV2CloudStorageRegexFileSet `json:"regexFileSet,omitempty"`
  4415  	// Url: The Cloud Storage url of the file(s) to scan, in the format `gs:///`.
  4416  	// Trailing wildcard in the path is allowed. If the url ends in a trailing
  4417  	// slash, the bucket or directory represented by the url will be scanned
  4418  	// non-recursively (content in sub-directories will not be scanned). This means
  4419  	// that `gs://mybucket/` is equivalent to `gs://mybucket/*`, and
  4420  	// `gs://mybucket/directory/` is equivalent to `gs://mybucket/directory/*`.
  4421  	// Exactly one of `url` or `regex_file_set` must be set.
  4422  	Url string `json:"url,omitempty"`
  4423  	// ForceSendFields is a list of field names (e.g. "RegexFileSet") to
  4424  	// unconditionally include in API requests. By default, fields with empty or
  4425  	// default values are omitted from API requests. See
  4426  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4427  	// details.
  4428  	ForceSendFields []string `json:"-"`
  4429  	// NullFields is a list of field names (e.g. "RegexFileSet") to include in API
  4430  	// requests with the JSON null value. By default, fields with empty values are
  4431  	// omitted from API requests. See
  4432  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4433  	NullFields []string `json:"-"`
  4434  }
  4435  
  4436  func (s *GooglePrivacyDlpV2FileSet) MarshalJSON() ([]byte, error) {
  4437  	type NoMethod GooglePrivacyDlpV2FileSet
  4438  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4439  }
  4440  
  4441  // GooglePrivacyDlpV2Finding: Represents a piece of potentially sensitive
  4442  // content.
  4443  type GooglePrivacyDlpV2Finding struct {
  4444  	// CreateTime: Timestamp when finding was detected.
  4445  	CreateTime string `json:"createTime,omitempty"`
  4446  	// FindingId: The unique finding id.
  4447  	FindingId string `json:"findingId,omitempty"`
  4448  	// InfoType: The type of content that might have been found. Provided if
  4449  	// `excluded_types` is false.
  4450  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  4451  	// JobCreateTime: Time the job started that produced this finding.
  4452  	JobCreateTime string `json:"jobCreateTime,omitempty"`
  4453  	// JobName: The job that stored the finding.
  4454  	JobName string `json:"jobName,omitempty"`
  4455  	// Labels: The labels associated with this `Finding`. Label keys must be
  4456  	// between 1 and 63 characters long and must conform to the following regular
  4457  	// expression: `a-z ([-a-z0-9]*[a-z0-9])?`. Label values must be between 0 and
  4458  	// 63 characters long and must conform to the regular expression
  4459  	// `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated
  4460  	// with a given finding. Examples: * "environment" : "production" *
  4461  	// "pipeline" : "etl"
  4462  	Labels map[string]string `json:"labels,omitempty"`
  4463  	// Likelihood: Confidence of how likely it is that the `info_type` is correct.
  4464  	//
  4465  	// Possible values:
  4466  	//   "LIKELIHOOD_UNSPECIFIED" - Default value; same as POSSIBLE.
  4467  	//   "VERY_UNLIKELY" - Highest chance of a false positive.
  4468  	//   "UNLIKELY" - High chance of a false positive.
  4469  	//   "POSSIBLE" - Some matching signals. The default value.
  4470  	//   "LIKELY" - Low chance of a false positive.
  4471  	//   "VERY_LIKELY" - Confidence level is high. Lowest chance of a false
  4472  	// positive.
  4473  	Likelihood string `json:"likelihood,omitempty"`
  4474  	// Location: Where the content was found.
  4475  	Location *GooglePrivacyDlpV2Location `json:"location,omitempty"`
  4476  	// Name: Resource name in format
  4477  	// projects/{project}/locations/{location}/findings/{finding} Populated only
  4478  	// when viewing persisted findings.
  4479  	Name string `json:"name,omitempty"`
  4480  	// Quote: The content that was found. Even if the content is not textual, it
  4481  	// may be converted to a textual representation here. Provided if
  4482  	// `include_quote` is true and the finding is less than or equal to 4096 bytes
  4483  	// long. If the finding exceeds 4096 bytes in length, the quote may be omitted.
  4484  	Quote string `json:"quote,omitempty"`
  4485  	// QuoteInfo: Contains data parsed from quotes. Only populated if include_quote
  4486  	// was set to true and a supported infoType was requested. Currently supported
  4487  	// infoTypes: DATE, DATE_OF_BIRTH and TIME.
  4488  	QuoteInfo *GooglePrivacyDlpV2QuoteInfo `json:"quoteInfo,omitempty"`
  4489  	// ResourceName: The job that stored the finding.
  4490  	ResourceName string `json:"resourceName,omitempty"`
  4491  	// TriggerName: Job trigger name, if applicable, for this finding.
  4492  	TriggerName string `json:"triggerName,omitempty"`
  4493  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4494  	// unconditionally include in API requests. By default, fields with empty or
  4495  	// default values are omitted from API requests. See
  4496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4497  	// details.
  4498  	ForceSendFields []string `json:"-"`
  4499  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4500  	// requests with the JSON null value. By default, fields with empty values are
  4501  	// omitted from API requests. See
  4502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4503  	NullFields []string `json:"-"`
  4504  }
  4505  
  4506  func (s *GooglePrivacyDlpV2Finding) MarshalJSON() ([]byte, error) {
  4507  	type NoMethod GooglePrivacyDlpV2Finding
  4508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4509  }
  4510  
  4511  // GooglePrivacyDlpV2FindingLimits: Configuration to control the number of
  4512  // findings returned for inspection. This is not used for de-identification or
  4513  // data profiling. When redacting sensitive data from images, finding limits
  4514  // don't apply. They can cause unexpected or inconsistent results, where only
  4515  // some data is redacted. Don't include finding limits in RedactImage requests.
  4516  // Otherwise, Cloud DLP returns an error.
  4517  type GooglePrivacyDlpV2FindingLimits struct {
  4518  	// MaxFindingsPerInfoType: Configuration of findings limit given for specified
  4519  	// infoTypes.
  4520  	MaxFindingsPerInfoType []*GooglePrivacyDlpV2InfoTypeLimit `json:"maxFindingsPerInfoType,omitempty"`
  4521  	// MaxFindingsPerItem: Max number of findings that are returned for each item
  4522  	// scanned. When set within an InspectContentRequest, this field is ignored.
  4523  	// This value isn't a hard limit. If the number of findings for an item reaches
  4524  	// this limit, the inspection of that item ends gradually, not abruptly.
  4525  	// Therefore, the actual number of findings that Cloud DLP returns for the item
  4526  	// can be multiple times higher than this value.
  4527  	MaxFindingsPerItem int64 `json:"maxFindingsPerItem,omitempty"`
  4528  	// MaxFindingsPerRequest: Max number of findings that are returned per request
  4529  	// or job. If you set this field in an InspectContentRequest, the resulting
  4530  	// maximum value is the value that you set or 3,000, whichever is lower. This
  4531  	// value isn't a hard limit. If an inspection reaches this limit, the
  4532  	// inspection ends gradually, not abruptly. Therefore, the actual number of
  4533  	// findings that Cloud DLP returns can be multiple times higher than this
  4534  	// value.
  4535  	MaxFindingsPerRequest int64 `json:"maxFindingsPerRequest,omitempty"`
  4536  	// ForceSendFields is a list of field names (e.g. "MaxFindingsPerInfoType") to
  4537  	// unconditionally include in API requests. By default, fields with empty or
  4538  	// default values are omitted from API requests. See
  4539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4540  	// details.
  4541  	ForceSendFields []string `json:"-"`
  4542  	// NullFields is a list of field names (e.g. "MaxFindingsPerInfoType") to
  4543  	// include in API requests with the JSON null value. By default, fields with
  4544  	// empty values are omitted from API requests. See
  4545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4546  	NullFields []string `json:"-"`
  4547  }
  4548  
  4549  func (s *GooglePrivacyDlpV2FindingLimits) MarshalJSON() ([]byte, error) {
  4550  	type NoMethod GooglePrivacyDlpV2FindingLimits
  4551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4552  }
  4553  
  4554  // GooglePrivacyDlpV2FinishDlpJobRequest: The request message for finishing a
  4555  // DLP hybrid job.
  4556  type GooglePrivacyDlpV2FinishDlpJobRequest struct {
  4557  }
  4558  
  4559  // GooglePrivacyDlpV2FixedSizeBucketingConfig: Buckets values based on fixed
  4560  // size ranges. The Bucketing transformation can provide all of this
  4561  // functionality, but requires more configuration. This message is provided as
  4562  // a convenience to the user for simple bucketing strategies. The transformed
  4563  // value will be a hyphenated string of {lower_bound}-{upper_bound}. For
  4564  // example, if lower_bound = 10 and upper_bound = 20, all values that are
  4565  // within this bucket will be replaced with "10-20". This can be used on data
  4566  // of type: double, long. If the bound Value type differs from the type of data
  4567  // being transformed, we will first attempt converting the type of the data to
  4568  // be transformed to match the type of the bound before comparing. See
  4569  // https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing
  4570  // to learn more.
  4571  type GooglePrivacyDlpV2FixedSizeBucketingConfig struct {
  4572  	// BucketSize: Required. Size of each bucket (except for minimum and maximum
  4573  	// buckets). So if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` =
  4574  	// 10, then the following buckets would be used: -10, 10-20, 20-30, 30-40,
  4575  	// 40-50, 50-60, 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
  4576  	BucketSize float64 `json:"bucketSize,omitempty"`
  4577  	// LowerBound: Required. Lower bound value of buckets. All values less than
  4578  	// `lower_bound` are grouped together into a single bucket; for example if
  4579  	// `lower_bound` = 10, then all values less than 10 are replaced with the value
  4580  	// "-10".
  4581  	LowerBound *GooglePrivacyDlpV2Value `json:"lowerBound,omitempty"`
  4582  	// UpperBound: Required. Upper bound value of buckets. All values greater than
  4583  	// upper_bound are grouped together into a single bucket; for example if
  4584  	// `upper_bound` = 89, then all values greater than 89 are replaced with the
  4585  	// value "89+".
  4586  	UpperBound *GooglePrivacyDlpV2Value `json:"upperBound,omitempty"`
  4587  	// ForceSendFields is a list of field names (e.g. "BucketSize") to
  4588  	// unconditionally include in API requests. By default, fields with empty or
  4589  	// default values are omitted from API requests. See
  4590  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4591  	// details.
  4592  	ForceSendFields []string `json:"-"`
  4593  	// NullFields is a list of field names (e.g. "BucketSize") to include in API
  4594  	// requests with the JSON null value. By default, fields with empty values are
  4595  	// omitted from API requests. See
  4596  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4597  	NullFields []string `json:"-"`
  4598  }
  4599  
  4600  func (s *GooglePrivacyDlpV2FixedSizeBucketingConfig) MarshalJSON() ([]byte, error) {
  4601  	type NoMethod GooglePrivacyDlpV2FixedSizeBucketingConfig
  4602  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4603  }
  4604  
  4605  func (s *GooglePrivacyDlpV2FixedSizeBucketingConfig) UnmarshalJSON(data []byte) error {
  4606  	type NoMethod GooglePrivacyDlpV2FixedSizeBucketingConfig
  4607  	var s1 struct {
  4608  		BucketSize gensupport.JSONFloat64 `json:"bucketSize"`
  4609  		*NoMethod
  4610  	}
  4611  	s1.NoMethod = (*NoMethod)(s)
  4612  	if err := json.Unmarshal(data, &s1); err != nil {
  4613  		return err
  4614  	}
  4615  	s.BucketSize = float64(s1.BucketSize)
  4616  	return nil
  4617  }
  4618  
  4619  // GooglePrivacyDlpV2HotwordRule: The rule that adjusts the likelihood of
  4620  // findings within a certain proximity of hotwords.
  4621  type GooglePrivacyDlpV2HotwordRule struct {
  4622  	// HotwordRegex: Regular expression pattern defining what qualifies as a
  4623  	// hotword.
  4624  	HotwordRegex *GooglePrivacyDlpV2Regex `json:"hotwordRegex,omitempty"`
  4625  	// LikelihoodAdjustment: Likelihood adjustment to apply to all matching
  4626  	// findings.
  4627  	LikelihoodAdjustment *GooglePrivacyDlpV2LikelihoodAdjustment `json:"likelihoodAdjustment,omitempty"`
  4628  	// Proximity: Range of characters within which the entire hotword must reside.
  4629  	// The total length of the window cannot exceed 1000 characters. The finding
  4630  	// itself will be included in the window, so that hotwords can be used to match
  4631  	// substrings of the finding itself. Suppose you want Cloud DLP to promote the
  4632  	// likelihood of the phone number regex "\(\d{3}\) \d{3}-\d{4}" if the area
  4633  	// code is known to be the area code of a company's office. In this case, use
  4634  	// the hotword regex "\(xxx\)", where "xxx" is the area code in question. For
  4635  	// tabular data, if you want to modify the likelihood of an entire column of
  4636  	// findngs, see [Hotword example: Set the match likelihood of a table column]
  4637  	// (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
  4638  	Proximity *GooglePrivacyDlpV2Proximity `json:"proximity,omitempty"`
  4639  	// ForceSendFields is a list of field names (e.g. "HotwordRegex") to
  4640  	// unconditionally include in API requests. By default, fields with empty or
  4641  	// default values are omitted from API requests. See
  4642  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4643  	// details.
  4644  	ForceSendFields []string `json:"-"`
  4645  	// NullFields is a list of field names (e.g. "HotwordRegex") to include in API
  4646  	// requests with the JSON null value. By default, fields with empty values are
  4647  	// omitted from API requests. See
  4648  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4649  	NullFields []string `json:"-"`
  4650  }
  4651  
  4652  func (s *GooglePrivacyDlpV2HotwordRule) MarshalJSON() ([]byte, error) {
  4653  	type NoMethod GooglePrivacyDlpV2HotwordRule
  4654  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4655  }
  4656  
  4657  // GooglePrivacyDlpV2HybridContentItem: An individual hybrid item to inspect.
  4658  // Will be stored temporarily during processing.
  4659  type GooglePrivacyDlpV2HybridContentItem struct {
  4660  	// FindingDetails: Supplementary information that will be added to each
  4661  	// finding.
  4662  	FindingDetails *GooglePrivacyDlpV2HybridFindingDetails `json:"findingDetails,omitempty"`
  4663  	// Item: The item to inspect.
  4664  	Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
  4665  	// ForceSendFields is a list of field names (e.g. "FindingDetails") to
  4666  	// unconditionally include in API requests. By default, fields with empty or
  4667  	// default values are omitted from API requests. See
  4668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4669  	// details.
  4670  	ForceSendFields []string `json:"-"`
  4671  	// NullFields is a list of field names (e.g. "FindingDetails") to include in
  4672  	// API requests with the JSON null value. By default, fields with empty values
  4673  	// are omitted from API requests. See
  4674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4675  	NullFields []string `json:"-"`
  4676  }
  4677  
  4678  func (s *GooglePrivacyDlpV2HybridContentItem) MarshalJSON() ([]byte, error) {
  4679  	type NoMethod GooglePrivacyDlpV2HybridContentItem
  4680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4681  }
  4682  
  4683  // GooglePrivacyDlpV2HybridFindingDetails: Populate to associate additional
  4684  // data with each finding.
  4685  type GooglePrivacyDlpV2HybridFindingDetails struct {
  4686  	// ContainerDetails: Details about the container where the content being
  4687  	// inspected is from.
  4688  	ContainerDetails *GooglePrivacyDlpV2Container `json:"containerDetails,omitempty"`
  4689  	// FileOffset: Offset in bytes of the line, from the beginning of the file,
  4690  	// where the finding is located. Populate if the item being scanned is only
  4691  	// part of a bigger item, such as a shard of a file and you want to track the
  4692  	// absolute position of the finding.
  4693  	FileOffset int64 `json:"fileOffset,omitempty,string"`
  4694  	// Labels: Labels to represent user provided metadata about the data being
  4695  	// inspected. If configured by the job, some key values may be required. The
  4696  	// labels associated with `Finding`'s produced by hybrid inspection. Label keys
  4697  	// must be between 1 and 63 characters long and must conform to the following
  4698  	// regular expression: `a-z ([-a-z0-9]*[a-z0-9])?`. Label values must be
  4699  	// between 0 and 63 characters long and must conform to the regular expression
  4700  	// `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be associated
  4701  	// with a given finding. Examples: * "environment" : "production" *
  4702  	// "pipeline" : "etl"
  4703  	Labels map[string]string `json:"labels,omitempty"`
  4704  	// RowOffset: Offset of the row for tables. Populate if the row(s) being
  4705  	// scanned are part of a bigger dataset and you want to keep track of their
  4706  	// absolute position.
  4707  	RowOffset int64 `json:"rowOffset,omitempty,string"`
  4708  	// TableOptions: If the container is a table, additional information to make
  4709  	// findings meaningful such as the columns that are primary keys. If not known
  4710  	// ahead of time, can also be set within each inspect hybrid call and the two
  4711  	// will be merged. Note that identifying_fields will only be stored to
  4712  	// BigQuery, and only if the BigQuery action has been included.
  4713  	TableOptions *GooglePrivacyDlpV2TableOptions `json:"tableOptions,omitempty"`
  4714  	// ForceSendFields is a list of field names (e.g. "ContainerDetails") to
  4715  	// unconditionally include in API requests. By default, fields with empty or
  4716  	// default values are omitted from API requests. See
  4717  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4718  	// details.
  4719  	ForceSendFields []string `json:"-"`
  4720  	// NullFields is a list of field names (e.g. "ContainerDetails") to include in
  4721  	// API requests with the JSON null value. By default, fields with empty values
  4722  	// are omitted from API requests. See
  4723  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4724  	NullFields []string `json:"-"`
  4725  }
  4726  
  4727  func (s *GooglePrivacyDlpV2HybridFindingDetails) MarshalJSON() ([]byte, error) {
  4728  	type NoMethod GooglePrivacyDlpV2HybridFindingDetails
  4729  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4730  }
  4731  
  4732  // GooglePrivacyDlpV2HybridInspectDlpJobRequest: Request to search for
  4733  // potentially sensitive info in a custom location.
  4734  type GooglePrivacyDlpV2HybridInspectDlpJobRequest struct {
  4735  	// HybridItem: The item to inspect.
  4736  	HybridItem *GooglePrivacyDlpV2HybridContentItem `json:"hybridItem,omitempty"`
  4737  	// ForceSendFields is a list of field names (e.g. "HybridItem") to
  4738  	// unconditionally include in API requests. By default, fields with empty or
  4739  	// default values are omitted from API requests. See
  4740  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4741  	// details.
  4742  	ForceSendFields []string `json:"-"`
  4743  	// NullFields is a list of field names (e.g. "HybridItem") to include in API
  4744  	// requests with the JSON null value. By default, fields with empty values are
  4745  	// omitted from API requests. See
  4746  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4747  	NullFields []string `json:"-"`
  4748  }
  4749  
  4750  func (s *GooglePrivacyDlpV2HybridInspectDlpJobRequest) MarshalJSON() ([]byte, error) {
  4751  	type NoMethod GooglePrivacyDlpV2HybridInspectDlpJobRequest
  4752  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4753  }
  4754  
  4755  // GooglePrivacyDlpV2HybridInspectJobTriggerRequest: Request to search for
  4756  // potentially sensitive info in a custom location.
  4757  type GooglePrivacyDlpV2HybridInspectJobTriggerRequest struct {
  4758  	// HybridItem: The item to inspect.
  4759  	HybridItem *GooglePrivacyDlpV2HybridContentItem `json:"hybridItem,omitempty"`
  4760  	// ForceSendFields is a list of field names (e.g. "HybridItem") to
  4761  	// unconditionally include in API requests. By default, fields with empty or
  4762  	// default values are omitted from API requests. See
  4763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4764  	// details.
  4765  	ForceSendFields []string `json:"-"`
  4766  	// NullFields is a list of field names (e.g. "HybridItem") to include in API
  4767  	// requests with the JSON null value. By default, fields with empty values are
  4768  	// omitted from API requests. See
  4769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4770  	NullFields []string `json:"-"`
  4771  }
  4772  
  4773  func (s *GooglePrivacyDlpV2HybridInspectJobTriggerRequest) MarshalJSON() ([]byte, error) {
  4774  	type NoMethod GooglePrivacyDlpV2HybridInspectJobTriggerRequest
  4775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4776  }
  4777  
  4778  // GooglePrivacyDlpV2HybridInspectResponse: Quota exceeded errors will be
  4779  // thrown once quota has been met.
  4780  type GooglePrivacyDlpV2HybridInspectResponse struct {
  4781  	// ServerResponse contains the HTTP response code and headers from the server.
  4782  	googleapi.ServerResponse `json:"-"`
  4783  }
  4784  
  4785  // GooglePrivacyDlpV2HybridInspectStatistics: Statistics related to processing
  4786  // hybrid inspect requests.
  4787  type GooglePrivacyDlpV2HybridInspectStatistics struct {
  4788  	// AbortedCount: The number of hybrid inspection requests aborted because the
  4789  	// job ran out of quota or was ended before they could be processed.
  4790  	AbortedCount int64 `json:"abortedCount,omitempty,string"`
  4791  	// PendingCount: The number of hybrid requests currently being processed. Only
  4792  	// populated when called via method `getDlpJob`. A burst of traffic may cause
  4793  	// hybrid inspect requests to be enqueued. Processing will take place as
  4794  	// quickly as possible, but resource limitations may impact how long a request
  4795  	// is enqueued for.
  4796  	PendingCount int64 `json:"pendingCount,omitempty,string"`
  4797  	// ProcessedCount: The number of hybrid inspection requests processed within
  4798  	// this job.
  4799  	ProcessedCount int64 `json:"processedCount,omitempty,string"`
  4800  	// ForceSendFields is a list of field names (e.g. "AbortedCount") to
  4801  	// unconditionally include in API requests. By default, fields with empty or
  4802  	// default values are omitted from API requests. See
  4803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4804  	// details.
  4805  	ForceSendFields []string `json:"-"`
  4806  	// NullFields is a list of field names (e.g. "AbortedCount") to include in API
  4807  	// requests with the JSON null value. By default, fields with empty values are
  4808  	// omitted from API requests. See
  4809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4810  	NullFields []string `json:"-"`
  4811  }
  4812  
  4813  func (s *GooglePrivacyDlpV2HybridInspectStatistics) MarshalJSON() ([]byte, error) {
  4814  	type NoMethod GooglePrivacyDlpV2HybridInspectStatistics
  4815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4816  }
  4817  
  4818  // GooglePrivacyDlpV2HybridOptions: Configuration to control jobs where the
  4819  // content being inspected is outside of Google Cloud Platform.
  4820  type GooglePrivacyDlpV2HybridOptions struct {
  4821  	// Description: A short description of where the data is coming from. Will be
  4822  	// stored once in the job. 256 max length.
  4823  	Description string `json:"description,omitempty"`
  4824  	// Labels: To organize findings, these labels will be added to each finding.
  4825  	// Label keys must be between 1 and 63 characters long and must conform to the
  4826  	// following regular expression: `a-z ([-a-z0-9]*[a-z0-9])?`. Label values must
  4827  	// be between 0 and 63 characters long and must conform to the regular
  4828  	// expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. No more than 10 labels can be
  4829  	// associated with a given finding. Examples: * "environment" : "production"
  4830  	// * "pipeline" : "etl"
  4831  	Labels map[string]string `json:"labels,omitempty"`
  4832  	// RequiredFindingLabelKeys: These are labels that each inspection request must
  4833  	// include within their 'finding_labels' map. Request may contain others, but
  4834  	// any missing one of these will be rejected. Label keys must be between 1 and
  4835  	// 63 characters long and must conform to the following regular expression:
  4836  	// `[a-z]([-a-z0-9]*[a-z0-9])?`. No more than 10 keys can be required.
  4837  	RequiredFindingLabelKeys []string `json:"requiredFindingLabelKeys,omitempty"`
  4838  	// TableOptions: If the container is a table, additional information to make
  4839  	// findings meaningful such as the columns that are primary keys.
  4840  	TableOptions *GooglePrivacyDlpV2TableOptions `json:"tableOptions,omitempty"`
  4841  	// ForceSendFields is a list of field names (e.g. "Description") to
  4842  	// unconditionally include in API requests. By default, fields with empty or
  4843  	// default values are omitted from API requests. See
  4844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4845  	// details.
  4846  	ForceSendFields []string `json:"-"`
  4847  	// NullFields is a list of field names (e.g. "Description") to include in API
  4848  	// requests with the JSON null value. By default, fields with empty values are
  4849  	// omitted from API requests. See
  4850  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4851  	NullFields []string `json:"-"`
  4852  }
  4853  
  4854  func (s *GooglePrivacyDlpV2HybridOptions) MarshalJSON() ([]byte, error) {
  4855  	type NoMethod GooglePrivacyDlpV2HybridOptions
  4856  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4857  }
  4858  
  4859  // GooglePrivacyDlpV2ImageLocation: Location of the finding within an image.
  4860  type GooglePrivacyDlpV2ImageLocation struct {
  4861  	// BoundingBoxes: Bounding boxes locating the pixels within the image
  4862  	// containing the finding.
  4863  	BoundingBoxes []*GooglePrivacyDlpV2BoundingBox `json:"boundingBoxes,omitempty"`
  4864  	// ForceSendFields is a list of field names (e.g. "BoundingBoxes") to
  4865  	// unconditionally include in API requests. By default, fields with empty or
  4866  	// default values are omitted from API requests. See
  4867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4868  	// details.
  4869  	ForceSendFields []string `json:"-"`
  4870  	// NullFields is a list of field names (e.g. "BoundingBoxes") to include in API
  4871  	// requests with the JSON null value. By default, fields with empty values are
  4872  	// omitted from API requests. See
  4873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4874  	NullFields []string `json:"-"`
  4875  }
  4876  
  4877  func (s *GooglePrivacyDlpV2ImageLocation) MarshalJSON() ([]byte, error) {
  4878  	type NoMethod GooglePrivacyDlpV2ImageLocation
  4879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4880  }
  4881  
  4882  // GooglePrivacyDlpV2ImageRedactionConfig: Configuration for determining how
  4883  // redaction of images should occur.
  4884  type GooglePrivacyDlpV2ImageRedactionConfig struct {
  4885  	// InfoType: Only one per info_type should be provided per request. If not
  4886  	// specified, and redact_all_text is false, the DLP API will redact all text
  4887  	// that it matches against all info_types that are found, but not specified in
  4888  	// another ImageRedactionConfig.
  4889  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  4890  	// RedactAllText: If true, all text found in the image, regardless whether it
  4891  	// matches an info_type, is redacted. Only one should be provided.
  4892  	RedactAllText bool `json:"redactAllText,omitempty"`
  4893  	// RedactionColor: The color to use when redacting content from an image. If
  4894  	// not specified, the default is black.
  4895  	RedactionColor *GooglePrivacyDlpV2Color `json:"redactionColor,omitempty"`
  4896  	// ForceSendFields is a list of field names (e.g. "InfoType") to
  4897  	// unconditionally include in API requests. By default, fields with empty or
  4898  	// default values are omitted from API requests. See
  4899  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4900  	// details.
  4901  	ForceSendFields []string `json:"-"`
  4902  	// NullFields is a list of field names (e.g. "InfoType") to include in API
  4903  	// requests with the JSON null value. By default, fields with empty values are
  4904  	// omitted from API requests. See
  4905  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4906  	NullFields []string `json:"-"`
  4907  }
  4908  
  4909  func (s *GooglePrivacyDlpV2ImageRedactionConfig) MarshalJSON() ([]byte, error) {
  4910  	type NoMethod GooglePrivacyDlpV2ImageRedactionConfig
  4911  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4912  }
  4913  
  4914  // GooglePrivacyDlpV2ImageTransformation: Configuration for determining how
  4915  // redaction of images should occur.
  4916  type GooglePrivacyDlpV2ImageTransformation struct {
  4917  	// AllInfoTypes: Apply transformation to all findings not specified in other
  4918  	// ImageTransformation's selected_info_types. Only one instance is allowed
  4919  	// within the ImageTransformations message.
  4920  	AllInfoTypes *GooglePrivacyDlpV2AllInfoTypes `json:"allInfoTypes,omitempty"`
  4921  	// AllText: Apply transformation to all text that doesn't match an infoType.
  4922  	// Only one instance is allowed within the ImageTransformations message.
  4923  	AllText *GooglePrivacyDlpV2AllText `json:"allText,omitempty"`
  4924  	// RedactionColor: The color to use when redacting content from an image. If
  4925  	// not specified, the default is black.
  4926  	RedactionColor *GooglePrivacyDlpV2Color `json:"redactionColor,omitempty"`
  4927  	// SelectedInfoTypes: Apply transformation to the selected info_types.
  4928  	SelectedInfoTypes *GooglePrivacyDlpV2SelectedInfoTypes `json:"selectedInfoTypes,omitempty"`
  4929  	// ForceSendFields is a list of field names (e.g. "AllInfoTypes") to
  4930  	// unconditionally include in API requests. By default, fields with empty or
  4931  	// default values are omitted from API requests. See
  4932  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4933  	// details.
  4934  	ForceSendFields []string `json:"-"`
  4935  	// NullFields is a list of field names (e.g. "AllInfoTypes") to include in API
  4936  	// requests with the JSON null value. By default, fields with empty values are
  4937  	// omitted from API requests. See
  4938  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4939  	NullFields []string `json:"-"`
  4940  }
  4941  
  4942  func (s *GooglePrivacyDlpV2ImageTransformation) MarshalJSON() ([]byte, error) {
  4943  	type NoMethod GooglePrivacyDlpV2ImageTransformation
  4944  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4945  }
  4946  
  4947  // GooglePrivacyDlpV2ImageTransformations: A type of transformation that is
  4948  // applied over images.
  4949  type GooglePrivacyDlpV2ImageTransformations struct {
  4950  	// Transforms: List of transforms to make.
  4951  	Transforms []*GooglePrivacyDlpV2ImageTransformation `json:"transforms,omitempty"`
  4952  	// ForceSendFields is a list of field names (e.g. "Transforms") to
  4953  	// unconditionally include in API requests. By default, fields with empty or
  4954  	// default values are omitted from API requests. See
  4955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4956  	// details.
  4957  	ForceSendFields []string `json:"-"`
  4958  	// NullFields is a list of field names (e.g. "Transforms") to include in API
  4959  	// requests with the JSON null value. By default, fields with empty values are
  4960  	// omitted from API requests. See
  4961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4962  	NullFields []string `json:"-"`
  4963  }
  4964  
  4965  func (s *GooglePrivacyDlpV2ImageTransformations) MarshalJSON() ([]byte, error) {
  4966  	type NoMethod GooglePrivacyDlpV2ImageTransformations
  4967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4968  }
  4969  
  4970  // GooglePrivacyDlpV2InfoType: Type of information detected by the API.
  4971  type GooglePrivacyDlpV2InfoType struct {
  4972  	// Name: Name of the information type. Either a name of your choosing when
  4973  	// creating a CustomInfoType, or one of the names listed at
  4974  	// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
  4975  	// when specifying a built-in type. When sending Cloud DLP results to Data
  4976  	// Catalog, infoType names should conform to the pattern
  4977  	// `[A-Za-z0-9$_-]{1,64}`.
  4978  	Name string `json:"name,omitempty"`
  4979  	// SensitivityScore: Optional custom sensitivity for this InfoType. This only
  4980  	// applies to data profiling.
  4981  	SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
  4982  	// Version: Optional version name for this InfoType.
  4983  	Version string `json:"version,omitempty"`
  4984  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4985  	// include in API requests. By default, fields with empty or default values are
  4986  	// omitted from API requests. See
  4987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4988  	// details.
  4989  	ForceSendFields []string `json:"-"`
  4990  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4991  	// with the JSON null value. By default, fields with empty values are omitted
  4992  	// from API requests. See
  4993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4994  	NullFields []string `json:"-"`
  4995  }
  4996  
  4997  func (s *GooglePrivacyDlpV2InfoType) MarshalJSON() ([]byte, error) {
  4998  	type NoMethod GooglePrivacyDlpV2InfoType
  4999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5000  }
  5001  
  5002  // GooglePrivacyDlpV2InfoTypeCategory: Classification of infoTypes to organize
  5003  // them according to geographic location, industry, and data type.
  5004  type GooglePrivacyDlpV2InfoTypeCategory struct {
  5005  	// IndustryCategory: The group of relevant businesses where this infoType is
  5006  	// commonly used
  5007  	//
  5008  	// Possible values:
  5009  	//   "INDUSTRY_UNSPECIFIED" - Unused industry
  5010  	//   "FINANCE" - The infoType is typically used in the finance industry.
  5011  	//   "HEALTH" - The infoType is typically used in the health industry.
  5012  	//   "TELECOMMUNICATIONS" - The infoType is typically used in the
  5013  	// telecommunications industry.
  5014  	IndustryCategory string `json:"industryCategory,omitempty"`
  5015  	// LocationCategory: The region or country that issued the ID or document
  5016  	// represented by the infoType.
  5017  	//
  5018  	// Possible values:
  5019  	//   "LOCATION_UNSPECIFIED" - Unused location
  5020  	//   "GLOBAL" - The infoType is not issued by or tied to a specific region, but
  5021  	// is used almost everywhere.
  5022  	//   "ARGENTINA" - The infoType is typically used in Argentina.
  5023  	//   "AUSTRALIA" - The infoType is typically used in Australia.
  5024  	//   "BELGIUM" - The infoType is typically used in Belgium.
  5025  	//   "BRAZIL" - The infoType is typically used in Brazil.
  5026  	//   "CANADA" - The infoType is typically used in Canada.
  5027  	//   "CHILE" - The infoType is typically used in Chile.
  5028  	//   "CHINA" - The infoType is typically used in China.
  5029  	//   "COLOMBIA" - The infoType is typically used in Colombia.
  5030  	//   "CROATIA" - The infoType is typically used in Croatia.
  5031  	//   "DENMARK" - The infoType is typically used in Denmark.
  5032  	//   "FRANCE" - The infoType is typically used in France.
  5033  	//   "FINLAND" - The infoType is typically used in Finland.
  5034  	//   "GERMANY" - The infoType is typically used in Germany.
  5035  	//   "HONG_KONG" - The infoType is typically used in Hong Kong.
  5036  	//   "INDIA" - The infoType is typically used in India.
  5037  	//   "INDONESIA" - The infoType is typically used in Indonesia.
  5038  	//   "IRELAND" - The infoType is typically used in Ireland.
  5039  	//   "ISRAEL" - The infoType is typically used in Israel.
  5040  	//   "ITALY" - The infoType is typically used in Italy.
  5041  	//   "JAPAN" - The infoType is typically used in Japan.
  5042  	//   "KAZAKHSTAN" - The infoType is typically used in Kazakhstan.
  5043  	//   "KOREA" - The infoType is typically used in Korea.
  5044  	//   "MEXICO" - The infoType is typically used in Mexico.
  5045  	//   "THE_NETHERLANDS" - The infoType is typically used in the Netherlands.
  5046  	//   "NEW_ZEALAND" - The infoType is typically used in New Zealand.
  5047  	//   "NORWAY" - The infoType is typically used in Norway.
  5048  	//   "PARAGUAY" - The infoType is typically used in Paraguay.
  5049  	//   "PERU" - The infoType is typically used in Peru.
  5050  	//   "POLAND" - The infoType is typically used in Poland.
  5051  	//   "PORTUGAL" - The infoType is typically used in Portugal.
  5052  	//   "RUSSIA" - The infoType is typically used in Russia.
  5053  	//   "SINGAPORE" - The infoType is typically used in Singapore.
  5054  	//   "SOUTH_AFRICA" - The infoType is typically used in South Africa.
  5055  	//   "SPAIN" - The infoType is typically used in Spain.
  5056  	//   "SWEDEN" - The infoType is typically used in Sweden.
  5057  	//   "SWITZERLAND" - The infoType is typically used in Switzerland.
  5058  	//   "TAIWAN" - The infoType is typically used in Taiwan.
  5059  	//   "THAILAND" - The infoType is typically used in Thailand.
  5060  	//   "TURKEY" - The infoType is typically used in Turkey.
  5061  	//   "UKRAINE" - The infoType is typically used in Ukraine.
  5062  	//   "UNITED_KINGDOM" - The infoType is typically used in the United Kingdom.
  5063  	//   "UNITED_STATES" - The infoType is typically used in the United States.
  5064  	//   "URUGUAY" - The infoType is typically used in Uruguay.
  5065  	//   "UZBEKISTAN" - The infoType is typically used in Uzbekistan.
  5066  	//   "VENEZUELA" - The infoType is typically used in Venezuela.
  5067  	//   "INTERNAL" - The infoType is typically used in Google internally.
  5068  	LocationCategory string `json:"locationCategory,omitempty"`
  5069  	// TypeCategory: The class of identifiers where this infoType belongs
  5070  	//
  5071  	// Possible values:
  5072  	//   "TYPE_UNSPECIFIED" - Unused type
  5073  	//   "PII" - Personally identifiable information, for example, a name or phone
  5074  	// number
  5075  	//   "SPII" - Personally identifiable information that is especially sensitive,
  5076  	// for example, a passport number.
  5077  	//   "DEMOGRAPHIC" - Attributes that can partially identify someone, especially
  5078  	// in combination with other attributes, like age, height, and gender.
  5079  	//   "CREDENTIAL" - Confidential or secret information, for example, a
  5080  	// password.
  5081  	//   "GOVERNMENT_ID" - An identification document issued by a government.
  5082  	//   "DOCUMENT" - A document, for example, a resume or source code.
  5083  	//   "CONTEXTUAL_INFORMATION" - Information that is not sensitive on its own,
  5084  	// but provides details about the circumstances surrounding an entity or an
  5085  	// event.
  5086  	TypeCategory string `json:"typeCategory,omitempty"`
  5087  	// ForceSendFields is a list of field names (e.g. "IndustryCategory") to
  5088  	// unconditionally include in API requests. By default, fields with empty or
  5089  	// default values are omitted from API requests. See
  5090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5091  	// details.
  5092  	ForceSendFields []string `json:"-"`
  5093  	// NullFields is a list of field names (e.g. "IndustryCategory") to include in
  5094  	// API requests with the JSON null value. By default, fields with empty values
  5095  	// are omitted from API requests. See
  5096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5097  	NullFields []string `json:"-"`
  5098  }
  5099  
  5100  func (s *GooglePrivacyDlpV2InfoTypeCategory) MarshalJSON() ([]byte, error) {
  5101  	type NoMethod GooglePrivacyDlpV2InfoTypeCategory
  5102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5103  }
  5104  
  5105  // GooglePrivacyDlpV2InfoTypeDescription: InfoType description.
  5106  type GooglePrivacyDlpV2InfoTypeDescription struct {
  5107  	// Categories: The category of the infoType.
  5108  	Categories []*GooglePrivacyDlpV2InfoTypeCategory `json:"categories,omitempty"`
  5109  	// Description: Description of the infotype. Translated when language is
  5110  	// provided in the request.
  5111  	Description string `json:"description,omitempty"`
  5112  	// DisplayName: Human readable form of the infoType name.
  5113  	DisplayName string `json:"displayName,omitempty"`
  5114  	// Name: Internal name of the infoType.
  5115  	Name string `json:"name,omitempty"`
  5116  	// SensitivityScore: The default sensitivity of the infoType.
  5117  	SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
  5118  	// SupportedBy: Which parts of the API supports this InfoType.
  5119  	//
  5120  	// Possible values:
  5121  	//   "ENUM_TYPE_UNSPECIFIED" - Unused.
  5122  	//   "INSPECT" - Supported by the inspect operations.
  5123  	//   "RISK_ANALYSIS" - Supported by the risk analysis operations.
  5124  	SupportedBy []string `json:"supportedBy,omitempty"`
  5125  	// Versions: A list of available versions for the infotype.
  5126  	Versions []*GooglePrivacyDlpV2VersionDescription `json:"versions,omitempty"`
  5127  	// ForceSendFields is a list of field names (e.g. "Categories") to
  5128  	// unconditionally include in API requests. By default, fields with empty or
  5129  	// default values are omitted from API requests. See
  5130  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5131  	// details.
  5132  	ForceSendFields []string `json:"-"`
  5133  	// NullFields is a list of field names (e.g. "Categories") to include in API
  5134  	// requests with the JSON null value. By default, fields with empty values are
  5135  	// omitted from API requests. See
  5136  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5137  	NullFields []string `json:"-"`
  5138  }
  5139  
  5140  func (s *GooglePrivacyDlpV2InfoTypeDescription) MarshalJSON() ([]byte, error) {
  5141  	type NoMethod GooglePrivacyDlpV2InfoTypeDescription
  5142  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5143  }
  5144  
  5145  // GooglePrivacyDlpV2InfoTypeLikelihood: Configuration for setting a minimum
  5146  // likelihood per infotype. Used to customize the minimum likelihood level for
  5147  // specific infotypes in the request. For example, use this if you want to
  5148  // lower the precision for PERSON_NAME without lowering the precision for the
  5149  // other infotypes in the request.
  5150  type GooglePrivacyDlpV2InfoTypeLikelihood struct {
  5151  	// InfoType: Type of information the likelihood threshold applies to. Only one
  5152  	// likelihood per info_type should be provided. If InfoTypeLikelihood does not
  5153  	// have an info_type, the configuration fails.
  5154  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  5155  	// MinLikelihood: Only returns findings equal to or above this threshold. This
  5156  	// field is required or else the configuration fails.
  5157  	//
  5158  	// Possible values:
  5159  	//   "LIKELIHOOD_UNSPECIFIED" - Default value; same as POSSIBLE.
  5160  	//   "VERY_UNLIKELY" - Highest chance of a false positive.
  5161  	//   "UNLIKELY" - High chance of a false positive.
  5162  	//   "POSSIBLE" - Some matching signals. The default value.
  5163  	//   "LIKELY" - Low chance of a false positive.
  5164  	//   "VERY_LIKELY" - Confidence level is high. Lowest chance of a false
  5165  	// positive.
  5166  	MinLikelihood string `json:"minLikelihood,omitempty"`
  5167  	// ForceSendFields is a list of field names (e.g. "InfoType") to
  5168  	// unconditionally include in API requests. By default, fields with empty or
  5169  	// default values are omitted from API requests. See
  5170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5171  	// details.
  5172  	ForceSendFields []string `json:"-"`
  5173  	// NullFields is a list of field names (e.g. "InfoType") to include in API
  5174  	// requests with the JSON null value. By default, fields with empty values are
  5175  	// omitted from API requests. See
  5176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5177  	NullFields []string `json:"-"`
  5178  }
  5179  
  5180  func (s *GooglePrivacyDlpV2InfoTypeLikelihood) MarshalJSON() ([]byte, error) {
  5181  	type NoMethod GooglePrivacyDlpV2InfoTypeLikelihood
  5182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5183  }
  5184  
  5185  // GooglePrivacyDlpV2InfoTypeLimit: Max findings configuration per infoType,
  5186  // per content item or long running DlpJob.
  5187  type GooglePrivacyDlpV2InfoTypeLimit struct {
  5188  	// InfoType: Type of information the findings limit applies to. Only one limit
  5189  	// per info_type should be provided. If InfoTypeLimit does not have an
  5190  	// info_type, the DLP API applies the limit against all info_types that are
  5191  	// found but not specified in another InfoTypeLimit.
  5192  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  5193  	// MaxFindings: Max findings limit for the given infoType.
  5194  	MaxFindings int64 `json:"maxFindings,omitempty"`
  5195  	// ForceSendFields is a list of field names (e.g. "InfoType") to
  5196  	// unconditionally include in API requests. By default, fields with empty or
  5197  	// default values are omitted from API requests. See
  5198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5199  	// details.
  5200  	ForceSendFields []string `json:"-"`
  5201  	// NullFields is a list of field names (e.g. "InfoType") to include in API
  5202  	// requests with the JSON null value. By default, fields with empty values are
  5203  	// omitted from API requests. See
  5204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5205  	NullFields []string `json:"-"`
  5206  }
  5207  
  5208  func (s *GooglePrivacyDlpV2InfoTypeLimit) MarshalJSON() ([]byte, error) {
  5209  	type NoMethod GooglePrivacyDlpV2InfoTypeLimit
  5210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5211  }
  5212  
  5213  // GooglePrivacyDlpV2InfoTypeStats: Statistics regarding a specific InfoType.
  5214  type GooglePrivacyDlpV2InfoTypeStats struct {
  5215  	// Count: Number of findings for this infoType.
  5216  	Count int64 `json:"count,omitempty,string"`
  5217  	// InfoType: The type of finding this stat is for.
  5218  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  5219  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  5220  	// include in API requests. By default, fields with empty or default values are
  5221  	// omitted from API requests. See
  5222  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5223  	// details.
  5224  	ForceSendFields []string `json:"-"`
  5225  	// NullFields is a list of field names (e.g. "Count") to include in API
  5226  	// requests with the JSON null value. By default, fields with empty values are
  5227  	// omitted from API requests. See
  5228  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5229  	NullFields []string `json:"-"`
  5230  }
  5231  
  5232  func (s *GooglePrivacyDlpV2InfoTypeStats) MarshalJSON() ([]byte, error) {
  5233  	type NoMethod GooglePrivacyDlpV2InfoTypeStats
  5234  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5235  }
  5236  
  5237  // GooglePrivacyDlpV2InfoTypeSummary: The infoType details for this column.
  5238  type GooglePrivacyDlpV2InfoTypeSummary struct {
  5239  	// EstimatedPrevalence: Not populated for predicted infotypes.
  5240  	EstimatedPrevalence int64 `json:"estimatedPrevalence,omitempty"`
  5241  	// InfoType: The infoType.
  5242  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  5243  	// ForceSendFields is a list of field names (e.g. "EstimatedPrevalence") to
  5244  	// unconditionally include in API requests. By default, fields with empty or
  5245  	// default values are omitted from API requests. See
  5246  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5247  	// details.
  5248  	ForceSendFields []string `json:"-"`
  5249  	// NullFields is a list of field names (e.g. "EstimatedPrevalence") to include
  5250  	// in API requests with the JSON null value. By default, fields with empty
  5251  	// values are omitted from API requests. See
  5252  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5253  	NullFields []string `json:"-"`
  5254  }
  5255  
  5256  func (s *GooglePrivacyDlpV2InfoTypeSummary) MarshalJSON() ([]byte, error) {
  5257  	type NoMethod GooglePrivacyDlpV2InfoTypeSummary
  5258  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5259  }
  5260  
  5261  // GooglePrivacyDlpV2InfoTypeTransformation: A transformation to apply to text
  5262  // that is identified as a specific info_type.
  5263  type GooglePrivacyDlpV2InfoTypeTransformation struct {
  5264  	// InfoTypes: InfoTypes to apply the transformation to. An empty list will
  5265  	// cause this transformation to apply to all findings that correspond to
  5266  	// infoTypes that were requested in `InspectConfig`.
  5267  	InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
  5268  	// PrimitiveTransformation: Required. Primitive transformation to apply to the
  5269  	// infoType.
  5270  	PrimitiveTransformation *GooglePrivacyDlpV2PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
  5271  	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
  5272  	// unconditionally include in API requests. By default, fields with empty or
  5273  	// default values are omitted from API requests. See
  5274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5275  	// details.
  5276  	ForceSendFields []string `json:"-"`
  5277  	// NullFields is a list of field names (e.g. "InfoTypes") to include in API
  5278  	// requests with the JSON null value. By default, fields with empty values are
  5279  	// omitted from API requests. See
  5280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5281  	NullFields []string `json:"-"`
  5282  }
  5283  
  5284  func (s *GooglePrivacyDlpV2InfoTypeTransformation) MarshalJSON() ([]byte, error) {
  5285  	type NoMethod GooglePrivacyDlpV2InfoTypeTransformation
  5286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5287  }
  5288  
  5289  // GooglePrivacyDlpV2InfoTypeTransformations: A type of transformation that
  5290  // will scan unstructured text and apply various `PrimitiveTransformation`s to
  5291  // each finding, where the transformation is applied to only values that were
  5292  // identified as a specific info_type.
  5293  type GooglePrivacyDlpV2InfoTypeTransformations struct {
  5294  	// Transformations: Required. Transformation for each infoType. Cannot specify
  5295  	// more than one for a given infoType.
  5296  	Transformations []*GooglePrivacyDlpV2InfoTypeTransformation `json:"transformations,omitempty"`
  5297  	// ForceSendFields is a list of field names (e.g. "Transformations") to
  5298  	// unconditionally include in API requests. By default, fields with empty or
  5299  	// default values are omitted from API requests. See
  5300  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5301  	// details.
  5302  	ForceSendFields []string `json:"-"`
  5303  	// NullFields is a list of field names (e.g. "Transformations") to include in
  5304  	// API requests with the JSON null value. By default, fields with empty values
  5305  	// are omitted from API requests. See
  5306  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5307  	NullFields []string `json:"-"`
  5308  }
  5309  
  5310  func (s *GooglePrivacyDlpV2InfoTypeTransformations) MarshalJSON() ([]byte, error) {
  5311  	type NoMethod GooglePrivacyDlpV2InfoTypeTransformations
  5312  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5313  }
  5314  
  5315  // GooglePrivacyDlpV2InspectConfig: Configuration description of the scanning
  5316  // process. When used with redactContent only info_types and min_likelihood are
  5317  // currently used.
  5318  type GooglePrivacyDlpV2InspectConfig struct {
  5319  	// ContentOptions: Deprecated and unused.
  5320  	//
  5321  	// Possible values:
  5322  	//   "CONTENT_UNSPECIFIED" - Includes entire content of a file or a data
  5323  	// stream.
  5324  	//   "CONTENT_TEXT" - Text content within the data, excluding any metadata.
  5325  	//   "CONTENT_IMAGE" - Images found in the data.
  5326  	ContentOptions []string `json:"contentOptions,omitempty"`
  5327  	// CustomInfoTypes: CustomInfoTypes provided by the user. See
  5328  	// https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
  5329  	// to learn more.
  5330  	CustomInfoTypes []*GooglePrivacyDlpV2CustomInfoType `json:"customInfoTypes,omitempty"`
  5331  	// ExcludeInfoTypes: When true, excludes type information of the findings. This
  5332  	// is not used for data profiling.
  5333  	ExcludeInfoTypes bool `json:"excludeInfoTypes,omitempty"`
  5334  	// IncludeQuote: When true, a contextual quote from the data that triggered a
  5335  	// finding is included in the response; see Finding.quote. This is not used for
  5336  	// data profiling.
  5337  	IncludeQuote bool `json:"includeQuote,omitempty"`
  5338  	// InfoTypes: Restricts what info_types to look for. The values must correspond
  5339  	// to InfoType values returned by ListInfoTypes or listed at
  5340  	// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
  5341  	// When no InfoTypes or CustomInfoTypes are specified in a request, the system
  5342  	// may automatically choose a default list of detectors to run, which may
  5343  	// change over time. If you need precise control and predictability as to what
  5344  	// detectors are run you should specify specific InfoTypes listed in the
  5345  	// reference, otherwise a default list will be used, which may change over
  5346  	// time.
  5347  	InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
  5348  	// Limits: Configuration to control the number of findings returned. This is
  5349  	// not used for data profiling. When redacting sensitive data from images,
  5350  	// finding limits don't apply. They can cause unexpected or inconsistent
  5351  	// results, where only some data is redacted. Don't include finding limits in
  5352  	// RedactImage requests. Otherwise, Cloud DLP returns an error. When set within
  5353  	// an InspectJobConfig, the specified maximum values aren't hard limits. If an
  5354  	// inspection job reaches these limits, the job ends gradually, not abruptly.
  5355  	// Therefore, the actual number of findings that Cloud DLP returns can be
  5356  	// multiple times higher than these maximum values.
  5357  	Limits *GooglePrivacyDlpV2FindingLimits `json:"limits,omitempty"`
  5358  	// MinLikelihood: Only returns findings equal to or above this threshold. The
  5359  	// default is POSSIBLE. In general, the highest likelihood setting yields the
  5360  	// fewest findings in results and the lowest chance of a false positive. For
  5361  	// more information, see Match likelihood
  5362  	// (https://cloud.google.com/sensitive-data-protection/docs/likelihood).
  5363  	//
  5364  	// Possible values:
  5365  	//   "LIKELIHOOD_UNSPECIFIED" - Default value; same as POSSIBLE.
  5366  	//   "VERY_UNLIKELY" - Highest chance of a false positive.
  5367  	//   "UNLIKELY" - High chance of a false positive.
  5368  	//   "POSSIBLE" - Some matching signals. The default value.
  5369  	//   "LIKELY" - Low chance of a false positive.
  5370  	//   "VERY_LIKELY" - Confidence level is high. Lowest chance of a false
  5371  	// positive.
  5372  	MinLikelihood string `json:"minLikelihood,omitempty"`
  5373  	// MinLikelihoodPerInfoType: Minimum likelihood per infotype. For each
  5374  	// infotype, a user can specify a minimum likelihood. The system only returns a
  5375  	// finding if its likelihood is above this threshold. If this field is not set,
  5376  	// the system uses the InspectConfig min_likelihood.
  5377  	MinLikelihoodPerInfoType []*GooglePrivacyDlpV2InfoTypeLikelihood `json:"minLikelihoodPerInfoType,omitempty"`
  5378  	// RuleSet: Set of rules to apply to the findings for this InspectConfig.
  5379  	// Exclusion rules, contained in the set are executed in the end, other rules
  5380  	// are executed in the order they are specified for each info type.
  5381  	RuleSet []*GooglePrivacyDlpV2InspectionRuleSet `json:"ruleSet,omitempty"`
  5382  	// ForceSendFields is a list of field names (e.g. "ContentOptions") to
  5383  	// unconditionally include in API requests. By default, fields with empty or
  5384  	// default values are omitted from API requests. See
  5385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5386  	// details.
  5387  	ForceSendFields []string `json:"-"`
  5388  	// NullFields is a list of field names (e.g. "ContentOptions") to include in
  5389  	// API requests with the JSON null value. By default, fields with empty values
  5390  	// are omitted from API requests. See
  5391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5392  	NullFields []string `json:"-"`
  5393  }
  5394  
  5395  func (s *GooglePrivacyDlpV2InspectConfig) MarshalJSON() ([]byte, error) {
  5396  	type NoMethod GooglePrivacyDlpV2InspectConfig
  5397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5398  }
  5399  
  5400  // GooglePrivacyDlpV2InspectContentRequest: Request to search for potentially
  5401  // sensitive info in a ContentItem.
  5402  type GooglePrivacyDlpV2InspectContentRequest struct {
  5403  	// InspectConfig: Configuration for the inspector. What specified here will
  5404  	// override the template referenced by the inspect_template_name argument.
  5405  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  5406  	// InspectTemplateName: Template to use. Any configuration directly specified
  5407  	// in inspect_config will override those set in the template. Singular fields
  5408  	// that are set in this request will replace their corresponding fields in the
  5409  	// template. Repeated fields are appended. Singular sub-messages and groups are
  5410  	// recursively merged.
  5411  	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
  5412  	// Item: The item to inspect.
  5413  	Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
  5414  	// LocationId: Deprecated. This field has no effect.
  5415  	LocationId string `json:"locationId,omitempty"`
  5416  	// ForceSendFields is a list of field names (e.g. "InspectConfig") to
  5417  	// unconditionally include in API requests. By default, fields with empty or
  5418  	// default values are omitted from API requests. See
  5419  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5420  	// details.
  5421  	ForceSendFields []string `json:"-"`
  5422  	// NullFields is a list of field names (e.g. "InspectConfig") to include in API
  5423  	// requests with the JSON null value. By default, fields with empty values are
  5424  	// omitted from API requests. See
  5425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5426  	NullFields []string `json:"-"`
  5427  }
  5428  
  5429  func (s *GooglePrivacyDlpV2InspectContentRequest) MarshalJSON() ([]byte, error) {
  5430  	type NoMethod GooglePrivacyDlpV2InspectContentRequest
  5431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5432  }
  5433  
  5434  // GooglePrivacyDlpV2InspectContentResponse: Results of inspecting an item.
  5435  type GooglePrivacyDlpV2InspectContentResponse struct {
  5436  	// Result: The findings.
  5437  	Result *GooglePrivacyDlpV2InspectResult `json:"result,omitempty"`
  5438  
  5439  	// ServerResponse contains the HTTP response code and headers from the server.
  5440  	googleapi.ServerResponse `json:"-"`
  5441  	// ForceSendFields is a list of field names (e.g. "Result") to unconditionally
  5442  	// include in API requests. By default, fields with empty or default values are
  5443  	// omitted from API requests. See
  5444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5445  	// details.
  5446  	ForceSendFields []string `json:"-"`
  5447  	// NullFields is a list of field names (e.g. "Result") to include in API
  5448  	// requests with the JSON null value. By default, fields with empty values are
  5449  	// omitted from API requests. See
  5450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5451  	NullFields []string `json:"-"`
  5452  }
  5453  
  5454  func (s *GooglePrivacyDlpV2InspectContentResponse) MarshalJSON() ([]byte, error) {
  5455  	type NoMethod GooglePrivacyDlpV2InspectContentResponse
  5456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5457  }
  5458  
  5459  // GooglePrivacyDlpV2InspectDataSourceDetails: The results of an inspect
  5460  // DataSource job.
  5461  type GooglePrivacyDlpV2InspectDataSourceDetails struct {
  5462  	// RequestedOptions: The configuration used for this job.
  5463  	RequestedOptions *GooglePrivacyDlpV2RequestedOptions `json:"requestedOptions,omitempty"`
  5464  	// Result: A summary of the outcome of this inspection job.
  5465  	Result *GooglePrivacyDlpV2Result `json:"result,omitempty"`
  5466  	// ForceSendFields is a list of field names (e.g. "RequestedOptions") to
  5467  	// unconditionally include in API requests. By default, fields with empty or
  5468  	// default values are omitted from API requests. See
  5469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5470  	// details.
  5471  	ForceSendFields []string `json:"-"`
  5472  	// NullFields is a list of field names (e.g. "RequestedOptions") to include in
  5473  	// API requests with the JSON null value. By default, fields with empty values
  5474  	// are omitted from API requests. See
  5475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5476  	NullFields []string `json:"-"`
  5477  }
  5478  
  5479  func (s *GooglePrivacyDlpV2InspectDataSourceDetails) MarshalJSON() ([]byte, error) {
  5480  	type NoMethod GooglePrivacyDlpV2InspectDataSourceDetails
  5481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5482  }
  5483  
  5484  // GooglePrivacyDlpV2InspectJobConfig: Controls what and how to inspect for
  5485  // findings.
  5486  type GooglePrivacyDlpV2InspectJobConfig struct {
  5487  	// Actions: Actions to execute at the completion of the job.
  5488  	Actions []*GooglePrivacyDlpV2Action `json:"actions,omitempty"`
  5489  	// InspectConfig: How and what to scan for.
  5490  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  5491  	// InspectTemplateName: If provided, will be used as the default for all values
  5492  	// in InspectConfig. `inspect_config` will be merged into the values persisted
  5493  	// as part of the template.
  5494  	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
  5495  	// StorageConfig: The data to scan.
  5496  	StorageConfig *GooglePrivacyDlpV2StorageConfig `json:"storageConfig,omitempty"`
  5497  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  5498  	// include in API requests. By default, fields with empty or default values are
  5499  	// omitted from API requests. See
  5500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5501  	// details.
  5502  	ForceSendFields []string `json:"-"`
  5503  	// NullFields is a list of field names (e.g. "Actions") to include in API
  5504  	// requests with the JSON null value. By default, fields with empty values are
  5505  	// omitted from API requests. See
  5506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5507  	NullFields []string `json:"-"`
  5508  }
  5509  
  5510  func (s *GooglePrivacyDlpV2InspectJobConfig) MarshalJSON() ([]byte, error) {
  5511  	type NoMethod GooglePrivacyDlpV2InspectJobConfig
  5512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5513  }
  5514  
  5515  // GooglePrivacyDlpV2InspectResult: All the findings for a single scanned item.
  5516  type GooglePrivacyDlpV2InspectResult struct {
  5517  	// Findings: List of findings for an item.
  5518  	Findings []*GooglePrivacyDlpV2Finding `json:"findings,omitempty"`
  5519  	// FindingsTruncated: If true, then this item might have more findings than
  5520  	// were returned, and the findings returned are an arbitrary subset of all
  5521  	// findings. The findings list might be truncated because the input items were
  5522  	// too large, or because the server reached the maximum amount of resources
  5523  	// allowed for a single API call. For best results, divide the input into
  5524  	// smaller batches.
  5525  	FindingsTruncated bool `json:"findingsTruncated,omitempty"`
  5526  	// ForceSendFields is a list of field names (e.g. "Findings") to
  5527  	// unconditionally include in API requests. By default, fields with empty or
  5528  	// default values are omitted from API requests. See
  5529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5530  	// details.
  5531  	ForceSendFields []string `json:"-"`
  5532  	// NullFields is a list of field names (e.g. "Findings") to include in API
  5533  	// requests with the JSON null value. By default, fields with empty values are
  5534  	// omitted from API requests. See
  5535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5536  	NullFields []string `json:"-"`
  5537  }
  5538  
  5539  func (s *GooglePrivacyDlpV2InspectResult) MarshalJSON() ([]byte, error) {
  5540  	type NoMethod GooglePrivacyDlpV2InspectResult
  5541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5542  }
  5543  
  5544  // GooglePrivacyDlpV2InspectTemplate: The inspectTemplate contains a
  5545  // configuration (set of types of sensitive data to be detected) to be used
  5546  // anywhere you otherwise would normally specify InspectConfig. See
  5547  // https://cloud.google.com/sensitive-data-protection/docs/concepts-templates
  5548  // to learn more.
  5549  type GooglePrivacyDlpV2InspectTemplate struct {
  5550  	// CreateTime: Output only. The creation timestamp of an inspectTemplate.
  5551  	CreateTime string `json:"createTime,omitempty"`
  5552  	// Description: Short description (max 256 chars).
  5553  	Description string `json:"description,omitempty"`
  5554  	// DisplayName: Display name (max 256 chars).
  5555  	DisplayName string `json:"displayName,omitempty"`
  5556  	// InspectConfig: The core content of the template. Configuration of the
  5557  	// scanning process.
  5558  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  5559  	// Name: Output only. The template name. The template will have one of the
  5560  	// following formats: `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
  5561  	// `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
  5562  	Name string `json:"name,omitempty"`
  5563  	// UpdateTime: Output only. The last update timestamp of an inspectTemplate.
  5564  	UpdateTime string `json:"updateTime,omitempty"`
  5565  
  5566  	// ServerResponse contains the HTTP response code and headers from the server.
  5567  	googleapi.ServerResponse `json:"-"`
  5568  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5569  	// unconditionally include in API requests. By default, fields with empty or
  5570  	// default values are omitted from API requests. See
  5571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5572  	// details.
  5573  	ForceSendFields []string `json:"-"`
  5574  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5575  	// requests with the JSON null value. By default, fields with empty values are
  5576  	// omitted from API requests. See
  5577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5578  	NullFields []string `json:"-"`
  5579  }
  5580  
  5581  func (s *GooglePrivacyDlpV2InspectTemplate) MarshalJSON() ([]byte, error) {
  5582  	type NoMethod GooglePrivacyDlpV2InspectTemplate
  5583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5584  }
  5585  
  5586  // GooglePrivacyDlpV2InspectionRule: A single inspection rule to be applied to
  5587  // infoTypes, specified in `InspectionRuleSet`.
  5588  type GooglePrivacyDlpV2InspectionRule struct {
  5589  	// ExclusionRule: Exclusion rule.
  5590  	ExclusionRule *GooglePrivacyDlpV2ExclusionRule `json:"exclusionRule,omitempty"`
  5591  	// HotwordRule: Hotword-based detection rule.
  5592  	HotwordRule *GooglePrivacyDlpV2HotwordRule `json:"hotwordRule,omitempty"`
  5593  	// ForceSendFields is a list of field names (e.g. "ExclusionRule") to
  5594  	// unconditionally include in API requests. By default, fields with empty or
  5595  	// default values are omitted from API requests. See
  5596  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5597  	// details.
  5598  	ForceSendFields []string `json:"-"`
  5599  	// NullFields is a list of field names (e.g. "ExclusionRule") to include in API
  5600  	// requests with the JSON null value. By default, fields with empty values are
  5601  	// omitted from API requests. See
  5602  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5603  	NullFields []string `json:"-"`
  5604  }
  5605  
  5606  func (s *GooglePrivacyDlpV2InspectionRule) MarshalJSON() ([]byte, error) {
  5607  	type NoMethod GooglePrivacyDlpV2InspectionRule
  5608  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5609  }
  5610  
  5611  // GooglePrivacyDlpV2InspectionRuleSet: Rule set for modifying a set of
  5612  // infoTypes to alter behavior under certain circumstances, depending on the
  5613  // specific details of the rules within the set.
  5614  type GooglePrivacyDlpV2InspectionRuleSet struct {
  5615  	// InfoTypes: List of infoTypes this rule set is applied to.
  5616  	InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
  5617  	// Rules: Set of rules to be applied to infoTypes. The rules are applied in
  5618  	// order.
  5619  	Rules []*GooglePrivacyDlpV2InspectionRule `json:"rules,omitempty"`
  5620  	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
  5621  	// unconditionally include in API requests. By default, fields with empty or
  5622  	// default values are omitted from API requests. See
  5623  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5624  	// details.
  5625  	ForceSendFields []string `json:"-"`
  5626  	// NullFields is a list of field names (e.g. "InfoTypes") to include in API
  5627  	// requests with the JSON null value. By default, fields with empty values are
  5628  	// omitted from API requests. See
  5629  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5630  	NullFields []string `json:"-"`
  5631  }
  5632  
  5633  func (s *GooglePrivacyDlpV2InspectionRuleSet) MarshalJSON() ([]byte, error) {
  5634  	type NoMethod GooglePrivacyDlpV2InspectionRuleSet
  5635  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5636  }
  5637  
  5638  // GooglePrivacyDlpV2JobNotificationEmails: Sends an email when the job
  5639  // completes. The email goes to IAM project owners and technical Essential
  5640  // Contacts
  5641  // (https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
  5642  type GooglePrivacyDlpV2JobNotificationEmails struct {
  5643  }
  5644  
  5645  // GooglePrivacyDlpV2JobTrigger: Contains a configuration to make api calls on
  5646  // a repeating basis. See
  5647  // https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
  5648  // to learn more.
  5649  type GooglePrivacyDlpV2JobTrigger struct {
  5650  	// CreateTime: Output only. The creation timestamp of a triggeredJob.
  5651  	CreateTime string `json:"createTime,omitempty"`
  5652  	// Description: User provided description (max 256 chars)
  5653  	Description string `json:"description,omitempty"`
  5654  	// DisplayName: Display name (max 100 chars)
  5655  	DisplayName string `json:"displayName,omitempty"`
  5656  	// Errors: Output only. A stream of errors encountered when the trigger was
  5657  	// activated. Repeated errors may result in the JobTrigger automatically being
  5658  	// paused. Will return the last 100 errors. Whenever the JobTrigger is modified
  5659  	// this list will be cleared.
  5660  	Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
  5661  	// InspectJob: For inspect jobs, a snapshot of the configuration.
  5662  	InspectJob *GooglePrivacyDlpV2InspectJobConfig `json:"inspectJob,omitempty"`
  5663  	// LastRunTime: Output only. The timestamp of the last time this trigger
  5664  	// executed.
  5665  	LastRunTime string `json:"lastRunTime,omitempty"`
  5666  	// Name: Unique resource name for the triggeredJob, assigned by the service
  5667  	// when the triggeredJob is created, for example
  5668  	// `projects/dlp-test-project/jobTriggers/53234423`.
  5669  	Name string `json:"name,omitempty"`
  5670  	// Status: Required. A status for this trigger.
  5671  	//
  5672  	// Possible values:
  5673  	//   "STATUS_UNSPECIFIED" - Unused.
  5674  	//   "HEALTHY" - Trigger is healthy.
  5675  	//   "PAUSED" - Trigger is temporarily paused.
  5676  	//   "CANCELLED" - Trigger is cancelled and can not be resumed.
  5677  	Status string `json:"status,omitempty"`
  5678  	// Triggers: A list of triggers which will be OR'ed together. Only one in the
  5679  	// list needs to trigger for a job to be started. The list may contain only a
  5680  	// single Schedule trigger and must have at least one object.
  5681  	Triggers []*GooglePrivacyDlpV2Trigger `json:"triggers,omitempty"`
  5682  	// UpdateTime: Output only. The last update timestamp of a triggeredJob.
  5683  	UpdateTime string `json:"updateTime,omitempty"`
  5684  
  5685  	// ServerResponse contains the HTTP response code and headers from the server.
  5686  	googleapi.ServerResponse `json:"-"`
  5687  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5688  	// unconditionally include in API requests. By default, fields with empty or
  5689  	// default values are omitted from API requests. See
  5690  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5691  	// details.
  5692  	ForceSendFields []string `json:"-"`
  5693  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5694  	// requests with the JSON null value. By default, fields with empty values are
  5695  	// omitted from API requests. See
  5696  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5697  	NullFields []string `json:"-"`
  5698  }
  5699  
  5700  func (s *GooglePrivacyDlpV2JobTrigger) MarshalJSON() ([]byte, error) {
  5701  	type NoMethod GooglePrivacyDlpV2JobTrigger
  5702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5703  }
  5704  
  5705  // GooglePrivacyDlpV2KAnonymityConfig: k-anonymity metric, used for analysis of
  5706  // reidentification risk.
  5707  type GooglePrivacyDlpV2KAnonymityConfig struct {
  5708  	// EntityId: Message indicating that multiple rows might be associated to a
  5709  	// single individual. If the same entity_id is associated to multiple
  5710  	// quasi-identifier tuples over distinct rows, we consider the entire
  5711  	// collection of tuples as the composite quasi-identifier. This collection is a
  5712  	// multiset: the order in which the different tuples appear in the dataset is
  5713  	// ignored, but their frequency is taken into account. Important note: a
  5714  	// maximum of 1000 rows can be associated to a single entity ID. If more rows
  5715  	// are associated with the same entity ID, some might be ignored.
  5716  	EntityId *GooglePrivacyDlpV2EntityId `json:"entityId,omitempty"`
  5717  	// QuasiIds: Set of fields to compute k-anonymity over. When multiple fields
  5718  	// are specified, they are considered a single composite key. Structs and
  5719  	// repeated data types are not supported; however, nested fields are supported
  5720  	// so long as they are not structs themselves or nested within a repeated
  5721  	// field.
  5722  	QuasiIds []*GooglePrivacyDlpV2FieldId `json:"quasiIds,omitempty"`
  5723  	// ForceSendFields is a list of field names (e.g. "EntityId") to
  5724  	// unconditionally include in API requests. By default, fields with empty or
  5725  	// default values are omitted from API requests. See
  5726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5727  	// details.
  5728  	ForceSendFields []string `json:"-"`
  5729  	// NullFields is a list of field names (e.g. "EntityId") to include in API
  5730  	// requests with the JSON null value. By default, fields with empty values are
  5731  	// omitted from API requests. See
  5732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5733  	NullFields []string `json:"-"`
  5734  }
  5735  
  5736  func (s *GooglePrivacyDlpV2KAnonymityConfig) MarshalJSON() ([]byte, error) {
  5737  	type NoMethod GooglePrivacyDlpV2KAnonymityConfig
  5738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5739  }
  5740  
  5741  // GooglePrivacyDlpV2KAnonymityEquivalenceClass: The set of columns' values
  5742  // that share the same ldiversity value
  5743  type GooglePrivacyDlpV2KAnonymityEquivalenceClass struct {
  5744  	// EquivalenceClassSize: Size of the equivalence class, for example number of
  5745  	// rows with the above set of values.
  5746  	EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
  5747  	// QuasiIdsValues: Set of values defining the equivalence class. One value per
  5748  	// quasi-identifier column in the original KAnonymity metric message. The order
  5749  	// is always the same as the original request.
  5750  	QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
  5751  	// ForceSendFields is a list of field names (e.g. "EquivalenceClassSize") to
  5752  	// unconditionally include in API requests. By default, fields with empty or
  5753  	// default values are omitted from API requests. See
  5754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5755  	// details.
  5756  	ForceSendFields []string `json:"-"`
  5757  	// NullFields is a list of field names (e.g. "EquivalenceClassSize") to include
  5758  	// in API requests with the JSON null value. By default, fields with empty
  5759  	// values are omitted from API requests. See
  5760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5761  	NullFields []string `json:"-"`
  5762  }
  5763  
  5764  func (s *GooglePrivacyDlpV2KAnonymityEquivalenceClass) MarshalJSON() ([]byte, error) {
  5765  	type NoMethod GooglePrivacyDlpV2KAnonymityEquivalenceClass
  5766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5767  }
  5768  
  5769  // GooglePrivacyDlpV2KAnonymityHistogramBucket: Histogram of k-anonymity
  5770  // equivalence classes.
  5771  type GooglePrivacyDlpV2KAnonymityHistogramBucket struct {
  5772  	// BucketSize: Total number of equivalence classes in this bucket.
  5773  	BucketSize int64 `json:"bucketSize,omitempty,string"`
  5774  	// BucketValueCount: Total number of distinct equivalence classes in this
  5775  	// bucket.
  5776  	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
  5777  	// BucketValues: Sample of equivalence classes in this bucket. The total number
  5778  	// of classes returned per bucket is capped at 20.
  5779  	BucketValues []*GooglePrivacyDlpV2KAnonymityEquivalenceClass `json:"bucketValues,omitempty"`
  5780  	// EquivalenceClassSizeLowerBound: Lower bound on the size of the equivalence
  5781  	// classes in this bucket.
  5782  	EquivalenceClassSizeLowerBound int64 `json:"equivalenceClassSizeLowerBound,omitempty,string"`
  5783  	// EquivalenceClassSizeUpperBound: Upper bound on the size of the equivalence
  5784  	// classes in this bucket.
  5785  	EquivalenceClassSizeUpperBound int64 `json:"equivalenceClassSizeUpperBound,omitempty,string"`
  5786  	// ForceSendFields is a list of field names (e.g. "BucketSize") to
  5787  	// unconditionally include in API requests. By default, fields with empty or
  5788  	// default values are omitted from API requests. See
  5789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5790  	// details.
  5791  	ForceSendFields []string `json:"-"`
  5792  	// NullFields is a list of field names (e.g. "BucketSize") to include in API
  5793  	// requests with the JSON null value. By default, fields with empty values are
  5794  	// omitted from API requests. See
  5795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5796  	NullFields []string `json:"-"`
  5797  }
  5798  
  5799  func (s *GooglePrivacyDlpV2KAnonymityHistogramBucket) MarshalJSON() ([]byte, error) {
  5800  	type NoMethod GooglePrivacyDlpV2KAnonymityHistogramBucket
  5801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5802  }
  5803  
  5804  // GooglePrivacyDlpV2KAnonymityResult: Result of the k-anonymity computation.
  5805  type GooglePrivacyDlpV2KAnonymityResult struct {
  5806  	// EquivalenceClassHistogramBuckets: Histogram of k-anonymity equivalence
  5807  	// classes.
  5808  	EquivalenceClassHistogramBuckets []*GooglePrivacyDlpV2KAnonymityHistogramBucket `json:"equivalenceClassHistogramBuckets,omitempty"`
  5809  	// ForceSendFields is a list of field names (e.g.
  5810  	// "EquivalenceClassHistogramBuckets") to unconditionally include in API
  5811  	// requests. By default, fields with empty or default values are omitted from
  5812  	// API requests. See
  5813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5814  	// details.
  5815  	ForceSendFields []string `json:"-"`
  5816  	// NullFields is a list of field names (e.g.
  5817  	// "EquivalenceClassHistogramBuckets") to include in API requests with the JSON
  5818  	// null value. By default, fields with empty values are omitted from API
  5819  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  5820  	// more details.
  5821  	NullFields []string `json:"-"`
  5822  }
  5823  
  5824  func (s *GooglePrivacyDlpV2KAnonymityResult) MarshalJSON() ([]byte, error) {
  5825  	type NoMethod GooglePrivacyDlpV2KAnonymityResult
  5826  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5827  }
  5828  
  5829  // GooglePrivacyDlpV2KMapEstimationConfig: Reidentifiability metric. This
  5830  // corresponds to a risk model similar to what is called "journalist risk" in
  5831  // the literature, except the attack dataset is statistically modeled instead
  5832  // of being perfectly known. This can be done using publicly available data
  5833  // (like the US Census), or using a custom statistical model (indicated as one
  5834  // or several BigQuery tables), or by extrapolating from the distribution of
  5835  // values in the input dataset.
  5836  type GooglePrivacyDlpV2KMapEstimationConfig struct {
  5837  	// AuxiliaryTables: Several auxiliary tables can be used in the analysis. Each
  5838  	// custom_tag used to tag a quasi-identifiers column must appear in exactly one
  5839  	// column of one auxiliary table.
  5840  	AuxiliaryTables []*GooglePrivacyDlpV2AuxiliaryTable `json:"auxiliaryTables,omitempty"`
  5841  	// QuasiIds: Required. Fields considered to be quasi-identifiers. No two
  5842  	// columns can have the same tag.
  5843  	QuasiIds []*GooglePrivacyDlpV2TaggedField `json:"quasiIds,omitempty"`
  5844  	// RegionCode: ISO 3166-1 alpha-2 region code to use in the statistical
  5845  	// modeling. Set if no column is tagged with a region-specific InfoType (like
  5846  	// US_ZIP_5) or a region code.
  5847  	RegionCode string `json:"regionCode,omitempty"`
  5848  	// ForceSendFields is a list of field names (e.g. "AuxiliaryTables") to
  5849  	// unconditionally include in API requests. By default, fields with empty or
  5850  	// default values are omitted from API requests. See
  5851  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5852  	// details.
  5853  	ForceSendFields []string `json:"-"`
  5854  	// NullFields is a list of field names (e.g. "AuxiliaryTables") to include in
  5855  	// API requests with the JSON null value. By default, fields with empty values
  5856  	// are omitted from API requests. See
  5857  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5858  	NullFields []string `json:"-"`
  5859  }
  5860  
  5861  func (s *GooglePrivacyDlpV2KMapEstimationConfig) MarshalJSON() ([]byte, error) {
  5862  	type NoMethod GooglePrivacyDlpV2KMapEstimationConfig
  5863  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5864  }
  5865  
  5866  // GooglePrivacyDlpV2KMapEstimationHistogramBucket: A
  5867  // KMapEstimationHistogramBucket message with the following values:
  5868  // min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42
  5869  // records whose quasi-identifier values correspond to 3, 4 or 5 people in the
  5870  // overlying population. An important particular case is when min_anonymity =
  5871  // max_anonymity = 1: the frequency field then corresponds to the number of
  5872  // uniquely identifiable records.
  5873  type GooglePrivacyDlpV2KMapEstimationHistogramBucket struct {
  5874  	// BucketSize: Number of records within these anonymity bounds.
  5875  	BucketSize int64 `json:"bucketSize,omitempty,string"`
  5876  	// BucketValueCount: Total number of distinct quasi-identifier tuple values in
  5877  	// this bucket.
  5878  	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
  5879  	// BucketValues: Sample of quasi-identifier tuple values in this bucket. The
  5880  	// total number of classes returned per bucket is capped at 20.
  5881  	BucketValues []*GooglePrivacyDlpV2KMapEstimationQuasiIdValues `json:"bucketValues,omitempty"`
  5882  	// MaxAnonymity: Always greater than or equal to min_anonymity.
  5883  	MaxAnonymity int64 `json:"maxAnonymity,omitempty,string"`
  5884  	// MinAnonymity: Always positive.
  5885  	MinAnonymity int64 `json:"minAnonymity,omitempty,string"`
  5886  	// ForceSendFields is a list of field names (e.g. "BucketSize") to
  5887  	// unconditionally include in API requests. By default, fields with empty or
  5888  	// default values are omitted from API requests. See
  5889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5890  	// details.
  5891  	ForceSendFields []string `json:"-"`
  5892  	// NullFields is a list of field names (e.g. "BucketSize") to include in API
  5893  	// requests with the JSON null value. By default, fields with empty values are
  5894  	// omitted from API requests. See
  5895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5896  	NullFields []string `json:"-"`
  5897  }
  5898  
  5899  func (s *GooglePrivacyDlpV2KMapEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
  5900  	type NoMethod GooglePrivacyDlpV2KMapEstimationHistogramBucket
  5901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5902  }
  5903  
  5904  // GooglePrivacyDlpV2KMapEstimationQuasiIdValues: A tuple of values for the
  5905  // quasi-identifier columns.
  5906  type GooglePrivacyDlpV2KMapEstimationQuasiIdValues struct {
  5907  	// EstimatedAnonymity: The estimated anonymity for these quasi-identifier
  5908  	// values.
  5909  	EstimatedAnonymity int64 `json:"estimatedAnonymity,omitempty,string"`
  5910  	// QuasiIdsValues: The quasi-identifier values.
  5911  	QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
  5912  	// ForceSendFields is a list of field names (e.g. "EstimatedAnonymity") to
  5913  	// unconditionally include in API requests. By default, fields with empty or
  5914  	// default values are omitted from API requests. See
  5915  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5916  	// details.
  5917  	ForceSendFields []string `json:"-"`
  5918  	// NullFields is a list of field names (e.g. "EstimatedAnonymity") to include
  5919  	// in API requests with the JSON null value. By default, fields with empty
  5920  	// values are omitted from API requests. See
  5921  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5922  	NullFields []string `json:"-"`
  5923  }
  5924  
  5925  func (s *GooglePrivacyDlpV2KMapEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
  5926  	type NoMethod GooglePrivacyDlpV2KMapEstimationQuasiIdValues
  5927  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5928  }
  5929  
  5930  // GooglePrivacyDlpV2KMapEstimationResult: Result of the reidentifiability
  5931  // analysis. Note that these results are an estimation, not exact values.
  5932  type GooglePrivacyDlpV2KMapEstimationResult struct {
  5933  	// KMapEstimationHistogram: The intervals [min_anonymity, max_anonymity] do not
  5934  	// overlap. If a value doesn't correspond to any such interval, the associated
  5935  	// frequency is zero. For example, the following records: {min_anonymity: 1,
  5936  	// max_anonymity: 1, frequency: 17} {min_anonymity: 2, max_anonymity: 3,
  5937  	// frequency: 42} {min_anonymity: 5, max_anonymity: 10, frequency: 99} mean
  5938  	// that there are no record with an estimated anonymity of 4, 5, or larger than
  5939  	// 10.
  5940  	KMapEstimationHistogram []*GooglePrivacyDlpV2KMapEstimationHistogramBucket `json:"kMapEstimationHistogram,omitempty"`
  5941  	// ForceSendFields is a list of field names (e.g. "KMapEstimationHistogram") to
  5942  	// unconditionally include in API requests. By default, fields with empty or
  5943  	// default values are omitted from API requests. See
  5944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5945  	// details.
  5946  	ForceSendFields []string `json:"-"`
  5947  	// NullFields is a list of field names (e.g. "KMapEstimationHistogram") to
  5948  	// include in API requests with the JSON null value. By default, fields with
  5949  	// empty values are omitted from API requests. See
  5950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5951  	NullFields []string `json:"-"`
  5952  }
  5953  
  5954  func (s *GooglePrivacyDlpV2KMapEstimationResult) MarshalJSON() ([]byte, error) {
  5955  	type NoMethod GooglePrivacyDlpV2KMapEstimationResult
  5956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5957  }
  5958  
  5959  // GooglePrivacyDlpV2Key: A unique identifier for a Datastore entity. If a
  5960  // key's partition ID or any of its path kinds or names are reserved/read-only,
  5961  // the key is reserved/read-only. A reserved/read-only key is forbidden in
  5962  // certain documented contexts.
  5963  type GooglePrivacyDlpV2Key struct {
  5964  	// PartitionId: Entities are partitioned into subsets, currently identified by
  5965  	// a project ID and namespace ID. Queries are scoped to a single partition.
  5966  	PartitionId *GooglePrivacyDlpV2PartitionId `json:"partitionId,omitempty"`
  5967  	// Path: The entity path. An entity path consists of one or more elements
  5968  	// composed of a kind and a string or numerical identifier, which identify
  5969  	// entities. The first element identifies a _root entity_, the second element
  5970  	// identifies a _child_ of the root entity, the third element identifies a
  5971  	// child of the second entity, and so forth. The entities identified by all
  5972  	// prefixes of the path are called the element's _ancestors_. A path can never
  5973  	// be empty, and a path can have at most 100 elements.
  5974  	Path []*GooglePrivacyDlpV2PathElement `json:"path,omitempty"`
  5975  	// ForceSendFields is a list of field names (e.g. "PartitionId") to
  5976  	// unconditionally include in API requests. By default, fields with empty or
  5977  	// default values are omitted from API requests. See
  5978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5979  	// details.
  5980  	ForceSendFields []string `json:"-"`
  5981  	// NullFields is a list of field names (e.g. "PartitionId") to include in API
  5982  	// requests with the JSON null value. By default, fields with empty values are
  5983  	// omitted from API requests. See
  5984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5985  	NullFields []string `json:"-"`
  5986  }
  5987  
  5988  func (s *GooglePrivacyDlpV2Key) MarshalJSON() ([]byte, error) {
  5989  	type NoMethod GooglePrivacyDlpV2Key
  5990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5991  }
  5992  
  5993  // GooglePrivacyDlpV2KindExpression: A representation of a Datastore kind.
  5994  type GooglePrivacyDlpV2KindExpression struct {
  5995  	// Name: The name of the kind.
  5996  	Name string `json:"name,omitempty"`
  5997  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  5998  	// include in API requests. By default, fields with empty or default values are
  5999  	// omitted from API requests. See
  6000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6001  	// details.
  6002  	ForceSendFields []string `json:"-"`
  6003  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  6004  	// with the JSON null value. By default, fields with empty values are omitted
  6005  	// from API requests. See
  6006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6007  	NullFields []string `json:"-"`
  6008  }
  6009  
  6010  func (s *GooglePrivacyDlpV2KindExpression) MarshalJSON() ([]byte, error) {
  6011  	type NoMethod GooglePrivacyDlpV2KindExpression
  6012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6013  }
  6014  
  6015  // GooglePrivacyDlpV2KmsWrappedCryptoKey: Include to use an existing data
  6016  // crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit
  6017  // key. Authorization requires the following IAM permissions when sending a
  6018  // request to perform a crypto transformation using a KMS-wrapped crypto key:
  6019  // dlp.kms.encrypt For more information, see [Creating a wrapped key]
  6020  // (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key).
  6021  // Note: When you use Cloud KMS for cryptographic operations, charges apply
  6022  // (https://cloud.google.com/kms/pricing).
  6023  type GooglePrivacyDlpV2KmsWrappedCryptoKey struct {
  6024  	// CryptoKeyName: Required. The resource name of the KMS CryptoKey to use for
  6025  	// unwrapping.
  6026  	CryptoKeyName string `json:"cryptoKeyName,omitempty"`
  6027  	// WrappedKey: Required. The wrapped data crypto key.
  6028  	WrappedKey string `json:"wrappedKey,omitempty"`
  6029  	// ForceSendFields is a list of field names (e.g. "CryptoKeyName") to
  6030  	// unconditionally include in API requests. By default, fields with empty or
  6031  	// default values are omitted from API requests. See
  6032  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6033  	// details.
  6034  	ForceSendFields []string `json:"-"`
  6035  	// NullFields is a list of field names (e.g. "CryptoKeyName") to include in API
  6036  	// requests with the JSON null value. By default, fields with empty values are
  6037  	// omitted from API requests. See
  6038  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6039  	NullFields []string `json:"-"`
  6040  }
  6041  
  6042  func (s *GooglePrivacyDlpV2KmsWrappedCryptoKey) MarshalJSON() ([]byte, error) {
  6043  	type NoMethod GooglePrivacyDlpV2KmsWrappedCryptoKey
  6044  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6045  }
  6046  
  6047  // GooglePrivacyDlpV2LDiversityConfig: l-diversity metric, used for analysis of
  6048  // reidentification risk.
  6049  type GooglePrivacyDlpV2LDiversityConfig struct {
  6050  	// QuasiIds: Set of quasi-identifiers indicating how equivalence classes are
  6051  	// defined for the l-diversity computation. When multiple fields are specified,
  6052  	// they are considered a single composite key.
  6053  	QuasiIds []*GooglePrivacyDlpV2FieldId `json:"quasiIds,omitempty"`
  6054  	// SensitiveAttribute: Sensitive field for computing the l-value.
  6055  	SensitiveAttribute *GooglePrivacyDlpV2FieldId `json:"sensitiveAttribute,omitempty"`
  6056  	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
  6057  	// unconditionally include in API requests. By default, fields with empty or
  6058  	// default values are omitted from API requests. See
  6059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6060  	// details.
  6061  	ForceSendFields []string `json:"-"`
  6062  	// NullFields is a list of field names (e.g. "QuasiIds") to include in API
  6063  	// requests with the JSON null value. By default, fields with empty values are
  6064  	// omitted from API requests. See
  6065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6066  	NullFields []string `json:"-"`
  6067  }
  6068  
  6069  func (s *GooglePrivacyDlpV2LDiversityConfig) MarshalJSON() ([]byte, error) {
  6070  	type NoMethod GooglePrivacyDlpV2LDiversityConfig
  6071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6072  }
  6073  
  6074  // GooglePrivacyDlpV2LDiversityEquivalenceClass: The set of columns' values
  6075  // that share the same ldiversity value.
  6076  type GooglePrivacyDlpV2LDiversityEquivalenceClass struct {
  6077  	// EquivalenceClassSize: Size of the k-anonymity equivalence class.
  6078  	EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
  6079  	// NumDistinctSensitiveValues: Number of distinct sensitive values in this
  6080  	// equivalence class.
  6081  	NumDistinctSensitiveValues int64 `json:"numDistinctSensitiveValues,omitempty,string"`
  6082  	// QuasiIdsValues: Quasi-identifier values defining the k-anonymity equivalence
  6083  	// class. The order is always the same as the original request.
  6084  	QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
  6085  	// TopSensitiveValues: Estimated frequencies of top sensitive values.
  6086  	TopSensitiveValues []*GooglePrivacyDlpV2ValueFrequency `json:"topSensitiveValues,omitempty"`
  6087  	// ForceSendFields is a list of field names (e.g. "EquivalenceClassSize") to
  6088  	// unconditionally include in API requests. By default, fields with empty or
  6089  	// default values are omitted from API requests. See
  6090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6091  	// details.
  6092  	ForceSendFields []string `json:"-"`
  6093  	// NullFields is a list of field names (e.g. "EquivalenceClassSize") to include
  6094  	// in API requests with the JSON null value. By default, fields with empty
  6095  	// values are omitted from API requests. See
  6096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6097  	NullFields []string `json:"-"`
  6098  }
  6099  
  6100  func (s *GooglePrivacyDlpV2LDiversityEquivalenceClass) MarshalJSON() ([]byte, error) {
  6101  	type NoMethod GooglePrivacyDlpV2LDiversityEquivalenceClass
  6102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6103  }
  6104  
  6105  // GooglePrivacyDlpV2LDiversityHistogramBucket: Histogram of l-diversity
  6106  // equivalence class sensitive value frequencies.
  6107  type GooglePrivacyDlpV2LDiversityHistogramBucket struct {
  6108  	// BucketSize: Total number of equivalence classes in this bucket.
  6109  	BucketSize int64 `json:"bucketSize,omitempty,string"`
  6110  	// BucketValueCount: Total number of distinct equivalence classes in this
  6111  	// bucket.
  6112  	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
  6113  	// BucketValues: Sample of equivalence classes in this bucket. The total number
  6114  	// of classes returned per bucket is capped at 20.
  6115  	BucketValues []*GooglePrivacyDlpV2LDiversityEquivalenceClass `json:"bucketValues,omitempty"`
  6116  	// SensitiveValueFrequencyLowerBound: Lower bound on the sensitive value
  6117  	// frequencies of the equivalence classes in this bucket.
  6118  	SensitiveValueFrequencyLowerBound int64 `json:"sensitiveValueFrequencyLowerBound,omitempty,string"`
  6119  	// SensitiveValueFrequencyUpperBound: Upper bound on the sensitive value
  6120  	// frequencies of the equivalence classes in this bucket.
  6121  	SensitiveValueFrequencyUpperBound int64 `json:"sensitiveValueFrequencyUpperBound,omitempty,string"`
  6122  	// ForceSendFields is a list of field names (e.g. "BucketSize") to
  6123  	// unconditionally include in API requests. By default, fields with empty or
  6124  	// default values are omitted from API requests. See
  6125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6126  	// details.
  6127  	ForceSendFields []string `json:"-"`
  6128  	// NullFields is a list of field names (e.g. "BucketSize") to include in API
  6129  	// requests with the JSON null value. By default, fields with empty values are
  6130  	// omitted from API requests. See
  6131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6132  	NullFields []string `json:"-"`
  6133  }
  6134  
  6135  func (s *GooglePrivacyDlpV2LDiversityHistogramBucket) MarshalJSON() ([]byte, error) {
  6136  	type NoMethod GooglePrivacyDlpV2LDiversityHistogramBucket
  6137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6138  }
  6139  
  6140  // GooglePrivacyDlpV2LDiversityResult: Result of the l-diversity computation.
  6141  type GooglePrivacyDlpV2LDiversityResult struct {
  6142  	// SensitiveValueFrequencyHistogramBuckets: Histogram of l-diversity
  6143  	// equivalence class sensitive value frequencies.
  6144  	SensitiveValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2LDiversityHistogramBucket `json:"sensitiveValueFrequencyHistogramBuckets,omitempty"`
  6145  	// ForceSendFields is a list of field names (e.g.
  6146  	// "SensitiveValueFrequencyHistogramBuckets") to unconditionally include in API
  6147  	// requests. By default, fields with empty or default values are omitted from
  6148  	// API requests. See
  6149  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6150  	// details.
  6151  	ForceSendFields []string `json:"-"`
  6152  	// NullFields is a list of field names (e.g.
  6153  	// "SensitiveValueFrequencyHistogramBuckets") to include in API requests with
  6154  	// the JSON null value. By default, fields with empty values are omitted from
  6155  	// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
  6156  	// for more details.
  6157  	NullFields []string `json:"-"`
  6158  }
  6159  
  6160  func (s *GooglePrivacyDlpV2LDiversityResult) MarshalJSON() ([]byte, error) {
  6161  	type NoMethod GooglePrivacyDlpV2LDiversityResult
  6162  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6163  }
  6164  
  6165  // GooglePrivacyDlpV2LargeCustomDictionaryConfig: Configuration for a custom
  6166  // dictionary created from a data source of any size up to the maximum size
  6167  // defined in the limits
  6168  // (https://cloud.google.com/sensitive-data-protection/limits) page. The
  6169  // artifacts of dictionary creation are stored in the specified Cloud Storage
  6170  // location. Consider using `CustomInfoType.Dictionary` for smaller
  6171  // dictionaries that satisfy the size requirements.
  6172  type GooglePrivacyDlpV2LargeCustomDictionaryConfig struct {
  6173  	// BigQueryField: Field in a BigQuery table where each cell represents a
  6174  	// dictionary phrase.
  6175  	BigQueryField *GooglePrivacyDlpV2BigQueryField `json:"bigQueryField,omitempty"`
  6176  	// CloudStorageFileSet: Set of files containing newline-delimited lists of
  6177  	// dictionary phrases.
  6178  	CloudStorageFileSet *GooglePrivacyDlpV2CloudStorageFileSet `json:"cloudStorageFileSet,omitempty"`
  6179  	// OutputPath: Location to store dictionary artifacts in Cloud Storage. These
  6180  	// files will only be accessible by project owners and the DLP API. If any of
  6181  	// these artifacts are modified, the dictionary is considered invalid and can
  6182  	// no longer be used.
  6183  	OutputPath *GooglePrivacyDlpV2CloudStoragePath `json:"outputPath,omitempty"`
  6184  	// ForceSendFields is a list of field names (e.g. "BigQueryField") to
  6185  	// unconditionally include in API requests. By default, fields with empty or
  6186  	// default values are omitted from API requests. See
  6187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6188  	// details.
  6189  	ForceSendFields []string `json:"-"`
  6190  	// NullFields is a list of field names (e.g. "BigQueryField") to include in API
  6191  	// requests with the JSON null value. By default, fields with empty values are
  6192  	// omitted from API requests. See
  6193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6194  	NullFields []string `json:"-"`
  6195  }
  6196  
  6197  func (s *GooglePrivacyDlpV2LargeCustomDictionaryConfig) MarshalJSON() ([]byte, error) {
  6198  	type NoMethod GooglePrivacyDlpV2LargeCustomDictionaryConfig
  6199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6200  }
  6201  
  6202  // GooglePrivacyDlpV2LargeCustomDictionaryStats: Summary statistics of a custom
  6203  // dictionary.
  6204  type GooglePrivacyDlpV2LargeCustomDictionaryStats struct {
  6205  	// ApproxNumPhrases: Approximate number of distinct phrases in the dictionary.
  6206  	ApproxNumPhrases int64 `json:"approxNumPhrases,omitempty,string"`
  6207  	// ForceSendFields is a list of field names (e.g. "ApproxNumPhrases") to
  6208  	// unconditionally include in API requests. By default, fields with empty or
  6209  	// default values are omitted from API requests. See
  6210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6211  	// details.
  6212  	ForceSendFields []string `json:"-"`
  6213  	// NullFields is a list of field names (e.g. "ApproxNumPhrases") to include in
  6214  	// API requests with the JSON null value. By default, fields with empty values
  6215  	// are omitted from API requests. See
  6216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6217  	NullFields []string `json:"-"`
  6218  }
  6219  
  6220  func (s *GooglePrivacyDlpV2LargeCustomDictionaryStats) MarshalJSON() ([]byte, error) {
  6221  	type NoMethod GooglePrivacyDlpV2LargeCustomDictionaryStats
  6222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6223  }
  6224  
  6225  // GooglePrivacyDlpV2LeaveUntransformed: Skips the data without modifying it if
  6226  // the requested transformation would cause an error. For example, if a
  6227  // `DateShift` transformation were applied an an IP address, this mode would
  6228  // leave the IP address unchanged in the response.
  6229  type GooglePrivacyDlpV2LeaveUntransformed struct {
  6230  }
  6231  
  6232  // GooglePrivacyDlpV2LikelihoodAdjustment: Message for specifying an adjustment
  6233  // to the likelihood of a finding as part of a detection rule.
  6234  type GooglePrivacyDlpV2LikelihoodAdjustment struct {
  6235  	// FixedLikelihood: Set the likelihood of a finding to a fixed value.
  6236  	//
  6237  	// Possible values:
  6238  	//   "LIKELIHOOD_UNSPECIFIED" - Default value; same as POSSIBLE.
  6239  	//   "VERY_UNLIKELY" - Highest chance of a false positive.
  6240  	//   "UNLIKELY" - High chance of a false positive.
  6241  	//   "POSSIBLE" - Some matching signals. The default value.
  6242  	//   "LIKELY" - Low chance of a false positive.
  6243  	//   "VERY_LIKELY" - Confidence level is high. Lowest chance of a false
  6244  	// positive.
  6245  	FixedLikelihood string `json:"fixedLikelihood,omitempty"`
  6246  	// RelativeLikelihood: Increase or decrease the likelihood by the specified
  6247  	// number of levels. For example, if a finding would be `POSSIBLE` without the
  6248  	// detection rule and `relative_likelihood` is 1, then it is upgraded to
  6249  	// `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. Likelihood
  6250  	// may never drop below `VERY_UNLIKELY` or exceed `VERY_LIKELY`, so applying an
  6251  	// adjustment of 1 followed by an adjustment of -1 when base likelihood is
  6252  	// `VERY_LIKELY` will result in a final likelihood of `LIKELY`.
  6253  	RelativeLikelihood int64 `json:"relativeLikelihood,omitempty"`
  6254  	// ForceSendFields is a list of field names (e.g. "FixedLikelihood") to
  6255  	// unconditionally include in API requests. By default, fields with empty or
  6256  	// default values are omitted from API requests. See
  6257  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6258  	// details.
  6259  	ForceSendFields []string `json:"-"`
  6260  	// NullFields is a list of field names (e.g. "FixedLikelihood") to include in
  6261  	// API requests with the JSON null value. By default, fields with empty values
  6262  	// are omitted from API requests. See
  6263  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6264  	NullFields []string `json:"-"`
  6265  }
  6266  
  6267  func (s *GooglePrivacyDlpV2LikelihoodAdjustment) MarshalJSON() ([]byte, error) {
  6268  	type NoMethod GooglePrivacyDlpV2LikelihoodAdjustment
  6269  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6270  }
  6271  
  6272  // GooglePrivacyDlpV2ListColumnDataProfilesResponse: List of profiles generated
  6273  // for a given organization or project.
  6274  type GooglePrivacyDlpV2ListColumnDataProfilesResponse struct {
  6275  	// ColumnDataProfiles: List of data profiles.
  6276  	ColumnDataProfiles []*GooglePrivacyDlpV2ColumnDataProfile `json:"columnDataProfiles,omitempty"`
  6277  	// NextPageToken: The next page token.
  6278  	NextPageToken string `json:"nextPageToken,omitempty"`
  6279  
  6280  	// ServerResponse contains the HTTP response code and headers from the server.
  6281  	googleapi.ServerResponse `json:"-"`
  6282  	// ForceSendFields is a list of field names (e.g. "ColumnDataProfiles") to
  6283  	// unconditionally include in API requests. By default, fields with empty or
  6284  	// default values are omitted from API requests. See
  6285  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6286  	// details.
  6287  	ForceSendFields []string `json:"-"`
  6288  	// NullFields is a list of field names (e.g. "ColumnDataProfiles") to include
  6289  	// in API requests with the JSON null value. By default, fields with empty
  6290  	// values are omitted from API requests. See
  6291  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6292  	NullFields []string `json:"-"`
  6293  }
  6294  
  6295  func (s *GooglePrivacyDlpV2ListColumnDataProfilesResponse) MarshalJSON() ([]byte, error) {
  6296  	type NoMethod GooglePrivacyDlpV2ListColumnDataProfilesResponse
  6297  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6298  }
  6299  
  6300  // GooglePrivacyDlpV2ListConnectionsResponse: Response message for
  6301  // ListConnections.
  6302  type GooglePrivacyDlpV2ListConnectionsResponse struct {
  6303  	// Connections: List of connections.
  6304  	Connections []*GooglePrivacyDlpV2Connection `json:"connections,omitempty"`
  6305  	// NextPageToken: Token to retrieve the next page of results. An empty value
  6306  	// means there are no more results.
  6307  	NextPageToken string `json:"nextPageToken,omitempty"`
  6308  
  6309  	// ServerResponse contains the HTTP response code and headers from the server.
  6310  	googleapi.ServerResponse `json:"-"`
  6311  	// ForceSendFields is a list of field names (e.g. "Connections") to
  6312  	// unconditionally include in API requests. By default, fields with empty or
  6313  	// default values are omitted from API requests. See
  6314  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6315  	// details.
  6316  	ForceSendFields []string `json:"-"`
  6317  	// NullFields is a list of field names (e.g. "Connections") to include in API
  6318  	// requests with the JSON null value. By default, fields with empty values are
  6319  	// omitted from API requests. See
  6320  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6321  	NullFields []string `json:"-"`
  6322  }
  6323  
  6324  func (s *GooglePrivacyDlpV2ListConnectionsResponse) MarshalJSON() ([]byte, error) {
  6325  	type NoMethod GooglePrivacyDlpV2ListConnectionsResponse
  6326  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6327  }
  6328  
  6329  // GooglePrivacyDlpV2ListDeidentifyTemplatesResponse: Response message for
  6330  // ListDeidentifyTemplates.
  6331  type GooglePrivacyDlpV2ListDeidentifyTemplatesResponse struct {
  6332  	// DeidentifyTemplates: List of deidentify templates, up to page_size in
  6333  	// ListDeidentifyTemplatesRequest.
  6334  	DeidentifyTemplates []*GooglePrivacyDlpV2DeidentifyTemplate `json:"deidentifyTemplates,omitempty"`
  6335  	// NextPageToken: If the next page is available then the next page token to be
  6336  	// used in the following ListDeidentifyTemplates request.
  6337  	NextPageToken string `json:"nextPageToken,omitempty"`
  6338  
  6339  	// ServerResponse contains the HTTP response code and headers from the server.
  6340  	googleapi.ServerResponse `json:"-"`
  6341  	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplates") to
  6342  	// unconditionally include in API requests. By default, fields with empty or
  6343  	// default values are omitted from API requests. See
  6344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6345  	// details.
  6346  	ForceSendFields []string `json:"-"`
  6347  	// NullFields is a list of field names (e.g. "DeidentifyTemplates") to include
  6348  	// in API requests with the JSON null value. By default, fields with empty
  6349  	// values are omitted from API requests. See
  6350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6351  	NullFields []string `json:"-"`
  6352  }
  6353  
  6354  func (s *GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) MarshalJSON() ([]byte, error) {
  6355  	type NoMethod GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
  6356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6357  }
  6358  
  6359  // GooglePrivacyDlpV2ListDiscoveryConfigsResponse: Response message for
  6360  // ListDiscoveryConfigs.
  6361  type GooglePrivacyDlpV2ListDiscoveryConfigsResponse struct {
  6362  	// DiscoveryConfigs: List of configs, up to page_size in
  6363  	// ListDiscoveryConfigsRequest.
  6364  	DiscoveryConfigs []*GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfigs,omitempty"`
  6365  	// NextPageToken: If the next page is available then this value is the next
  6366  	// page token to be used in the following ListDiscoveryConfigs request.
  6367  	NextPageToken string `json:"nextPageToken,omitempty"`
  6368  
  6369  	// ServerResponse contains the HTTP response code and headers from the server.
  6370  	googleapi.ServerResponse `json:"-"`
  6371  	// ForceSendFields is a list of field names (e.g. "DiscoveryConfigs") to
  6372  	// unconditionally include in API requests. By default, fields with empty or
  6373  	// default values are omitted from API requests. See
  6374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6375  	// details.
  6376  	ForceSendFields []string `json:"-"`
  6377  	// NullFields is a list of field names (e.g. "DiscoveryConfigs") to include in
  6378  	// API requests with the JSON null value. By default, fields with empty values
  6379  	// are omitted from API requests. See
  6380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6381  	NullFields []string `json:"-"`
  6382  }
  6383  
  6384  func (s *GooglePrivacyDlpV2ListDiscoveryConfigsResponse) MarshalJSON() ([]byte, error) {
  6385  	type NoMethod GooglePrivacyDlpV2ListDiscoveryConfigsResponse
  6386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6387  }
  6388  
  6389  // GooglePrivacyDlpV2ListDlpJobsResponse: The response message for listing DLP
  6390  // jobs.
  6391  type GooglePrivacyDlpV2ListDlpJobsResponse struct {
  6392  	// Jobs: A list of DlpJobs that matches the specified filter in the request.
  6393  	Jobs []*GooglePrivacyDlpV2DlpJob `json:"jobs,omitempty"`
  6394  	// NextPageToken: The standard List next-page token.
  6395  	NextPageToken string `json:"nextPageToken,omitempty"`
  6396  
  6397  	// ServerResponse contains the HTTP response code and headers from the server.
  6398  	googleapi.ServerResponse `json:"-"`
  6399  	// ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally
  6400  	// include in API requests. By default, fields with empty or default values are
  6401  	// omitted from API requests. See
  6402  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6403  	// details.
  6404  	ForceSendFields []string `json:"-"`
  6405  	// NullFields is a list of field names (e.g. "Jobs") to include in API requests
  6406  	// with the JSON null value. By default, fields with empty values are omitted
  6407  	// from API requests. See
  6408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6409  	NullFields []string `json:"-"`
  6410  }
  6411  
  6412  func (s *GooglePrivacyDlpV2ListDlpJobsResponse) MarshalJSON() ([]byte, error) {
  6413  	type NoMethod GooglePrivacyDlpV2ListDlpJobsResponse
  6414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6415  }
  6416  
  6417  // GooglePrivacyDlpV2ListInfoTypesResponse: Response to the ListInfoTypes
  6418  // request.
  6419  type GooglePrivacyDlpV2ListInfoTypesResponse struct {
  6420  	// InfoTypes: Set of sensitive infoTypes.
  6421  	InfoTypes []*GooglePrivacyDlpV2InfoTypeDescription `json:"infoTypes,omitempty"`
  6422  
  6423  	// ServerResponse contains the HTTP response code and headers from the server.
  6424  	googleapi.ServerResponse `json:"-"`
  6425  	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
  6426  	// unconditionally include in API requests. By default, fields with empty or
  6427  	// default values are omitted from API requests. See
  6428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6429  	// details.
  6430  	ForceSendFields []string `json:"-"`
  6431  	// NullFields is a list of field names (e.g. "InfoTypes") to include in API
  6432  	// requests with the JSON null value. By default, fields with empty values are
  6433  	// omitted from API requests. See
  6434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6435  	NullFields []string `json:"-"`
  6436  }
  6437  
  6438  func (s *GooglePrivacyDlpV2ListInfoTypesResponse) MarshalJSON() ([]byte, error) {
  6439  	type NoMethod GooglePrivacyDlpV2ListInfoTypesResponse
  6440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6441  }
  6442  
  6443  // GooglePrivacyDlpV2ListInspectTemplatesResponse: Response message for
  6444  // ListInspectTemplates.
  6445  type GooglePrivacyDlpV2ListInspectTemplatesResponse struct {
  6446  	// InspectTemplates: List of inspectTemplates, up to page_size in
  6447  	// ListInspectTemplatesRequest.
  6448  	InspectTemplates []*GooglePrivacyDlpV2InspectTemplate `json:"inspectTemplates,omitempty"`
  6449  	// NextPageToken: If the next page is available then the next page token to be
  6450  	// used in the following ListInspectTemplates request.
  6451  	NextPageToken string `json:"nextPageToken,omitempty"`
  6452  
  6453  	// ServerResponse contains the HTTP response code and headers from the server.
  6454  	googleapi.ServerResponse `json:"-"`
  6455  	// ForceSendFields is a list of field names (e.g. "InspectTemplates") to
  6456  	// unconditionally include in API requests. By default, fields with empty or
  6457  	// default values are omitted from API requests. See
  6458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6459  	// details.
  6460  	ForceSendFields []string `json:"-"`
  6461  	// NullFields is a list of field names (e.g. "InspectTemplates") to include in
  6462  	// API requests with the JSON null value. By default, fields with empty values
  6463  	// are omitted from API requests. See
  6464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6465  	NullFields []string `json:"-"`
  6466  }
  6467  
  6468  func (s *GooglePrivacyDlpV2ListInspectTemplatesResponse) MarshalJSON() ([]byte, error) {
  6469  	type NoMethod GooglePrivacyDlpV2ListInspectTemplatesResponse
  6470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6471  }
  6472  
  6473  // GooglePrivacyDlpV2ListJobTriggersResponse: Response message for
  6474  // ListJobTriggers.
  6475  type GooglePrivacyDlpV2ListJobTriggersResponse struct {
  6476  	// JobTriggers: List of triggeredJobs, up to page_size in
  6477  	// ListJobTriggersRequest.
  6478  	JobTriggers []*GooglePrivacyDlpV2JobTrigger `json:"jobTriggers,omitempty"`
  6479  	// NextPageToken: If the next page is available then this value is the next
  6480  	// page token to be used in the following ListJobTriggers request.
  6481  	NextPageToken string `json:"nextPageToken,omitempty"`
  6482  
  6483  	// ServerResponse contains the HTTP response code and headers from the server.
  6484  	googleapi.ServerResponse `json:"-"`
  6485  	// ForceSendFields is a list of field names (e.g. "JobTriggers") to
  6486  	// unconditionally include in API requests. By default, fields with empty or
  6487  	// default values are omitted from API requests. See
  6488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6489  	// details.
  6490  	ForceSendFields []string `json:"-"`
  6491  	// NullFields is a list of field names (e.g. "JobTriggers") to include in API
  6492  	// requests with the JSON null value. By default, fields with empty values are
  6493  	// omitted from API requests. See
  6494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6495  	NullFields []string `json:"-"`
  6496  }
  6497  
  6498  func (s *GooglePrivacyDlpV2ListJobTriggersResponse) MarshalJSON() ([]byte, error) {
  6499  	type NoMethod GooglePrivacyDlpV2ListJobTriggersResponse
  6500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6501  }
  6502  
  6503  // GooglePrivacyDlpV2ListProjectDataProfilesResponse: List of profiles
  6504  // generated for a given organization or project.
  6505  type GooglePrivacyDlpV2ListProjectDataProfilesResponse struct {
  6506  	// NextPageToken: The next page token.
  6507  	NextPageToken string `json:"nextPageToken,omitempty"`
  6508  	// ProjectDataProfiles: List of data profiles.
  6509  	ProjectDataProfiles []*GooglePrivacyDlpV2ProjectDataProfile `json:"projectDataProfiles,omitempty"`
  6510  
  6511  	// ServerResponse contains the HTTP response code and headers from the server.
  6512  	googleapi.ServerResponse `json:"-"`
  6513  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6514  	// unconditionally include in API requests. By default, fields with empty or
  6515  	// default values are omitted from API requests. See
  6516  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6517  	// details.
  6518  	ForceSendFields []string `json:"-"`
  6519  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6520  	// requests with the JSON null value. By default, fields with empty values are
  6521  	// omitted from API requests. See
  6522  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6523  	NullFields []string `json:"-"`
  6524  }
  6525  
  6526  func (s *GooglePrivacyDlpV2ListProjectDataProfilesResponse) MarshalJSON() ([]byte, error) {
  6527  	type NoMethod GooglePrivacyDlpV2ListProjectDataProfilesResponse
  6528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6529  }
  6530  
  6531  // GooglePrivacyDlpV2ListStoredInfoTypesResponse: Response message for
  6532  // ListStoredInfoTypes.
  6533  type GooglePrivacyDlpV2ListStoredInfoTypesResponse struct {
  6534  	// NextPageToken: If the next page is available then the next page token to be
  6535  	// used in the following ListStoredInfoTypes request.
  6536  	NextPageToken string `json:"nextPageToken,omitempty"`
  6537  	// StoredInfoTypes: List of storedInfoTypes, up to page_size in
  6538  	// ListStoredInfoTypesRequest.
  6539  	StoredInfoTypes []*GooglePrivacyDlpV2StoredInfoType `json:"storedInfoTypes,omitempty"`
  6540  
  6541  	// ServerResponse contains the HTTP response code and headers from the server.
  6542  	googleapi.ServerResponse `json:"-"`
  6543  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6544  	// unconditionally include in API requests. By default, fields with empty or
  6545  	// default values are omitted from API requests. See
  6546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6547  	// details.
  6548  	ForceSendFields []string `json:"-"`
  6549  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6550  	// requests with the JSON null value. By default, fields with empty values are
  6551  	// omitted from API requests. See
  6552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6553  	NullFields []string `json:"-"`
  6554  }
  6555  
  6556  func (s *GooglePrivacyDlpV2ListStoredInfoTypesResponse) MarshalJSON() ([]byte, error) {
  6557  	type NoMethod GooglePrivacyDlpV2ListStoredInfoTypesResponse
  6558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6559  }
  6560  
  6561  // GooglePrivacyDlpV2ListTableDataProfilesResponse: List of profiles generated
  6562  // for a given organization or project.
  6563  type GooglePrivacyDlpV2ListTableDataProfilesResponse struct {
  6564  	// NextPageToken: The next page token.
  6565  	NextPageToken string `json:"nextPageToken,omitempty"`
  6566  	// TableDataProfiles: List of data profiles.
  6567  	TableDataProfiles []*GooglePrivacyDlpV2TableDataProfile `json:"tableDataProfiles,omitempty"`
  6568  
  6569  	// ServerResponse contains the HTTP response code and headers from the server.
  6570  	googleapi.ServerResponse `json:"-"`
  6571  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6572  	// unconditionally include in API requests. By default, fields with empty or
  6573  	// default values are omitted from API requests. See
  6574  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6575  	// details.
  6576  	ForceSendFields []string `json:"-"`
  6577  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6578  	// requests with the JSON null value. By default, fields with empty values are
  6579  	// omitted from API requests. See
  6580  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6581  	NullFields []string `json:"-"`
  6582  }
  6583  
  6584  func (s *GooglePrivacyDlpV2ListTableDataProfilesResponse) MarshalJSON() ([]byte, error) {
  6585  	type NoMethod GooglePrivacyDlpV2ListTableDataProfilesResponse
  6586  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6587  }
  6588  
  6589  // GooglePrivacyDlpV2Location: Specifies the location of the finding.
  6590  type GooglePrivacyDlpV2Location struct {
  6591  	// ByteRange: Zero-based byte offsets delimiting the finding. These are
  6592  	// relative to the finding's containing element. Note that when the content is
  6593  	// not textual, this references the UTF-8 encoded textual representation of the
  6594  	// content. Omitted if content is an image.
  6595  	ByteRange *GooglePrivacyDlpV2Range `json:"byteRange,omitempty"`
  6596  	// CodepointRange: Unicode character offsets delimiting the finding. These are
  6597  	// relative to the finding's containing element. Provided when the content is
  6598  	// text.
  6599  	CodepointRange *GooglePrivacyDlpV2Range `json:"codepointRange,omitempty"`
  6600  	// Container: Information about the container where this finding occurred, if
  6601  	// available.
  6602  	Container *GooglePrivacyDlpV2Container `json:"container,omitempty"`
  6603  	// ContentLocations: List of nested objects pointing to the precise location of
  6604  	// the finding within the file or record.
  6605  	ContentLocations []*GooglePrivacyDlpV2ContentLocation `json:"contentLocations,omitempty"`
  6606  	// ForceSendFields is a list of field names (e.g. "ByteRange") to
  6607  	// unconditionally include in API requests. By default, fields with empty or
  6608  	// default values are omitted from API requests. See
  6609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6610  	// details.
  6611  	ForceSendFields []string `json:"-"`
  6612  	// NullFields is a list of field names (e.g. "ByteRange") to include in API
  6613  	// requests with the JSON null value. By default, fields with empty values are
  6614  	// omitted from API requests. See
  6615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6616  	NullFields []string `json:"-"`
  6617  }
  6618  
  6619  func (s *GooglePrivacyDlpV2Location) MarshalJSON() ([]byte, error) {
  6620  	type NoMethod GooglePrivacyDlpV2Location
  6621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6622  }
  6623  
  6624  // GooglePrivacyDlpV2Manual: Job trigger option for hybrid jobs. Jobs must be
  6625  // manually created and finished.
  6626  type GooglePrivacyDlpV2Manual struct {
  6627  }
  6628  
  6629  // GooglePrivacyDlpV2MetadataLocation: Metadata Location
  6630  type GooglePrivacyDlpV2MetadataLocation struct {
  6631  	// StorageLabel: Storage metadata.
  6632  	StorageLabel *GooglePrivacyDlpV2StorageMetadataLabel `json:"storageLabel,omitempty"`
  6633  	// Type: Type of metadata containing the finding.
  6634  	//
  6635  	// Possible values:
  6636  	//   "METADATATYPE_UNSPECIFIED" - Unused
  6637  	//   "STORAGE_METADATA" - General file metadata provided by Cloud Storage.
  6638  	Type string `json:"type,omitempty"`
  6639  	// ForceSendFields is a list of field names (e.g. "StorageLabel") to
  6640  	// unconditionally include in API requests. By default, fields with empty or
  6641  	// default values are omitted from API requests. See
  6642  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6643  	// details.
  6644  	ForceSendFields []string `json:"-"`
  6645  	// NullFields is a list of field names (e.g. "StorageLabel") to include in API
  6646  	// requests with the JSON null value. By default, fields with empty values are
  6647  	// omitted from API requests. See
  6648  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6649  	NullFields []string `json:"-"`
  6650  }
  6651  
  6652  func (s *GooglePrivacyDlpV2MetadataLocation) MarshalJSON() ([]byte, error) {
  6653  	type NoMethod GooglePrivacyDlpV2MetadataLocation
  6654  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6655  }
  6656  
  6657  // GooglePrivacyDlpV2NumericalStatsConfig: Compute numerical stats over an
  6658  // individual column, including min, max, and quantiles.
  6659  type GooglePrivacyDlpV2NumericalStatsConfig struct {
  6660  	// Field: Field to compute numerical stats on. Supported types are integer,
  6661  	// float, date, datetime, timestamp, time.
  6662  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  6663  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  6664  	// include in API requests. By default, fields with empty or default values are
  6665  	// omitted from API requests. See
  6666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6667  	// details.
  6668  	ForceSendFields []string `json:"-"`
  6669  	// NullFields is a list of field names (e.g. "Field") to include in API
  6670  	// requests with the JSON null value. By default, fields with empty values are
  6671  	// omitted from API requests. See
  6672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6673  	NullFields []string `json:"-"`
  6674  }
  6675  
  6676  func (s *GooglePrivacyDlpV2NumericalStatsConfig) MarshalJSON() ([]byte, error) {
  6677  	type NoMethod GooglePrivacyDlpV2NumericalStatsConfig
  6678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6679  }
  6680  
  6681  // GooglePrivacyDlpV2NumericalStatsResult: Result of the numerical stats
  6682  // computation.
  6683  type GooglePrivacyDlpV2NumericalStatsResult struct {
  6684  	// MaxValue: Maximum value appearing in the column.
  6685  	MaxValue *GooglePrivacyDlpV2Value `json:"maxValue,omitempty"`
  6686  	// MinValue: Minimum value appearing in the column.
  6687  	MinValue *GooglePrivacyDlpV2Value `json:"minValue,omitempty"`
  6688  	// QuantileValues: List of 99 values that partition the set of field values
  6689  	// into 100 equal sized buckets.
  6690  	QuantileValues []*GooglePrivacyDlpV2Value `json:"quantileValues,omitempty"`
  6691  	// ForceSendFields is a list of field names (e.g. "MaxValue") to
  6692  	// unconditionally include in API requests. By default, fields with empty or
  6693  	// default values are omitted from API requests. See
  6694  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6695  	// details.
  6696  	ForceSendFields []string `json:"-"`
  6697  	// NullFields is a list of field names (e.g. "MaxValue") to include in API
  6698  	// requests with the JSON null value. By default, fields with empty values are
  6699  	// omitted from API requests. See
  6700  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6701  	NullFields []string `json:"-"`
  6702  }
  6703  
  6704  func (s *GooglePrivacyDlpV2NumericalStatsResult) MarshalJSON() ([]byte, error) {
  6705  	type NoMethod GooglePrivacyDlpV2NumericalStatsResult
  6706  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6707  }
  6708  
  6709  // GooglePrivacyDlpV2OrConditions: There is an OR relationship between these
  6710  // attributes. They are used to determine if a table should be scanned or not
  6711  // in Discovery.
  6712  type GooglePrivacyDlpV2OrConditions struct {
  6713  	// MinAge: Minimum age a table must have before Cloud DLP can profile it. Value
  6714  	// must be 1 hour or greater.
  6715  	MinAge string `json:"minAge,omitempty"`
  6716  	// MinRowCount: Minimum number of rows that should be present before Cloud DLP
  6717  	// profiles a table
  6718  	MinRowCount int64 `json:"minRowCount,omitempty"`
  6719  	// ForceSendFields is a list of field names (e.g. "MinAge") to unconditionally
  6720  	// include in API requests. By default, fields with empty or default values are
  6721  	// omitted from API requests. See
  6722  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6723  	// details.
  6724  	ForceSendFields []string `json:"-"`
  6725  	// NullFields is a list of field names (e.g. "MinAge") to include in API
  6726  	// requests with the JSON null value. By default, fields with empty values are
  6727  	// omitted from API requests. See
  6728  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6729  	NullFields []string `json:"-"`
  6730  }
  6731  
  6732  func (s *GooglePrivacyDlpV2OrConditions) MarshalJSON() ([]byte, error) {
  6733  	type NoMethod GooglePrivacyDlpV2OrConditions
  6734  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6735  }
  6736  
  6737  // GooglePrivacyDlpV2OrgConfig: Project and scan location information. Only set
  6738  // when the parent is an org.
  6739  type GooglePrivacyDlpV2OrgConfig struct {
  6740  	// Location: The data to scan: folder, org, or project
  6741  	Location *GooglePrivacyDlpV2DiscoveryStartingLocation `json:"location,omitempty"`
  6742  	// ProjectId: The project that will run the scan. The DLP service account that
  6743  	// exists within this project must have access to all resources that are
  6744  	// profiled, and the Cloud DLP API must be enabled.
  6745  	ProjectId string `json:"projectId,omitempty"`
  6746  	// ForceSendFields is a list of field names (e.g. "Location") to
  6747  	// unconditionally include in API requests. By default, fields with empty or
  6748  	// default values are omitted from API requests. See
  6749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6750  	// details.
  6751  	ForceSendFields []string `json:"-"`
  6752  	// NullFields is a list of field names (e.g. "Location") to include in API
  6753  	// requests with the JSON null value. By default, fields with empty values are
  6754  	// omitted from API requests. See
  6755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6756  	NullFields []string `json:"-"`
  6757  }
  6758  
  6759  func (s *GooglePrivacyDlpV2OrgConfig) MarshalJSON() ([]byte, error) {
  6760  	type NoMethod GooglePrivacyDlpV2OrgConfig
  6761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6762  }
  6763  
  6764  // GooglePrivacyDlpV2OtherInfoTypeSummary: Infotype details for other infoTypes
  6765  // found within a column.
  6766  type GooglePrivacyDlpV2OtherInfoTypeSummary struct {
  6767  	// EstimatedPrevalence: Approximate percentage of non-null rows that contained
  6768  	// data detected by this infotype.
  6769  	EstimatedPrevalence int64 `json:"estimatedPrevalence,omitempty"`
  6770  	// ExcludedFromAnalysis: Whether this infoType was excluded from sensitivity
  6771  	// and risk analysis due to factors such as low prevalence (subject to change).
  6772  	ExcludedFromAnalysis bool `json:"excludedFromAnalysis,omitempty"`
  6773  	// InfoType: The other infoType.
  6774  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  6775  	// ForceSendFields is a list of field names (e.g. "EstimatedPrevalence") to
  6776  	// unconditionally include in API requests. By default, fields with empty or
  6777  	// default values are omitted from API requests. See
  6778  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6779  	// details.
  6780  	ForceSendFields []string `json:"-"`
  6781  	// NullFields is a list of field names (e.g. "EstimatedPrevalence") to include
  6782  	// in API requests with the JSON null value. By default, fields with empty
  6783  	// values are omitted from API requests. See
  6784  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6785  	NullFields []string `json:"-"`
  6786  }
  6787  
  6788  func (s *GooglePrivacyDlpV2OtherInfoTypeSummary) MarshalJSON() ([]byte, error) {
  6789  	type NoMethod GooglePrivacyDlpV2OtherInfoTypeSummary
  6790  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6791  }
  6792  
  6793  // GooglePrivacyDlpV2OutputStorageConfig: Cloud repository for storing output.
  6794  type GooglePrivacyDlpV2OutputStorageConfig struct {
  6795  	// OutputSchema: Schema used for writing the findings for Inspect jobs. This
  6796  	// field is only used for Inspect and must be unspecified for Risk jobs.
  6797  	// Columns are derived from the `Finding` object. If appending to an existing
  6798  	// table, any columns from the predefined schema that are missing will be
  6799  	// added. No columns in the existing table will be deleted. If unspecified,
  6800  	// then all available columns will be used for a new table or an (existing)
  6801  	// table with no schema, and no changes will be made to an existing table that
  6802  	// has a schema. Only for use with external storage.
  6803  	//
  6804  	// Possible values:
  6805  	//   "OUTPUT_SCHEMA_UNSPECIFIED" - Unused.
  6806  	//   "BASIC_COLUMNS" - Basic schema including only `info_type`, `quote`,
  6807  	// `certainty`, and `timestamp`.
  6808  	//   "GCS_COLUMNS" - Schema tailored to findings from scanning Cloud Storage.
  6809  	//   "DATASTORE_COLUMNS" - Schema tailored to findings from scanning Google
  6810  	// Datastore.
  6811  	//   "BIG_QUERY_COLUMNS" - Schema tailored to findings from scanning Google
  6812  	// BigQuery.
  6813  	//   "ALL_COLUMNS" - Schema containing all columns.
  6814  	OutputSchema string `json:"outputSchema,omitempty"`
  6815  	// Table: Store findings in an existing table or a new table in an existing
  6816  	// dataset. If table_id is not set a new one will be generated for you with the
  6817  	// following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone
  6818  	// will be used for generating the date details. For Inspect, each column in an
  6819  	// existing output table must have the same name, type, and mode of a field in
  6820  	// the `Finding` object. For Risk, an existing output table should be the
  6821  	// output of a previous Risk analysis job run on the same source table, with
  6822  	// the same privacy metric and quasi-identifiers. Risk jobs that analyze the
  6823  	// same table but compute a different privacy metric, or use different sets of
  6824  	// quasi-identifiers, cannot store their results in the same table.
  6825  	Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
  6826  	// ForceSendFields is a list of field names (e.g. "OutputSchema") to
  6827  	// unconditionally include in API requests. By default, fields with empty or
  6828  	// default values are omitted from API requests. See
  6829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6830  	// details.
  6831  	ForceSendFields []string `json:"-"`
  6832  	// NullFields is a list of field names (e.g. "OutputSchema") to include in API
  6833  	// requests with the JSON null value. By default, fields with empty values are
  6834  	// omitted from API requests. See
  6835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6836  	NullFields []string `json:"-"`
  6837  }
  6838  
  6839  func (s *GooglePrivacyDlpV2OutputStorageConfig) MarshalJSON() ([]byte, error) {
  6840  	type NoMethod GooglePrivacyDlpV2OutputStorageConfig
  6841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6842  }
  6843  
  6844  // GooglePrivacyDlpV2PartitionId: Datastore partition ID. A partition ID
  6845  // identifies a grouping of entities. The grouping is always by project and
  6846  // namespace, however the namespace ID may be empty. A partition ID contains
  6847  // several dimensions: project ID and namespace ID.
  6848  type GooglePrivacyDlpV2PartitionId struct {
  6849  	// NamespaceId: If not empty, the ID of the namespace to which the entities
  6850  	// belong.
  6851  	NamespaceId string `json:"namespaceId,omitempty"`
  6852  	// ProjectId: The ID of the project to which the entities belong.
  6853  	ProjectId string `json:"projectId,omitempty"`
  6854  	// ForceSendFields is a list of field names (e.g. "NamespaceId") to
  6855  	// unconditionally include in API requests. By default, fields with empty or
  6856  	// default values are omitted from API requests. See
  6857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6858  	// details.
  6859  	ForceSendFields []string `json:"-"`
  6860  	// NullFields is a list of field names (e.g. "NamespaceId") to include in API
  6861  	// requests with the JSON null value. By default, fields with empty values are
  6862  	// omitted from API requests. See
  6863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6864  	NullFields []string `json:"-"`
  6865  }
  6866  
  6867  func (s *GooglePrivacyDlpV2PartitionId) MarshalJSON() ([]byte, error) {
  6868  	type NoMethod GooglePrivacyDlpV2PartitionId
  6869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6870  }
  6871  
  6872  // GooglePrivacyDlpV2PathElement: A (kind, ID/name) pair used to construct a
  6873  // key path. If either name or ID is set, the element is complete. If neither
  6874  // is set, the element is incomplete.
  6875  type GooglePrivacyDlpV2PathElement struct {
  6876  	// Id: The auto-allocated ID of the entity. Never equal to zero. Values less
  6877  	// than zero are discouraged and may not be supported in the future.
  6878  	Id int64 `json:"id,omitempty,string"`
  6879  	// Kind: The kind of the entity. A kind matching regex `__.*__` is
  6880  	// reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8
  6881  	// encoded. Cannot be "".
  6882  	Kind string `json:"kind,omitempty"`
  6883  	// Name: The name of the entity. A name matching regex `__.*__` is
  6884  	// reserved/read-only. A name must not be more than 1500 bytes when UTF-8
  6885  	// encoded. Cannot be "".
  6886  	Name string `json:"name,omitempty"`
  6887  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  6888  	// include in API requests. By default, fields with empty or default values are
  6889  	// omitted from API requests. See
  6890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6891  	// details.
  6892  	ForceSendFields []string `json:"-"`
  6893  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  6894  	// with the JSON null value. By default, fields with empty values are omitted
  6895  	// from API requests. See
  6896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6897  	NullFields []string `json:"-"`
  6898  }
  6899  
  6900  func (s *GooglePrivacyDlpV2PathElement) MarshalJSON() ([]byte, error) {
  6901  	type NoMethod GooglePrivacyDlpV2PathElement
  6902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6903  }
  6904  
  6905  // GooglePrivacyDlpV2PrimitiveTransformation: A rule for transforming a value.
  6906  type GooglePrivacyDlpV2PrimitiveTransformation struct {
  6907  	// BucketingConfig: Bucketing
  6908  	BucketingConfig *GooglePrivacyDlpV2BucketingConfig `json:"bucketingConfig,omitempty"`
  6909  	// CharacterMaskConfig: Mask
  6910  	CharacterMaskConfig *GooglePrivacyDlpV2CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
  6911  	// CryptoDeterministicConfig: Deterministic Crypto
  6912  	CryptoDeterministicConfig *GooglePrivacyDlpV2CryptoDeterministicConfig `json:"cryptoDeterministicConfig,omitempty"`
  6913  	// CryptoHashConfig: Crypto
  6914  	CryptoHashConfig *GooglePrivacyDlpV2CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
  6915  	// CryptoReplaceFfxFpeConfig: Ffx-Fpe
  6916  	CryptoReplaceFfxFpeConfig *GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig `json:"cryptoReplaceFfxFpeConfig,omitempty"`
  6917  	// DateShiftConfig: Date Shift
  6918  	DateShiftConfig *GooglePrivacyDlpV2DateShiftConfig `json:"dateShiftConfig,omitempty"`
  6919  	// FixedSizeBucketingConfig: Fixed size bucketing
  6920  	FixedSizeBucketingConfig *GooglePrivacyDlpV2FixedSizeBucketingConfig `json:"fixedSizeBucketingConfig,omitempty"`
  6921  	// RedactConfig: Redact
  6922  	RedactConfig *GooglePrivacyDlpV2RedactConfig `json:"redactConfig,omitempty"`
  6923  	// ReplaceConfig: Replace with a specified value.
  6924  	ReplaceConfig *GooglePrivacyDlpV2ReplaceValueConfig `json:"replaceConfig,omitempty"`
  6925  	// ReplaceDictionaryConfig: Replace with a value randomly drawn (with
  6926  	// replacement) from a dictionary.
  6927  	ReplaceDictionaryConfig *GooglePrivacyDlpV2ReplaceDictionaryConfig `json:"replaceDictionaryConfig,omitempty"`
  6928  	// ReplaceWithInfoTypeConfig: Replace with infotype
  6929  	ReplaceWithInfoTypeConfig *GooglePrivacyDlpV2ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
  6930  	// TimePartConfig: Time extraction
  6931  	TimePartConfig *GooglePrivacyDlpV2TimePartConfig `json:"timePartConfig,omitempty"`
  6932  	// ForceSendFields is a list of field names (e.g. "BucketingConfig") to
  6933  	// unconditionally include in API requests. By default, fields with empty or
  6934  	// default values are omitted from API requests. See
  6935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6936  	// details.
  6937  	ForceSendFields []string `json:"-"`
  6938  	// NullFields is a list of field names (e.g. "BucketingConfig") to include in
  6939  	// API requests with the JSON null value. By default, fields with empty values
  6940  	// are omitted from API requests. See
  6941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6942  	NullFields []string `json:"-"`
  6943  }
  6944  
  6945  func (s *GooglePrivacyDlpV2PrimitiveTransformation) MarshalJSON() ([]byte, error) {
  6946  	type NoMethod GooglePrivacyDlpV2PrimitiveTransformation
  6947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6948  }
  6949  
  6950  // GooglePrivacyDlpV2PrivacyMetric: Privacy metric to compute for
  6951  // reidentification risk analysis.
  6952  type GooglePrivacyDlpV2PrivacyMetric struct {
  6953  	// CategoricalStatsConfig: Categorical stats
  6954  	CategoricalStatsConfig *GooglePrivacyDlpV2CategoricalStatsConfig `json:"categoricalStatsConfig,omitempty"`
  6955  	// DeltaPresenceEstimationConfig: delta-presence
  6956  	DeltaPresenceEstimationConfig *GooglePrivacyDlpV2DeltaPresenceEstimationConfig `json:"deltaPresenceEstimationConfig,omitempty"`
  6957  	// KAnonymityConfig: K-anonymity
  6958  	KAnonymityConfig *GooglePrivacyDlpV2KAnonymityConfig `json:"kAnonymityConfig,omitempty"`
  6959  	// KMapEstimationConfig: k-map
  6960  	KMapEstimationConfig *GooglePrivacyDlpV2KMapEstimationConfig `json:"kMapEstimationConfig,omitempty"`
  6961  	// LDiversityConfig: l-diversity
  6962  	LDiversityConfig *GooglePrivacyDlpV2LDiversityConfig `json:"lDiversityConfig,omitempty"`
  6963  	// NumericalStatsConfig: Numerical stats
  6964  	NumericalStatsConfig *GooglePrivacyDlpV2NumericalStatsConfig `json:"numericalStatsConfig,omitempty"`
  6965  	// ForceSendFields is a list of field names (e.g. "CategoricalStatsConfig") to
  6966  	// unconditionally include in API requests. By default, fields with empty or
  6967  	// default values are omitted from API requests. See
  6968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6969  	// details.
  6970  	ForceSendFields []string `json:"-"`
  6971  	// NullFields is a list of field names (e.g. "CategoricalStatsConfig") to
  6972  	// include in API requests with the JSON null value. By default, fields with
  6973  	// empty values are omitted from API requests. See
  6974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6975  	NullFields []string `json:"-"`
  6976  }
  6977  
  6978  func (s *GooglePrivacyDlpV2PrivacyMetric) MarshalJSON() ([]byte, error) {
  6979  	type NoMethod GooglePrivacyDlpV2PrivacyMetric
  6980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6981  }
  6982  
  6983  // GooglePrivacyDlpV2ProfileStatus: Success or errors for the profile
  6984  // generation.
  6985  type GooglePrivacyDlpV2ProfileStatus struct {
  6986  	// Status: Profiling status code and optional message. The `status.code` value
  6987  	// is 0 (default value) for OK.
  6988  	Status *GoogleRpcStatus `json:"status,omitempty"`
  6989  	// Timestamp: Time when the profile generation status was updated
  6990  	Timestamp string `json:"timestamp,omitempty"`
  6991  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  6992  	// include in API requests. By default, fields with empty or default values are
  6993  	// omitted from API requests. See
  6994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6995  	// details.
  6996  	ForceSendFields []string `json:"-"`
  6997  	// NullFields is a list of field names (e.g. "Status") to include in API
  6998  	// requests with the JSON null value. By default, fields with empty values are
  6999  	// omitted from API requests. See
  7000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7001  	NullFields []string `json:"-"`
  7002  }
  7003  
  7004  func (s *GooglePrivacyDlpV2ProfileStatus) MarshalJSON() ([]byte, error) {
  7005  	type NoMethod GooglePrivacyDlpV2ProfileStatus
  7006  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7007  }
  7008  
  7009  // GooglePrivacyDlpV2ProjectDataProfile: An aggregated profile for this
  7010  // project, based on the resources profiled within it.
  7011  type GooglePrivacyDlpV2ProjectDataProfile struct {
  7012  	// DataRiskLevel: The data risk level of this project.
  7013  	DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"`
  7014  	// Name: The resource name of the profile.
  7015  	Name string `json:"name,omitempty"`
  7016  	// ProfileLastGenerated: The last time the profile was generated.
  7017  	ProfileLastGenerated string `json:"profileLastGenerated,omitempty"`
  7018  	// ProfileStatus: Success or error status of the last attempt to profile the
  7019  	// project.
  7020  	ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"`
  7021  	// ProjectId: Project ID that was profiled.
  7022  	ProjectId string `json:"projectId,omitempty"`
  7023  	// SensitivityScore: The sensitivity score of this project.
  7024  	SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
  7025  
  7026  	// ServerResponse contains the HTTP response code and headers from the server.
  7027  	googleapi.ServerResponse `json:"-"`
  7028  	// ForceSendFields is a list of field names (e.g. "DataRiskLevel") to
  7029  	// unconditionally include in API requests. By default, fields with empty or
  7030  	// default values are omitted from API requests. See
  7031  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7032  	// details.
  7033  	ForceSendFields []string `json:"-"`
  7034  	// NullFields is a list of field names (e.g. "DataRiskLevel") to include in API
  7035  	// requests with the JSON null value. By default, fields with empty values are
  7036  	// omitted from API requests. See
  7037  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7038  	NullFields []string `json:"-"`
  7039  }
  7040  
  7041  func (s *GooglePrivacyDlpV2ProjectDataProfile) MarshalJSON() ([]byte, error) {
  7042  	type NoMethod GooglePrivacyDlpV2ProjectDataProfile
  7043  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7044  }
  7045  
  7046  // GooglePrivacyDlpV2Proximity: Message for specifying a window around a
  7047  // finding to apply a detection rule.
  7048  type GooglePrivacyDlpV2Proximity struct {
  7049  	// WindowAfter: Number of characters after the finding to consider.
  7050  	WindowAfter int64 `json:"windowAfter,omitempty"`
  7051  	// WindowBefore: Number of characters before the finding to consider. For
  7052  	// tabular data, if you want to modify the likelihood of an entire column of
  7053  	// findngs, set this to 1. For more information, see [Hotword example: Set the
  7054  	// match likelihood of a table column]
  7055  	// (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
  7056  	WindowBefore int64 `json:"windowBefore,omitempty"`
  7057  	// ForceSendFields is a list of field names (e.g. "WindowAfter") to
  7058  	// unconditionally include in API requests. By default, fields with empty or
  7059  	// default values are omitted from API requests. See
  7060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7061  	// details.
  7062  	ForceSendFields []string `json:"-"`
  7063  	// NullFields is a list of field names (e.g. "WindowAfter") to include in API
  7064  	// requests with the JSON null value. By default, fields with empty values are
  7065  	// omitted from API requests. See
  7066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7067  	NullFields []string `json:"-"`
  7068  }
  7069  
  7070  func (s *GooglePrivacyDlpV2Proximity) MarshalJSON() ([]byte, error) {
  7071  	type NoMethod GooglePrivacyDlpV2Proximity
  7072  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7073  }
  7074  
  7075  // GooglePrivacyDlpV2PubSubCondition: A condition consisting of a value.
  7076  type GooglePrivacyDlpV2PubSubCondition struct {
  7077  	// MinimumRiskScore: The minimum data risk score that triggers the condition.
  7078  	//
  7079  	// Possible values:
  7080  	//   "PROFILE_SCORE_BUCKET_UNSPECIFIED" - Unused.
  7081  	//   "HIGH" - High risk/sensitivity detected.
  7082  	//   "MEDIUM_OR_HIGH" - Medium or high risk/sensitivity detected.
  7083  	MinimumRiskScore string `json:"minimumRiskScore,omitempty"`
  7084  	// MinimumSensitivityScore: The minimum sensitivity level that triggers the
  7085  	// condition.
  7086  	//
  7087  	// Possible values:
  7088  	//   "PROFILE_SCORE_BUCKET_UNSPECIFIED" - Unused.
  7089  	//   "HIGH" - High risk/sensitivity detected.
  7090  	//   "MEDIUM_OR_HIGH" - Medium or high risk/sensitivity detected.
  7091  	MinimumSensitivityScore string `json:"minimumSensitivityScore,omitempty"`
  7092  	// ForceSendFields is a list of field names (e.g. "MinimumRiskScore") to
  7093  	// unconditionally include in API requests. By default, fields with empty or
  7094  	// default values are omitted from API requests. See
  7095  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7096  	// details.
  7097  	ForceSendFields []string `json:"-"`
  7098  	// NullFields is a list of field names (e.g. "MinimumRiskScore") to include in
  7099  	// API requests with the JSON null value. By default, fields with empty values
  7100  	// are omitted from API requests. See
  7101  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7102  	NullFields []string `json:"-"`
  7103  }
  7104  
  7105  func (s *GooglePrivacyDlpV2PubSubCondition) MarshalJSON() ([]byte, error) {
  7106  	type NoMethod GooglePrivacyDlpV2PubSubCondition
  7107  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7108  }
  7109  
  7110  // GooglePrivacyDlpV2PubSubExpressions: An expression, consisting of an
  7111  // operator and conditions.
  7112  type GooglePrivacyDlpV2PubSubExpressions struct {
  7113  	// Conditions: Conditions to apply to the expression.
  7114  	Conditions []*GooglePrivacyDlpV2PubSubCondition `json:"conditions,omitempty"`
  7115  	// LogicalOperator: The operator to apply to the collection of conditions.
  7116  	//
  7117  	// Possible values:
  7118  	//   "LOGICAL_OPERATOR_UNSPECIFIED" - Unused.
  7119  	//   "OR" - Conditional OR.
  7120  	//   "AND" - Conditional AND.
  7121  	LogicalOperator string `json:"logicalOperator,omitempty"`
  7122  	// ForceSendFields is a list of field names (e.g. "Conditions") to
  7123  	// unconditionally include in API requests. By default, fields with empty or
  7124  	// default values are omitted from API requests. See
  7125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7126  	// details.
  7127  	ForceSendFields []string `json:"-"`
  7128  	// NullFields is a list of field names (e.g. "Conditions") to include in API
  7129  	// requests with the JSON null value. By default, fields with empty values are
  7130  	// omitted from API requests. See
  7131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7132  	NullFields []string `json:"-"`
  7133  }
  7134  
  7135  func (s *GooglePrivacyDlpV2PubSubExpressions) MarshalJSON() ([]byte, error) {
  7136  	type NoMethod GooglePrivacyDlpV2PubSubExpressions
  7137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7138  }
  7139  
  7140  // GooglePrivacyDlpV2PubSubNotification: Send a Pub/Sub message into the given
  7141  // Pub/Sub topic to connect other systems to data profile generation. The
  7142  // message payload data will be the byte serialization of
  7143  // `DataProfilePubSubMessage`.
  7144  type GooglePrivacyDlpV2PubSubNotification struct {
  7145  	// DetailOfMessage: How much data to include in the Pub/Sub message. If the
  7146  	// user wishes to limit the size of the message, they can use resource_name and
  7147  	// fetch the profile fields they wish to. Per table profile (not per column).
  7148  	//
  7149  	// Possible values:
  7150  	//   "DETAIL_LEVEL_UNSPECIFIED" - Unused.
  7151  	//   "TABLE_PROFILE" - The full table data profile.
  7152  	//   "RESOURCE_NAME" - The name of the profiled resource.
  7153  	DetailOfMessage string `json:"detailOfMessage,omitempty"`
  7154  	// Event: The type of event that triggers a Pub/Sub. At most one
  7155  	// `PubSubNotification` per EventType is permitted.
  7156  	//
  7157  	// Possible values:
  7158  	//   "EVENT_TYPE_UNSPECIFIED" - Unused.
  7159  	//   "NEW_PROFILE" - New profile (not a re-profile).
  7160  	//   "CHANGED_PROFILE" - Changed one of the following profile metrics: * Data
  7161  	// risk score * Sensitivity score * Resource visibility * Encryption type *
  7162  	// Predicted infoTypes * Other infoTypes
  7163  	//   "SCORE_INCREASED" - Table data risk score or sensitivity score increased.
  7164  	//   "ERROR_CHANGED" - A user (non-internal) error occurred.
  7165  	Event string `json:"event,omitempty"`
  7166  	// PubsubCondition: Conditions (e.g., data risk or sensitivity level) for
  7167  	// triggering a Pub/Sub.
  7168  	PubsubCondition *GooglePrivacyDlpV2DataProfilePubSubCondition `json:"pubsubCondition,omitempty"`
  7169  	// Topic: Cloud Pub/Sub topic to send notifications to. Format is
  7170  	// projects/{project}/topics/{topic}.
  7171  	Topic string `json:"topic,omitempty"`
  7172  	// ForceSendFields is a list of field names (e.g. "DetailOfMessage") to
  7173  	// unconditionally include in API requests. By default, fields with empty or
  7174  	// default values are omitted from API requests. See
  7175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7176  	// details.
  7177  	ForceSendFields []string `json:"-"`
  7178  	// NullFields is a list of field names (e.g. "DetailOfMessage") to include in
  7179  	// API requests with the JSON null value. By default, fields with empty values
  7180  	// are omitted from API requests. See
  7181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7182  	NullFields []string `json:"-"`
  7183  }
  7184  
  7185  func (s *GooglePrivacyDlpV2PubSubNotification) MarshalJSON() ([]byte, error) {
  7186  	type NoMethod GooglePrivacyDlpV2PubSubNotification
  7187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7188  }
  7189  
  7190  // GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog: Publish findings of a
  7191  // DlpJob to Data Catalog. In Data Catalog, tag templates are applied to the
  7192  // resource that Cloud DLP scanned. Data Catalog tag templates are stored in
  7193  // the same project and region where the BigQuery table exists. For Cloud DLP
  7194  // to create and apply the tag template, the Cloud DLP service agent must have
  7195  // the `roles/datacatalog.tagTemplateOwner` permission on the project. The tag
  7196  // template contains fields summarizing the results of the DlpJob. Any field
  7197  // values previously written by another DlpJob are deleted. InfoType naming
  7198  // patterns are strictly enforced when using this feature. Findings are
  7199  // persisted in Data Catalog storage and are governed by service-specific
  7200  // policies for Data Catalog. For more information, see Service Specific Terms
  7201  // (https://cloud.google.com/terms/service-terms). Only a single instance of
  7202  // this action can be specified. This action is allowed only if all resources
  7203  // being scanned are BigQuery tables. Compatible with: Inspect
  7204  type GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog struct {
  7205  }
  7206  
  7207  // GooglePrivacyDlpV2PublishSummaryToCscc: Publish the result summary of a
  7208  // DlpJob to Security Command Center
  7209  // (https://cloud.google.com/security-command-center). This action is available
  7210  // for only projects that belong to an organization. This action publishes the
  7211  // count of finding instances and their infoTypes. The summary of findings are
  7212  // persisted in Security Command Center and are governed by service-specific
  7213  // policies for Security Command Center
  7214  // (https://cloud.google.com/terms/service-terms). Only a single instance of
  7215  // this action can be specified. Compatible with: Inspect
  7216  type GooglePrivacyDlpV2PublishSummaryToCscc struct {
  7217  }
  7218  
  7219  // GooglePrivacyDlpV2PublishToPubSub: Publish a message into a given Pub/Sub
  7220  // topic when DlpJob has completed. The message contains a single field,
  7221  // `DlpJobName`, which is equal to the finished job's `DlpJob.name`
  7222  // (https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
  7223  // Compatible with: Inspect, Risk
  7224  type GooglePrivacyDlpV2PublishToPubSub struct {
  7225  	// Topic: Cloud Pub/Sub topic to send notifications to. The topic must have
  7226  	// given publishing access rights to the DLP API service account executing the
  7227  	// long running DlpJob sending the notifications. Format is
  7228  	// projects/{project}/topics/{topic}.
  7229  	Topic string `json:"topic,omitempty"`
  7230  	// ForceSendFields is a list of field names (e.g. "Topic") to unconditionally
  7231  	// include in API requests. By default, fields with empty or default values are
  7232  	// omitted from API requests. See
  7233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7234  	// details.
  7235  	ForceSendFields []string `json:"-"`
  7236  	// NullFields is a list of field names (e.g. "Topic") to include in API
  7237  	// requests with the JSON null value. By default, fields with empty values are
  7238  	// omitted from API requests. See
  7239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7240  	NullFields []string `json:"-"`
  7241  }
  7242  
  7243  func (s *GooglePrivacyDlpV2PublishToPubSub) MarshalJSON() ([]byte, error) {
  7244  	type NoMethod GooglePrivacyDlpV2PublishToPubSub
  7245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7246  }
  7247  
  7248  // GooglePrivacyDlpV2PublishToStackdriver: Enable Stackdriver metric
  7249  // dlp.googleapis.com/finding_count. This will publish a metric to stack driver
  7250  // on each infotype requested and how many findings were found for it.
  7251  // CustomDetectors will be bucketed as 'Custom' under the Stackdriver label
  7252  // 'info_type'.
  7253  type GooglePrivacyDlpV2PublishToStackdriver struct {
  7254  }
  7255  
  7256  // GooglePrivacyDlpV2QuasiId: A column with a semantic tag attached.
  7257  type GooglePrivacyDlpV2QuasiId struct {
  7258  	// CustomTag: A column can be tagged with a custom tag. In this case, the user
  7259  	// must indicate an auxiliary table that contains statistical information on
  7260  	// the possible values of this column (below).
  7261  	CustomTag string `json:"customTag,omitempty"`
  7262  	// Field: Required. Identifies the column.
  7263  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  7264  	// Inferred: If no semantic tag is indicated, we infer the statistical model
  7265  	// from the distribution of values in the input data
  7266  	Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
  7267  	// InfoType: A column can be tagged with a InfoType to use the relevant public
  7268  	// dataset as a statistical model of population, if available. We currently
  7269  	// support US ZIP codes, region codes, ages and genders. To programmatically
  7270  	// obtain the list of supported InfoTypes, use ListInfoTypes with the
  7271  	// supported_by=RISK_ANALYSIS filter.
  7272  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  7273  	// ForceSendFields is a list of field names (e.g. "CustomTag") to
  7274  	// unconditionally include in API requests. By default, fields with empty or
  7275  	// default values are omitted from API requests. See
  7276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7277  	// details.
  7278  	ForceSendFields []string `json:"-"`
  7279  	// NullFields is a list of field names (e.g. "CustomTag") to include in API
  7280  	// requests with the JSON null value. By default, fields with empty values are
  7281  	// omitted from API requests. See
  7282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7283  	NullFields []string `json:"-"`
  7284  }
  7285  
  7286  func (s *GooglePrivacyDlpV2QuasiId) MarshalJSON() ([]byte, error) {
  7287  	type NoMethod GooglePrivacyDlpV2QuasiId
  7288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7289  }
  7290  
  7291  // GooglePrivacyDlpV2QuasiIdField: A quasi-identifier column has a custom_tag,
  7292  // used to know which column in the data corresponds to which column in the
  7293  // statistical model.
  7294  type GooglePrivacyDlpV2QuasiIdField struct {
  7295  	// CustomTag: A auxiliary field.
  7296  	CustomTag string `json:"customTag,omitempty"`
  7297  	// Field: Identifies the column.
  7298  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  7299  	// ForceSendFields is a list of field names (e.g. "CustomTag") to
  7300  	// unconditionally include in API requests. By default, fields with empty or
  7301  	// default values are omitted from API requests. See
  7302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7303  	// details.
  7304  	ForceSendFields []string `json:"-"`
  7305  	// NullFields is a list of field names (e.g. "CustomTag") to include in API
  7306  	// requests with the JSON null value. By default, fields with empty values are
  7307  	// omitted from API requests. See
  7308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7309  	NullFields []string `json:"-"`
  7310  }
  7311  
  7312  func (s *GooglePrivacyDlpV2QuasiIdField) MarshalJSON() ([]byte, error) {
  7313  	type NoMethod GooglePrivacyDlpV2QuasiIdField
  7314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7315  }
  7316  
  7317  // GooglePrivacyDlpV2QuasiIdentifierField: A quasi-identifier column has a
  7318  // custom_tag, used to know which column in the data corresponds to which
  7319  // column in the statistical model.
  7320  type GooglePrivacyDlpV2QuasiIdentifierField struct {
  7321  	// CustomTag: A column can be tagged with a custom tag. In this case, the user
  7322  	// must indicate an auxiliary table that contains statistical information on
  7323  	// the possible values of this column (below).
  7324  	CustomTag string `json:"customTag,omitempty"`
  7325  	// Field: Identifies the column.
  7326  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  7327  	// ForceSendFields is a list of field names (e.g. "CustomTag") to
  7328  	// unconditionally include in API requests. By default, fields with empty or
  7329  	// default values are omitted from API requests. See
  7330  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7331  	// details.
  7332  	ForceSendFields []string `json:"-"`
  7333  	// NullFields is a list of field names (e.g. "CustomTag") to include in API
  7334  	// requests with the JSON null value. By default, fields with empty values are
  7335  	// omitted from API requests. See
  7336  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7337  	NullFields []string `json:"-"`
  7338  }
  7339  
  7340  func (s *GooglePrivacyDlpV2QuasiIdentifierField) MarshalJSON() ([]byte, error) {
  7341  	type NoMethod GooglePrivacyDlpV2QuasiIdentifierField
  7342  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7343  }
  7344  
  7345  // GooglePrivacyDlpV2QuoteInfo: Message for infoType-dependent details parsed
  7346  // from quote.
  7347  type GooglePrivacyDlpV2QuoteInfo struct {
  7348  	// DateTime: The date time indicated by the quote.
  7349  	DateTime *GooglePrivacyDlpV2DateTime `json:"dateTime,omitempty"`
  7350  	// ForceSendFields is a list of field names (e.g. "DateTime") to
  7351  	// unconditionally include in API requests. By default, fields with empty or
  7352  	// default values are omitted from API requests. See
  7353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7354  	// details.
  7355  	ForceSendFields []string `json:"-"`
  7356  	// NullFields is a list of field names (e.g. "DateTime") to include in API
  7357  	// requests with the JSON null value. By default, fields with empty values are
  7358  	// omitted from API requests. See
  7359  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7360  	NullFields []string `json:"-"`
  7361  }
  7362  
  7363  func (s *GooglePrivacyDlpV2QuoteInfo) MarshalJSON() ([]byte, error) {
  7364  	type NoMethod GooglePrivacyDlpV2QuoteInfo
  7365  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7366  }
  7367  
  7368  // GooglePrivacyDlpV2Range: Generic half-open interval [start, end)
  7369  type GooglePrivacyDlpV2Range struct {
  7370  	// End: Index of the last character of the range (exclusive).
  7371  	End int64 `json:"end,omitempty,string"`
  7372  	// Start: Index of the first character of the range (inclusive).
  7373  	Start int64 `json:"start,omitempty,string"`
  7374  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  7375  	// include in API requests. By default, fields with empty or default values are
  7376  	// omitted from API requests. See
  7377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7378  	// details.
  7379  	ForceSendFields []string `json:"-"`
  7380  	// NullFields is a list of field names (e.g. "End") to include in API requests
  7381  	// with the JSON null value. By default, fields with empty values are omitted
  7382  	// from API requests. See
  7383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7384  	NullFields []string `json:"-"`
  7385  }
  7386  
  7387  func (s *GooglePrivacyDlpV2Range) MarshalJSON() ([]byte, error) {
  7388  	type NoMethod GooglePrivacyDlpV2Range
  7389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7390  }
  7391  
  7392  // GooglePrivacyDlpV2RecordCondition: A condition for determining whether a
  7393  // transformation should be applied to a field.
  7394  type GooglePrivacyDlpV2RecordCondition struct {
  7395  	// Expressions: An expression.
  7396  	Expressions *GooglePrivacyDlpV2Expressions `json:"expressions,omitempty"`
  7397  	// ForceSendFields is a list of field names (e.g. "Expressions") to
  7398  	// unconditionally include in API requests. By default, fields with empty or
  7399  	// default values are omitted from API requests. See
  7400  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7401  	// details.
  7402  	ForceSendFields []string `json:"-"`
  7403  	// NullFields is a list of field names (e.g. "Expressions") to include in API
  7404  	// requests with the JSON null value. By default, fields with empty values are
  7405  	// omitted from API requests. See
  7406  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7407  	NullFields []string `json:"-"`
  7408  }
  7409  
  7410  func (s *GooglePrivacyDlpV2RecordCondition) MarshalJSON() ([]byte, error) {
  7411  	type NoMethod GooglePrivacyDlpV2RecordCondition
  7412  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7413  }
  7414  
  7415  // GooglePrivacyDlpV2RecordKey: Message for a unique key indicating a record
  7416  // that contains a finding.
  7417  type GooglePrivacyDlpV2RecordKey struct {
  7418  	// BigQueryKey: Datastore key
  7419  	BigQueryKey *GooglePrivacyDlpV2BigQueryKey `json:"bigQueryKey,omitempty"`
  7420  	// DatastoreKey: BigQuery key
  7421  	DatastoreKey *GooglePrivacyDlpV2DatastoreKey `json:"datastoreKey,omitempty"`
  7422  	// IdValues: Values of identifying columns in the given row. Order of values
  7423  	// matches the order of `identifying_fields` specified in the scanning request.
  7424  	IdValues []string `json:"idValues,omitempty"`
  7425  	// ForceSendFields is a list of field names (e.g. "BigQueryKey") to
  7426  	// unconditionally include in API requests. By default, fields with empty or
  7427  	// default values are omitted from API requests. See
  7428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7429  	// details.
  7430  	ForceSendFields []string `json:"-"`
  7431  	// NullFields is a list of field names (e.g. "BigQueryKey") to include in API
  7432  	// requests with the JSON null value. By default, fields with empty values are
  7433  	// omitted from API requests. See
  7434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7435  	NullFields []string `json:"-"`
  7436  }
  7437  
  7438  func (s *GooglePrivacyDlpV2RecordKey) MarshalJSON() ([]byte, error) {
  7439  	type NoMethod GooglePrivacyDlpV2RecordKey
  7440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7441  }
  7442  
  7443  // GooglePrivacyDlpV2RecordLocation: Location of a finding within a row or
  7444  // record.
  7445  type GooglePrivacyDlpV2RecordLocation struct {
  7446  	// FieldId: Field id of the field containing the finding.
  7447  	FieldId *GooglePrivacyDlpV2FieldId `json:"fieldId,omitempty"`
  7448  	// RecordKey: Key of the finding.
  7449  	RecordKey *GooglePrivacyDlpV2RecordKey `json:"recordKey,omitempty"`
  7450  	// TableLocation: Location within a `ContentItem.Table`.
  7451  	TableLocation *GooglePrivacyDlpV2TableLocation `json:"tableLocation,omitempty"`
  7452  	// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally
  7453  	// include in API requests. By default, fields with empty or default values are
  7454  	// omitted from API requests. See
  7455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7456  	// details.
  7457  	ForceSendFields []string `json:"-"`
  7458  	// NullFields is a list of field names (e.g. "FieldId") to include in API
  7459  	// requests with the JSON null value. By default, fields with empty values are
  7460  	// omitted from API requests. See
  7461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7462  	NullFields []string `json:"-"`
  7463  }
  7464  
  7465  func (s *GooglePrivacyDlpV2RecordLocation) MarshalJSON() ([]byte, error) {
  7466  	type NoMethod GooglePrivacyDlpV2RecordLocation
  7467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7468  }
  7469  
  7470  // GooglePrivacyDlpV2RecordSuppression: Configuration to suppress records whose
  7471  // suppression conditions evaluate to true.
  7472  type GooglePrivacyDlpV2RecordSuppression struct {
  7473  	// Condition: A condition that when it evaluates to true will result in the
  7474  	// record being evaluated to be suppressed from the transformed content.
  7475  	Condition *GooglePrivacyDlpV2RecordCondition `json:"condition,omitempty"`
  7476  	// ForceSendFields is a list of field names (e.g. "Condition") to
  7477  	// unconditionally include in API requests. By default, fields with empty or
  7478  	// default values are omitted from API requests. See
  7479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7480  	// details.
  7481  	ForceSendFields []string `json:"-"`
  7482  	// NullFields is a list of field names (e.g. "Condition") to include in API
  7483  	// requests with the JSON null value. By default, fields with empty values are
  7484  	// omitted from API requests. See
  7485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7486  	NullFields []string `json:"-"`
  7487  }
  7488  
  7489  func (s *GooglePrivacyDlpV2RecordSuppression) MarshalJSON() ([]byte, error) {
  7490  	type NoMethod GooglePrivacyDlpV2RecordSuppression
  7491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7492  }
  7493  
  7494  // GooglePrivacyDlpV2RecordTransformation: The field in a record to transform.
  7495  type GooglePrivacyDlpV2RecordTransformation struct {
  7496  	// ContainerTimestamp: Findings container modification timestamp, if
  7497  	// applicable.
  7498  	ContainerTimestamp string `json:"containerTimestamp,omitempty"`
  7499  	// ContainerVersion: Container version, if available ("generation" for Cloud
  7500  	// Storage).
  7501  	ContainerVersion string `json:"containerVersion,omitempty"`
  7502  	// FieldId: For record transformations, provide a field.
  7503  	FieldId *GooglePrivacyDlpV2FieldId `json:"fieldId,omitempty"`
  7504  	// ForceSendFields is a list of field names (e.g. "ContainerTimestamp") to
  7505  	// unconditionally include in API requests. By default, fields with empty or
  7506  	// default values are omitted from API requests. See
  7507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7508  	// details.
  7509  	ForceSendFields []string `json:"-"`
  7510  	// NullFields is a list of field names (e.g. "ContainerTimestamp") to include
  7511  	// in API requests with the JSON null value. By default, fields with empty
  7512  	// values are omitted from API requests. See
  7513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7514  	NullFields []string `json:"-"`
  7515  }
  7516  
  7517  func (s *GooglePrivacyDlpV2RecordTransformation) MarshalJSON() ([]byte, error) {
  7518  	type NoMethod GooglePrivacyDlpV2RecordTransformation
  7519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7520  }
  7521  
  7522  // GooglePrivacyDlpV2RecordTransformations: A type of transformation that is
  7523  // applied over structured data such as a table.
  7524  type GooglePrivacyDlpV2RecordTransformations struct {
  7525  	// FieldTransformations: Transform the record by applying various field
  7526  	// transformations.
  7527  	FieldTransformations []*GooglePrivacyDlpV2FieldTransformation `json:"fieldTransformations,omitempty"`
  7528  	// RecordSuppressions: Configuration defining which records get suppressed
  7529  	// entirely. Records that match any suppression rule are omitted from the
  7530  	// output.
  7531  	RecordSuppressions []*GooglePrivacyDlpV2RecordSuppression `json:"recordSuppressions,omitempty"`
  7532  	// ForceSendFields is a list of field names (e.g. "FieldTransformations") to
  7533  	// unconditionally include in API requests. By default, fields with empty or
  7534  	// default values are omitted from API requests. See
  7535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7536  	// details.
  7537  	ForceSendFields []string `json:"-"`
  7538  	// NullFields is a list of field names (e.g. "FieldTransformations") to include
  7539  	// in API requests with the JSON null value. By default, fields with empty
  7540  	// values are omitted from API requests. See
  7541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7542  	NullFields []string `json:"-"`
  7543  }
  7544  
  7545  func (s *GooglePrivacyDlpV2RecordTransformations) MarshalJSON() ([]byte, error) {
  7546  	type NoMethod GooglePrivacyDlpV2RecordTransformations
  7547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7548  }
  7549  
  7550  // GooglePrivacyDlpV2RedactConfig: Redact a given value. For example, if used
  7551  // with an `InfoTypeTransformation` transforming PHONE_NUMBER, and input 'My
  7552  // phone number is 206-555-0123', the output would be 'My phone number is '.
  7553  type GooglePrivacyDlpV2RedactConfig struct {
  7554  }
  7555  
  7556  // GooglePrivacyDlpV2RedactImageRequest: Request to search for potentially
  7557  // sensitive info in an image and redact it by covering it with a colored
  7558  // rectangle.
  7559  type GooglePrivacyDlpV2RedactImageRequest struct {
  7560  	// ByteItem: The content must be PNG, JPEG, SVG or BMP.
  7561  	ByteItem *GooglePrivacyDlpV2ByteContentItem `json:"byteItem,omitempty"`
  7562  	// ImageRedactionConfigs: The configuration for specifying what content to
  7563  	// redact from images.
  7564  	ImageRedactionConfigs []*GooglePrivacyDlpV2ImageRedactionConfig `json:"imageRedactionConfigs,omitempty"`
  7565  	// IncludeFindings: Whether the response should include findings along with the
  7566  	// redacted image.
  7567  	IncludeFindings bool `json:"includeFindings,omitempty"`
  7568  	// InspectConfig: Configuration for the inspector.
  7569  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  7570  	// LocationId: Deprecated. This field has no effect.
  7571  	LocationId string `json:"locationId,omitempty"`
  7572  	// ForceSendFields is a list of field names (e.g. "ByteItem") to
  7573  	// unconditionally include in API requests. By default, fields with empty or
  7574  	// default values are omitted from API requests. See
  7575  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7576  	// details.
  7577  	ForceSendFields []string `json:"-"`
  7578  	// NullFields is a list of field names (e.g. "ByteItem") to include in API
  7579  	// requests with the JSON null value. By default, fields with empty values are
  7580  	// omitted from API requests. See
  7581  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7582  	NullFields []string `json:"-"`
  7583  }
  7584  
  7585  func (s *GooglePrivacyDlpV2RedactImageRequest) MarshalJSON() ([]byte, error) {
  7586  	type NoMethod GooglePrivacyDlpV2RedactImageRequest
  7587  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7588  }
  7589  
  7590  // GooglePrivacyDlpV2RedactImageResponse: Results of redacting an image.
  7591  type GooglePrivacyDlpV2RedactImageResponse struct {
  7592  	// ExtractedText: If an image was being inspected and the InspectConfig's
  7593  	// include_quote was set to true, then this field will include all text, if
  7594  	// any, that was found in the image.
  7595  	ExtractedText string `json:"extractedText,omitempty"`
  7596  	// InspectResult: The findings. Populated when include_findings in the request
  7597  	// is true.
  7598  	InspectResult *GooglePrivacyDlpV2InspectResult `json:"inspectResult,omitempty"`
  7599  	// RedactedImage: The redacted image. The type will be the same as the original
  7600  	// image.
  7601  	RedactedImage string `json:"redactedImage,omitempty"`
  7602  
  7603  	// ServerResponse contains the HTTP response code and headers from the server.
  7604  	googleapi.ServerResponse `json:"-"`
  7605  	// ForceSendFields is a list of field names (e.g. "ExtractedText") to
  7606  	// unconditionally include in API requests. By default, fields with empty or
  7607  	// default values are omitted from API requests. See
  7608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7609  	// details.
  7610  	ForceSendFields []string `json:"-"`
  7611  	// NullFields is a list of field names (e.g. "ExtractedText") to include in API
  7612  	// requests with the JSON null value. By default, fields with empty values are
  7613  	// omitted from API requests. See
  7614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7615  	NullFields []string `json:"-"`
  7616  }
  7617  
  7618  func (s *GooglePrivacyDlpV2RedactImageResponse) MarshalJSON() ([]byte, error) {
  7619  	type NoMethod GooglePrivacyDlpV2RedactImageResponse
  7620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7621  }
  7622  
  7623  // GooglePrivacyDlpV2Regex: Message defining a custom regular expression.
  7624  type GooglePrivacyDlpV2Regex struct {
  7625  	// GroupIndexes: The index of the submatch to extract as findings. When not
  7626  	// specified, the entire match is returned. No more than 3 may be included.
  7627  	GroupIndexes []int64 `json:"groupIndexes,omitempty"`
  7628  	// Pattern: Pattern defining the regular expression. Its syntax
  7629  	// (https://github.com/google/re2/wiki/Syntax) can be found under the
  7630  	// google/re2 repository on GitHub.
  7631  	Pattern string `json:"pattern,omitempty"`
  7632  	// ForceSendFields is a list of field names (e.g. "GroupIndexes") to
  7633  	// unconditionally include in API requests. By default, fields with empty or
  7634  	// default values are omitted from API requests. See
  7635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7636  	// details.
  7637  	ForceSendFields []string `json:"-"`
  7638  	// NullFields is a list of field names (e.g. "GroupIndexes") to include in API
  7639  	// requests with the JSON null value. By default, fields with empty values are
  7640  	// omitted from API requests. See
  7641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7642  	NullFields []string `json:"-"`
  7643  }
  7644  
  7645  func (s *GooglePrivacyDlpV2Regex) MarshalJSON() ([]byte, error) {
  7646  	type NoMethod GooglePrivacyDlpV2Regex
  7647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7648  }
  7649  
  7650  // GooglePrivacyDlpV2ReidentifyContentRequest: Request to re-identify an item.
  7651  type GooglePrivacyDlpV2ReidentifyContentRequest struct {
  7652  	// InspectConfig: Configuration for the inspector.
  7653  	InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
  7654  	// InspectTemplateName: Template to use. Any configuration directly specified
  7655  	// in `inspect_config` will override those set in the template. Singular fields
  7656  	// that are set in this request will replace their corresponding fields in the
  7657  	// template. Repeated fields are appended. Singular sub-messages and groups are
  7658  	// recursively merged.
  7659  	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
  7660  	// Item: The item to re-identify. Will be treated as text.
  7661  	Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
  7662  	// LocationId: Deprecated. This field has no effect.
  7663  	LocationId string `json:"locationId,omitempty"`
  7664  	// ReidentifyConfig: Configuration for the re-identification of the content
  7665  	// item. This field shares the same proto message type that is used for
  7666  	// de-identification, however its usage here is for the reversal of the
  7667  	// previous de-identification. Re-identification is performed by examining the
  7668  	// transformations used to de-identify the items and executing the reverse.
  7669  	// This requires that only reversible transformations be provided here. The
  7670  	// reversible transformations are: - `CryptoDeterministicConfig` -
  7671  	// `CryptoReplaceFfxFpeConfig`
  7672  	ReidentifyConfig *GooglePrivacyDlpV2DeidentifyConfig `json:"reidentifyConfig,omitempty"`
  7673  	// ReidentifyTemplateName: Template to use. References an instance of
  7674  	// `DeidentifyTemplate`. Any configuration directly specified in
  7675  	// `reidentify_config` or `inspect_config` will override those set in the
  7676  	// template. The `DeidentifyTemplate` used must include only reversible
  7677  	// transformations. Singular fields that are set in this request will replace
  7678  	// their corresponding fields in the template. Repeated fields are appended.
  7679  	// Singular sub-messages and groups are recursively merged.
  7680  	ReidentifyTemplateName string `json:"reidentifyTemplateName,omitempty"`
  7681  	// ForceSendFields is a list of field names (e.g. "InspectConfig") to
  7682  	// unconditionally include in API requests. By default, fields with empty or
  7683  	// default values are omitted from API requests. See
  7684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7685  	// details.
  7686  	ForceSendFields []string `json:"-"`
  7687  	// NullFields is a list of field names (e.g. "InspectConfig") to include in API
  7688  	// requests with the JSON null value. By default, fields with empty values are
  7689  	// omitted from API requests. See
  7690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7691  	NullFields []string `json:"-"`
  7692  }
  7693  
  7694  func (s *GooglePrivacyDlpV2ReidentifyContentRequest) MarshalJSON() ([]byte, error) {
  7695  	type NoMethod GooglePrivacyDlpV2ReidentifyContentRequest
  7696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7697  }
  7698  
  7699  // GooglePrivacyDlpV2ReidentifyContentResponse: Results of re-identifying an
  7700  // item.
  7701  type GooglePrivacyDlpV2ReidentifyContentResponse struct {
  7702  	// Item: The re-identified item.
  7703  	Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
  7704  	// Overview: An overview of the changes that were made to the `item`.
  7705  	Overview *GooglePrivacyDlpV2TransformationOverview `json:"overview,omitempty"`
  7706  
  7707  	// ServerResponse contains the HTTP response code and headers from the server.
  7708  	googleapi.ServerResponse `json:"-"`
  7709  	// ForceSendFields is a list of field names (e.g. "Item") to unconditionally
  7710  	// include in API requests. By default, fields with empty or default values are
  7711  	// omitted from API requests. See
  7712  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7713  	// details.
  7714  	ForceSendFields []string `json:"-"`
  7715  	// NullFields is a list of field names (e.g. "Item") to include in API requests
  7716  	// with the JSON null value. By default, fields with empty values are omitted
  7717  	// from API requests. See
  7718  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7719  	NullFields []string `json:"-"`
  7720  }
  7721  
  7722  func (s *GooglePrivacyDlpV2ReidentifyContentResponse) MarshalJSON() ([]byte, error) {
  7723  	type NoMethod GooglePrivacyDlpV2ReidentifyContentResponse
  7724  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7725  }
  7726  
  7727  // GooglePrivacyDlpV2ReplaceDictionaryConfig: Replace each input value with a
  7728  // value randomly selected from the dictionary.
  7729  type GooglePrivacyDlpV2ReplaceDictionaryConfig struct {
  7730  	// WordList: A list of words to select from for random replacement. The limits
  7731  	// (https://cloud.google.com/sensitive-data-protection/limits) page contains
  7732  	// details about the size limits of dictionaries.
  7733  	WordList *GooglePrivacyDlpV2WordList `json:"wordList,omitempty"`
  7734  	// ForceSendFields is a list of field names (e.g. "WordList") to
  7735  	// unconditionally include in API requests. By default, fields with empty or
  7736  	// default values are omitted from API requests. See
  7737  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7738  	// details.
  7739  	ForceSendFields []string `json:"-"`
  7740  	// NullFields is a list of field names (e.g. "WordList") to include in API
  7741  	// requests with the JSON null value. By default, fields with empty values are
  7742  	// omitted from API requests. See
  7743  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7744  	NullFields []string `json:"-"`
  7745  }
  7746  
  7747  func (s *GooglePrivacyDlpV2ReplaceDictionaryConfig) MarshalJSON() ([]byte, error) {
  7748  	type NoMethod GooglePrivacyDlpV2ReplaceDictionaryConfig
  7749  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7750  }
  7751  
  7752  // GooglePrivacyDlpV2ReplaceValueConfig: Replace each input value with a given
  7753  // `Value`.
  7754  type GooglePrivacyDlpV2ReplaceValueConfig struct {
  7755  	// NewValue: Value to replace it with.
  7756  	NewValue *GooglePrivacyDlpV2Value `json:"newValue,omitempty"`
  7757  	// ForceSendFields is a list of field names (e.g. "NewValue") to
  7758  	// unconditionally include in API requests. By default, fields with empty or
  7759  	// default values are omitted from API requests. See
  7760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7761  	// details.
  7762  	ForceSendFields []string `json:"-"`
  7763  	// NullFields is a list of field names (e.g. "NewValue") to include in API
  7764  	// requests with the JSON null value. By default, fields with empty values are
  7765  	// omitted from API requests. See
  7766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7767  	NullFields []string `json:"-"`
  7768  }
  7769  
  7770  func (s *GooglePrivacyDlpV2ReplaceValueConfig) MarshalJSON() ([]byte, error) {
  7771  	type NoMethod GooglePrivacyDlpV2ReplaceValueConfig
  7772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7773  }
  7774  
  7775  // GooglePrivacyDlpV2ReplaceWithInfoTypeConfig: Replace each matching finding
  7776  // with the name of the info_type.
  7777  type GooglePrivacyDlpV2ReplaceWithInfoTypeConfig struct {
  7778  }
  7779  
  7780  // GooglePrivacyDlpV2RequestedDeidentifyOptions: De-identification options.
  7781  type GooglePrivacyDlpV2RequestedDeidentifyOptions struct {
  7782  	// SnapshotDeidentifyTemplate: Snapshot of the state of the
  7783  	// `DeidentifyTemplate` from the Deidentify action at the time this job was
  7784  	// run.
  7785  	SnapshotDeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotDeidentifyTemplate,omitempty"`
  7786  	// SnapshotImageRedactTemplate: Snapshot of the state of the image
  7787  	// transformation `DeidentifyTemplate` from the `Deidentify` action at the time
  7788  	// this job was run.
  7789  	SnapshotImageRedactTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotImageRedactTemplate,omitempty"`
  7790  	// SnapshotStructuredDeidentifyTemplate: Snapshot of the state of the
  7791  	// structured `DeidentifyTemplate` from the `Deidentify` action at the time
  7792  	// this job was run.
  7793  	SnapshotStructuredDeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotStructuredDeidentifyTemplate,omitempty"`
  7794  	// ForceSendFields is a list of field names (e.g. "SnapshotDeidentifyTemplate")
  7795  	// to unconditionally include in API requests. By default, fields with empty or
  7796  	// default values are omitted from API requests. See
  7797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7798  	// details.
  7799  	ForceSendFields []string `json:"-"`
  7800  	// NullFields is a list of field names (e.g. "SnapshotDeidentifyTemplate") to
  7801  	// include in API requests with the JSON null value. By default, fields with
  7802  	// empty values are omitted from API requests. See
  7803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7804  	NullFields []string `json:"-"`
  7805  }
  7806  
  7807  func (s *GooglePrivacyDlpV2RequestedDeidentifyOptions) MarshalJSON() ([]byte, error) {
  7808  	type NoMethod GooglePrivacyDlpV2RequestedDeidentifyOptions
  7809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7810  }
  7811  
  7812  // GooglePrivacyDlpV2RequestedOptions: Snapshot of the inspection
  7813  // configuration.
  7814  type GooglePrivacyDlpV2RequestedOptions struct {
  7815  	// JobConfig: Inspect config.
  7816  	JobConfig *GooglePrivacyDlpV2InspectJobConfig `json:"jobConfig,omitempty"`
  7817  	// SnapshotInspectTemplate: If run with an InspectTemplate, a snapshot of its
  7818  	// state at the time of this run.
  7819  	SnapshotInspectTemplate *GooglePrivacyDlpV2InspectTemplate `json:"snapshotInspectTemplate,omitempty"`
  7820  	// ForceSendFields is a list of field names (e.g. "JobConfig") to
  7821  	// unconditionally include in API requests. By default, fields with empty or
  7822  	// default values are omitted from API requests. See
  7823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7824  	// details.
  7825  	ForceSendFields []string `json:"-"`
  7826  	// NullFields is a list of field names (e.g. "JobConfig") to include in API
  7827  	// requests with the JSON null value. By default, fields with empty values are
  7828  	// omitted from API requests. See
  7829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7830  	NullFields []string `json:"-"`
  7831  }
  7832  
  7833  func (s *GooglePrivacyDlpV2RequestedOptions) MarshalJSON() ([]byte, error) {
  7834  	type NoMethod GooglePrivacyDlpV2RequestedOptions
  7835  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7836  }
  7837  
  7838  // GooglePrivacyDlpV2RequestedRiskAnalysisOptions: Risk analysis options.
  7839  type GooglePrivacyDlpV2RequestedRiskAnalysisOptions struct {
  7840  	// JobConfig: The job config for the risk job.
  7841  	JobConfig *GooglePrivacyDlpV2RiskAnalysisJobConfig `json:"jobConfig,omitempty"`
  7842  	// ForceSendFields is a list of field names (e.g. "JobConfig") to
  7843  	// unconditionally include in API requests. By default, fields with empty or
  7844  	// default values are omitted from API requests. See
  7845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7846  	// details.
  7847  	ForceSendFields []string `json:"-"`
  7848  	// NullFields is a list of field names (e.g. "JobConfig") to include in API
  7849  	// requests with the JSON null value. By default, fields with empty values are
  7850  	// omitted from API requests. See
  7851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7852  	NullFields []string `json:"-"`
  7853  }
  7854  
  7855  func (s *GooglePrivacyDlpV2RequestedRiskAnalysisOptions) MarshalJSON() ([]byte, error) {
  7856  	type NoMethod GooglePrivacyDlpV2RequestedRiskAnalysisOptions
  7857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7858  }
  7859  
  7860  // GooglePrivacyDlpV2Result: All result fields mentioned below are updated
  7861  // while the job is processing.
  7862  type GooglePrivacyDlpV2Result struct {
  7863  	// HybridStats: Statistics related to the processing of hybrid inspect.
  7864  	HybridStats *GooglePrivacyDlpV2HybridInspectStatistics `json:"hybridStats,omitempty"`
  7865  	// InfoTypeStats: Statistics of how many instances of each info type were found
  7866  	// during inspect job.
  7867  	InfoTypeStats []*GooglePrivacyDlpV2InfoTypeStats `json:"infoTypeStats,omitempty"`
  7868  	// NumRowsProcessed: Number of rows scanned post sampling and time filtering
  7869  	// (Applicable for row based stores such as BigQuery).
  7870  	NumRowsProcessed int64 `json:"numRowsProcessed,omitempty,string"`
  7871  	// ProcessedBytes: Total size in bytes that were processed.
  7872  	ProcessedBytes int64 `json:"processedBytes,omitempty,string"`
  7873  	// TotalEstimatedBytes: Estimate of the number of bytes to process.
  7874  	TotalEstimatedBytes int64 `json:"totalEstimatedBytes,omitempty,string"`
  7875  	// ForceSendFields is a list of field names (e.g. "HybridStats") to
  7876  	// unconditionally include in API requests. By default, fields with empty or
  7877  	// default values are omitted from API requests. See
  7878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7879  	// details.
  7880  	ForceSendFields []string `json:"-"`
  7881  	// NullFields is a list of field names (e.g. "HybridStats") to include in API
  7882  	// requests with the JSON null value. By default, fields with empty values are
  7883  	// omitted from API requests. See
  7884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7885  	NullFields []string `json:"-"`
  7886  }
  7887  
  7888  func (s *GooglePrivacyDlpV2Result) MarshalJSON() ([]byte, error) {
  7889  	type NoMethod GooglePrivacyDlpV2Result
  7890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7891  }
  7892  
  7893  // GooglePrivacyDlpV2RiskAnalysisJobConfig: Configuration for a risk analysis
  7894  // job. See
  7895  // https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis
  7896  // to learn more.
  7897  type GooglePrivacyDlpV2RiskAnalysisJobConfig struct {
  7898  	// Actions: Actions to execute at the completion of the job. Are executed in
  7899  	// the order provided.
  7900  	Actions []*GooglePrivacyDlpV2Action `json:"actions,omitempty"`
  7901  	// PrivacyMetric: Privacy metric to compute.
  7902  	PrivacyMetric *GooglePrivacyDlpV2PrivacyMetric `json:"privacyMetric,omitempty"`
  7903  	// SourceTable: Input dataset to compute metrics over.
  7904  	SourceTable *GooglePrivacyDlpV2BigQueryTable `json:"sourceTable,omitempty"`
  7905  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  7906  	// include in API requests. By default, fields with empty or default values are
  7907  	// omitted from API requests. See
  7908  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7909  	// details.
  7910  	ForceSendFields []string `json:"-"`
  7911  	// NullFields is a list of field names (e.g. "Actions") to include in API
  7912  	// requests with the JSON null value. By default, fields with empty values are
  7913  	// omitted from API requests. See
  7914  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7915  	NullFields []string `json:"-"`
  7916  }
  7917  
  7918  func (s *GooglePrivacyDlpV2RiskAnalysisJobConfig) MarshalJSON() ([]byte, error) {
  7919  	type NoMethod GooglePrivacyDlpV2RiskAnalysisJobConfig
  7920  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7921  }
  7922  
  7923  // GooglePrivacyDlpV2Row: Values of the row.
  7924  type GooglePrivacyDlpV2Row struct {
  7925  	// Values: Individual cells.
  7926  	Values []*GooglePrivacyDlpV2Value `json:"values,omitempty"`
  7927  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  7928  	// include in API requests. By default, fields with empty or default values are
  7929  	// omitted from API requests. See
  7930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7931  	// details.
  7932  	ForceSendFields []string `json:"-"`
  7933  	// NullFields is a list of field names (e.g. "Values") to include in API
  7934  	// requests with the JSON null value. By default, fields with empty values are
  7935  	// omitted from API requests. See
  7936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7937  	NullFields []string `json:"-"`
  7938  }
  7939  
  7940  func (s *GooglePrivacyDlpV2Row) MarshalJSON() ([]byte, error) {
  7941  	type NoMethod GooglePrivacyDlpV2Row
  7942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7943  }
  7944  
  7945  // GooglePrivacyDlpV2SaveFindings: If set, the detailed findings will be
  7946  // persisted to the specified OutputStorageConfig. Only a single instance of
  7947  // this action can be specified. Compatible with: Inspect, Risk
  7948  type GooglePrivacyDlpV2SaveFindings struct {
  7949  	// OutputConfig: Location to store findings outside of DLP.
  7950  	OutputConfig *GooglePrivacyDlpV2OutputStorageConfig `json:"outputConfig,omitempty"`
  7951  	// ForceSendFields is a list of field names (e.g. "OutputConfig") to
  7952  	// unconditionally include in API requests. By default, fields with empty or
  7953  	// default values are omitted from API requests. See
  7954  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7955  	// details.
  7956  	ForceSendFields []string `json:"-"`
  7957  	// NullFields is a list of field names (e.g. "OutputConfig") to include in API
  7958  	// requests with the JSON null value. By default, fields with empty values are
  7959  	// omitted from API requests. See
  7960  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7961  	NullFields []string `json:"-"`
  7962  }
  7963  
  7964  func (s *GooglePrivacyDlpV2SaveFindings) MarshalJSON() ([]byte, error) {
  7965  	type NoMethod GooglePrivacyDlpV2SaveFindings
  7966  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7967  }
  7968  
  7969  // GooglePrivacyDlpV2Schedule: Schedule for inspect job triggers.
  7970  type GooglePrivacyDlpV2Schedule struct {
  7971  	// RecurrencePeriodDuration: With this option a job is started on a regular
  7972  	// periodic basis. For example: every day (86400 seconds). A scheduled start
  7973  	// time will be skipped if the previous execution has not ended when its
  7974  	// scheduled time occurs. This value must be set to a time duration greater
  7975  	// than or equal to 1 day and can be no longer than 60 days.
  7976  	RecurrencePeriodDuration string `json:"recurrencePeriodDuration,omitempty"`
  7977  	// ForceSendFields is a list of field names (e.g. "RecurrencePeriodDuration")
  7978  	// to unconditionally include in API requests. By default, fields with empty or
  7979  	// default values are omitted from API requests. See
  7980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7981  	// details.
  7982  	ForceSendFields []string `json:"-"`
  7983  	// NullFields is a list of field names (e.g. "RecurrencePeriodDuration") to
  7984  	// include in API requests with the JSON null value. By default, fields with
  7985  	// empty values are omitted from API requests. See
  7986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7987  	NullFields []string `json:"-"`
  7988  }
  7989  
  7990  func (s *GooglePrivacyDlpV2Schedule) MarshalJSON() ([]byte, error) {
  7991  	type NoMethod GooglePrivacyDlpV2Schedule
  7992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7993  }
  7994  
  7995  // GooglePrivacyDlpV2SchemaModifiedCadence: How frequency to modify the profile
  7996  // when the table's schema is modified.
  7997  type GooglePrivacyDlpV2SchemaModifiedCadence struct {
  7998  	// Frequency: Frequency to regenerate data profiles when the schema is
  7999  	// modified. Defaults to monthly.
  8000  	//
  8001  	// Possible values:
  8002  	//   "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified.
  8003  	//   "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will
  8004  	// never be updated.
  8005  	//   "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once
  8006  	// every 24 hours.
  8007  	//   "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once
  8008  	// every 30 days. Default.
  8009  	Frequency string `json:"frequency,omitempty"`
  8010  	// Types: The types of schema modifications to consider. Defaults to
  8011  	// NEW_COLUMNS.
  8012  	//
  8013  	// Possible values:
  8014  	//   "SQL_SCHEMA_MODIFICATION_UNSPECIFIED" - Unused.
  8015  	//   "NEW_COLUMNS" - New columns has appeared.
  8016  	//   "REMOVED_COLUMNS" - Columns have been removed from the table.
  8017  	Types []string `json:"types,omitempty"`
  8018  	// ForceSendFields is a list of field names (e.g. "Frequency") to
  8019  	// unconditionally include in API requests. By default, fields with empty or
  8020  	// default values are omitted from API requests. See
  8021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8022  	// details.
  8023  	ForceSendFields []string `json:"-"`
  8024  	// NullFields is a list of field names (e.g. "Frequency") to include in API
  8025  	// requests with the JSON null value. By default, fields with empty values are
  8026  	// omitted from API requests. See
  8027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8028  	NullFields []string `json:"-"`
  8029  }
  8030  
  8031  func (s *GooglePrivacyDlpV2SchemaModifiedCadence) MarshalJSON() ([]byte, error) {
  8032  	type NoMethod GooglePrivacyDlpV2SchemaModifiedCadence
  8033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8034  }
  8035  
  8036  // GooglePrivacyDlpV2SearchConnectionsResponse: Response message for
  8037  // SearchConnections.
  8038  type GooglePrivacyDlpV2SearchConnectionsResponse struct {
  8039  	// Connections: List of connections that match the search query. Note that only
  8040  	// a subset of the fields will be populated, and only "name" is guaranteed to
  8041  	// be set. For full details of a Connection, call GetConnection with the name.
  8042  	Connections []*GooglePrivacyDlpV2Connection `json:"connections,omitempty"`
  8043  	// NextPageToken: Token to retrieve the next page of results. An empty value
  8044  	// means there are no more results.
  8045  	NextPageToken string `json:"nextPageToken,omitempty"`
  8046  
  8047  	// ServerResponse contains the HTTP response code and headers from the server.
  8048  	googleapi.ServerResponse `json:"-"`
  8049  	// ForceSendFields is a list of field names (e.g. "Connections") to
  8050  	// unconditionally include in API requests. By default, fields with empty or
  8051  	// default values are omitted from API requests. See
  8052  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8053  	// details.
  8054  	ForceSendFields []string `json:"-"`
  8055  	// NullFields is a list of field names (e.g. "Connections") to include in API
  8056  	// requests with the JSON null value. By default, fields with empty values are
  8057  	// omitted from API requests. See
  8058  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8059  	NullFields []string `json:"-"`
  8060  }
  8061  
  8062  func (s *GooglePrivacyDlpV2SearchConnectionsResponse) MarshalJSON() ([]byte, error) {
  8063  	type NoMethod GooglePrivacyDlpV2SearchConnectionsResponse
  8064  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8065  }
  8066  
  8067  // GooglePrivacyDlpV2SecretManagerCredential: A credential consisting of a
  8068  // username and password, where the password is stored in a Secret Manager
  8069  // resource. Note: Secret Manager charges apply
  8070  // (https://cloud.google.com/secret-manager/pricing).
  8071  type GooglePrivacyDlpV2SecretManagerCredential struct {
  8072  	// PasswordSecretVersionName: Required. The name of the Secret Manager resource
  8073  	// that stores the password, in the form
  8074  	// `projects/project-id/secrets/secret-name/versions/version`.
  8075  	PasswordSecretVersionName string `json:"passwordSecretVersionName,omitempty"`
  8076  	// Username: Required. The username.
  8077  	Username string `json:"username,omitempty"`
  8078  	// ForceSendFields is a list of field names (e.g. "PasswordSecretVersionName")
  8079  	// to unconditionally include in API requests. By default, fields with empty or
  8080  	// default values are omitted from API requests. See
  8081  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8082  	// details.
  8083  	ForceSendFields []string `json:"-"`
  8084  	// NullFields is a list of field names (e.g. "PasswordSecretVersionName") to
  8085  	// include in API requests with the JSON null value. By default, fields with
  8086  	// empty values are omitted from API requests. See
  8087  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8088  	NullFields []string `json:"-"`
  8089  }
  8090  
  8091  func (s *GooglePrivacyDlpV2SecretManagerCredential) MarshalJSON() ([]byte, error) {
  8092  	type NoMethod GooglePrivacyDlpV2SecretManagerCredential
  8093  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8094  }
  8095  
  8096  // GooglePrivacyDlpV2SelectedInfoTypes: Apply transformation to the selected
  8097  // info_types.
  8098  type GooglePrivacyDlpV2SelectedInfoTypes struct {
  8099  	// InfoTypes: Required. InfoTypes to apply the transformation to. Required.
  8100  	// Provided InfoType must be unique within the ImageTransformations message.
  8101  	InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
  8102  	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
  8103  	// unconditionally include in API requests. By default, fields with empty or
  8104  	// default values are omitted from API requests. See
  8105  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8106  	// details.
  8107  	ForceSendFields []string `json:"-"`
  8108  	// NullFields is a list of field names (e.g. "InfoTypes") to include in API
  8109  	// requests with the JSON null value. By default, fields with empty values are
  8110  	// omitted from API requests. See
  8111  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8112  	NullFields []string `json:"-"`
  8113  }
  8114  
  8115  func (s *GooglePrivacyDlpV2SelectedInfoTypes) MarshalJSON() ([]byte, error) {
  8116  	type NoMethod GooglePrivacyDlpV2SelectedInfoTypes
  8117  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8118  }
  8119  
  8120  // GooglePrivacyDlpV2SensitivityScore: Score is calculated from of all elements
  8121  // in the data profile. A higher level means the data is more sensitive.
  8122  type GooglePrivacyDlpV2SensitivityScore struct {
  8123  	// Score: The sensitivity score applied to the resource.
  8124  	//
  8125  	// Possible values:
  8126  	//   "SENSITIVITY_SCORE_UNSPECIFIED" - Unused.
  8127  	//   "SENSITIVITY_LOW" - No sensitive information detected. The resource isn't
  8128  	// publicly accessible.
  8129  	//   "SENSITIVITY_MODERATE" - Medium risk. Contains personally identifiable
  8130  	// information (PII), potentially sensitive data, or fields with free-text data
  8131  	// that are at a higher risk of having intermittent sensitive data. Consider
  8132  	// limiting access.
  8133  	//   "SENSITIVITY_HIGH" - High risk. Sensitive personally identifiable
  8134  	// information (SPII) can be present. Exfiltration of data can lead to user
  8135  	// data loss. Re-identification of users might be possible. Consider limiting
  8136  	// usage and or removing SPII.
  8137  	Score string `json:"score,omitempty"`
  8138  	// ForceSendFields is a list of field names (e.g. "Score") to unconditionally
  8139  	// include in API requests. By default, fields with empty or default values are
  8140  	// omitted from API requests. See
  8141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8142  	// details.
  8143  	ForceSendFields []string `json:"-"`
  8144  	// NullFields is a list of field names (e.g. "Score") to include in API
  8145  	// requests with the JSON null value. By default, fields with empty values are
  8146  	// omitted from API requests. See
  8147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8148  	NullFields []string `json:"-"`
  8149  }
  8150  
  8151  func (s *GooglePrivacyDlpV2SensitivityScore) MarshalJSON() ([]byte, error) {
  8152  	type NoMethod GooglePrivacyDlpV2SensitivityScore
  8153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8154  }
  8155  
  8156  // GooglePrivacyDlpV2StatisticalTable: An auxiliary table containing
  8157  // statistical information on the relative frequency of different
  8158  // quasi-identifiers values. It has one or several quasi-identifiers columns,
  8159  // and one column that indicates the relative frequency of each
  8160  // quasi-identifier tuple. If a tuple is present in the data but not in the
  8161  // auxiliary table, the corresponding relative frequency is assumed to be zero
  8162  // (and thus, the tuple is highly reidentifiable).
  8163  type GooglePrivacyDlpV2StatisticalTable struct {
  8164  	// QuasiIds: Required. Quasi-identifier columns.
  8165  	QuasiIds []*GooglePrivacyDlpV2QuasiIdentifierField `json:"quasiIds,omitempty"`
  8166  	// RelativeFrequency: Required. The relative frequency column must contain a
  8167  	// floating-point number between 0 and 1 (inclusive). Null values are assumed
  8168  	// to be zero.
  8169  	RelativeFrequency *GooglePrivacyDlpV2FieldId `json:"relativeFrequency,omitempty"`
  8170  	// Table: Required. Auxiliary table location.
  8171  	Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
  8172  	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
  8173  	// unconditionally include in API requests. By default, fields with empty or
  8174  	// default values are omitted from API requests. See
  8175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8176  	// details.
  8177  	ForceSendFields []string `json:"-"`
  8178  	// NullFields is a list of field names (e.g. "QuasiIds") to include in API
  8179  	// requests with the JSON null value. By default, fields with empty values are
  8180  	// omitted from API requests. See
  8181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8182  	NullFields []string `json:"-"`
  8183  }
  8184  
  8185  func (s *GooglePrivacyDlpV2StatisticalTable) MarshalJSON() ([]byte, error) {
  8186  	type NoMethod GooglePrivacyDlpV2StatisticalTable
  8187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8188  }
  8189  
  8190  // GooglePrivacyDlpV2StorageConfig: Shared message indicating Cloud storage
  8191  // type.
  8192  type GooglePrivacyDlpV2StorageConfig struct {
  8193  	// BigQueryOptions: BigQuery options.
  8194  	BigQueryOptions *GooglePrivacyDlpV2BigQueryOptions `json:"bigQueryOptions,omitempty"`
  8195  	// CloudStorageOptions: Cloud Storage options.
  8196  	CloudStorageOptions *GooglePrivacyDlpV2CloudStorageOptions `json:"cloudStorageOptions,omitempty"`
  8197  	// DatastoreOptions: Google Cloud Datastore options.
  8198  	DatastoreOptions *GooglePrivacyDlpV2DatastoreOptions `json:"datastoreOptions,omitempty"`
  8199  	// HybridOptions: Hybrid inspection options.
  8200  	HybridOptions *GooglePrivacyDlpV2HybridOptions `json:"hybridOptions,omitempty"`
  8201  	// TimespanConfig: Configuration of the timespan of the items to include in
  8202  	// scanning.
  8203  	TimespanConfig *GooglePrivacyDlpV2TimespanConfig `json:"timespanConfig,omitempty"`
  8204  	// ForceSendFields is a list of field names (e.g. "BigQueryOptions") to
  8205  	// unconditionally include in API requests. By default, fields with empty or
  8206  	// default values are omitted from API requests. See
  8207  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8208  	// details.
  8209  	ForceSendFields []string `json:"-"`
  8210  	// NullFields is a list of field names (e.g. "BigQueryOptions") to include in
  8211  	// API requests with the JSON null value. By default, fields with empty values
  8212  	// are omitted from API requests. See
  8213  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8214  	NullFields []string `json:"-"`
  8215  }
  8216  
  8217  func (s *GooglePrivacyDlpV2StorageConfig) MarshalJSON() ([]byte, error) {
  8218  	type NoMethod GooglePrivacyDlpV2StorageConfig
  8219  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8220  }
  8221  
  8222  // GooglePrivacyDlpV2StorageMetadataLabel: Storage metadata label to indicate
  8223  // which metadata entry contains findings.
  8224  type GooglePrivacyDlpV2StorageMetadataLabel struct {
  8225  	// Key: Label name.
  8226  	Key string `json:"key,omitempty"`
  8227  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  8228  	// include in API requests. By default, fields with empty or default values are
  8229  	// omitted from API requests. See
  8230  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8231  	// details.
  8232  	ForceSendFields []string `json:"-"`
  8233  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  8234  	// with the JSON null value. By default, fields with empty values are omitted
  8235  	// from API requests. See
  8236  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8237  	NullFields []string `json:"-"`
  8238  }
  8239  
  8240  func (s *GooglePrivacyDlpV2StorageMetadataLabel) MarshalJSON() ([]byte, error) {
  8241  	type NoMethod GooglePrivacyDlpV2StorageMetadataLabel
  8242  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8243  }
  8244  
  8245  // GooglePrivacyDlpV2StoredInfoType: StoredInfoType resource message that
  8246  // contains information about the current version and any pending updates.
  8247  type GooglePrivacyDlpV2StoredInfoType struct {
  8248  	// CurrentVersion: Current version of the stored info type.
  8249  	CurrentVersion *GooglePrivacyDlpV2StoredInfoTypeVersion `json:"currentVersion,omitempty"`
  8250  	// Name: Resource name.
  8251  	Name string `json:"name,omitempty"`
  8252  	// PendingVersions: Pending versions of the stored info type. Empty if no
  8253  	// versions are pending.
  8254  	PendingVersions []*GooglePrivacyDlpV2StoredInfoTypeVersion `json:"pendingVersions,omitempty"`
  8255  
  8256  	// ServerResponse contains the HTTP response code and headers from the server.
  8257  	googleapi.ServerResponse `json:"-"`
  8258  	// ForceSendFields is a list of field names (e.g. "CurrentVersion") to
  8259  	// unconditionally include in API requests. By default, fields with empty or
  8260  	// default values are omitted from API requests. See
  8261  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8262  	// details.
  8263  	ForceSendFields []string `json:"-"`
  8264  	// NullFields is a list of field names (e.g. "CurrentVersion") to include in
  8265  	// API requests with the JSON null value. By default, fields with empty values
  8266  	// are omitted from API requests. See
  8267  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8268  	NullFields []string `json:"-"`
  8269  }
  8270  
  8271  func (s *GooglePrivacyDlpV2StoredInfoType) MarshalJSON() ([]byte, error) {
  8272  	type NoMethod GooglePrivacyDlpV2StoredInfoType
  8273  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8274  }
  8275  
  8276  // GooglePrivacyDlpV2StoredInfoTypeConfig: Configuration for stored infoTypes.
  8277  // All fields and subfield are provided by the user. For more information, see
  8278  // https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
  8279  type GooglePrivacyDlpV2StoredInfoTypeConfig struct {
  8280  	// Description: Description of the StoredInfoType (max 256 characters).
  8281  	Description string `json:"description,omitempty"`
  8282  	// Dictionary: Store dictionary-based CustomInfoType.
  8283  	Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"`
  8284  	// DisplayName: Display name of the StoredInfoType (max 256 characters).
  8285  	DisplayName string `json:"displayName,omitempty"`
  8286  	// LargeCustomDictionary: StoredInfoType where findings are defined by a
  8287  	// dictionary of phrases.
  8288  	LargeCustomDictionary *GooglePrivacyDlpV2LargeCustomDictionaryConfig `json:"largeCustomDictionary,omitempty"`
  8289  	// Regex: Store regular expression-based StoredInfoType.
  8290  	Regex *GooglePrivacyDlpV2Regex `json:"regex,omitempty"`
  8291  	// ForceSendFields is a list of field names (e.g. "Description") to
  8292  	// unconditionally include in API requests. By default, fields with empty or
  8293  	// default values are omitted from API requests. See
  8294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8295  	// details.
  8296  	ForceSendFields []string `json:"-"`
  8297  	// NullFields is a list of field names (e.g. "Description") to include in API
  8298  	// requests with the JSON null value. By default, fields with empty values are
  8299  	// omitted from API requests. See
  8300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8301  	NullFields []string `json:"-"`
  8302  }
  8303  
  8304  func (s *GooglePrivacyDlpV2StoredInfoTypeConfig) MarshalJSON() ([]byte, error) {
  8305  	type NoMethod GooglePrivacyDlpV2StoredInfoTypeConfig
  8306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8307  }
  8308  
  8309  // GooglePrivacyDlpV2StoredInfoTypeStats: Statistics for a StoredInfoType.
  8310  type GooglePrivacyDlpV2StoredInfoTypeStats struct {
  8311  	// LargeCustomDictionary: StoredInfoType where findings are defined by a
  8312  	// dictionary of phrases.
  8313  	LargeCustomDictionary *GooglePrivacyDlpV2LargeCustomDictionaryStats `json:"largeCustomDictionary,omitempty"`
  8314  	// ForceSendFields is a list of field names (e.g. "LargeCustomDictionary") to
  8315  	// unconditionally include in API requests. By default, fields with empty or
  8316  	// default values are omitted from API requests. See
  8317  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8318  	// details.
  8319  	ForceSendFields []string `json:"-"`
  8320  	// NullFields is a list of field names (e.g. "LargeCustomDictionary") to
  8321  	// include in API requests with the JSON null value. By default, fields with
  8322  	// empty values are omitted from API requests. See
  8323  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8324  	NullFields []string `json:"-"`
  8325  }
  8326  
  8327  func (s *GooglePrivacyDlpV2StoredInfoTypeStats) MarshalJSON() ([]byte, error) {
  8328  	type NoMethod GooglePrivacyDlpV2StoredInfoTypeStats
  8329  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8330  }
  8331  
  8332  // GooglePrivacyDlpV2StoredInfoTypeVersion: Version of a StoredInfoType,
  8333  // including the configuration used to build it, create timestamp, and current
  8334  // state.
  8335  type GooglePrivacyDlpV2StoredInfoTypeVersion struct {
  8336  	// Config: StoredInfoType configuration.
  8337  	Config *GooglePrivacyDlpV2StoredInfoTypeConfig `json:"config,omitempty"`
  8338  	// CreateTime: Create timestamp of the version. Read-only, determined by the
  8339  	// system when the version is created.
  8340  	CreateTime string `json:"createTime,omitempty"`
  8341  	// Errors: Errors that occurred when creating this storedInfoType version, or
  8342  	// anomalies detected in the storedInfoType data that render it unusable. Only
  8343  	// the five most recent errors will be displayed, with the most recent error
  8344  	// appearing first. For example, some of the data for stored custom
  8345  	// dictionaries is put in the user's Cloud Storage bucket, and if this data is
  8346  	// modified or deleted by the user or another system, the dictionary becomes
  8347  	// invalid. If any errors occur, fix the problem indicated by the error message
  8348  	// and use the UpdateStoredInfoType API method to create another version of the
  8349  	// storedInfoType to continue using it, reusing the same `config` if it was not
  8350  	// the source of the error.
  8351  	Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
  8352  	// State: Stored info type version state. Read-only, updated by the system
  8353  	// during dictionary creation.
  8354  	//
  8355  	// Possible values:
  8356  	//   "STORED_INFO_TYPE_STATE_UNSPECIFIED" - Unused
  8357  	//   "PENDING" - StoredInfoType version is being created.
  8358  	//   "READY" - StoredInfoType version is ready for use.
  8359  	//   "FAILED" - StoredInfoType creation failed. All relevant error messages are
  8360  	// returned in the `StoredInfoTypeVersion` message.
  8361  	//   "INVALID" - StoredInfoType is no longer valid because artifacts stored in
  8362  	// user-controlled storage were modified. To fix an invalid StoredInfoType, use
  8363  	// the `UpdateStoredInfoType` method to create a new version.
  8364  	State string `json:"state,omitempty"`
  8365  	// Stats: Statistics about this storedInfoType version.
  8366  	Stats *GooglePrivacyDlpV2StoredInfoTypeStats `json:"stats,omitempty"`
  8367  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  8368  	// include in API requests. By default, fields with empty or default values are
  8369  	// omitted from API requests. See
  8370  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8371  	// details.
  8372  	ForceSendFields []string `json:"-"`
  8373  	// NullFields is a list of field names (e.g. "Config") to include in API
  8374  	// requests with the JSON null value. By default, fields with empty values are
  8375  	// omitted from API requests. See
  8376  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8377  	NullFields []string `json:"-"`
  8378  }
  8379  
  8380  func (s *GooglePrivacyDlpV2StoredInfoTypeVersion) MarshalJSON() ([]byte, error) {
  8381  	type NoMethod GooglePrivacyDlpV2StoredInfoTypeVersion
  8382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8383  }
  8384  
  8385  // GooglePrivacyDlpV2StoredType: A reference to a StoredInfoType to use with
  8386  // scanning.
  8387  type GooglePrivacyDlpV2StoredType struct {
  8388  	// CreateTime: Timestamp indicating when the version of the `StoredInfoType`
  8389  	// used for inspection was created. Output-only field, populated by the system.
  8390  	CreateTime string `json:"createTime,omitempty"`
  8391  	// Name: Resource name of the requested `StoredInfoType`, for example
  8392  	// `organizations/433245324/storedInfoTypes/432452342` or
  8393  	// `projects/project-id/storedInfoTypes/432452342`.
  8394  	Name string `json:"name,omitempty"`
  8395  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8396  	// unconditionally include in API requests. By default, fields with empty or
  8397  	// default values are omitted from API requests. See
  8398  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8399  	// details.
  8400  	ForceSendFields []string `json:"-"`
  8401  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8402  	// requests with the JSON null value. By default, fields with empty values are
  8403  	// omitted from API requests. See
  8404  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8405  	NullFields []string `json:"-"`
  8406  }
  8407  
  8408  func (s *GooglePrivacyDlpV2StoredType) MarshalJSON() ([]byte, error) {
  8409  	type NoMethod GooglePrivacyDlpV2StoredType
  8410  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8411  }
  8412  
  8413  // GooglePrivacyDlpV2SummaryResult: A collection that informs the user the
  8414  // number of times a particular `TransformationResultCode` and error details
  8415  // occurred.
  8416  type GooglePrivacyDlpV2SummaryResult struct {
  8417  	// Code: Outcome of the transformation.
  8418  	//
  8419  	// Possible values:
  8420  	//   "TRANSFORMATION_RESULT_CODE_UNSPECIFIED" - Unused
  8421  	//   "SUCCESS" - Transformation completed without an error.
  8422  	//   "ERROR" - Transformation had an error.
  8423  	Code string `json:"code,omitempty"`
  8424  	// Count: Number of transformations counted by this result.
  8425  	Count int64 `json:"count,omitempty,string"`
  8426  	// Details: A place for warnings or errors to show up if a transformation
  8427  	// didn't work as expected.
  8428  	Details string `json:"details,omitempty"`
  8429  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  8430  	// include in API requests. By default, fields with empty or default values are
  8431  	// omitted from API requests. See
  8432  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8433  	// details.
  8434  	ForceSendFields []string `json:"-"`
  8435  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  8436  	// with the JSON null value. By default, fields with empty values are omitted
  8437  	// from API requests. See
  8438  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8439  	NullFields []string `json:"-"`
  8440  }
  8441  
  8442  func (s *GooglePrivacyDlpV2SummaryResult) MarshalJSON() ([]byte, error) {
  8443  	type NoMethod GooglePrivacyDlpV2SummaryResult
  8444  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8445  }
  8446  
  8447  // GooglePrivacyDlpV2SurrogateType: Message for detecting output from
  8448  // deidentification transformations such as `CryptoReplaceFfxFpeConfig`
  8449  // (https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
  8450  // These types of transformations are those that perform pseudonymization,
  8451  // thereby producing a "surrogate" as output. This should be used in
  8452  // conjunction with a field on the transformation such as
  8453  // `surrogate_info_type`. This CustomInfoType does not support the use of
  8454  // `detection_rules`.
  8455  type GooglePrivacyDlpV2SurrogateType struct {
  8456  }
  8457  
  8458  // GooglePrivacyDlpV2Table: Structured content to inspect. Up to 50,000
  8459  // `Value`s per request allowed. See
  8460  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
  8461  // to learn more.
  8462  type GooglePrivacyDlpV2Table struct {
  8463  	// Headers: Headers of the table.
  8464  	Headers []*GooglePrivacyDlpV2FieldId `json:"headers,omitempty"`
  8465  	// Rows: Rows of the table.
  8466  	Rows []*GooglePrivacyDlpV2Row `json:"rows,omitempty"`
  8467  	// ForceSendFields is a list of field names (e.g. "Headers") to unconditionally
  8468  	// include in API requests. By default, fields with empty or default values are
  8469  	// omitted from API requests. See
  8470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8471  	// details.
  8472  	ForceSendFields []string `json:"-"`
  8473  	// NullFields is a list of field names (e.g. "Headers") to include in API
  8474  	// requests with the JSON null value. By default, fields with empty values are
  8475  	// omitted from API requests. See
  8476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8477  	NullFields []string `json:"-"`
  8478  }
  8479  
  8480  func (s *GooglePrivacyDlpV2Table) MarshalJSON() ([]byte, error) {
  8481  	type NoMethod GooglePrivacyDlpV2Table
  8482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8483  }
  8484  
  8485  // GooglePrivacyDlpV2TableDataProfile: The profile for a scanned table.
  8486  type GooglePrivacyDlpV2TableDataProfile struct {
  8487  	// ConfigSnapshot: The snapshot of the configurations used to generate the
  8488  	// profile.
  8489  	ConfigSnapshot *GooglePrivacyDlpV2DataProfileConfigSnapshot `json:"configSnapshot,omitempty"`
  8490  	// CreateTime: The time at which the table was created.
  8491  	CreateTime string `json:"createTime,omitempty"`
  8492  	// DataRiskLevel: The data risk level of this table.
  8493  	DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"`
  8494  	// DataSourceType: The resource type that was profiled.
  8495  	DataSourceType *GooglePrivacyDlpV2DataSourceType `json:"dataSourceType,omitempty"`
  8496  	// DatasetId: If the resource is BigQuery, the dataset ID.
  8497  	DatasetId string `json:"datasetId,omitempty"`
  8498  	// DatasetLocation: If supported, the location where the dataset's data is
  8499  	// stored. See https://cloud.google.com/bigquery/docs/locations for supported
  8500  	// locations.
  8501  	DatasetLocation string `json:"datasetLocation,omitempty"`
  8502  	// DatasetProjectId: The Google Cloud project ID that owns the resource.
  8503  	DatasetProjectId string `json:"datasetProjectId,omitempty"`
  8504  	// EncryptionStatus: How the table is encrypted.
  8505  	//
  8506  	// Possible values:
  8507  	//   "ENCRYPTION_STATUS_UNSPECIFIED" - Unused.
  8508  	//   "ENCRYPTION_GOOGLE_MANAGED" - Google manages server-side encryption keys
  8509  	// on your behalf.
  8510  	//   "ENCRYPTION_CUSTOMER_MANAGED" - Customer provides the key.
  8511  	EncryptionStatus string `json:"encryptionStatus,omitempty"`
  8512  	// ExpirationTime: Optional. The time when this table expires.
  8513  	ExpirationTime string `json:"expirationTime,omitempty"`
  8514  	// FailedColumnCount: The number of columns skipped in the table because of an
  8515  	// error.
  8516  	FailedColumnCount int64 `json:"failedColumnCount,omitempty,string"`
  8517  	// FullResource: The resource name of the resource profiled.
  8518  	// https://cloud.google.com/apis/design/resource_names#full_resource_name
  8519  	FullResource string `json:"fullResource,omitempty"`
  8520  	// LastModifiedTime: The time when this table was last modified
  8521  	LastModifiedTime string `json:"lastModifiedTime,omitempty"`
  8522  	// Name: The name of the profile.
  8523  	Name string `json:"name,omitempty"`
  8524  	// OtherInfoTypes: Other infoTypes found in this table's data.
  8525  	OtherInfoTypes []*GooglePrivacyDlpV2OtherInfoTypeSummary `json:"otherInfoTypes,omitempty"`
  8526  	// PredictedInfoTypes: The infoTypes predicted from this table's data.
  8527  	PredictedInfoTypes []*GooglePrivacyDlpV2InfoTypeSummary `json:"predictedInfoTypes,omitempty"`
  8528  	// ProfileLastGenerated: The last time the profile was generated.
  8529  	ProfileLastGenerated string `json:"profileLastGenerated,omitempty"`
  8530  	// ProfileStatus: Success or error status from the most recent profile
  8531  	// generation attempt. May be empty if the profile is still being generated.
  8532  	ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"`
  8533  	// ProjectDataProfile: The resource name to the project data profile for this
  8534  	// table.
  8535  	ProjectDataProfile string `json:"projectDataProfile,omitempty"`
  8536  	// ResourceLabels: The labels applied to the resource at the time the profile
  8537  	// was generated.
  8538  	ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
  8539  	// ResourceVisibility: How broadly a resource has been shared.
  8540  	//
  8541  	// Possible values:
  8542  	//   "RESOURCE_VISIBILITY_UNSPECIFIED" - Unused.
  8543  	//   "RESOURCE_VISIBILITY_PUBLIC" - Visible to any user.
  8544  	//   "RESOURCE_VISIBILITY_INCONCLUSIVE" - May contain public items. For
  8545  	// example, if a GCS bucket has uniform bucket level access disabled, some
  8546  	// objects inside it may be public.
  8547  	//   "RESOURCE_VISIBILITY_RESTRICTED" - Visible only to specific users.
  8548  	ResourceVisibility string `json:"resourceVisibility,omitempty"`
  8549  	// RowCount: Number of rows in the table when the profile was generated. This
  8550  	// will not be populated for BigLake tables.
  8551  	RowCount int64 `json:"rowCount,omitempty,string"`
  8552  	// ScannedColumnCount: The number of columns profiled in the table.
  8553  	ScannedColumnCount int64 `json:"scannedColumnCount,omitempty,string"`
  8554  	// SensitivityScore: The sensitivity score of this table.
  8555  	SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
  8556  	// State: State of a profile.
  8557  	//
  8558  	// Possible values:
  8559  	//   "STATE_UNSPECIFIED" - Unused.
  8560  	//   "RUNNING" - The profile is currently running. Once a profile has finished
  8561  	// it will transition to DONE.
  8562  	//   "DONE" - The profile is no longer generating. If
  8563  	// profile_status.status.code is 0, the profile succeeded, otherwise, it
  8564  	// failed.
  8565  	State string `json:"state,omitempty"`
  8566  	// TableId: If the resource is BigQuery, the BigQuery table ID.
  8567  	TableId string `json:"tableId,omitempty"`
  8568  	// TableSizeBytes: The size of the table when the profile was generated.
  8569  	TableSizeBytes int64 `json:"tableSizeBytes,omitempty,string"`
  8570  
  8571  	// ServerResponse contains the HTTP response code and headers from the server.
  8572  	googleapi.ServerResponse `json:"-"`
  8573  	// ForceSendFields is a list of field names (e.g. "ConfigSnapshot") to
  8574  	// unconditionally include in API requests. By default, fields with empty or
  8575  	// default values are omitted from API requests. See
  8576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8577  	// details.
  8578  	ForceSendFields []string `json:"-"`
  8579  	// NullFields is a list of field names (e.g. "ConfigSnapshot") to include in
  8580  	// API requests with the JSON null value. By default, fields with empty values
  8581  	// are omitted from API requests. See
  8582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8583  	NullFields []string `json:"-"`
  8584  }
  8585  
  8586  func (s *GooglePrivacyDlpV2TableDataProfile) MarshalJSON() ([]byte, error) {
  8587  	type NoMethod GooglePrivacyDlpV2TableDataProfile
  8588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8589  }
  8590  
  8591  // GooglePrivacyDlpV2TableLocation: Location of a finding within a table.
  8592  type GooglePrivacyDlpV2TableLocation struct {
  8593  	// RowIndex: The zero-based index of the row where the finding is located. Only
  8594  	// populated for resources that have a natural ordering, not BigQuery. In
  8595  	// BigQuery, to identify the row a finding came from, populate
  8596  	// BigQueryOptions.identifying_fields with your primary key column names and
  8597  	// when you store the findings the value of those columns will be stored inside
  8598  	// of Finding.
  8599  	RowIndex int64 `json:"rowIndex,omitempty,string"`
  8600  	// ForceSendFields is a list of field names (e.g. "RowIndex") to
  8601  	// unconditionally include in API requests. By default, fields with empty or
  8602  	// default values are omitted from API requests. See
  8603  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8604  	// details.
  8605  	ForceSendFields []string `json:"-"`
  8606  	// NullFields is a list of field names (e.g. "RowIndex") to include in API
  8607  	// requests with the JSON null value. By default, fields with empty values are
  8608  	// omitted from API requests. See
  8609  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8610  	NullFields []string `json:"-"`
  8611  }
  8612  
  8613  func (s *GooglePrivacyDlpV2TableLocation) MarshalJSON() ([]byte, error) {
  8614  	type NoMethod GooglePrivacyDlpV2TableLocation
  8615  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8616  }
  8617  
  8618  // GooglePrivacyDlpV2TableOptions: Instructions regarding the table content
  8619  // being inspected.
  8620  type GooglePrivacyDlpV2TableOptions struct {
  8621  	// IdentifyingFields: The columns that are the primary keys for table objects
  8622  	// included in ContentItem. A copy of this cell's value will stored alongside
  8623  	// alongside each finding so that the finding can be traced to the specific row
  8624  	// it came from. No more than 3 may be provided.
  8625  	IdentifyingFields []*GooglePrivacyDlpV2FieldId `json:"identifyingFields,omitempty"`
  8626  	// ForceSendFields is a list of field names (e.g. "IdentifyingFields") to
  8627  	// unconditionally include in API requests. By default, fields with empty or
  8628  	// default values are omitted from API requests. See
  8629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8630  	// details.
  8631  	ForceSendFields []string `json:"-"`
  8632  	// NullFields is a list of field names (e.g. "IdentifyingFields") to include in
  8633  	// API requests with the JSON null value. By default, fields with empty values
  8634  	// are omitted from API requests. See
  8635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8636  	NullFields []string `json:"-"`
  8637  }
  8638  
  8639  func (s *GooglePrivacyDlpV2TableOptions) MarshalJSON() ([]byte, error) {
  8640  	type NoMethod GooglePrivacyDlpV2TableOptions
  8641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8642  }
  8643  
  8644  // GooglePrivacyDlpV2TaggedField: A column with a semantic tag attached.
  8645  type GooglePrivacyDlpV2TaggedField struct {
  8646  	// CustomTag: A column can be tagged with a custom tag. In this case, the user
  8647  	// must indicate an auxiliary table that contains statistical information on
  8648  	// the possible values of this column (below).
  8649  	CustomTag string `json:"customTag,omitempty"`
  8650  	// Field: Required. Identifies the column.
  8651  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  8652  	// Inferred: If no semantic tag is indicated, we infer the statistical model
  8653  	// from the distribution of values in the input data
  8654  	Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
  8655  	// InfoType: A column can be tagged with a InfoType to use the relevant public
  8656  	// dataset as a statistical model of population, if available. We currently
  8657  	// support US ZIP codes, region codes, ages and genders. To programmatically
  8658  	// obtain the list of supported InfoTypes, use ListInfoTypes with the
  8659  	// supported_by=RISK_ANALYSIS filter.
  8660  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  8661  	// ForceSendFields is a list of field names (e.g. "CustomTag") to
  8662  	// unconditionally include in API requests. By default, fields with empty or
  8663  	// default values are omitted from API requests. See
  8664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8665  	// details.
  8666  	ForceSendFields []string `json:"-"`
  8667  	// NullFields is a list of field names (e.g. "CustomTag") to include in API
  8668  	// requests with the JSON null value. By default, fields with empty values are
  8669  	// omitted from API requests. See
  8670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8671  	NullFields []string `json:"-"`
  8672  }
  8673  
  8674  func (s *GooglePrivacyDlpV2TaggedField) MarshalJSON() ([]byte, error) {
  8675  	type NoMethod GooglePrivacyDlpV2TaggedField
  8676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8677  }
  8678  
  8679  // GooglePrivacyDlpV2ThrowError: Throw an error and fail the request when a
  8680  // transformation error occurs.
  8681  type GooglePrivacyDlpV2ThrowError struct {
  8682  }
  8683  
  8684  // GooglePrivacyDlpV2TimePartConfig: For use with `Date`, `Timestamp`, and
  8685  // `TimeOfDay`, extract or preserve a portion of the value.
  8686  type GooglePrivacyDlpV2TimePartConfig struct {
  8687  	// PartToExtract: The part of the time to keep.
  8688  	//
  8689  	// Possible values:
  8690  	//   "TIME_PART_UNSPECIFIED" - Unused
  8691  	//   "YEAR" - [0-9999]
  8692  	//   "MONTH" - [1-12]
  8693  	//   "DAY_OF_MONTH" - [1-31]
  8694  	//   "DAY_OF_WEEK" - [1-7]
  8695  	//   "WEEK_OF_YEAR" - [1-53]
  8696  	//   "HOUR_OF_DAY" - [0-23]
  8697  	PartToExtract string `json:"partToExtract,omitempty"`
  8698  	// ForceSendFields is a list of field names (e.g. "PartToExtract") to
  8699  	// unconditionally include in API requests. By default, fields with empty or
  8700  	// default values are omitted from API requests. See
  8701  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8702  	// details.
  8703  	ForceSendFields []string `json:"-"`
  8704  	// NullFields is a list of field names (e.g. "PartToExtract") to include in API
  8705  	// requests with the JSON null value. By default, fields with empty values are
  8706  	// omitted from API requests. See
  8707  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8708  	NullFields []string `json:"-"`
  8709  }
  8710  
  8711  func (s *GooglePrivacyDlpV2TimePartConfig) MarshalJSON() ([]byte, error) {
  8712  	type NoMethod GooglePrivacyDlpV2TimePartConfig
  8713  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8714  }
  8715  
  8716  // GooglePrivacyDlpV2TimeZone: Time zone of the date time object.
  8717  type GooglePrivacyDlpV2TimeZone struct {
  8718  	// OffsetMinutes: Set only if the offset can be determined. Positive for time
  8719  	// ahead of UTC. E.g. For "UTC-9", this value is -540.
  8720  	OffsetMinutes int64 `json:"offsetMinutes,omitempty"`
  8721  	// ForceSendFields is a list of field names (e.g. "OffsetMinutes") to
  8722  	// unconditionally include in API requests. By default, fields with empty or
  8723  	// default values are omitted from API requests. See
  8724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8725  	// details.
  8726  	ForceSendFields []string `json:"-"`
  8727  	// NullFields is a list of field names (e.g. "OffsetMinutes") to include in API
  8728  	// requests with the JSON null value. By default, fields with empty values are
  8729  	// omitted from API requests. See
  8730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8731  	NullFields []string `json:"-"`
  8732  }
  8733  
  8734  func (s *GooglePrivacyDlpV2TimeZone) MarshalJSON() ([]byte, error) {
  8735  	type NoMethod GooglePrivacyDlpV2TimeZone
  8736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8737  }
  8738  
  8739  // GooglePrivacyDlpV2TimespanConfig: Configuration of the timespan of the items
  8740  // to include in scanning. Currently only supported when inspecting Cloud
  8741  // Storage and BigQuery.
  8742  type GooglePrivacyDlpV2TimespanConfig struct {
  8743  	// EnableAutoPopulationOfTimespanConfig: When the job is started by a
  8744  	// JobTrigger we will automatically figure out a valid start_time to avoid
  8745  	// scanning files that have not been modified since the last time the
  8746  	// JobTrigger executed. This will be based on the time of the execution of the
  8747  	// last run of the JobTrigger or the timespan end_time used in the last run of
  8748  	// the JobTrigger. **For BigQuery** Inspect jobs triggered by automatic
  8749  	// population will scan data that is at least three hours old when the job
  8750  	// starts. This is because streaming buffer rows are not read during inspection
  8751  	// and reading up to the current timestamp will result in skipped rows. See the
  8752  	// known issue
  8753  	// (https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data)
  8754  	// related to this operation.
  8755  	EnableAutoPopulationOfTimespanConfig bool `json:"enableAutoPopulationOfTimespanConfig,omitempty"`
  8756  	// EndTime: Exclude files, tables, or rows newer than this value. If not set,
  8757  	// no upper time limit is applied.
  8758  	EndTime string `json:"endTime,omitempty"`
  8759  	// StartTime: Exclude files, tables, or rows older than this value. If not set,
  8760  	// no lower time limit is applied.
  8761  	StartTime string `json:"startTime,omitempty"`
  8762  	// TimestampField: Specification of the field containing the timestamp of
  8763  	// scanned items. Used for data sources like Datastore and BigQuery. *For
  8764  	// BigQuery* If this value is not specified and the table was modified between
  8765  	// the given start and end times, the entire table will be scanned. If this
  8766  	// value is specified, then rows are filtered based on the given start and end
  8767  	// times. Rows with a `NULL` value in the provided BigQuery column are skipped.
  8768  	// Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
  8769  	// `TIMESTAMP`, and `DATETIME`. If your BigQuery table is partitioned at
  8770  	// ingestion time
  8771  	// (https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
  8772  	// you can use any of the following pseudo-columns as your timestamp field.
  8773  	// When used with Cloud DLP, these pseudo-column names are case sensitive. -
  8774  	// _PARTITIONTIME - _PARTITIONDATE - _PARTITION_LOAD_TIME *For Datastore* If
  8775  	// this value is specified, then entities are filtered based on the given start
  8776  	// and end times. If an entity does not contain the provided timestamp property
  8777  	// or contains empty or invalid values, then it is included. Valid data types
  8778  	// of the provided timestamp property are: `TIMESTAMP`. See the known issue
  8779  	// (https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan)
  8780  	// related to this operation.
  8781  	TimestampField *GooglePrivacyDlpV2FieldId `json:"timestampField,omitempty"`
  8782  	// ForceSendFields is a list of field names (e.g.
  8783  	// "EnableAutoPopulationOfTimespanConfig") to unconditionally include in API
  8784  	// requests. By default, fields with empty or default values are omitted from
  8785  	// API requests. See
  8786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8787  	// details.
  8788  	ForceSendFields []string `json:"-"`
  8789  	// NullFields is a list of field names (e.g.
  8790  	// "EnableAutoPopulationOfTimespanConfig") to include in API requests with the
  8791  	// JSON null value. By default, fields with empty values are omitted from API
  8792  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  8793  	// more details.
  8794  	NullFields []string `json:"-"`
  8795  }
  8796  
  8797  func (s *GooglePrivacyDlpV2TimespanConfig) MarshalJSON() ([]byte, error) {
  8798  	type NoMethod GooglePrivacyDlpV2TimespanConfig
  8799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8800  }
  8801  
  8802  // GooglePrivacyDlpV2TransformationConfig: User specified templates and configs
  8803  // for how to deidentify structured, unstructures, and image files. User must
  8804  // provide either a unstructured deidentify template or at least one redact
  8805  // image config.
  8806  type GooglePrivacyDlpV2TransformationConfig struct {
  8807  	// DeidentifyTemplate: De-identify template. If this template is specified, it
  8808  	// will serve as the default de-identify template. This template cannot contain
  8809  	// `record_transformations` since it can be used for unstructured content such
  8810  	// as free-form text files. If this template is not set, a default
  8811  	// `ReplaceWithInfoTypeConfig` will be used to de-identify unstructured
  8812  	// content.
  8813  	DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
  8814  	// ImageRedactTemplate: Image redact template. If this template is specified,
  8815  	// it will serve as the de-identify template for images. If this template is
  8816  	// not set, all findings in the image will be redacted with a black box.
  8817  	ImageRedactTemplate string `json:"imageRedactTemplate,omitempty"`
  8818  	// StructuredDeidentifyTemplate: Structured de-identify template. If this
  8819  	// template is specified, it will serve as the de-identify template for
  8820  	// structured content such as delimited files and tables. If this template is
  8821  	// not set but the `deidentify_template` is set, then `deidentify_template`
  8822  	// will also apply to the structured content. If neither template is set, a
  8823  	// default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
  8824  	// content.
  8825  	StructuredDeidentifyTemplate string `json:"structuredDeidentifyTemplate,omitempty"`
  8826  	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") to
  8827  	// unconditionally include in API requests. By default, fields with empty or
  8828  	// default values are omitted from API requests. See
  8829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8830  	// details.
  8831  	ForceSendFields []string `json:"-"`
  8832  	// NullFields is a list of field names (e.g. "DeidentifyTemplate") to include
  8833  	// in API requests with the JSON null value. By default, fields with empty
  8834  	// values are omitted from API requests. See
  8835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8836  	NullFields []string `json:"-"`
  8837  }
  8838  
  8839  func (s *GooglePrivacyDlpV2TransformationConfig) MarshalJSON() ([]byte, error) {
  8840  	type NoMethod GooglePrivacyDlpV2TransformationConfig
  8841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8842  }
  8843  
  8844  // GooglePrivacyDlpV2TransformationDescription: A flattened description of a
  8845  // `PrimitiveTransformation` or `RecordSuppression`.
  8846  type GooglePrivacyDlpV2TransformationDescription struct {
  8847  	// Condition: A human-readable string representation of the `RecordCondition`
  8848  	// corresponding to this transformation. Set if a `RecordCondition` was used to
  8849  	// determine whether or not to apply this transformation. Examples: *
  8850  	// (age_field > 85) * (age_field <= 18) * (zip_field exists) * (zip_field ==
  8851  	// 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field
  8852  	// <= 18) && (city_field exists)
  8853  	Condition string `json:"condition,omitempty"`
  8854  	// Description: A description of the transformation. This is empty for a
  8855  	// RECORD_SUPPRESSION, or is the output of calling toString() on the
  8856  	// `PrimitiveTransformation` protocol buffer message for any other type of
  8857  	// transformation.
  8858  	Description string `json:"description,omitempty"`
  8859  	// InfoType: Set if the transformation was limited to a specific `InfoType`.
  8860  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  8861  	// Type: The transformation type.
  8862  	//
  8863  	// Possible values:
  8864  	//   "TRANSFORMATION_TYPE_UNSPECIFIED" - Unused
  8865  	//   "RECORD_SUPPRESSION" - Record suppression
  8866  	//   "REPLACE_VALUE" - Replace value
  8867  	//   "REPLACE_DICTIONARY" - Replace value using a dictionary.
  8868  	//   "REDACT" - Redact
  8869  	//   "CHARACTER_MASK" - Character mask
  8870  	//   "CRYPTO_REPLACE_FFX_FPE" - FFX-FPE
  8871  	//   "FIXED_SIZE_BUCKETING" - Fixed size bucketing
  8872  	//   "BUCKETING" - Bucketing
  8873  	//   "REPLACE_WITH_INFO_TYPE" - Replace with info type
  8874  	//   "TIME_PART" - Time part
  8875  	//   "CRYPTO_HASH" - Crypto hash
  8876  	//   "DATE_SHIFT" - Date shift
  8877  	//   "CRYPTO_DETERMINISTIC_CONFIG" - Deterministic crypto
  8878  	//   "REDACT_IMAGE" - Redact image
  8879  	Type string `json:"type,omitempty"`
  8880  	// ForceSendFields is a list of field names (e.g. "Condition") to
  8881  	// unconditionally include in API requests. By default, fields with empty or
  8882  	// default values are omitted from API requests. See
  8883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8884  	// details.
  8885  	ForceSendFields []string `json:"-"`
  8886  	// NullFields is a list of field names (e.g. "Condition") to include in API
  8887  	// requests with the JSON null value. By default, fields with empty values are
  8888  	// omitted from API requests. See
  8889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8890  	NullFields []string `json:"-"`
  8891  }
  8892  
  8893  func (s *GooglePrivacyDlpV2TransformationDescription) MarshalJSON() ([]byte, error) {
  8894  	type NoMethod GooglePrivacyDlpV2TransformationDescription
  8895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8896  }
  8897  
  8898  // GooglePrivacyDlpV2TransformationDetails: Details about a single
  8899  // transformation. This object contains a description of the transformation,
  8900  // information about whether the transformation was successfully applied, and
  8901  // the precise location where the transformation occurred. These details are
  8902  // stored in a user-specified BigQuery table.
  8903  type GooglePrivacyDlpV2TransformationDetails struct {
  8904  	// ContainerName: The top level name of the container where the transformation
  8905  	// is located (this will be the source file name or table name).
  8906  	ContainerName string `json:"containerName,omitempty"`
  8907  	// ResourceName: The name of the job that completed the transformation.
  8908  	ResourceName string `json:"resourceName,omitempty"`
  8909  	// StatusDetails: Status of the transformation, if transformation was not
  8910  	// successful, this will specify what caused it to fail, otherwise it will show
  8911  	// that the transformation was successful.
  8912  	StatusDetails *GooglePrivacyDlpV2TransformationResultStatus `json:"statusDetails,omitempty"`
  8913  	// Transformation: Description of transformation. This would only contain more
  8914  	// than one element if there were multiple matching transformations and which
  8915  	// one to apply was ambiguous. Not set for states that contain no
  8916  	// transformation, currently only state that contains no transformation is
  8917  	// TransformationResultStateType.METADATA_UNRETRIEVABLE.
  8918  	Transformation []*GooglePrivacyDlpV2TransformationDescription `json:"transformation,omitempty"`
  8919  	// TransformationLocation: The precise location of the transformed content in
  8920  	// the original container.
  8921  	TransformationLocation *GooglePrivacyDlpV2TransformationLocation `json:"transformationLocation,omitempty"`
  8922  	// TransformedBytes: The number of bytes that were transformed. If
  8923  	// transformation was unsuccessful or did not take place because there was no
  8924  	// content to transform, this will be zero.
  8925  	TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
  8926  	// ForceSendFields is a list of field names (e.g. "ContainerName") to
  8927  	// unconditionally include in API requests. By default, fields with empty or
  8928  	// default values are omitted from API requests. See
  8929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8930  	// details.
  8931  	ForceSendFields []string `json:"-"`
  8932  	// NullFields is a list of field names (e.g. "ContainerName") to include in API
  8933  	// requests with the JSON null value. By default, fields with empty values are
  8934  	// omitted from API requests. See
  8935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8936  	NullFields []string `json:"-"`
  8937  }
  8938  
  8939  func (s *GooglePrivacyDlpV2TransformationDetails) MarshalJSON() ([]byte, error) {
  8940  	type NoMethod GooglePrivacyDlpV2TransformationDetails
  8941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8942  }
  8943  
  8944  // GooglePrivacyDlpV2TransformationDetailsStorageConfig: Config for storing
  8945  // transformation details.
  8946  type GooglePrivacyDlpV2TransformationDetailsStorageConfig struct {
  8947  	// Table: The BigQuery table in which to store the output. This may be an
  8948  	// existing table or in a new table in an existing dataset. If table_id is not
  8949  	// set a new one will be generated for you with the following format:
  8950  	// dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific time
  8951  	// zone will be used for generating the date details.
  8952  	Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
  8953  	// ForceSendFields is a list of field names (e.g. "Table") to unconditionally
  8954  	// include in API requests. By default, fields with empty or default values are
  8955  	// omitted from API requests. See
  8956  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8957  	// details.
  8958  	ForceSendFields []string `json:"-"`
  8959  	// NullFields is a list of field names (e.g. "Table") to include in API
  8960  	// requests with the JSON null value. By default, fields with empty values are
  8961  	// omitted from API requests. See
  8962  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8963  	NullFields []string `json:"-"`
  8964  }
  8965  
  8966  func (s *GooglePrivacyDlpV2TransformationDetailsStorageConfig) MarshalJSON() ([]byte, error) {
  8967  	type NoMethod GooglePrivacyDlpV2TransformationDetailsStorageConfig
  8968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8969  }
  8970  
  8971  // GooglePrivacyDlpV2TransformationErrorHandling: How to handle transformation
  8972  // errors during de-identification. A transformation error occurs when the
  8973  // requested transformation is incompatible with the data. For example, trying
  8974  // to de-identify an IP address using a `DateShift` transformation would result
  8975  // in a transformation error, since date info cannot be extracted from an IP
  8976  // address. Information about any incompatible transformations, and how they
  8977  // were handled, is returned in the response as part of the
  8978  // `TransformationOverviews`.
  8979  type GooglePrivacyDlpV2TransformationErrorHandling struct {
  8980  	// LeaveUntransformed: Ignore errors
  8981  	LeaveUntransformed *GooglePrivacyDlpV2LeaveUntransformed `json:"leaveUntransformed,omitempty"`
  8982  	// ThrowError: Throw an error
  8983  	ThrowError *GooglePrivacyDlpV2ThrowError `json:"throwError,omitempty"`
  8984  	// ForceSendFields is a list of field names (e.g. "LeaveUntransformed") to
  8985  	// unconditionally include in API requests. By default, fields with empty or
  8986  	// default values are omitted from API requests. See
  8987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8988  	// details.
  8989  	ForceSendFields []string `json:"-"`
  8990  	// NullFields is a list of field names (e.g. "LeaveUntransformed") to include
  8991  	// in API requests with the JSON null value. By default, fields with empty
  8992  	// values are omitted from API requests. See
  8993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8994  	NullFields []string `json:"-"`
  8995  }
  8996  
  8997  func (s *GooglePrivacyDlpV2TransformationErrorHandling) MarshalJSON() ([]byte, error) {
  8998  	type NoMethod GooglePrivacyDlpV2TransformationErrorHandling
  8999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9000  }
  9001  
  9002  // GooglePrivacyDlpV2TransformationLocation: Specifies the location of a
  9003  // transformation.
  9004  type GooglePrivacyDlpV2TransformationLocation struct {
  9005  	// ContainerType: Information about the functionality of the container where
  9006  	// this finding occurred, if available.
  9007  	//
  9008  	// Possible values:
  9009  	//   "TRANSFORM_UNKNOWN_CONTAINER" - Unused.
  9010  	//   "TRANSFORM_BODY" - Body of a file.
  9011  	//   "TRANSFORM_METADATA" - Metadata for a file.
  9012  	//   "TRANSFORM_TABLE" - A table.
  9013  	ContainerType string `json:"containerType,omitempty"`
  9014  	// FindingId: For infotype transformations, link to the corresponding findings
  9015  	// ID so that location information does not need to be duplicated. Each
  9016  	// findings ID correlates to an entry in the findings output table, this table
  9017  	// only gets created when users specify to save findings (add the save findings
  9018  	// action to the request).
  9019  	FindingId string `json:"findingId,omitempty"`
  9020  	// RecordTransformation: For record transformations, provide a field and
  9021  	// container information.
  9022  	RecordTransformation *GooglePrivacyDlpV2RecordTransformation `json:"recordTransformation,omitempty"`
  9023  	// ForceSendFields is a list of field names (e.g. "ContainerType") to
  9024  	// unconditionally include in API requests. By default, fields with empty or
  9025  	// default values are omitted from API requests. See
  9026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9027  	// details.
  9028  	ForceSendFields []string `json:"-"`
  9029  	// NullFields is a list of field names (e.g. "ContainerType") to include in API
  9030  	// requests with the JSON null value. By default, fields with empty values are
  9031  	// omitted from API requests. See
  9032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9033  	NullFields []string `json:"-"`
  9034  }
  9035  
  9036  func (s *GooglePrivacyDlpV2TransformationLocation) MarshalJSON() ([]byte, error) {
  9037  	type NoMethod GooglePrivacyDlpV2TransformationLocation
  9038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9039  }
  9040  
  9041  // GooglePrivacyDlpV2TransformationOverview: Overview of the modifications that
  9042  // occurred.
  9043  type GooglePrivacyDlpV2TransformationOverview struct {
  9044  	// TransformationSummaries: Transformations applied to the dataset.
  9045  	TransformationSummaries []*GooglePrivacyDlpV2TransformationSummary `json:"transformationSummaries,omitempty"`
  9046  	// TransformedBytes: Total size in bytes that were transformed in some way.
  9047  	TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
  9048  	// ForceSendFields is a list of field names (e.g. "TransformationSummaries") to
  9049  	// unconditionally include in API requests. By default, fields with empty or
  9050  	// default values are omitted from API requests. See
  9051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9052  	// details.
  9053  	ForceSendFields []string `json:"-"`
  9054  	// NullFields is a list of field names (e.g. "TransformationSummaries") to
  9055  	// include in API requests with the JSON null value. By default, fields with
  9056  	// empty values are omitted from API requests. See
  9057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9058  	NullFields []string `json:"-"`
  9059  }
  9060  
  9061  func (s *GooglePrivacyDlpV2TransformationOverview) MarshalJSON() ([]byte, error) {
  9062  	type NoMethod GooglePrivacyDlpV2TransformationOverview
  9063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9064  }
  9065  
  9066  // GooglePrivacyDlpV2TransformationResultStatus: The outcome of a
  9067  // transformation.
  9068  type GooglePrivacyDlpV2TransformationResultStatus struct {
  9069  	// Details: Detailed error codes and messages
  9070  	Details *GoogleRpcStatus `json:"details,omitempty"`
  9071  	// ResultStatusType: Transformation result status type, this will be either
  9072  	// SUCCESS, or it will be the reason for why the transformation was not
  9073  	// completely successful.
  9074  	//
  9075  	// Possible values:
  9076  	//   "STATE_TYPE_UNSPECIFIED" - Unused.
  9077  	//   "INVALID_TRANSFORM" - This will be set when a finding could not be
  9078  	// transformed (i.e. outside user set bucket range).
  9079  	//   "BIGQUERY_MAX_ROW_SIZE_EXCEEDED" - This will be set when a BigQuery
  9080  	// transformation was successful but could not be stored back in BigQuery
  9081  	// because the transformed row exceeds BigQuery's max row size.
  9082  	//   "METADATA_UNRETRIEVABLE" - This will be set when there is a finding in the
  9083  	// custom metadata of a file, but at the write time of the transformed file,
  9084  	// this key / value pair is unretrievable.
  9085  	//   "SUCCESS" - This will be set when the transformation and storing of it is
  9086  	// successful.
  9087  	ResultStatusType string `json:"resultStatusType,omitempty"`
  9088  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  9089  	// include in API requests. By default, fields with empty or default values are
  9090  	// omitted from API requests. See
  9091  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9092  	// details.
  9093  	ForceSendFields []string `json:"-"`
  9094  	// NullFields is a list of field names (e.g. "Details") to include in API
  9095  	// requests with the JSON null value. By default, fields with empty values are
  9096  	// omitted from API requests. See
  9097  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9098  	NullFields []string `json:"-"`
  9099  }
  9100  
  9101  func (s *GooglePrivacyDlpV2TransformationResultStatus) MarshalJSON() ([]byte, error) {
  9102  	type NoMethod GooglePrivacyDlpV2TransformationResultStatus
  9103  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9104  }
  9105  
  9106  // GooglePrivacyDlpV2TransformationSummary: Summary of a single transformation.
  9107  // Only one of 'transformation', 'field_transformation', or 'record_suppress'
  9108  // will be set.
  9109  type GooglePrivacyDlpV2TransformationSummary struct {
  9110  	// Field: Set if the transformation was limited to a specific FieldId.
  9111  	Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
  9112  	// FieldTransformations: The field transformation that was applied. If multiple
  9113  	// field transformations are requested for a single field, this list will
  9114  	// contain all of them; otherwise, only one is supplied.
  9115  	FieldTransformations []*GooglePrivacyDlpV2FieldTransformation `json:"fieldTransformations,omitempty"`
  9116  	// InfoType: Set if the transformation was limited to a specific InfoType.
  9117  	InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
  9118  	// RecordSuppress: The specific suppression option these stats apply to.
  9119  	RecordSuppress *GooglePrivacyDlpV2RecordSuppression `json:"recordSuppress,omitempty"`
  9120  	// Results: Collection of all transformations that took place or had an error.
  9121  	Results []*GooglePrivacyDlpV2SummaryResult `json:"results,omitempty"`
  9122  	// Transformation: The specific transformation these stats apply to.
  9123  	Transformation *GooglePrivacyDlpV2PrimitiveTransformation `json:"transformation,omitempty"`
  9124  	// TransformedBytes: Total size in bytes that were transformed in some way.
  9125  	TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
  9126  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  9127  	// include in API requests. By default, fields with empty or default values are
  9128  	// omitted from API requests. See
  9129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9130  	// details.
  9131  	ForceSendFields []string `json:"-"`
  9132  	// NullFields is a list of field names (e.g. "Field") to include in API
  9133  	// requests with the JSON null value. By default, fields with empty values are
  9134  	// omitted from API requests. See
  9135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9136  	NullFields []string `json:"-"`
  9137  }
  9138  
  9139  func (s *GooglePrivacyDlpV2TransformationSummary) MarshalJSON() ([]byte, error) {
  9140  	type NoMethod GooglePrivacyDlpV2TransformationSummary
  9141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9142  }
  9143  
  9144  // GooglePrivacyDlpV2TransientCryptoKey: Use this to have a random data crypto
  9145  // key generated. It will be discarded after the request finishes.
  9146  type GooglePrivacyDlpV2TransientCryptoKey struct {
  9147  	// Name: Required. Name of the key. This is an arbitrary string used to
  9148  	// differentiate different keys. A unique key is generated per name: two
  9149  	// separate `TransientCryptoKey` protos share the same generated key if their
  9150  	// names are the same. When the data crypto key is generated, this name is not
  9151  	// used in any way (repeating the api call will result in a different key being
  9152  	// generated).
  9153  	Name string `json:"name,omitempty"`
  9154  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  9155  	// include in API requests. By default, fields with empty or default values are
  9156  	// omitted from API requests. See
  9157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9158  	// details.
  9159  	ForceSendFields []string `json:"-"`
  9160  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  9161  	// with the JSON null value. By default, fields with empty values are omitted
  9162  	// from API requests. See
  9163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9164  	NullFields []string `json:"-"`
  9165  }
  9166  
  9167  func (s *GooglePrivacyDlpV2TransientCryptoKey) MarshalJSON() ([]byte, error) {
  9168  	type NoMethod GooglePrivacyDlpV2TransientCryptoKey
  9169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9170  }
  9171  
  9172  // GooglePrivacyDlpV2Trigger: What event needs to occur for a new job to be
  9173  // started.
  9174  type GooglePrivacyDlpV2Trigger struct {
  9175  	// Manual: For use with hybrid jobs. Jobs must be manually created and
  9176  	// finished.
  9177  	Manual *GooglePrivacyDlpV2Manual `json:"manual,omitempty"`
  9178  	// Schedule: Create a job on a repeating basis based on the elapse of time.
  9179  	Schedule *GooglePrivacyDlpV2Schedule `json:"schedule,omitempty"`
  9180  	// ForceSendFields is a list of field names (e.g. "Manual") to unconditionally
  9181  	// include in API requests. By default, fields with empty or default values are
  9182  	// omitted from API requests. See
  9183  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9184  	// details.
  9185  	ForceSendFields []string `json:"-"`
  9186  	// NullFields is a list of field names (e.g. "Manual") to include in API
  9187  	// requests with the JSON null value. By default, fields with empty values are
  9188  	// omitted from API requests. See
  9189  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9190  	NullFields []string `json:"-"`
  9191  }
  9192  
  9193  func (s *GooglePrivacyDlpV2Trigger) MarshalJSON() ([]byte, error) {
  9194  	type NoMethod GooglePrivacyDlpV2Trigger
  9195  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9196  }
  9197  
  9198  // GooglePrivacyDlpV2UnwrappedCryptoKey: Using raw keys is prone to security
  9199  // risks due to accidentally leaking the key. Choose another type of key if
  9200  // possible.
  9201  type GooglePrivacyDlpV2UnwrappedCryptoKey struct {
  9202  	// Key: Required. A 128/192/256 bit key.
  9203  	Key string `json:"key,omitempty"`
  9204  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  9205  	// include in API requests. By default, fields with empty or default values are
  9206  	// omitted from API requests. See
  9207  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9208  	// details.
  9209  	ForceSendFields []string `json:"-"`
  9210  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  9211  	// with the JSON null value. By default, fields with empty values are omitted
  9212  	// from API requests. See
  9213  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9214  	NullFields []string `json:"-"`
  9215  }
  9216  
  9217  func (s *GooglePrivacyDlpV2UnwrappedCryptoKey) MarshalJSON() ([]byte, error) {
  9218  	type NoMethod GooglePrivacyDlpV2UnwrappedCryptoKey
  9219  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9220  }
  9221  
  9222  // GooglePrivacyDlpV2UpdateConnectionRequest: Request message for
  9223  // UpdateConnection.
  9224  type GooglePrivacyDlpV2UpdateConnectionRequest struct {
  9225  	// Connection: Required. The connection with new values for the relevant
  9226  	// fields.
  9227  	Connection *GooglePrivacyDlpV2Connection `json:"connection,omitempty"`
  9228  	// UpdateMask: Optional. Mask to control which fields get updated.
  9229  	UpdateMask string `json:"updateMask,omitempty"`
  9230  	// ForceSendFields is a list of field names (e.g. "Connection") to
  9231  	// unconditionally include in API requests. By default, fields with empty or
  9232  	// default values are omitted from API requests. See
  9233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9234  	// details.
  9235  	ForceSendFields []string `json:"-"`
  9236  	// NullFields is a list of field names (e.g. "Connection") to include in API
  9237  	// requests with the JSON null value. By default, fields with empty values are
  9238  	// omitted from API requests. See
  9239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9240  	NullFields []string `json:"-"`
  9241  }
  9242  
  9243  func (s *GooglePrivacyDlpV2UpdateConnectionRequest) MarshalJSON() ([]byte, error) {
  9244  	type NoMethod GooglePrivacyDlpV2UpdateConnectionRequest
  9245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9246  }
  9247  
  9248  // GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest: Request message for
  9249  // UpdateDeidentifyTemplate.
  9250  type GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest struct {
  9251  	// DeidentifyTemplate: New DeidentifyTemplate value.
  9252  	DeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"deidentifyTemplate,omitempty"`
  9253  	// UpdateMask: Mask to control which fields get updated.
  9254  	UpdateMask string `json:"updateMask,omitempty"`
  9255  	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") to
  9256  	// unconditionally include in API requests. By default, fields with empty or
  9257  	// default values are omitted from API requests. See
  9258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9259  	// details.
  9260  	ForceSendFields []string `json:"-"`
  9261  	// NullFields is a list of field names (e.g. "DeidentifyTemplate") to include
  9262  	// in API requests with the JSON null value. By default, fields with empty
  9263  	// values are omitted from API requests. See
  9264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9265  	NullFields []string `json:"-"`
  9266  }
  9267  
  9268  func (s *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) MarshalJSON() ([]byte, error) {
  9269  	type NoMethod GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
  9270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9271  }
  9272  
  9273  // GooglePrivacyDlpV2UpdateDiscoveryConfigRequest: Request message for
  9274  // UpdateDiscoveryConfig.
  9275  type GooglePrivacyDlpV2UpdateDiscoveryConfigRequest struct {
  9276  	// DiscoveryConfig: Required. New DiscoveryConfig value.
  9277  	DiscoveryConfig *GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfig,omitempty"`
  9278  	// UpdateMask: Mask to control which fields get updated.
  9279  	UpdateMask string `json:"updateMask,omitempty"`
  9280  	// ForceSendFields is a list of field names (e.g. "DiscoveryConfig") to
  9281  	// unconditionally include in API requests. By default, fields with empty or
  9282  	// default values are omitted from API requests. See
  9283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9284  	// details.
  9285  	ForceSendFields []string `json:"-"`
  9286  	// NullFields is a list of field names (e.g. "DiscoveryConfig") to include in
  9287  	// API requests with the JSON null value. By default, fields with empty values
  9288  	// are omitted from API requests. See
  9289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9290  	NullFields []string `json:"-"`
  9291  }
  9292  
  9293  func (s *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) MarshalJSON() ([]byte, error) {
  9294  	type NoMethod GooglePrivacyDlpV2UpdateDiscoveryConfigRequest
  9295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9296  }
  9297  
  9298  // GooglePrivacyDlpV2UpdateInspectTemplateRequest: Request message for
  9299  // UpdateInspectTemplate.
  9300  type GooglePrivacyDlpV2UpdateInspectTemplateRequest struct {
  9301  	// InspectTemplate: New InspectTemplate value.
  9302  	InspectTemplate *GooglePrivacyDlpV2InspectTemplate `json:"inspectTemplate,omitempty"`
  9303  	// UpdateMask: Mask to control which fields get updated.
  9304  	UpdateMask string `json:"updateMask,omitempty"`
  9305  	// ForceSendFields is a list of field names (e.g. "InspectTemplate") to
  9306  	// unconditionally include in API requests. By default, fields with empty or
  9307  	// default values are omitted from API requests. See
  9308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9309  	// details.
  9310  	ForceSendFields []string `json:"-"`
  9311  	// NullFields is a list of field names (e.g. "InspectTemplate") to include in
  9312  	// API requests with the JSON null value. By default, fields with empty values
  9313  	// are omitted from API requests. See
  9314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9315  	NullFields []string `json:"-"`
  9316  }
  9317  
  9318  func (s *GooglePrivacyDlpV2UpdateInspectTemplateRequest) MarshalJSON() ([]byte, error) {
  9319  	type NoMethod GooglePrivacyDlpV2UpdateInspectTemplateRequest
  9320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9321  }
  9322  
  9323  // GooglePrivacyDlpV2UpdateJobTriggerRequest: Request message for
  9324  // UpdateJobTrigger.
  9325  type GooglePrivacyDlpV2UpdateJobTriggerRequest struct {
  9326  	// JobTrigger: New JobTrigger value.
  9327  	JobTrigger *GooglePrivacyDlpV2JobTrigger `json:"jobTrigger,omitempty"`
  9328  	// UpdateMask: Mask to control which fields get updated.
  9329  	UpdateMask string `json:"updateMask,omitempty"`
  9330  	// ForceSendFields is a list of field names (e.g. "JobTrigger") to
  9331  	// unconditionally include in API requests. By default, fields with empty or
  9332  	// default values are omitted from API requests. See
  9333  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9334  	// details.
  9335  	ForceSendFields []string `json:"-"`
  9336  	// NullFields is a list of field names (e.g. "JobTrigger") to include in API
  9337  	// requests with the JSON null value. By default, fields with empty values are
  9338  	// omitted from API requests. See
  9339  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9340  	NullFields []string `json:"-"`
  9341  }
  9342  
  9343  func (s *GooglePrivacyDlpV2UpdateJobTriggerRequest) MarshalJSON() ([]byte, error) {
  9344  	type NoMethod GooglePrivacyDlpV2UpdateJobTriggerRequest
  9345  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9346  }
  9347  
  9348  // GooglePrivacyDlpV2UpdateStoredInfoTypeRequest: Request message for
  9349  // UpdateStoredInfoType.
  9350  type GooglePrivacyDlpV2UpdateStoredInfoTypeRequest struct {
  9351  	// Config: Updated configuration for the storedInfoType. If not provided, a new
  9352  	// version of the storedInfoType will be created with the existing
  9353  	// configuration.
  9354  	Config *GooglePrivacyDlpV2StoredInfoTypeConfig `json:"config,omitempty"`
  9355  	// UpdateMask: Mask to control which fields get updated.
  9356  	UpdateMask string `json:"updateMask,omitempty"`
  9357  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  9358  	// include in API requests. By default, fields with empty or default values are
  9359  	// omitted from API requests. See
  9360  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9361  	// details.
  9362  	ForceSendFields []string `json:"-"`
  9363  	// NullFields is a list of field names (e.g. "Config") to include in API
  9364  	// requests with the JSON null value. By default, fields with empty values are
  9365  	// omitted from API requests. See
  9366  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9367  	NullFields []string `json:"-"`
  9368  }
  9369  
  9370  func (s *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) MarshalJSON() ([]byte, error) {
  9371  	type NoMethod GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
  9372  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9373  }
  9374  
  9375  // GooglePrivacyDlpV2Value: Set of primitive values supported by the system.
  9376  // Note that for the purposes of inspection or transformation, the number of
  9377  // bytes considered to comprise a 'Value' is based on its representation as a
  9378  // UTF-8 encoded string. For example, if 'integer_value' is set to 123456789,
  9379  // the number of bytes would be counted as 9, even though an int64 only holds
  9380  // up to 8 bytes of data.
  9381  type GooglePrivacyDlpV2Value struct {
  9382  	// BooleanValue: boolean
  9383  	BooleanValue bool `json:"booleanValue,omitempty"`
  9384  	// DateValue: date
  9385  	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
  9386  	// DayOfWeekValue: day of week
  9387  	//
  9388  	// Possible values:
  9389  	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
  9390  	//   "MONDAY" - Monday
  9391  	//   "TUESDAY" - Tuesday
  9392  	//   "WEDNESDAY" - Wednesday
  9393  	//   "THURSDAY" - Thursday
  9394  	//   "FRIDAY" - Friday
  9395  	//   "SATURDAY" - Saturday
  9396  	//   "SUNDAY" - Sunday
  9397  	DayOfWeekValue string `json:"dayOfWeekValue,omitempty"`
  9398  	// FloatValue: float
  9399  	FloatValue float64 `json:"floatValue,omitempty"`
  9400  	// IntegerValue: integer
  9401  	IntegerValue int64 `json:"integerValue,omitempty,string"`
  9402  	// StringValue: string
  9403  	StringValue string `json:"stringValue,omitempty"`
  9404  	// TimeValue: time of day
  9405  	TimeValue *GoogleTypeTimeOfDay `json:"timeValue,omitempty"`
  9406  	// TimestampValue: timestamp
  9407  	TimestampValue string `json:"timestampValue,omitempty"`
  9408  	// ForceSendFields is a list of field names (e.g. "BooleanValue") to
  9409  	// unconditionally include in API requests. By default, fields with empty or
  9410  	// default values are omitted from API requests. See
  9411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9412  	// details.
  9413  	ForceSendFields []string `json:"-"`
  9414  	// NullFields is a list of field names (e.g. "BooleanValue") to include in API
  9415  	// requests with the JSON null value. By default, fields with empty values are
  9416  	// omitted from API requests. See
  9417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9418  	NullFields []string `json:"-"`
  9419  }
  9420  
  9421  func (s *GooglePrivacyDlpV2Value) MarshalJSON() ([]byte, error) {
  9422  	type NoMethod GooglePrivacyDlpV2Value
  9423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9424  }
  9425  
  9426  func (s *GooglePrivacyDlpV2Value) UnmarshalJSON(data []byte) error {
  9427  	type NoMethod GooglePrivacyDlpV2Value
  9428  	var s1 struct {
  9429  		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
  9430  		*NoMethod
  9431  	}
  9432  	s1.NoMethod = (*NoMethod)(s)
  9433  	if err := json.Unmarshal(data, &s1); err != nil {
  9434  		return err
  9435  	}
  9436  	s.FloatValue = float64(s1.FloatValue)
  9437  	return nil
  9438  }
  9439  
  9440  // GooglePrivacyDlpV2ValueFrequency: A value of a field, including its
  9441  // frequency.
  9442  type GooglePrivacyDlpV2ValueFrequency struct {
  9443  	// Count: How many times the value is contained in the field.
  9444  	Count int64 `json:"count,omitempty,string"`
  9445  	// Value: A value contained in the field in question.
  9446  	Value *GooglePrivacyDlpV2Value `json:"value,omitempty"`
  9447  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  9448  	// include in API requests. By default, fields with empty or default values are
  9449  	// omitted from API requests. See
  9450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9451  	// details.
  9452  	ForceSendFields []string `json:"-"`
  9453  	// NullFields is a list of field names (e.g. "Count") to include in API
  9454  	// requests with the JSON null value. By default, fields with empty values are
  9455  	// omitted from API requests. See
  9456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9457  	NullFields []string `json:"-"`
  9458  }
  9459  
  9460  func (s *GooglePrivacyDlpV2ValueFrequency) MarshalJSON() ([]byte, error) {
  9461  	type NoMethod GooglePrivacyDlpV2ValueFrequency
  9462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9463  }
  9464  
  9465  // GooglePrivacyDlpV2VersionDescription: Details about each available version
  9466  // for an infotype.
  9467  type GooglePrivacyDlpV2VersionDescription struct {
  9468  	// Description: Description of the version.
  9469  	Description string `json:"description,omitempty"`
  9470  	// Version: Name of the version
  9471  	Version string `json:"version,omitempty"`
  9472  	// ForceSendFields is a list of field names (e.g. "Description") to
  9473  	// unconditionally include in API requests. By default, fields with empty or
  9474  	// default values are omitted from API requests. See
  9475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9476  	// details.
  9477  	ForceSendFields []string `json:"-"`
  9478  	// NullFields is a list of field names (e.g. "Description") to include in API
  9479  	// requests with the JSON null value. By default, fields with empty values are
  9480  	// omitted from API requests. See
  9481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9482  	NullFields []string `json:"-"`
  9483  }
  9484  
  9485  func (s *GooglePrivacyDlpV2VersionDescription) MarshalJSON() ([]byte, error) {
  9486  	type NoMethod GooglePrivacyDlpV2VersionDescription
  9487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9488  }
  9489  
  9490  // GooglePrivacyDlpV2WordList: Message defining a list of words or phrases to
  9491  // search for in the data.
  9492  type GooglePrivacyDlpV2WordList struct {
  9493  	// Words: Words or phrases defining the dictionary. The dictionary must contain
  9494  	// at least one phrase and every phrase must contain at least 2 characters that
  9495  	// are letters or digits. [required]
  9496  	Words []string `json:"words,omitempty"`
  9497  	// ForceSendFields is a list of field names (e.g. "Words") to unconditionally
  9498  	// include in API requests. By default, fields with empty or default values are
  9499  	// omitted from API requests. See
  9500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9501  	// details.
  9502  	ForceSendFields []string `json:"-"`
  9503  	// NullFields is a list of field names (e.g. "Words") to include in API
  9504  	// requests with the JSON null value. By default, fields with empty values are
  9505  	// omitted from API requests. See
  9506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9507  	NullFields []string `json:"-"`
  9508  }
  9509  
  9510  func (s *GooglePrivacyDlpV2WordList) MarshalJSON() ([]byte, error) {
  9511  	type NoMethod GooglePrivacyDlpV2WordList
  9512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9513  }
  9514  
  9515  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
  9516  // defining duplicated empty messages in your APIs. A typical example is to use
  9517  // it as the request or the response type of an API method. For instance:
  9518  // service Foo { rpc Bar(google.protobuf.Empty) returns
  9519  // (google.protobuf.Empty); }
  9520  type GoogleProtobufEmpty struct {
  9521  	// ServerResponse contains the HTTP response code and headers from the server.
  9522  	googleapi.ServerResponse `json:"-"`
  9523  }
  9524  
  9525  // GoogleRpcStatus: The `Status` type defines a logical error model that is
  9526  // suitable for different programming environments, including REST APIs and RPC
  9527  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
  9528  // contains three pieces of data: error code, error message, and error details.
  9529  // You can find out more about this error model and how to work with it in the
  9530  // API Design Guide (https://cloud.google.com/apis/design/errors).
  9531  type GoogleRpcStatus struct {
  9532  	// Code: The status code, which should be an enum value of google.rpc.Code.
  9533  	Code int64 `json:"code,omitempty"`
  9534  	// Details: A list of messages that carry the error details. There is a common
  9535  	// set of message types for APIs to use.
  9536  	Details []googleapi.RawMessage `json:"details,omitempty"`
  9537  	// Message: A developer-facing error message, which should be in English. Any
  9538  	// user-facing error message should be localized and sent in the
  9539  	// google.rpc.Status.details field, or localized by the client.
  9540  	Message string `json:"message,omitempty"`
  9541  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  9542  	// include in API requests. By default, fields with empty or default values are
  9543  	// omitted from API requests. See
  9544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9545  	// details.
  9546  	ForceSendFields []string `json:"-"`
  9547  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  9548  	// with the JSON null value. By default, fields with empty values are omitted
  9549  	// from API requests. See
  9550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9551  	NullFields []string `json:"-"`
  9552  }
  9553  
  9554  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
  9555  	type NoMethod GoogleRpcStatus
  9556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9557  }
  9558  
  9559  // GoogleTypeDate: Represents a whole or partial calendar date, such as a
  9560  // birthday. The time of day and time zone are either specified elsewhere or
  9561  // are insignificant. The date is relative to the Gregorian Calendar. This can
  9562  // represent one of the following: * A full date, with non-zero year, month,
  9563  // and day values. * A month and day, with a zero year (for example, an
  9564  // anniversary). * A year on its own, with a zero month and a zero day. * A
  9565  // year and month, with a zero day (for example, a credit card expiration
  9566  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  9567  // google.protobuf.Timestamp
  9568  type GoogleTypeDate struct {
  9569  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  9570  	// or 0 to specify a year by itself or a year and month where the day isn't
  9571  	// significant.
  9572  	Day int64 `json:"day,omitempty"`
  9573  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  9574  	// a month and day.
  9575  	Month int64 `json:"month,omitempty"`
  9576  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  9577  	// without a year.
  9578  	Year int64 `json:"year,omitempty"`
  9579  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  9580  	// include in API requests. By default, fields with empty or default values are
  9581  	// omitted from API requests. See
  9582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9583  	// details.
  9584  	ForceSendFields []string `json:"-"`
  9585  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  9586  	// with the JSON null value. By default, fields with empty values are omitted
  9587  	// from API requests. See
  9588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9589  	NullFields []string `json:"-"`
  9590  }
  9591  
  9592  func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
  9593  	type NoMethod GoogleTypeDate
  9594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9595  }
  9596  
  9597  // GoogleTypeTimeOfDay: Represents a time of day. The date and time zone are
  9598  // either not significant or are specified elsewhere. An API may choose to
  9599  // allow leap seconds. Related types are google.type.Date and
  9600  // `google.protobuf.Timestamp`.
  9601  type GoogleTypeTimeOfDay struct {
  9602  	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may
  9603  	// choose to allow the value "24:00:00" for scenarios like business closing
  9604  	// time.
  9605  	Hours int64 `json:"hours,omitempty"`
  9606  	// Minutes: Minutes of hour of day. Must be from 0 to 59.
  9607  	Minutes int64 `json:"minutes,omitempty"`
  9608  	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
  9609  	Nanos int64 `json:"nanos,omitempty"`
  9610  	// Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An
  9611  	// API may allow the value 60 if it allows leap-seconds.
  9612  	Seconds int64 `json:"seconds,omitempty"`
  9613  	// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
  9614  	// include in API requests. By default, fields with empty or default values are
  9615  	// omitted from API requests. See
  9616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9617  	// details.
  9618  	ForceSendFields []string `json:"-"`
  9619  	// NullFields is a list of field names (e.g. "Hours") to include in API
  9620  	// requests with the JSON null value. By default, fields with empty values are
  9621  	// omitted from API requests. See
  9622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9623  	NullFields []string `json:"-"`
  9624  }
  9625  
  9626  func (s *GoogleTypeTimeOfDay) MarshalJSON() ([]byte, error) {
  9627  	type NoMethod GoogleTypeTimeOfDay
  9628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9629  }
  9630  
  9631  type InfoTypesListCall struct {
  9632  	s            *Service
  9633  	urlParams_   gensupport.URLParams
  9634  	ifNoneMatch_ string
  9635  	ctx_         context.Context
  9636  	header_      http.Header
  9637  }
  9638  
  9639  // List: Returns a list of the sensitive information types that DLP API
  9640  // supports. See
  9641  // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
  9642  // to learn more.
  9643  func (r *InfoTypesService) List() *InfoTypesListCall {
  9644  	c := &InfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9645  	return c
  9646  }
  9647  
  9648  // Filter sets the optional parameter "filter": filter to only return infoTypes
  9649  // supported by certain parts of the API. Defaults to supported_by=INSPECT.
  9650  func (c *InfoTypesListCall) Filter(filter string) *InfoTypesListCall {
  9651  	c.urlParams_.Set("filter", filter)
  9652  	return c
  9653  }
  9654  
  9655  // LanguageCode sets the optional parameter "languageCode": BCP-47 language
  9656  // code for localized infoType friendly names. If omitted, or if localized
  9657  // strings are not available, en-US strings will be returned.
  9658  func (c *InfoTypesListCall) LanguageCode(languageCode string) *InfoTypesListCall {
  9659  	c.urlParams_.Set("languageCode", languageCode)
  9660  	return c
  9661  }
  9662  
  9663  // LocationId sets the optional parameter "locationId": Deprecated. This field
  9664  // has no effect.
  9665  func (c *InfoTypesListCall) LocationId(locationId string) *InfoTypesListCall {
  9666  	c.urlParams_.Set("locationId", locationId)
  9667  	return c
  9668  }
  9669  
  9670  // Parent sets the optional parameter "parent": The parent resource name. The
  9671  // format of this value is as follows: locations/ LOCATION_ID
  9672  func (c *InfoTypesListCall) Parent(parent string) *InfoTypesListCall {
  9673  	c.urlParams_.Set("parent", parent)
  9674  	return c
  9675  }
  9676  
  9677  // Fields allows partial responses to be retrieved. See
  9678  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9679  // details.
  9680  func (c *InfoTypesListCall) Fields(s ...googleapi.Field) *InfoTypesListCall {
  9681  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9682  	return c
  9683  }
  9684  
  9685  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9686  // object's ETag matches the given value. This is useful for getting updates
  9687  // only after the object has changed since the last request.
  9688  func (c *InfoTypesListCall) IfNoneMatch(entityTag string) *InfoTypesListCall {
  9689  	c.ifNoneMatch_ = entityTag
  9690  	return c
  9691  }
  9692  
  9693  // Context sets the context to be used in this call's Do method.
  9694  func (c *InfoTypesListCall) Context(ctx context.Context) *InfoTypesListCall {
  9695  	c.ctx_ = ctx
  9696  	return c
  9697  }
  9698  
  9699  // Header returns a http.Header that can be modified by the caller to add
  9700  // headers to the request.
  9701  func (c *InfoTypesListCall) Header() http.Header {
  9702  	if c.header_ == nil {
  9703  		c.header_ = make(http.Header)
  9704  	}
  9705  	return c.header_
  9706  }
  9707  
  9708  func (c *InfoTypesListCall) doRequest(alt string) (*http.Response, error) {
  9709  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9710  	if c.ifNoneMatch_ != "" {
  9711  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9712  	}
  9713  	var body io.Reader = nil
  9714  	c.urlParams_.Set("alt", alt)
  9715  	c.urlParams_.Set("prettyPrint", "false")
  9716  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/infoTypes")
  9717  	urls += "?" + c.urlParams_.Encode()
  9718  	req, err := http.NewRequest("GET", urls, body)
  9719  	if err != nil {
  9720  		return nil, err
  9721  	}
  9722  	req.Header = reqHeaders
  9723  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9724  }
  9725  
  9726  // Do executes the "dlp.infoTypes.list" call.
  9727  // Any non-2xx status code is an error. Response headers are in either
  9728  // *GooglePrivacyDlpV2ListInfoTypesResponse.ServerResponse.Header or (if a
  9729  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9730  // googleapi.IsNotModified to check whether the returned error was because
  9731  // http.StatusNotModified was returned.
  9732  func (c *InfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInfoTypesResponse, error) {
  9733  	gensupport.SetOptions(c.urlParams_, opts...)
  9734  	res, err := c.doRequest("json")
  9735  	if res != nil && res.StatusCode == http.StatusNotModified {
  9736  		if res.Body != nil {
  9737  			res.Body.Close()
  9738  		}
  9739  		return nil, gensupport.WrapError(&googleapi.Error{
  9740  			Code:   res.StatusCode,
  9741  			Header: res.Header,
  9742  		})
  9743  	}
  9744  	if err != nil {
  9745  		return nil, err
  9746  	}
  9747  	defer googleapi.CloseBody(res)
  9748  	if err := googleapi.CheckResponse(res); err != nil {
  9749  		return nil, gensupport.WrapError(err)
  9750  	}
  9751  	ret := &GooglePrivacyDlpV2ListInfoTypesResponse{
  9752  		ServerResponse: googleapi.ServerResponse{
  9753  			Header:         res.Header,
  9754  			HTTPStatusCode: res.StatusCode,
  9755  		},
  9756  	}
  9757  	target := &ret
  9758  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9759  		return nil, err
  9760  	}
  9761  	return ret, nil
  9762  }
  9763  
  9764  type LocationsInfoTypesListCall struct {
  9765  	s            *Service
  9766  	parent       string
  9767  	urlParams_   gensupport.URLParams
  9768  	ifNoneMatch_ string
  9769  	ctx_         context.Context
  9770  	header_      http.Header
  9771  }
  9772  
  9773  // List: Returns a list of the sensitive information types that DLP API
  9774  // supports. See
  9775  // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
  9776  // to learn more.
  9777  //
  9778  //   - parent: The parent resource name. The format of this value is as follows:
  9779  //     locations/ LOCATION_ID.
  9780  func (r *LocationsInfoTypesService) List(parent string) *LocationsInfoTypesListCall {
  9781  	c := &LocationsInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9782  	c.parent = parent
  9783  	return c
  9784  }
  9785  
  9786  // Filter sets the optional parameter "filter": filter to only return infoTypes
  9787  // supported by certain parts of the API. Defaults to supported_by=INSPECT.
  9788  func (c *LocationsInfoTypesListCall) Filter(filter string) *LocationsInfoTypesListCall {
  9789  	c.urlParams_.Set("filter", filter)
  9790  	return c
  9791  }
  9792  
  9793  // LanguageCode sets the optional parameter "languageCode": BCP-47 language
  9794  // code for localized infoType friendly names. If omitted, or if localized
  9795  // strings are not available, en-US strings will be returned.
  9796  func (c *LocationsInfoTypesListCall) LanguageCode(languageCode string) *LocationsInfoTypesListCall {
  9797  	c.urlParams_.Set("languageCode", languageCode)
  9798  	return c
  9799  }
  9800  
  9801  // LocationId sets the optional parameter "locationId": Deprecated. This field
  9802  // has no effect.
  9803  func (c *LocationsInfoTypesListCall) LocationId(locationId string) *LocationsInfoTypesListCall {
  9804  	c.urlParams_.Set("locationId", locationId)
  9805  	return c
  9806  }
  9807  
  9808  // Fields allows partial responses to be retrieved. See
  9809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9810  // details.
  9811  func (c *LocationsInfoTypesListCall) Fields(s ...googleapi.Field) *LocationsInfoTypesListCall {
  9812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9813  	return c
  9814  }
  9815  
  9816  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9817  // object's ETag matches the given value. This is useful for getting updates
  9818  // only after the object has changed since the last request.
  9819  func (c *LocationsInfoTypesListCall) IfNoneMatch(entityTag string) *LocationsInfoTypesListCall {
  9820  	c.ifNoneMatch_ = entityTag
  9821  	return c
  9822  }
  9823  
  9824  // Context sets the context to be used in this call's Do method.
  9825  func (c *LocationsInfoTypesListCall) Context(ctx context.Context) *LocationsInfoTypesListCall {
  9826  	c.ctx_ = ctx
  9827  	return c
  9828  }
  9829  
  9830  // Header returns a http.Header that can be modified by the caller to add
  9831  // headers to the request.
  9832  func (c *LocationsInfoTypesListCall) Header() http.Header {
  9833  	if c.header_ == nil {
  9834  		c.header_ = make(http.Header)
  9835  	}
  9836  	return c.header_
  9837  }
  9838  
  9839  func (c *LocationsInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
  9840  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9841  	if c.ifNoneMatch_ != "" {
  9842  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9843  	}
  9844  	var body io.Reader = nil
  9845  	c.urlParams_.Set("alt", alt)
  9846  	c.urlParams_.Set("prettyPrint", "false")
  9847  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/infoTypes")
  9848  	urls += "?" + c.urlParams_.Encode()
  9849  	req, err := http.NewRequest("GET", urls, body)
  9850  	if err != nil {
  9851  		return nil, err
  9852  	}
  9853  	req.Header = reqHeaders
  9854  	googleapi.Expand(req.URL, map[string]string{
  9855  		"parent": c.parent,
  9856  	})
  9857  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9858  }
  9859  
  9860  // Do executes the "dlp.locations.infoTypes.list" call.
  9861  // Any non-2xx status code is an error. Response headers are in either
  9862  // *GooglePrivacyDlpV2ListInfoTypesResponse.ServerResponse.Header or (if a
  9863  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9864  // googleapi.IsNotModified to check whether the returned error was because
  9865  // http.StatusNotModified was returned.
  9866  func (c *LocationsInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInfoTypesResponse, error) {
  9867  	gensupport.SetOptions(c.urlParams_, opts...)
  9868  	res, err := c.doRequest("json")
  9869  	if res != nil && res.StatusCode == http.StatusNotModified {
  9870  		if res.Body != nil {
  9871  			res.Body.Close()
  9872  		}
  9873  		return nil, gensupport.WrapError(&googleapi.Error{
  9874  			Code:   res.StatusCode,
  9875  			Header: res.Header,
  9876  		})
  9877  	}
  9878  	if err != nil {
  9879  		return nil, err
  9880  	}
  9881  	defer googleapi.CloseBody(res)
  9882  	if err := googleapi.CheckResponse(res); err != nil {
  9883  		return nil, gensupport.WrapError(err)
  9884  	}
  9885  	ret := &GooglePrivacyDlpV2ListInfoTypesResponse{
  9886  		ServerResponse: googleapi.ServerResponse{
  9887  			Header:         res.Header,
  9888  			HTTPStatusCode: res.StatusCode,
  9889  		},
  9890  	}
  9891  	target := &ret
  9892  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9893  		return nil, err
  9894  	}
  9895  	return ret, nil
  9896  }
  9897  
  9898  type OrganizationsDeidentifyTemplatesCreateCall struct {
  9899  	s                                                 *Service
  9900  	parentid                                          string
  9901  	googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
  9902  	urlParams_                                        gensupport.URLParams
  9903  	ctx_                                              context.Context
  9904  	header_                                           http.Header
  9905  }
  9906  
  9907  // Create: Creates a DeidentifyTemplate for reusing frequently used
  9908  // configuration for de-identifying content, images, and storage. See
  9909  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
  9910  // to learn more.
  9911  //
  9912  //   - parent: Parent resource name. The format of this value varies depending on
  9913  //     the scope of the request (project or organization) and whether you have
  9914  //     specified a processing location
  9915  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
  9916  //   - Projects scope, location specified:
  9917  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
  9918  //     location specified (defaults to global): `projects/`PROJECT_ID +
  9919  //     Organizations scope, location specified:
  9920  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
  9921  //     location specified (defaults to global): `organizations/`ORG_ID The
  9922  //     following example `parent` string specifies a parent project with the
  9923  //     identifier `example-project`, and specifies the `europe-west3` location
  9924  //     for processing data:
  9925  //     parent=projects/example-project/locations/europe-west3.
  9926  func (r *OrganizationsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *OrganizationsDeidentifyTemplatesCreateCall {
  9927  	c := &OrganizationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9928  	c.parentid = parentid
  9929  	c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
  9930  	return c
  9931  }
  9932  
  9933  // Fields allows partial responses to be retrieved. See
  9934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9935  // details.
  9936  func (c *OrganizationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesCreateCall {
  9937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9938  	return c
  9939  }
  9940  
  9941  // Context sets the context to be used in this call's Do method.
  9942  func (c *OrganizationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesCreateCall {
  9943  	c.ctx_ = ctx
  9944  	return c
  9945  }
  9946  
  9947  // Header returns a http.Header that can be modified by the caller to add
  9948  // headers to the request.
  9949  func (c *OrganizationsDeidentifyTemplatesCreateCall) Header() http.Header {
  9950  	if c.header_ == nil {
  9951  		c.header_ = make(http.Header)
  9952  	}
  9953  	return c.header_
  9954  }
  9955  
  9956  func (c *OrganizationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
  9957  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9958  	var body io.Reader = nil
  9959  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
  9960  	if err != nil {
  9961  		return nil, err
  9962  	}
  9963  	c.urlParams_.Set("alt", alt)
  9964  	c.urlParams_.Set("prettyPrint", "false")
  9965  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
  9966  	urls += "?" + c.urlParams_.Encode()
  9967  	req, err := http.NewRequest("POST", urls, body)
  9968  	if err != nil {
  9969  		return nil, err
  9970  	}
  9971  	req.Header = reqHeaders
  9972  	googleapi.Expand(req.URL, map[string]string{
  9973  		"parent": c.parentid,
  9974  	})
  9975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9976  }
  9977  
  9978  // Do executes the "dlp.organizations.deidentifyTemplates.create" call.
  9979  // Any non-2xx status code is an error. Response headers are in either
  9980  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
  9981  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9982  // googleapi.IsNotModified to check whether the returned error was because
  9983  // http.StatusNotModified was returned.
  9984  func (c *OrganizationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
  9985  	gensupport.SetOptions(c.urlParams_, opts...)
  9986  	res, err := c.doRequest("json")
  9987  	if res != nil && res.StatusCode == http.StatusNotModified {
  9988  		if res.Body != nil {
  9989  			res.Body.Close()
  9990  		}
  9991  		return nil, gensupport.WrapError(&googleapi.Error{
  9992  			Code:   res.StatusCode,
  9993  			Header: res.Header,
  9994  		})
  9995  	}
  9996  	if err != nil {
  9997  		return nil, err
  9998  	}
  9999  	defer googleapi.CloseBody(res)
 10000  	if err := googleapi.CheckResponse(res); err != nil {
 10001  		return nil, gensupport.WrapError(err)
 10002  	}
 10003  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 10004  		ServerResponse: googleapi.ServerResponse{
 10005  			Header:         res.Header,
 10006  			HTTPStatusCode: res.StatusCode,
 10007  		},
 10008  	}
 10009  	target := &ret
 10010  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10011  		return nil, err
 10012  	}
 10013  	return ret, nil
 10014  }
 10015  
 10016  type OrganizationsDeidentifyTemplatesDeleteCall struct {
 10017  	s          *Service
 10018  	name       string
 10019  	urlParams_ gensupport.URLParams
 10020  	ctx_       context.Context
 10021  	header_    http.Header
 10022  }
 10023  
 10024  // Delete: Deletes a DeidentifyTemplate. See
 10025  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 10026  // to learn more.
 10027  //
 10028  //   - name: Resource name of the organization and deidentify template to be
 10029  //     deleted, for example
 10030  //     `organizations/433245324/deidentifyTemplates/432452342` or
 10031  //     projects/project-id/deidentifyTemplates/432452342.
 10032  func (r *OrganizationsDeidentifyTemplatesService) Delete(name string) *OrganizationsDeidentifyTemplatesDeleteCall {
 10033  	c := &OrganizationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10034  	c.name = name
 10035  	return c
 10036  }
 10037  
 10038  // Fields allows partial responses to be retrieved. See
 10039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10040  // details.
 10041  func (c *OrganizationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesDeleteCall {
 10042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10043  	return c
 10044  }
 10045  
 10046  // Context sets the context to be used in this call's Do method.
 10047  func (c *OrganizationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesDeleteCall {
 10048  	c.ctx_ = ctx
 10049  	return c
 10050  }
 10051  
 10052  // Header returns a http.Header that can be modified by the caller to add
 10053  // headers to the request.
 10054  func (c *OrganizationsDeidentifyTemplatesDeleteCall) Header() http.Header {
 10055  	if c.header_ == nil {
 10056  		c.header_ = make(http.Header)
 10057  	}
 10058  	return c.header_
 10059  }
 10060  
 10061  func (c *OrganizationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 10062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10063  	var body io.Reader = nil
 10064  	c.urlParams_.Set("alt", alt)
 10065  	c.urlParams_.Set("prettyPrint", "false")
 10066  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 10067  	urls += "?" + c.urlParams_.Encode()
 10068  	req, err := http.NewRequest("DELETE", urls, body)
 10069  	if err != nil {
 10070  		return nil, err
 10071  	}
 10072  	req.Header = reqHeaders
 10073  	googleapi.Expand(req.URL, map[string]string{
 10074  		"name": c.name,
 10075  	})
 10076  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10077  }
 10078  
 10079  // Do executes the "dlp.organizations.deidentifyTemplates.delete" call.
 10080  // Any non-2xx status code is an error. Response headers are in either
 10081  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 10082  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10083  // check whether the returned error was because http.StatusNotModified was
 10084  // returned.
 10085  func (c *OrganizationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 10086  	gensupport.SetOptions(c.urlParams_, opts...)
 10087  	res, err := c.doRequest("json")
 10088  	if res != nil && res.StatusCode == http.StatusNotModified {
 10089  		if res.Body != nil {
 10090  			res.Body.Close()
 10091  		}
 10092  		return nil, gensupport.WrapError(&googleapi.Error{
 10093  			Code:   res.StatusCode,
 10094  			Header: res.Header,
 10095  		})
 10096  	}
 10097  	if err != nil {
 10098  		return nil, err
 10099  	}
 10100  	defer googleapi.CloseBody(res)
 10101  	if err := googleapi.CheckResponse(res); err != nil {
 10102  		return nil, gensupport.WrapError(err)
 10103  	}
 10104  	ret := &GoogleProtobufEmpty{
 10105  		ServerResponse: googleapi.ServerResponse{
 10106  			Header:         res.Header,
 10107  			HTTPStatusCode: res.StatusCode,
 10108  		},
 10109  	}
 10110  	target := &ret
 10111  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10112  		return nil, err
 10113  	}
 10114  	return ret, nil
 10115  }
 10116  
 10117  type OrganizationsDeidentifyTemplatesGetCall struct {
 10118  	s            *Service
 10119  	name         string
 10120  	urlParams_   gensupport.URLParams
 10121  	ifNoneMatch_ string
 10122  	ctx_         context.Context
 10123  	header_      http.Header
 10124  }
 10125  
 10126  // Get: Gets a DeidentifyTemplate. See
 10127  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 10128  // to learn more.
 10129  //
 10130  //   - name: Resource name of the organization and deidentify template to be
 10131  //     read, for example `organizations/433245324/deidentifyTemplates/432452342`
 10132  //     or projects/project-id/deidentifyTemplates/432452342.
 10133  func (r *OrganizationsDeidentifyTemplatesService) Get(name string) *OrganizationsDeidentifyTemplatesGetCall {
 10134  	c := &OrganizationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10135  	c.name = name
 10136  	return c
 10137  }
 10138  
 10139  // Fields allows partial responses to be retrieved. See
 10140  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10141  // details.
 10142  func (c *OrganizationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesGetCall {
 10143  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10144  	return c
 10145  }
 10146  
 10147  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10148  // object's ETag matches the given value. This is useful for getting updates
 10149  // only after the object has changed since the last request.
 10150  func (c *OrganizationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsDeidentifyTemplatesGetCall {
 10151  	c.ifNoneMatch_ = entityTag
 10152  	return c
 10153  }
 10154  
 10155  // Context sets the context to be used in this call's Do method.
 10156  func (c *OrganizationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesGetCall {
 10157  	c.ctx_ = ctx
 10158  	return c
 10159  }
 10160  
 10161  // Header returns a http.Header that can be modified by the caller to add
 10162  // headers to the request.
 10163  func (c *OrganizationsDeidentifyTemplatesGetCall) Header() http.Header {
 10164  	if c.header_ == nil {
 10165  		c.header_ = make(http.Header)
 10166  	}
 10167  	return c.header_
 10168  }
 10169  
 10170  func (c *OrganizationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 10171  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10172  	if c.ifNoneMatch_ != "" {
 10173  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10174  	}
 10175  	var body io.Reader = nil
 10176  	c.urlParams_.Set("alt", alt)
 10177  	c.urlParams_.Set("prettyPrint", "false")
 10178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 10179  	urls += "?" + c.urlParams_.Encode()
 10180  	req, err := http.NewRequest("GET", urls, body)
 10181  	if err != nil {
 10182  		return nil, err
 10183  	}
 10184  	req.Header = reqHeaders
 10185  	googleapi.Expand(req.URL, map[string]string{
 10186  		"name": c.name,
 10187  	})
 10188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10189  }
 10190  
 10191  // Do executes the "dlp.organizations.deidentifyTemplates.get" call.
 10192  // Any non-2xx status code is an error. Response headers are in either
 10193  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 10194  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10195  // googleapi.IsNotModified to check whether the returned error was because
 10196  // http.StatusNotModified was returned.
 10197  func (c *OrganizationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 10198  	gensupport.SetOptions(c.urlParams_, opts...)
 10199  	res, err := c.doRequest("json")
 10200  	if res != nil && res.StatusCode == http.StatusNotModified {
 10201  		if res.Body != nil {
 10202  			res.Body.Close()
 10203  		}
 10204  		return nil, gensupport.WrapError(&googleapi.Error{
 10205  			Code:   res.StatusCode,
 10206  			Header: res.Header,
 10207  		})
 10208  	}
 10209  	if err != nil {
 10210  		return nil, err
 10211  	}
 10212  	defer googleapi.CloseBody(res)
 10213  	if err := googleapi.CheckResponse(res); err != nil {
 10214  		return nil, gensupport.WrapError(err)
 10215  	}
 10216  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 10217  		ServerResponse: googleapi.ServerResponse{
 10218  			Header:         res.Header,
 10219  			HTTPStatusCode: res.StatusCode,
 10220  		},
 10221  	}
 10222  	target := &ret
 10223  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10224  		return nil, err
 10225  	}
 10226  	return ret, nil
 10227  }
 10228  
 10229  type OrganizationsDeidentifyTemplatesListCall struct {
 10230  	s            *Service
 10231  	parentid     string
 10232  	urlParams_   gensupport.URLParams
 10233  	ifNoneMatch_ string
 10234  	ctx_         context.Context
 10235  	header_      http.Header
 10236  }
 10237  
 10238  // List: Lists DeidentifyTemplates. See
 10239  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 10240  // to learn more.
 10241  //
 10242  //   - parent: Parent resource name. The format of this value varies depending on
 10243  //     the scope of the request (project or organization) and whether you have
 10244  //     specified a processing location
 10245  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 10246  //   - Projects scope, location specified:
 10247  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 10248  //     location specified (defaults to global): `projects/`PROJECT_ID +
 10249  //     Organizations scope, location specified:
 10250  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 10251  //     location specified (defaults to global): `organizations/`ORG_ID The
 10252  //     following example `parent` string specifies a parent project with the
 10253  //     identifier `example-project`, and specifies the `europe-west3` location
 10254  //     for processing data:
 10255  //     parent=projects/example-project/locations/europe-west3.
 10256  func (r *OrganizationsDeidentifyTemplatesService) List(parentid string) *OrganizationsDeidentifyTemplatesListCall {
 10257  	c := &OrganizationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10258  	c.parentid = parentid
 10259  	return c
 10260  }
 10261  
 10262  // LocationId sets the optional parameter "locationId": Deprecated. This field
 10263  // has no effect.
 10264  func (c *OrganizationsDeidentifyTemplatesListCall) LocationId(locationId string) *OrganizationsDeidentifyTemplatesListCall {
 10265  	c.urlParams_.Set("locationId", locationId)
 10266  	return c
 10267  }
 10268  
 10269  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 10270  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 10271  // insensitive. The default sorting order is ascending. Redundant space
 10272  // characters are insignificant. Example: `name asc,update_time, create_time
 10273  // desc` Supported fields are: - `create_time`: corresponds to the time the
 10274  // template was created. - `update_time`: corresponds to the time the template
 10275  // was last updated. - `name`: corresponds to the template's name. -
 10276  // `display_name`: corresponds to the template's display name.
 10277  func (c *OrganizationsDeidentifyTemplatesListCall) OrderBy(orderBy string) *OrganizationsDeidentifyTemplatesListCall {
 10278  	c.urlParams_.Set("orderBy", orderBy)
 10279  	return c
 10280  }
 10281  
 10282  // PageSize sets the optional parameter "pageSize": Size of the page. This
 10283  // value can be limited by the server. If zero server returns a page of max
 10284  // size 100.
 10285  func (c *OrganizationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *OrganizationsDeidentifyTemplatesListCall {
 10286  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10287  	return c
 10288  }
 10289  
 10290  // PageToken sets the optional parameter "pageToken": Page token to continue
 10291  // retrieval. Comes from the previous call to `ListDeidentifyTemplates`.
 10292  func (c *OrganizationsDeidentifyTemplatesListCall) PageToken(pageToken string) *OrganizationsDeidentifyTemplatesListCall {
 10293  	c.urlParams_.Set("pageToken", pageToken)
 10294  	return c
 10295  }
 10296  
 10297  // Fields allows partial responses to be retrieved. See
 10298  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10299  // details.
 10300  func (c *OrganizationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesListCall {
 10301  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10302  	return c
 10303  }
 10304  
 10305  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10306  // object's ETag matches the given value. This is useful for getting updates
 10307  // only after the object has changed since the last request.
 10308  func (c *OrganizationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsDeidentifyTemplatesListCall {
 10309  	c.ifNoneMatch_ = entityTag
 10310  	return c
 10311  }
 10312  
 10313  // Context sets the context to be used in this call's Do method.
 10314  func (c *OrganizationsDeidentifyTemplatesListCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesListCall {
 10315  	c.ctx_ = ctx
 10316  	return c
 10317  }
 10318  
 10319  // Header returns a http.Header that can be modified by the caller to add
 10320  // headers to the request.
 10321  func (c *OrganizationsDeidentifyTemplatesListCall) Header() http.Header {
 10322  	if c.header_ == nil {
 10323  		c.header_ = make(http.Header)
 10324  	}
 10325  	return c.header_
 10326  }
 10327  
 10328  func (c *OrganizationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 10329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10330  	if c.ifNoneMatch_ != "" {
 10331  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10332  	}
 10333  	var body io.Reader = nil
 10334  	c.urlParams_.Set("alt", alt)
 10335  	c.urlParams_.Set("prettyPrint", "false")
 10336  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 10337  	urls += "?" + c.urlParams_.Encode()
 10338  	req, err := http.NewRequest("GET", urls, body)
 10339  	if err != nil {
 10340  		return nil, err
 10341  	}
 10342  	req.Header = reqHeaders
 10343  	googleapi.Expand(req.URL, map[string]string{
 10344  		"parent": c.parentid,
 10345  	})
 10346  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10347  }
 10348  
 10349  // Do executes the "dlp.organizations.deidentifyTemplates.list" call.
 10350  // Any non-2xx status code is an error. Response headers are in either
 10351  // *GooglePrivacyDlpV2ListDeidentifyTemplatesResponse.ServerResponse.Header or
 10352  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 10353  // googleapi.IsNotModified to check whether the returned error was because
 10354  // http.StatusNotModified was returned.
 10355  func (c *OrganizationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
 10356  	gensupport.SetOptions(c.urlParams_, opts...)
 10357  	res, err := c.doRequest("json")
 10358  	if res != nil && res.StatusCode == http.StatusNotModified {
 10359  		if res.Body != nil {
 10360  			res.Body.Close()
 10361  		}
 10362  		return nil, gensupport.WrapError(&googleapi.Error{
 10363  			Code:   res.StatusCode,
 10364  			Header: res.Header,
 10365  		})
 10366  	}
 10367  	if err != nil {
 10368  		return nil, err
 10369  	}
 10370  	defer googleapi.CloseBody(res)
 10371  	if err := googleapi.CheckResponse(res); err != nil {
 10372  		return nil, gensupport.WrapError(err)
 10373  	}
 10374  	ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
 10375  		ServerResponse: googleapi.ServerResponse{
 10376  			Header:         res.Header,
 10377  			HTTPStatusCode: res.StatusCode,
 10378  		},
 10379  	}
 10380  	target := &ret
 10381  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10382  		return nil, err
 10383  	}
 10384  	return ret, nil
 10385  }
 10386  
 10387  // Pages invokes f for each page of results.
 10388  // A non-nil error returned from f will halt the iteration.
 10389  // The provided context supersedes any context provided to the Context method.
 10390  func (c *OrganizationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
 10391  	c.ctx_ = ctx
 10392  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10393  	for {
 10394  		x, err := c.Do()
 10395  		if err != nil {
 10396  			return err
 10397  		}
 10398  		if err := f(x); err != nil {
 10399  			return err
 10400  		}
 10401  		if x.NextPageToken == "" {
 10402  			return nil
 10403  		}
 10404  		c.PageToken(x.NextPageToken)
 10405  	}
 10406  }
 10407  
 10408  type OrganizationsDeidentifyTemplatesPatchCall struct {
 10409  	s                                                 *Service
 10410  	name                                              string
 10411  	googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
 10412  	urlParams_                                        gensupport.URLParams
 10413  	ctx_                                              context.Context
 10414  	header_                                           http.Header
 10415  }
 10416  
 10417  // Patch: Updates the DeidentifyTemplate. See
 10418  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 10419  // to learn more.
 10420  //
 10421  //   - name: Resource name of organization and deidentify template to be updated,
 10422  //     for example `organizations/433245324/deidentifyTemplates/432452342` or
 10423  //     projects/project-id/deidentifyTemplates/432452342.
 10424  func (r *OrganizationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *OrganizationsDeidentifyTemplatesPatchCall {
 10425  	c := &OrganizationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10426  	c.name = name
 10427  	c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
 10428  	return c
 10429  }
 10430  
 10431  // Fields allows partial responses to be retrieved. See
 10432  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10433  // details.
 10434  func (c *OrganizationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesPatchCall {
 10435  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10436  	return c
 10437  }
 10438  
 10439  // Context sets the context to be used in this call's Do method.
 10440  func (c *OrganizationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesPatchCall {
 10441  	c.ctx_ = ctx
 10442  	return c
 10443  }
 10444  
 10445  // Header returns a http.Header that can be modified by the caller to add
 10446  // headers to the request.
 10447  func (c *OrganizationsDeidentifyTemplatesPatchCall) Header() http.Header {
 10448  	if c.header_ == nil {
 10449  		c.header_ = make(http.Header)
 10450  	}
 10451  	return c.header_
 10452  }
 10453  
 10454  func (c *OrganizationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 10455  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10456  	var body io.Reader = nil
 10457  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
 10458  	if err != nil {
 10459  		return nil, err
 10460  	}
 10461  	c.urlParams_.Set("alt", alt)
 10462  	c.urlParams_.Set("prettyPrint", "false")
 10463  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 10464  	urls += "?" + c.urlParams_.Encode()
 10465  	req, err := http.NewRequest("PATCH", urls, body)
 10466  	if err != nil {
 10467  		return nil, err
 10468  	}
 10469  	req.Header = reqHeaders
 10470  	googleapi.Expand(req.URL, map[string]string{
 10471  		"name": c.name,
 10472  	})
 10473  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10474  }
 10475  
 10476  // Do executes the "dlp.organizations.deidentifyTemplates.patch" call.
 10477  // Any non-2xx status code is an error. Response headers are in either
 10478  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 10479  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10480  // googleapi.IsNotModified to check whether the returned error was because
 10481  // http.StatusNotModified was returned.
 10482  func (c *OrganizationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 10483  	gensupport.SetOptions(c.urlParams_, opts...)
 10484  	res, err := c.doRequest("json")
 10485  	if res != nil && res.StatusCode == http.StatusNotModified {
 10486  		if res.Body != nil {
 10487  			res.Body.Close()
 10488  		}
 10489  		return nil, gensupport.WrapError(&googleapi.Error{
 10490  			Code:   res.StatusCode,
 10491  			Header: res.Header,
 10492  		})
 10493  	}
 10494  	if err != nil {
 10495  		return nil, err
 10496  	}
 10497  	defer googleapi.CloseBody(res)
 10498  	if err := googleapi.CheckResponse(res); err != nil {
 10499  		return nil, gensupport.WrapError(err)
 10500  	}
 10501  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 10502  		ServerResponse: googleapi.ServerResponse{
 10503  			Header:         res.Header,
 10504  			HTTPStatusCode: res.StatusCode,
 10505  		},
 10506  	}
 10507  	target := &ret
 10508  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10509  		return nil, err
 10510  	}
 10511  	return ret, nil
 10512  }
 10513  
 10514  type OrganizationsInspectTemplatesCreateCall struct {
 10515  	s                                              *Service
 10516  	parentid                                       string
 10517  	googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
 10518  	urlParams_                                     gensupport.URLParams
 10519  	ctx_                                           context.Context
 10520  	header_                                        http.Header
 10521  }
 10522  
 10523  // Create: Creates an InspectTemplate for reusing frequently used configuration
 10524  // for inspecting content, images, and storage. See
 10525  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 10526  // to learn more.
 10527  //
 10528  //   - parent: Parent resource name. The format of this value varies depending on
 10529  //     the scope of the request (project or organization) and whether you have
 10530  //     specified a processing location
 10531  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 10532  //   - Projects scope, location specified:
 10533  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 10534  //     location specified (defaults to global): `projects/`PROJECT_ID +
 10535  //     Organizations scope, location specified:
 10536  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 10537  //     location specified (defaults to global): `organizations/`ORG_ID The
 10538  //     following example `parent` string specifies a parent project with the
 10539  //     identifier `example-project`, and specifies the `europe-west3` location
 10540  //     for processing data:
 10541  //     parent=projects/example-project/locations/europe-west3.
 10542  func (r *OrganizationsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *OrganizationsInspectTemplatesCreateCall {
 10543  	c := &OrganizationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10544  	c.parentid = parentid
 10545  	c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
 10546  	return c
 10547  }
 10548  
 10549  // Fields allows partial responses to be retrieved. See
 10550  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10551  // details.
 10552  func (c *OrganizationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesCreateCall {
 10553  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10554  	return c
 10555  }
 10556  
 10557  // Context sets the context to be used in this call's Do method.
 10558  func (c *OrganizationsInspectTemplatesCreateCall) Context(ctx context.Context) *OrganizationsInspectTemplatesCreateCall {
 10559  	c.ctx_ = ctx
 10560  	return c
 10561  }
 10562  
 10563  // Header returns a http.Header that can be modified by the caller to add
 10564  // headers to the request.
 10565  func (c *OrganizationsInspectTemplatesCreateCall) Header() http.Header {
 10566  	if c.header_ == nil {
 10567  		c.header_ = make(http.Header)
 10568  	}
 10569  	return c.header_
 10570  }
 10571  
 10572  func (c *OrganizationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 10573  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10574  	var body io.Reader = nil
 10575  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
 10576  	if err != nil {
 10577  		return nil, err
 10578  	}
 10579  	c.urlParams_.Set("alt", alt)
 10580  	c.urlParams_.Set("prettyPrint", "false")
 10581  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 10582  	urls += "?" + c.urlParams_.Encode()
 10583  	req, err := http.NewRequest("POST", urls, body)
 10584  	if err != nil {
 10585  		return nil, err
 10586  	}
 10587  	req.Header = reqHeaders
 10588  	googleapi.Expand(req.URL, map[string]string{
 10589  		"parent": c.parentid,
 10590  	})
 10591  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10592  }
 10593  
 10594  // Do executes the "dlp.organizations.inspectTemplates.create" call.
 10595  // Any non-2xx status code is an error. Response headers are in either
 10596  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 10597  // was returned at all) in error.(*googleapi.Error).Header. Use
 10598  // googleapi.IsNotModified to check whether the returned error was because
 10599  // http.StatusNotModified was returned.
 10600  func (c *OrganizationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 10601  	gensupport.SetOptions(c.urlParams_, opts...)
 10602  	res, err := c.doRequest("json")
 10603  	if res != nil && res.StatusCode == http.StatusNotModified {
 10604  		if res.Body != nil {
 10605  			res.Body.Close()
 10606  		}
 10607  		return nil, gensupport.WrapError(&googleapi.Error{
 10608  			Code:   res.StatusCode,
 10609  			Header: res.Header,
 10610  		})
 10611  	}
 10612  	if err != nil {
 10613  		return nil, err
 10614  	}
 10615  	defer googleapi.CloseBody(res)
 10616  	if err := googleapi.CheckResponse(res); err != nil {
 10617  		return nil, gensupport.WrapError(err)
 10618  	}
 10619  	ret := &GooglePrivacyDlpV2InspectTemplate{
 10620  		ServerResponse: googleapi.ServerResponse{
 10621  			Header:         res.Header,
 10622  			HTTPStatusCode: res.StatusCode,
 10623  		},
 10624  	}
 10625  	target := &ret
 10626  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10627  		return nil, err
 10628  	}
 10629  	return ret, nil
 10630  }
 10631  
 10632  type OrganizationsInspectTemplatesDeleteCall struct {
 10633  	s          *Service
 10634  	name       string
 10635  	urlParams_ gensupport.URLParams
 10636  	ctx_       context.Context
 10637  	header_    http.Header
 10638  }
 10639  
 10640  // Delete: Deletes an InspectTemplate. See
 10641  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 10642  // to learn more.
 10643  //
 10644  //   - name: Resource name of the organization and inspectTemplate to be deleted,
 10645  //     for example `organizations/433245324/inspectTemplates/432452342` or
 10646  //     projects/project-id/inspectTemplates/432452342.
 10647  func (r *OrganizationsInspectTemplatesService) Delete(name string) *OrganizationsInspectTemplatesDeleteCall {
 10648  	c := &OrganizationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10649  	c.name = name
 10650  	return c
 10651  }
 10652  
 10653  // Fields allows partial responses to be retrieved. See
 10654  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10655  // details.
 10656  func (c *OrganizationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesDeleteCall {
 10657  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10658  	return c
 10659  }
 10660  
 10661  // Context sets the context to be used in this call's Do method.
 10662  func (c *OrganizationsInspectTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsInspectTemplatesDeleteCall {
 10663  	c.ctx_ = ctx
 10664  	return c
 10665  }
 10666  
 10667  // Header returns a http.Header that can be modified by the caller to add
 10668  // headers to the request.
 10669  func (c *OrganizationsInspectTemplatesDeleteCall) Header() http.Header {
 10670  	if c.header_ == nil {
 10671  		c.header_ = make(http.Header)
 10672  	}
 10673  	return c.header_
 10674  }
 10675  
 10676  func (c *OrganizationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 10677  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10678  	var body io.Reader = nil
 10679  	c.urlParams_.Set("alt", alt)
 10680  	c.urlParams_.Set("prettyPrint", "false")
 10681  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 10682  	urls += "?" + c.urlParams_.Encode()
 10683  	req, err := http.NewRequest("DELETE", urls, body)
 10684  	if err != nil {
 10685  		return nil, err
 10686  	}
 10687  	req.Header = reqHeaders
 10688  	googleapi.Expand(req.URL, map[string]string{
 10689  		"name": c.name,
 10690  	})
 10691  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10692  }
 10693  
 10694  // Do executes the "dlp.organizations.inspectTemplates.delete" call.
 10695  // Any non-2xx status code is an error. Response headers are in either
 10696  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 10697  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10698  // check whether the returned error was because http.StatusNotModified was
 10699  // returned.
 10700  func (c *OrganizationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 10701  	gensupport.SetOptions(c.urlParams_, opts...)
 10702  	res, err := c.doRequest("json")
 10703  	if res != nil && res.StatusCode == http.StatusNotModified {
 10704  		if res.Body != nil {
 10705  			res.Body.Close()
 10706  		}
 10707  		return nil, gensupport.WrapError(&googleapi.Error{
 10708  			Code:   res.StatusCode,
 10709  			Header: res.Header,
 10710  		})
 10711  	}
 10712  	if err != nil {
 10713  		return nil, err
 10714  	}
 10715  	defer googleapi.CloseBody(res)
 10716  	if err := googleapi.CheckResponse(res); err != nil {
 10717  		return nil, gensupport.WrapError(err)
 10718  	}
 10719  	ret := &GoogleProtobufEmpty{
 10720  		ServerResponse: googleapi.ServerResponse{
 10721  			Header:         res.Header,
 10722  			HTTPStatusCode: res.StatusCode,
 10723  		},
 10724  	}
 10725  	target := &ret
 10726  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10727  		return nil, err
 10728  	}
 10729  	return ret, nil
 10730  }
 10731  
 10732  type OrganizationsInspectTemplatesGetCall struct {
 10733  	s            *Service
 10734  	name         string
 10735  	urlParams_   gensupport.URLParams
 10736  	ifNoneMatch_ string
 10737  	ctx_         context.Context
 10738  	header_      http.Header
 10739  }
 10740  
 10741  // Get: Gets an InspectTemplate. See
 10742  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 10743  // to learn more.
 10744  //
 10745  //   - name: Resource name of the organization and inspectTemplate to be read,
 10746  //     for example `organizations/433245324/inspectTemplates/432452342` or
 10747  //     projects/project-id/inspectTemplates/432452342.
 10748  func (r *OrganizationsInspectTemplatesService) Get(name string) *OrganizationsInspectTemplatesGetCall {
 10749  	c := &OrganizationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10750  	c.name = name
 10751  	return c
 10752  }
 10753  
 10754  // Fields allows partial responses to be retrieved. See
 10755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10756  // details.
 10757  func (c *OrganizationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesGetCall {
 10758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10759  	return c
 10760  }
 10761  
 10762  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10763  // object's ETag matches the given value. This is useful for getting updates
 10764  // only after the object has changed since the last request.
 10765  func (c *OrganizationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsInspectTemplatesGetCall {
 10766  	c.ifNoneMatch_ = entityTag
 10767  	return c
 10768  }
 10769  
 10770  // Context sets the context to be used in this call's Do method.
 10771  func (c *OrganizationsInspectTemplatesGetCall) Context(ctx context.Context) *OrganizationsInspectTemplatesGetCall {
 10772  	c.ctx_ = ctx
 10773  	return c
 10774  }
 10775  
 10776  // Header returns a http.Header that can be modified by the caller to add
 10777  // headers to the request.
 10778  func (c *OrganizationsInspectTemplatesGetCall) Header() http.Header {
 10779  	if c.header_ == nil {
 10780  		c.header_ = make(http.Header)
 10781  	}
 10782  	return c.header_
 10783  }
 10784  
 10785  func (c *OrganizationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 10786  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10787  	if c.ifNoneMatch_ != "" {
 10788  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10789  	}
 10790  	var body io.Reader = nil
 10791  	c.urlParams_.Set("alt", alt)
 10792  	c.urlParams_.Set("prettyPrint", "false")
 10793  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 10794  	urls += "?" + c.urlParams_.Encode()
 10795  	req, err := http.NewRequest("GET", urls, body)
 10796  	if err != nil {
 10797  		return nil, err
 10798  	}
 10799  	req.Header = reqHeaders
 10800  	googleapi.Expand(req.URL, map[string]string{
 10801  		"name": c.name,
 10802  	})
 10803  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10804  }
 10805  
 10806  // Do executes the "dlp.organizations.inspectTemplates.get" call.
 10807  // Any non-2xx status code is an error. Response headers are in either
 10808  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 10809  // was returned at all) in error.(*googleapi.Error).Header. Use
 10810  // googleapi.IsNotModified to check whether the returned error was because
 10811  // http.StatusNotModified was returned.
 10812  func (c *OrganizationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 10813  	gensupport.SetOptions(c.urlParams_, opts...)
 10814  	res, err := c.doRequest("json")
 10815  	if res != nil && res.StatusCode == http.StatusNotModified {
 10816  		if res.Body != nil {
 10817  			res.Body.Close()
 10818  		}
 10819  		return nil, gensupport.WrapError(&googleapi.Error{
 10820  			Code:   res.StatusCode,
 10821  			Header: res.Header,
 10822  		})
 10823  	}
 10824  	if err != nil {
 10825  		return nil, err
 10826  	}
 10827  	defer googleapi.CloseBody(res)
 10828  	if err := googleapi.CheckResponse(res); err != nil {
 10829  		return nil, gensupport.WrapError(err)
 10830  	}
 10831  	ret := &GooglePrivacyDlpV2InspectTemplate{
 10832  		ServerResponse: googleapi.ServerResponse{
 10833  			Header:         res.Header,
 10834  			HTTPStatusCode: res.StatusCode,
 10835  		},
 10836  	}
 10837  	target := &ret
 10838  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10839  		return nil, err
 10840  	}
 10841  	return ret, nil
 10842  }
 10843  
 10844  type OrganizationsInspectTemplatesListCall struct {
 10845  	s            *Service
 10846  	parentid     string
 10847  	urlParams_   gensupport.URLParams
 10848  	ifNoneMatch_ string
 10849  	ctx_         context.Context
 10850  	header_      http.Header
 10851  }
 10852  
 10853  // List: Lists InspectTemplates. See
 10854  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 10855  // to learn more.
 10856  //
 10857  //   - parent: Parent resource name. The format of this value varies depending on
 10858  //     the scope of the request (project or organization) and whether you have
 10859  //     specified a processing location
 10860  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 10861  //   - Projects scope, location specified:
 10862  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 10863  //     location specified (defaults to global): `projects/`PROJECT_ID +
 10864  //     Organizations scope, location specified:
 10865  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 10866  //     location specified (defaults to global): `organizations/`ORG_ID The
 10867  //     following example `parent` string specifies a parent project with the
 10868  //     identifier `example-project`, and specifies the `europe-west3` location
 10869  //     for processing data:
 10870  //     parent=projects/example-project/locations/europe-west3.
 10871  func (r *OrganizationsInspectTemplatesService) List(parentid string) *OrganizationsInspectTemplatesListCall {
 10872  	c := &OrganizationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10873  	c.parentid = parentid
 10874  	return c
 10875  }
 10876  
 10877  // LocationId sets the optional parameter "locationId": Deprecated. This field
 10878  // has no effect.
 10879  func (c *OrganizationsInspectTemplatesListCall) LocationId(locationId string) *OrganizationsInspectTemplatesListCall {
 10880  	c.urlParams_.Set("locationId", locationId)
 10881  	return c
 10882  }
 10883  
 10884  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 10885  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 10886  // insensitive. The default sorting order is ascending. Redundant space
 10887  // characters are insignificant. Example: `name asc,update_time, create_time
 10888  // desc` Supported fields are: - `create_time`: corresponds to the time the
 10889  // template was created. - `update_time`: corresponds to the time the template
 10890  // was last updated. - `name`: corresponds to the template's name. -
 10891  // `display_name`: corresponds to the template's display name.
 10892  func (c *OrganizationsInspectTemplatesListCall) OrderBy(orderBy string) *OrganizationsInspectTemplatesListCall {
 10893  	c.urlParams_.Set("orderBy", orderBy)
 10894  	return c
 10895  }
 10896  
 10897  // PageSize sets the optional parameter "pageSize": Size of the page. This
 10898  // value can be limited by the server. If zero server returns a page of max
 10899  // size 100.
 10900  func (c *OrganizationsInspectTemplatesListCall) PageSize(pageSize int64) *OrganizationsInspectTemplatesListCall {
 10901  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10902  	return c
 10903  }
 10904  
 10905  // PageToken sets the optional parameter "pageToken": Page token to continue
 10906  // retrieval. Comes from the previous call to `ListInspectTemplates`.
 10907  func (c *OrganizationsInspectTemplatesListCall) PageToken(pageToken string) *OrganizationsInspectTemplatesListCall {
 10908  	c.urlParams_.Set("pageToken", pageToken)
 10909  	return c
 10910  }
 10911  
 10912  // Fields allows partial responses to be retrieved. See
 10913  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10914  // details.
 10915  func (c *OrganizationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesListCall {
 10916  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10917  	return c
 10918  }
 10919  
 10920  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10921  // object's ETag matches the given value. This is useful for getting updates
 10922  // only after the object has changed since the last request.
 10923  func (c *OrganizationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsInspectTemplatesListCall {
 10924  	c.ifNoneMatch_ = entityTag
 10925  	return c
 10926  }
 10927  
 10928  // Context sets the context to be used in this call's Do method.
 10929  func (c *OrganizationsInspectTemplatesListCall) Context(ctx context.Context) *OrganizationsInspectTemplatesListCall {
 10930  	c.ctx_ = ctx
 10931  	return c
 10932  }
 10933  
 10934  // Header returns a http.Header that can be modified by the caller to add
 10935  // headers to the request.
 10936  func (c *OrganizationsInspectTemplatesListCall) Header() http.Header {
 10937  	if c.header_ == nil {
 10938  		c.header_ = make(http.Header)
 10939  	}
 10940  	return c.header_
 10941  }
 10942  
 10943  func (c *OrganizationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 10944  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10945  	if c.ifNoneMatch_ != "" {
 10946  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10947  	}
 10948  	var body io.Reader = nil
 10949  	c.urlParams_.Set("alt", alt)
 10950  	c.urlParams_.Set("prettyPrint", "false")
 10951  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 10952  	urls += "?" + c.urlParams_.Encode()
 10953  	req, err := http.NewRequest("GET", urls, body)
 10954  	if err != nil {
 10955  		return nil, err
 10956  	}
 10957  	req.Header = reqHeaders
 10958  	googleapi.Expand(req.URL, map[string]string{
 10959  		"parent": c.parentid,
 10960  	})
 10961  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10962  }
 10963  
 10964  // Do executes the "dlp.organizations.inspectTemplates.list" call.
 10965  // Any non-2xx status code is an error. Response headers are in either
 10966  // *GooglePrivacyDlpV2ListInspectTemplatesResponse.ServerResponse.Header or (if
 10967  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 10968  // googleapi.IsNotModified to check whether the returned error was because
 10969  // http.StatusNotModified was returned.
 10970  func (c *OrganizationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
 10971  	gensupport.SetOptions(c.urlParams_, opts...)
 10972  	res, err := c.doRequest("json")
 10973  	if res != nil && res.StatusCode == http.StatusNotModified {
 10974  		if res.Body != nil {
 10975  			res.Body.Close()
 10976  		}
 10977  		return nil, gensupport.WrapError(&googleapi.Error{
 10978  			Code:   res.StatusCode,
 10979  			Header: res.Header,
 10980  		})
 10981  	}
 10982  	if err != nil {
 10983  		return nil, err
 10984  	}
 10985  	defer googleapi.CloseBody(res)
 10986  	if err := googleapi.CheckResponse(res); err != nil {
 10987  		return nil, gensupport.WrapError(err)
 10988  	}
 10989  	ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
 10990  		ServerResponse: googleapi.ServerResponse{
 10991  			Header:         res.Header,
 10992  			HTTPStatusCode: res.StatusCode,
 10993  		},
 10994  	}
 10995  	target := &ret
 10996  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10997  		return nil, err
 10998  	}
 10999  	return ret, nil
 11000  }
 11001  
 11002  // Pages invokes f for each page of results.
 11003  // A non-nil error returned from f will halt the iteration.
 11004  // The provided context supersedes any context provided to the Context method.
 11005  func (c *OrganizationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
 11006  	c.ctx_ = ctx
 11007  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11008  	for {
 11009  		x, err := c.Do()
 11010  		if err != nil {
 11011  			return err
 11012  		}
 11013  		if err := f(x); err != nil {
 11014  			return err
 11015  		}
 11016  		if x.NextPageToken == "" {
 11017  			return nil
 11018  		}
 11019  		c.PageToken(x.NextPageToken)
 11020  	}
 11021  }
 11022  
 11023  type OrganizationsInspectTemplatesPatchCall struct {
 11024  	s                                              *Service
 11025  	name                                           string
 11026  	googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
 11027  	urlParams_                                     gensupport.URLParams
 11028  	ctx_                                           context.Context
 11029  	header_                                        http.Header
 11030  }
 11031  
 11032  // Patch: Updates the InspectTemplate. See
 11033  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 11034  // to learn more.
 11035  //
 11036  //   - name: Resource name of organization and inspectTemplate to be updated, for
 11037  //     example `organizations/433245324/inspectTemplates/432452342` or
 11038  //     projects/project-id/inspectTemplates/432452342.
 11039  func (r *OrganizationsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *OrganizationsInspectTemplatesPatchCall {
 11040  	c := &OrganizationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11041  	c.name = name
 11042  	c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
 11043  	return c
 11044  }
 11045  
 11046  // Fields allows partial responses to be retrieved. See
 11047  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11048  // details.
 11049  func (c *OrganizationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesPatchCall {
 11050  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11051  	return c
 11052  }
 11053  
 11054  // Context sets the context to be used in this call's Do method.
 11055  func (c *OrganizationsInspectTemplatesPatchCall) Context(ctx context.Context) *OrganizationsInspectTemplatesPatchCall {
 11056  	c.ctx_ = ctx
 11057  	return c
 11058  }
 11059  
 11060  // Header returns a http.Header that can be modified by the caller to add
 11061  // headers to the request.
 11062  func (c *OrganizationsInspectTemplatesPatchCall) Header() http.Header {
 11063  	if c.header_ == nil {
 11064  		c.header_ = make(http.Header)
 11065  	}
 11066  	return c.header_
 11067  }
 11068  
 11069  func (c *OrganizationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 11070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11071  	var body io.Reader = nil
 11072  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
 11073  	if err != nil {
 11074  		return nil, err
 11075  	}
 11076  	c.urlParams_.Set("alt", alt)
 11077  	c.urlParams_.Set("prettyPrint", "false")
 11078  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 11079  	urls += "?" + c.urlParams_.Encode()
 11080  	req, err := http.NewRequest("PATCH", urls, body)
 11081  	if err != nil {
 11082  		return nil, err
 11083  	}
 11084  	req.Header = reqHeaders
 11085  	googleapi.Expand(req.URL, map[string]string{
 11086  		"name": c.name,
 11087  	})
 11088  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11089  }
 11090  
 11091  // Do executes the "dlp.organizations.inspectTemplates.patch" call.
 11092  // Any non-2xx status code is an error. Response headers are in either
 11093  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 11094  // was returned at all) in error.(*googleapi.Error).Header. Use
 11095  // googleapi.IsNotModified to check whether the returned error was because
 11096  // http.StatusNotModified was returned.
 11097  func (c *OrganizationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 11098  	gensupport.SetOptions(c.urlParams_, opts...)
 11099  	res, err := c.doRequest("json")
 11100  	if res != nil && res.StatusCode == http.StatusNotModified {
 11101  		if res.Body != nil {
 11102  			res.Body.Close()
 11103  		}
 11104  		return nil, gensupport.WrapError(&googleapi.Error{
 11105  			Code:   res.StatusCode,
 11106  			Header: res.Header,
 11107  		})
 11108  	}
 11109  	if err != nil {
 11110  		return nil, err
 11111  	}
 11112  	defer googleapi.CloseBody(res)
 11113  	if err := googleapi.CheckResponse(res); err != nil {
 11114  		return nil, gensupport.WrapError(err)
 11115  	}
 11116  	ret := &GooglePrivacyDlpV2InspectTemplate{
 11117  		ServerResponse: googleapi.ServerResponse{
 11118  			Header:         res.Header,
 11119  			HTTPStatusCode: res.StatusCode,
 11120  		},
 11121  	}
 11122  	target := &ret
 11123  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11124  		return nil, err
 11125  	}
 11126  	return ret, nil
 11127  }
 11128  
 11129  type OrganizationsLocationsColumnDataProfilesGetCall struct {
 11130  	s            *Service
 11131  	name         string
 11132  	urlParams_   gensupport.URLParams
 11133  	ifNoneMatch_ string
 11134  	ctx_         context.Context
 11135  	header_      http.Header
 11136  }
 11137  
 11138  // Get: Gets a column data profile.
 11139  //
 11140  //   - name: Resource name, for example
 11141  //     `organizations/12345/locations/us/columnDataProfiles/53234423`.
 11142  func (r *OrganizationsLocationsColumnDataProfilesService) Get(name string) *OrganizationsLocationsColumnDataProfilesGetCall {
 11143  	c := &OrganizationsLocationsColumnDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11144  	c.name = name
 11145  	return c
 11146  }
 11147  
 11148  // Fields allows partial responses to be retrieved. See
 11149  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11150  // details.
 11151  func (c *OrganizationsLocationsColumnDataProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsColumnDataProfilesGetCall {
 11152  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11153  	return c
 11154  }
 11155  
 11156  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11157  // object's ETag matches the given value. This is useful for getting updates
 11158  // only after the object has changed since the last request.
 11159  func (c *OrganizationsLocationsColumnDataProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsColumnDataProfilesGetCall {
 11160  	c.ifNoneMatch_ = entityTag
 11161  	return c
 11162  }
 11163  
 11164  // Context sets the context to be used in this call's Do method.
 11165  func (c *OrganizationsLocationsColumnDataProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsColumnDataProfilesGetCall {
 11166  	c.ctx_ = ctx
 11167  	return c
 11168  }
 11169  
 11170  // Header returns a http.Header that can be modified by the caller to add
 11171  // headers to the request.
 11172  func (c *OrganizationsLocationsColumnDataProfilesGetCall) Header() http.Header {
 11173  	if c.header_ == nil {
 11174  		c.header_ = make(http.Header)
 11175  	}
 11176  	return c.header_
 11177  }
 11178  
 11179  func (c *OrganizationsLocationsColumnDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 11180  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11181  	if c.ifNoneMatch_ != "" {
 11182  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11183  	}
 11184  	var body io.Reader = nil
 11185  	c.urlParams_.Set("alt", alt)
 11186  	c.urlParams_.Set("prettyPrint", "false")
 11187  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 11188  	urls += "?" + c.urlParams_.Encode()
 11189  	req, err := http.NewRequest("GET", urls, body)
 11190  	if err != nil {
 11191  		return nil, err
 11192  	}
 11193  	req.Header = reqHeaders
 11194  	googleapi.Expand(req.URL, map[string]string{
 11195  		"name": c.name,
 11196  	})
 11197  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11198  }
 11199  
 11200  // Do executes the "dlp.organizations.locations.columnDataProfiles.get" call.
 11201  // Any non-2xx status code is an error. Response headers are in either
 11202  // *GooglePrivacyDlpV2ColumnDataProfile.ServerResponse.Header or (if a response
 11203  // was returned at all) in error.(*googleapi.Error).Header. Use
 11204  // googleapi.IsNotModified to check whether the returned error was because
 11205  // http.StatusNotModified was returned.
 11206  func (c *OrganizationsLocationsColumnDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ColumnDataProfile, error) {
 11207  	gensupport.SetOptions(c.urlParams_, opts...)
 11208  	res, err := c.doRequest("json")
 11209  	if res != nil && res.StatusCode == http.StatusNotModified {
 11210  		if res.Body != nil {
 11211  			res.Body.Close()
 11212  		}
 11213  		return nil, gensupport.WrapError(&googleapi.Error{
 11214  			Code:   res.StatusCode,
 11215  			Header: res.Header,
 11216  		})
 11217  	}
 11218  	if err != nil {
 11219  		return nil, err
 11220  	}
 11221  	defer googleapi.CloseBody(res)
 11222  	if err := googleapi.CheckResponse(res); err != nil {
 11223  		return nil, gensupport.WrapError(err)
 11224  	}
 11225  	ret := &GooglePrivacyDlpV2ColumnDataProfile{
 11226  		ServerResponse: googleapi.ServerResponse{
 11227  			Header:         res.Header,
 11228  			HTTPStatusCode: res.StatusCode,
 11229  		},
 11230  	}
 11231  	target := &ret
 11232  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11233  		return nil, err
 11234  	}
 11235  	return ret, nil
 11236  }
 11237  
 11238  type OrganizationsLocationsColumnDataProfilesListCall struct {
 11239  	s            *Service
 11240  	parent       string
 11241  	urlParams_   gensupport.URLParams
 11242  	ifNoneMatch_ string
 11243  	ctx_         context.Context
 11244  	header_      http.Header
 11245  }
 11246  
 11247  // List: Lists column data profiles for an organization.
 11248  //
 11249  //   - parent: Resource name of the organization or project, for example
 11250  //     `organizations/433245324/locations/europe` or
 11251  //     `projects/project-id/locations/asia`.
 11252  func (r *OrganizationsLocationsColumnDataProfilesService) List(parent string) *OrganizationsLocationsColumnDataProfilesListCall {
 11253  	c := &OrganizationsLocationsColumnDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11254  	c.parent = parent
 11255  	return c
 11256  }
 11257  
 11258  // Filter sets the optional parameter "filter": Allows filtering. Supported
 11259  // syntax: * Filter expressions are made up of one or more restrictions. *
 11260  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 11261  // of restrictions implicitly uses `AND`. * A restriction has the form of
 11262  // `{field} {operator} {value}`. * Supported fields/values: -
 11263  // `table_data_profile_name` - The name of the related table data profile. -
 11264  // `project_id` - The Google Cloud project ID. (REQUIRED) - `dataset_id` - The
 11265  // BigQuery dataset ID. (REQUIRED) - `table_id` - The BigQuery table ID.
 11266  // (REQUIRED) - `field_id` - The ID of the BigQuery field. - `info_type` - The
 11267  // infotype detected in the resource. - `sensitivity_level` - HIGH|MEDIUM|LOW -
 11268  // `data_risk_level`: How much risk is associated with this data. -
 11269  // `status_code` - an RPC status code as defined in
 11270  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
 11271  // The operator must be `=` for project_id, dataset_id, and table_id. Other
 11272  // filters also support `!=`. Examples: * project_id = 12345 AND status_code =
 11273  // 1 * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND
 11274  // info_type = STREET_ADDRESS The length of this field should be no more than
 11275  // 500 characters.
 11276  func (c *OrganizationsLocationsColumnDataProfilesListCall) Filter(filter string) *OrganizationsLocationsColumnDataProfilesListCall {
 11277  	c.urlParams_.Set("filter", filter)
 11278  	return c
 11279  }
 11280  
 11281  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 11282  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 11283  // insensitive. The default sorting order is ascending. Redundant space
 11284  // characters are insignificant. Only one order field at a time is allowed.
 11285  // Examples: * `project_id asc` * `table_id` * `sensitivity_level desc`
 11286  // Supported fields are: - `project_id`: The Google Cloud project ID. -
 11287  // `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a
 11288  // BigQuery table. - `sensitivity_level`: How sensitive the data in a column
 11289  // is, at most. - `data_risk_level`: How much risk is associated with this
 11290  // data. - `profile_last_generated`: When the profile was last updated in epoch
 11291  // seconds.
 11292  func (c *OrganizationsLocationsColumnDataProfilesListCall) OrderBy(orderBy string) *OrganizationsLocationsColumnDataProfilesListCall {
 11293  	c.urlParams_.Set("orderBy", orderBy)
 11294  	return c
 11295  }
 11296  
 11297  // PageSize sets the optional parameter "pageSize": Size of the page. This
 11298  // value can be limited by the server. If zero, server returns a page of max
 11299  // size 100.
 11300  func (c *OrganizationsLocationsColumnDataProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsColumnDataProfilesListCall {
 11301  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11302  	return c
 11303  }
 11304  
 11305  // PageToken sets the optional parameter "pageToken": Page token to continue
 11306  // retrieval.
 11307  func (c *OrganizationsLocationsColumnDataProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsColumnDataProfilesListCall {
 11308  	c.urlParams_.Set("pageToken", pageToken)
 11309  	return c
 11310  }
 11311  
 11312  // Fields allows partial responses to be retrieved. See
 11313  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11314  // details.
 11315  func (c *OrganizationsLocationsColumnDataProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsColumnDataProfilesListCall {
 11316  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11317  	return c
 11318  }
 11319  
 11320  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11321  // object's ETag matches the given value. This is useful for getting updates
 11322  // only after the object has changed since the last request.
 11323  func (c *OrganizationsLocationsColumnDataProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsColumnDataProfilesListCall {
 11324  	c.ifNoneMatch_ = entityTag
 11325  	return c
 11326  }
 11327  
 11328  // Context sets the context to be used in this call's Do method.
 11329  func (c *OrganizationsLocationsColumnDataProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsColumnDataProfilesListCall {
 11330  	c.ctx_ = ctx
 11331  	return c
 11332  }
 11333  
 11334  // Header returns a http.Header that can be modified by the caller to add
 11335  // headers to the request.
 11336  func (c *OrganizationsLocationsColumnDataProfilesListCall) Header() http.Header {
 11337  	if c.header_ == nil {
 11338  		c.header_ = make(http.Header)
 11339  	}
 11340  	return c.header_
 11341  }
 11342  
 11343  func (c *OrganizationsLocationsColumnDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
 11344  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11345  	if c.ifNoneMatch_ != "" {
 11346  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11347  	}
 11348  	var body io.Reader = nil
 11349  	c.urlParams_.Set("alt", alt)
 11350  	c.urlParams_.Set("prettyPrint", "false")
 11351  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/columnDataProfiles")
 11352  	urls += "?" + c.urlParams_.Encode()
 11353  	req, err := http.NewRequest("GET", urls, body)
 11354  	if err != nil {
 11355  		return nil, err
 11356  	}
 11357  	req.Header = reqHeaders
 11358  	googleapi.Expand(req.URL, map[string]string{
 11359  		"parent": c.parent,
 11360  	})
 11361  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11362  }
 11363  
 11364  // Do executes the "dlp.organizations.locations.columnDataProfiles.list" call.
 11365  // Any non-2xx status code is an error. Response headers are in either
 11366  // *GooglePrivacyDlpV2ListColumnDataProfilesResponse.ServerResponse.Header or
 11367  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 11368  // googleapi.IsNotModified to check whether the returned error was because
 11369  // http.StatusNotModified was returned.
 11370  func (c *OrganizationsLocationsColumnDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListColumnDataProfilesResponse, error) {
 11371  	gensupport.SetOptions(c.urlParams_, opts...)
 11372  	res, err := c.doRequest("json")
 11373  	if res != nil && res.StatusCode == http.StatusNotModified {
 11374  		if res.Body != nil {
 11375  			res.Body.Close()
 11376  		}
 11377  		return nil, gensupport.WrapError(&googleapi.Error{
 11378  			Code:   res.StatusCode,
 11379  			Header: res.Header,
 11380  		})
 11381  	}
 11382  	if err != nil {
 11383  		return nil, err
 11384  	}
 11385  	defer googleapi.CloseBody(res)
 11386  	if err := googleapi.CheckResponse(res); err != nil {
 11387  		return nil, gensupport.WrapError(err)
 11388  	}
 11389  	ret := &GooglePrivacyDlpV2ListColumnDataProfilesResponse{
 11390  		ServerResponse: googleapi.ServerResponse{
 11391  			Header:         res.Header,
 11392  			HTTPStatusCode: res.StatusCode,
 11393  		},
 11394  	}
 11395  	target := &ret
 11396  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11397  		return nil, err
 11398  	}
 11399  	return ret, nil
 11400  }
 11401  
 11402  // Pages invokes f for each page of results.
 11403  // A non-nil error returned from f will halt the iteration.
 11404  // The provided context supersedes any context provided to the Context method.
 11405  func (c *OrganizationsLocationsColumnDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListColumnDataProfilesResponse) error) error {
 11406  	c.ctx_ = ctx
 11407  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11408  	for {
 11409  		x, err := c.Do()
 11410  		if err != nil {
 11411  			return err
 11412  		}
 11413  		if err := f(x); err != nil {
 11414  			return err
 11415  		}
 11416  		if x.NextPageToken == "" {
 11417  			return nil
 11418  		}
 11419  		c.PageToken(x.NextPageToken)
 11420  	}
 11421  }
 11422  
 11423  type OrganizationsLocationsConnectionsSearchCall struct {
 11424  	s            *Service
 11425  	parent       string
 11426  	urlParams_   gensupport.URLParams
 11427  	ifNoneMatch_ string
 11428  	ctx_         context.Context
 11429  	header_      http.Header
 11430  }
 11431  
 11432  // Search: Searches for Connections in a parent.
 11433  //
 11434  //   - parent: Parent name, typically an organization, without location. For
 11435  //     example: `organizations/12345678`.
 11436  func (r *OrganizationsLocationsConnectionsService) Search(parent string) *OrganizationsLocationsConnectionsSearchCall {
 11437  	c := &OrganizationsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11438  	c.parent = parent
 11439  	return c
 11440  }
 11441  
 11442  // Filter sets the optional parameter "filter": * Supported fields/values -
 11443  // `state` - MISSING|AVAILABLE|ERROR
 11444  func (c *OrganizationsLocationsConnectionsSearchCall) Filter(filter string) *OrganizationsLocationsConnectionsSearchCall {
 11445  	c.urlParams_.Set("filter", filter)
 11446  	return c
 11447  }
 11448  
 11449  // PageSize sets the optional parameter "pageSize": Number of results per page,
 11450  // max 1000.
 11451  func (c *OrganizationsLocationsConnectionsSearchCall) PageSize(pageSize int64) *OrganizationsLocationsConnectionsSearchCall {
 11452  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11453  	return c
 11454  }
 11455  
 11456  // PageToken sets the optional parameter "pageToken": Page token from a
 11457  // previous page to return the next set of results. If set, all other request
 11458  // fields must match the original request.
 11459  func (c *OrganizationsLocationsConnectionsSearchCall) PageToken(pageToken string) *OrganizationsLocationsConnectionsSearchCall {
 11460  	c.urlParams_.Set("pageToken", pageToken)
 11461  	return c
 11462  }
 11463  
 11464  // Fields allows partial responses to be retrieved. See
 11465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11466  // details.
 11467  func (c *OrganizationsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsConnectionsSearchCall {
 11468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11469  	return c
 11470  }
 11471  
 11472  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11473  // object's ETag matches the given value. This is useful for getting updates
 11474  // only after the object has changed since the last request.
 11475  func (c *OrganizationsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *OrganizationsLocationsConnectionsSearchCall {
 11476  	c.ifNoneMatch_ = entityTag
 11477  	return c
 11478  }
 11479  
 11480  // Context sets the context to be used in this call's Do method.
 11481  func (c *OrganizationsLocationsConnectionsSearchCall) Context(ctx context.Context) *OrganizationsLocationsConnectionsSearchCall {
 11482  	c.ctx_ = ctx
 11483  	return c
 11484  }
 11485  
 11486  // Header returns a http.Header that can be modified by the caller to add
 11487  // headers to the request.
 11488  func (c *OrganizationsLocationsConnectionsSearchCall) Header() http.Header {
 11489  	if c.header_ == nil {
 11490  		c.header_ = make(http.Header)
 11491  	}
 11492  	return c.header_
 11493  }
 11494  
 11495  func (c *OrganizationsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) {
 11496  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11497  	if c.ifNoneMatch_ != "" {
 11498  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11499  	}
 11500  	var body io.Reader = nil
 11501  	c.urlParams_.Set("alt", alt)
 11502  	c.urlParams_.Set("prettyPrint", "false")
 11503  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections:search")
 11504  	urls += "?" + c.urlParams_.Encode()
 11505  	req, err := http.NewRequest("GET", urls, body)
 11506  	if err != nil {
 11507  		return nil, err
 11508  	}
 11509  	req.Header = reqHeaders
 11510  	googleapi.Expand(req.URL, map[string]string{
 11511  		"parent": c.parent,
 11512  	})
 11513  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11514  }
 11515  
 11516  // Do executes the "dlp.organizations.locations.connections.search" call.
 11517  // Any non-2xx status code is an error. Response headers are in either
 11518  // *GooglePrivacyDlpV2SearchConnectionsResponse.ServerResponse.Header or (if a
 11519  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11520  // googleapi.IsNotModified to check whether the returned error was because
 11521  // http.StatusNotModified was returned.
 11522  func (c *OrganizationsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2SearchConnectionsResponse, error) {
 11523  	gensupport.SetOptions(c.urlParams_, opts...)
 11524  	res, err := c.doRequest("json")
 11525  	if res != nil && res.StatusCode == http.StatusNotModified {
 11526  		if res.Body != nil {
 11527  			res.Body.Close()
 11528  		}
 11529  		return nil, gensupport.WrapError(&googleapi.Error{
 11530  			Code:   res.StatusCode,
 11531  			Header: res.Header,
 11532  		})
 11533  	}
 11534  	if err != nil {
 11535  		return nil, err
 11536  	}
 11537  	defer googleapi.CloseBody(res)
 11538  	if err := googleapi.CheckResponse(res); err != nil {
 11539  		return nil, gensupport.WrapError(err)
 11540  	}
 11541  	ret := &GooglePrivacyDlpV2SearchConnectionsResponse{
 11542  		ServerResponse: googleapi.ServerResponse{
 11543  			Header:         res.Header,
 11544  			HTTPStatusCode: res.StatusCode,
 11545  		},
 11546  	}
 11547  	target := &ret
 11548  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11549  		return nil, err
 11550  	}
 11551  	return ret, nil
 11552  }
 11553  
 11554  // Pages invokes f for each page of results.
 11555  // A non-nil error returned from f will halt the iteration.
 11556  // The provided context supersedes any context provided to the Context method.
 11557  func (c *OrganizationsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2SearchConnectionsResponse) error) error {
 11558  	c.ctx_ = ctx
 11559  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11560  	for {
 11561  		x, err := c.Do()
 11562  		if err != nil {
 11563  			return err
 11564  		}
 11565  		if err := f(x); err != nil {
 11566  			return err
 11567  		}
 11568  		if x.NextPageToken == "" {
 11569  			return nil
 11570  		}
 11571  		c.PageToken(x.NextPageToken)
 11572  	}
 11573  }
 11574  
 11575  type OrganizationsLocationsDeidentifyTemplatesCreateCall struct {
 11576  	s                                                 *Service
 11577  	parentid                                          string
 11578  	googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
 11579  	urlParams_                                        gensupport.URLParams
 11580  	ctx_                                              context.Context
 11581  	header_                                           http.Header
 11582  }
 11583  
 11584  // Create: Creates a DeidentifyTemplate for reusing frequently used
 11585  // configuration for de-identifying content, images, and storage. See
 11586  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 11587  // to learn more.
 11588  //
 11589  //   - parent: Parent resource name. The format of this value varies depending on
 11590  //     the scope of the request (project or organization) and whether you have
 11591  //     specified a processing location
 11592  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 11593  //   - Projects scope, location specified:
 11594  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 11595  //     location specified (defaults to global): `projects/`PROJECT_ID +
 11596  //     Organizations scope, location specified:
 11597  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 11598  //     location specified (defaults to global): `organizations/`ORG_ID The
 11599  //     following example `parent` string specifies a parent project with the
 11600  //     identifier `example-project`, and specifies the `europe-west3` location
 11601  //     for processing data:
 11602  //     parent=projects/example-project/locations/europe-west3.
 11603  func (r *OrganizationsLocationsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *OrganizationsLocationsDeidentifyTemplatesCreateCall {
 11604  	c := &OrganizationsLocationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11605  	c.parentid = parentid
 11606  	c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
 11607  	return c
 11608  }
 11609  
 11610  // Fields allows partial responses to be retrieved. See
 11611  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11612  // details.
 11613  func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesCreateCall {
 11614  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11615  	return c
 11616  }
 11617  
 11618  // Context sets the context to be used in this call's Do method.
 11619  func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesCreateCall {
 11620  	c.ctx_ = ctx
 11621  	return c
 11622  }
 11623  
 11624  // Header returns a http.Header that can be modified by the caller to add
 11625  // headers to the request.
 11626  func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Header() http.Header {
 11627  	if c.header_ == nil {
 11628  		c.header_ = make(http.Header)
 11629  	}
 11630  	return c.header_
 11631  }
 11632  
 11633  func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 11634  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11635  	var body io.Reader = nil
 11636  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
 11637  	if err != nil {
 11638  		return nil, err
 11639  	}
 11640  	c.urlParams_.Set("alt", alt)
 11641  	c.urlParams_.Set("prettyPrint", "false")
 11642  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 11643  	urls += "?" + c.urlParams_.Encode()
 11644  	req, err := http.NewRequest("POST", urls, body)
 11645  	if err != nil {
 11646  		return nil, err
 11647  	}
 11648  	req.Header = reqHeaders
 11649  	googleapi.Expand(req.URL, map[string]string{
 11650  		"parent": c.parentid,
 11651  	})
 11652  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11653  }
 11654  
 11655  // Do executes the "dlp.organizations.locations.deidentifyTemplates.create" call.
 11656  // Any non-2xx status code is an error. Response headers are in either
 11657  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 11658  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11659  // googleapi.IsNotModified to check whether the returned error was because
 11660  // http.StatusNotModified was returned.
 11661  func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 11662  	gensupport.SetOptions(c.urlParams_, opts...)
 11663  	res, err := c.doRequest("json")
 11664  	if res != nil && res.StatusCode == http.StatusNotModified {
 11665  		if res.Body != nil {
 11666  			res.Body.Close()
 11667  		}
 11668  		return nil, gensupport.WrapError(&googleapi.Error{
 11669  			Code:   res.StatusCode,
 11670  			Header: res.Header,
 11671  		})
 11672  	}
 11673  	if err != nil {
 11674  		return nil, err
 11675  	}
 11676  	defer googleapi.CloseBody(res)
 11677  	if err := googleapi.CheckResponse(res); err != nil {
 11678  		return nil, gensupport.WrapError(err)
 11679  	}
 11680  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 11681  		ServerResponse: googleapi.ServerResponse{
 11682  			Header:         res.Header,
 11683  			HTTPStatusCode: res.StatusCode,
 11684  		},
 11685  	}
 11686  	target := &ret
 11687  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11688  		return nil, err
 11689  	}
 11690  	return ret, nil
 11691  }
 11692  
 11693  type OrganizationsLocationsDeidentifyTemplatesDeleteCall struct {
 11694  	s          *Service
 11695  	name       string
 11696  	urlParams_ gensupport.URLParams
 11697  	ctx_       context.Context
 11698  	header_    http.Header
 11699  }
 11700  
 11701  // Delete: Deletes a DeidentifyTemplate. See
 11702  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 11703  // to learn more.
 11704  //
 11705  //   - name: Resource name of the organization and deidentify template to be
 11706  //     deleted, for example
 11707  //     `organizations/433245324/deidentifyTemplates/432452342` or
 11708  //     projects/project-id/deidentifyTemplates/432452342.
 11709  func (r *OrganizationsLocationsDeidentifyTemplatesService) Delete(name string) *OrganizationsLocationsDeidentifyTemplatesDeleteCall {
 11710  	c := &OrganizationsLocationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11711  	c.name = name
 11712  	return c
 11713  }
 11714  
 11715  // Fields allows partial responses to be retrieved. See
 11716  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11717  // details.
 11718  func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesDeleteCall {
 11719  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11720  	return c
 11721  }
 11722  
 11723  // Context sets the context to be used in this call's Do method.
 11724  func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesDeleteCall {
 11725  	c.ctx_ = ctx
 11726  	return c
 11727  }
 11728  
 11729  // Header returns a http.Header that can be modified by the caller to add
 11730  // headers to the request.
 11731  func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Header() http.Header {
 11732  	if c.header_ == nil {
 11733  		c.header_ = make(http.Header)
 11734  	}
 11735  	return c.header_
 11736  }
 11737  
 11738  func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11739  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11740  	var body io.Reader = nil
 11741  	c.urlParams_.Set("alt", alt)
 11742  	c.urlParams_.Set("prettyPrint", "false")
 11743  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 11744  	urls += "?" + c.urlParams_.Encode()
 11745  	req, err := http.NewRequest("DELETE", urls, body)
 11746  	if err != nil {
 11747  		return nil, err
 11748  	}
 11749  	req.Header = reqHeaders
 11750  	googleapi.Expand(req.URL, map[string]string{
 11751  		"name": c.name,
 11752  	})
 11753  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11754  }
 11755  
 11756  // Do executes the "dlp.organizations.locations.deidentifyTemplates.delete" call.
 11757  // Any non-2xx status code is an error. Response headers are in either
 11758  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11759  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11760  // check whether the returned error was because http.StatusNotModified was
 11761  // returned.
 11762  func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11763  	gensupport.SetOptions(c.urlParams_, opts...)
 11764  	res, err := c.doRequest("json")
 11765  	if res != nil && res.StatusCode == http.StatusNotModified {
 11766  		if res.Body != nil {
 11767  			res.Body.Close()
 11768  		}
 11769  		return nil, gensupport.WrapError(&googleapi.Error{
 11770  			Code:   res.StatusCode,
 11771  			Header: res.Header,
 11772  		})
 11773  	}
 11774  	if err != nil {
 11775  		return nil, err
 11776  	}
 11777  	defer googleapi.CloseBody(res)
 11778  	if err := googleapi.CheckResponse(res); err != nil {
 11779  		return nil, gensupport.WrapError(err)
 11780  	}
 11781  	ret := &GoogleProtobufEmpty{
 11782  		ServerResponse: googleapi.ServerResponse{
 11783  			Header:         res.Header,
 11784  			HTTPStatusCode: res.StatusCode,
 11785  		},
 11786  	}
 11787  	target := &ret
 11788  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11789  		return nil, err
 11790  	}
 11791  	return ret, nil
 11792  }
 11793  
 11794  type OrganizationsLocationsDeidentifyTemplatesGetCall struct {
 11795  	s            *Service
 11796  	name         string
 11797  	urlParams_   gensupport.URLParams
 11798  	ifNoneMatch_ string
 11799  	ctx_         context.Context
 11800  	header_      http.Header
 11801  }
 11802  
 11803  // Get: Gets a DeidentifyTemplate. See
 11804  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 11805  // to learn more.
 11806  //
 11807  //   - name: Resource name of the organization and deidentify template to be
 11808  //     read, for example `organizations/433245324/deidentifyTemplates/432452342`
 11809  //     or projects/project-id/deidentifyTemplates/432452342.
 11810  func (r *OrganizationsLocationsDeidentifyTemplatesService) Get(name string) *OrganizationsLocationsDeidentifyTemplatesGetCall {
 11811  	c := &OrganizationsLocationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11812  	c.name = name
 11813  	return c
 11814  }
 11815  
 11816  // Fields allows partial responses to be retrieved. See
 11817  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11818  // details.
 11819  func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesGetCall {
 11820  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11821  	return c
 11822  }
 11823  
 11824  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11825  // object's ETag matches the given value. This is useful for getting updates
 11826  // only after the object has changed since the last request.
 11827  func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDeidentifyTemplatesGetCall {
 11828  	c.ifNoneMatch_ = entityTag
 11829  	return c
 11830  }
 11831  
 11832  // Context sets the context to be used in this call's Do method.
 11833  func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesGetCall {
 11834  	c.ctx_ = ctx
 11835  	return c
 11836  }
 11837  
 11838  // Header returns a http.Header that can be modified by the caller to add
 11839  // headers to the request.
 11840  func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Header() http.Header {
 11841  	if c.header_ == nil {
 11842  		c.header_ = make(http.Header)
 11843  	}
 11844  	return c.header_
 11845  }
 11846  
 11847  func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 11848  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11849  	if c.ifNoneMatch_ != "" {
 11850  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11851  	}
 11852  	var body io.Reader = nil
 11853  	c.urlParams_.Set("alt", alt)
 11854  	c.urlParams_.Set("prettyPrint", "false")
 11855  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 11856  	urls += "?" + c.urlParams_.Encode()
 11857  	req, err := http.NewRequest("GET", urls, body)
 11858  	if err != nil {
 11859  		return nil, err
 11860  	}
 11861  	req.Header = reqHeaders
 11862  	googleapi.Expand(req.URL, map[string]string{
 11863  		"name": c.name,
 11864  	})
 11865  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11866  }
 11867  
 11868  // Do executes the "dlp.organizations.locations.deidentifyTemplates.get" call.
 11869  // Any non-2xx status code is an error. Response headers are in either
 11870  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 11871  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11872  // googleapi.IsNotModified to check whether the returned error was because
 11873  // http.StatusNotModified was returned.
 11874  func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 11875  	gensupport.SetOptions(c.urlParams_, opts...)
 11876  	res, err := c.doRequest("json")
 11877  	if res != nil && res.StatusCode == http.StatusNotModified {
 11878  		if res.Body != nil {
 11879  			res.Body.Close()
 11880  		}
 11881  		return nil, gensupport.WrapError(&googleapi.Error{
 11882  			Code:   res.StatusCode,
 11883  			Header: res.Header,
 11884  		})
 11885  	}
 11886  	if err != nil {
 11887  		return nil, err
 11888  	}
 11889  	defer googleapi.CloseBody(res)
 11890  	if err := googleapi.CheckResponse(res); err != nil {
 11891  		return nil, gensupport.WrapError(err)
 11892  	}
 11893  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 11894  		ServerResponse: googleapi.ServerResponse{
 11895  			Header:         res.Header,
 11896  			HTTPStatusCode: res.StatusCode,
 11897  		},
 11898  	}
 11899  	target := &ret
 11900  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11901  		return nil, err
 11902  	}
 11903  	return ret, nil
 11904  }
 11905  
 11906  type OrganizationsLocationsDeidentifyTemplatesListCall struct {
 11907  	s            *Service
 11908  	parentid     string
 11909  	urlParams_   gensupport.URLParams
 11910  	ifNoneMatch_ string
 11911  	ctx_         context.Context
 11912  	header_      http.Header
 11913  }
 11914  
 11915  // List: Lists DeidentifyTemplates. See
 11916  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 11917  // to learn more.
 11918  //
 11919  //   - parent: Parent resource name. The format of this value varies depending on
 11920  //     the scope of the request (project or organization) and whether you have
 11921  //     specified a processing location
 11922  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 11923  //   - Projects scope, location specified:
 11924  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 11925  //     location specified (defaults to global): `projects/`PROJECT_ID +
 11926  //     Organizations scope, location specified:
 11927  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 11928  //     location specified (defaults to global): `organizations/`ORG_ID The
 11929  //     following example `parent` string specifies a parent project with the
 11930  //     identifier `example-project`, and specifies the `europe-west3` location
 11931  //     for processing data:
 11932  //     parent=projects/example-project/locations/europe-west3.
 11933  func (r *OrganizationsLocationsDeidentifyTemplatesService) List(parentid string) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11934  	c := &OrganizationsLocationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11935  	c.parentid = parentid
 11936  	return c
 11937  }
 11938  
 11939  // LocationId sets the optional parameter "locationId": Deprecated. This field
 11940  // has no effect.
 11941  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) LocationId(locationId string) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11942  	c.urlParams_.Set("locationId", locationId)
 11943  	return c
 11944  }
 11945  
 11946  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 11947  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 11948  // insensitive. The default sorting order is ascending. Redundant space
 11949  // characters are insignificant. Example: `name asc,update_time, create_time
 11950  // desc` Supported fields are: - `create_time`: corresponds to the time the
 11951  // template was created. - `update_time`: corresponds to the time the template
 11952  // was last updated. - `name`: corresponds to the template's name. -
 11953  // `display_name`: corresponds to the template's display name.
 11954  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) OrderBy(orderBy string) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11955  	c.urlParams_.Set("orderBy", orderBy)
 11956  	return c
 11957  }
 11958  
 11959  // PageSize sets the optional parameter "pageSize": Size of the page. This
 11960  // value can be limited by the server. If zero server returns a page of max
 11961  // size 100.
 11962  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11963  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11964  	return c
 11965  }
 11966  
 11967  // PageToken sets the optional parameter "pageToken": Page token to continue
 11968  // retrieval. Comes from the previous call to `ListDeidentifyTemplates`.
 11969  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) PageToken(pageToken string) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11970  	c.urlParams_.Set("pageToken", pageToken)
 11971  	return c
 11972  }
 11973  
 11974  // Fields allows partial responses to be retrieved. See
 11975  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11976  // details.
 11977  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11978  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11979  	return c
 11980  }
 11981  
 11982  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11983  // object's ETag matches the given value. This is useful for getting updates
 11984  // only after the object has changed since the last request.
 11985  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11986  	c.ifNoneMatch_ = entityTag
 11987  	return c
 11988  }
 11989  
 11990  // Context sets the context to be used in this call's Do method.
 11991  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesListCall {
 11992  	c.ctx_ = ctx
 11993  	return c
 11994  }
 11995  
 11996  // Header returns a http.Header that can be modified by the caller to add
 11997  // headers to the request.
 11998  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Header() http.Header {
 11999  	if c.header_ == nil {
 12000  		c.header_ = make(http.Header)
 12001  	}
 12002  	return c.header_
 12003  }
 12004  
 12005  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 12006  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12007  	if c.ifNoneMatch_ != "" {
 12008  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12009  	}
 12010  	var body io.Reader = nil
 12011  	c.urlParams_.Set("alt", alt)
 12012  	c.urlParams_.Set("prettyPrint", "false")
 12013  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 12014  	urls += "?" + c.urlParams_.Encode()
 12015  	req, err := http.NewRequest("GET", urls, body)
 12016  	if err != nil {
 12017  		return nil, err
 12018  	}
 12019  	req.Header = reqHeaders
 12020  	googleapi.Expand(req.URL, map[string]string{
 12021  		"parent": c.parentid,
 12022  	})
 12023  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12024  }
 12025  
 12026  // Do executes the "dlp.organizations.locations.deidentifyTemplates.list" call.
 12027  // Any non-2xx status code is an error. Response headers are in either
 12028  // *GooglePrivacyDlpV2ListDeidentifyTemplatesResponse.ServerResponse.Header or
 12029  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 12030  // googleapi.IsNotModified to check whether the returned error was because
 12031  // http.StatusNotModified was returned.
 12032  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
 12033  	gensupport.SetOptions(c.urlParams_, opts...)
 12034  	res, err := c.doRequest("json")
 12035  	if res != nil && res.StatusCode == http.StatusNotModified {
 12036  		if res.Body != nil {
 12037  			res.Body.Close()
 12038  		}
 12039  		return nil, gensupport.WrapError(&googleapi.Error{
 12040  			Code:   res.StatusCode,
 12041  			Header: res.Header,
 12042  		})
 12043  	}
 12044  	if err != nil {
 12045  		return nil, err
 12046  	}
 12047  	defer googleapi.CloseBody(res)
 12048  	if err := googleapi.CheckResponse(res); err != nil {
 12049  		return nil, gensupport.WrapError(err)
 12050  	}
 12051  	ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
 12052  		ServerResponse: googleapi.ServerResponse{
 12053  			Header:         res.Header,
 12054  			HTTPStatusCode: res.StatusCode,
 12055  		},
 12056  	}
 12057  	target := &ret
 12058  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12059  		return nil, err
 12060  	}
 12061  	return ret, nil
 12062  }
 12063  
 12064  // Pages invokes f for each page of results.
 12065  // A non-nil error returned from f will halt the iteration.
 12066  // The provided context supersedes any context provided to the Context method.
 12067  func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
 12068  	c.ctx_ = ctx
 12069  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12070  	for {
 12071  		x, err := c.Do()
 12072  		if err != nil {
 12073  			return err
 12074  		}
 12075  		if err := f(x); err != nil {
 12076  			return err
 12077  		}
 12078  		if x.NextPageToken == "" {
 12079  			return nil
 12080  		}
 12081  		c.PageToken(x.NextPageToken)
 12082  	}
 12083  }
 12084  
 12085  type OrganizationsLocationsDeidentifyTemplatesPatchCall struct {
 12086  	s                                                 *Service
 12087  	name                                              string
 12088  	googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
 12089  	urlParams_                                        gensupport.URLParams
 12090  	ctx_                                              context.Context
 12091  	header_                                           http.Header
 12092  }
 12093  
 12094  // Patch: Updates the DeidentifyTemplate. See
 12095  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 12096  // to learn more.
 12097  //
 12098  //   - name: Resource name of organization and deidentify template to be updated,
 12099  //     for example `organizations/433245324/deidentifyTemplates/432452342` or
 12100  //     projects/project-id/deidentifyTemplates/432452342.
 12101  func (r *OrganizationsLocationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *OrganizationsLocationsDeidentifyTemplatesPatchCall {
 12102  	c := &OrganizationsLocationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12103  	c.name = name
 12104  	c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
 12105  	return c
 12106  }
 12107  
 12108  // Fields allows partial responses to be retrieved. See
 12109  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12110  // details.
 12111  func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesPatchCall {
 12112  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12113  	return c
 12114  }
 12115  
 12116  // Context sets the context to be used in this call's Do method.
 12117  func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesPatchCall {
 12118  	c.ctx_ = ctx
 12119  	return c
 12120  }
 12121  
 12122  // Header returns a http.Header that can be modified by the caller to add
 12123  // headers to the request.
 12124  func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Header() http.Header {
 12125  	if c.header_ == nil {
 12126  		c.header_ = make(http.Header)
 12127  	}
 12128  	return c.header_
 12129  }
 12130  
 12131  func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 12132  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12133  	var body io.Reader = nil
 12134  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
 12135  	if err != nil {
 12136  		return nil, err
 12137  	}
 12138  	c.urlParams_.Set("alt", alt)
 12139  	c.urlParams_.Set("prettyPrint", "false")
 12140  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 12141  	urls += "?" + c.urlParams_.Encode()
 12142  	req, err := http.NewRequest("PATCH", urls, body)
 12143  	if err != nil {
 12144  		return nil, err
 12145  	}
 12146  	req.Header = reqHeaders
 12147  	googleapi.Expand(req.URL, map[string]string{
 12148  		"name": c.name,
 12149  	})
 12150  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12151  }
 12152  
 12153  // Do executes the "dlp.organizations.locations.deidentifyTemplates.patch" call.
 12154  // Any non-2xx status code is an error. Response headers are in either
 12155  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 12156  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12157  // googleapi.IsNotModified to check whether the returned error was because
 12158  // http.StatusNotModified was returned.
 12159  func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 12160  	gensupport.SetOptions(c.urlParams_, opts...)
 12161  	res, err := c.doRequest("json")
 12162  	if res != nil && res.StatusCode == http.StatusNotModified {
 12163  		if res.Body != nil {
 12164  			res.Body.Close()
 12165  		}
 12166  		return nil, gensupport.WrapError(&googleapi.Error{
 12167  			Code:   res.StatusCode,
 12168  			Header: res.Header,
 12169  		})
 12170  	}
 12171  	if err != nil {
 12172  		return nil, err
 12173  	}
 12174  	defer googleapi.CloseBody(res)
 12175  	if err := googleapi.CheckResponse(res); err != nil {
 12176  		return nil, gensupport.WrapError(err)
 12177  	}
 12178  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 12179  		ServerResponse: googleapi.ServerResponse{
 12180  			Header:         res.Header,
 12181  			HTTPStatusCode: res.StatusCode,
 12182  		},
 12183  	}
 12184  	target := &ret
 12185  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12186  		return nil, err
 12187  	}
 12188  	return ret, nil
 12189  }
 12190  
 12191  type OrganizationsLocationsDiscoveryConfigsCreateCall struct {
 12192  	s                                              *Service
 12193  	parentid                                       string
 12194  	googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest
 12195  	urlParams_                                     gensupport.URLParams
 12196  	ctx_                                           context.Context
 12197  	header_                                        http.Header
 12198  }
 12199  
 12200  // Create: Creates a config for discovery to scan and profile storage.
 12201  //
 12202  //   - parent: Parent resource name. The format of this value is as follows:
 12203  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example
 12204  //     `parent` string specifies a parent project with the identifier
 12205  //     `example-project`, and specifies the `europe-west3` location for
 12206  //     processing data: parent=projects/example-project/locations/europe-west3.
 12207  func (r *OrganizationsLocationsDiscoveryConfigsService) Create(parentid string, googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest) *OrganizationsLocationsDiscoveryConfigsCreateCall {
 12208  	c := &OrganizationsLocationsDiscoveryConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12209  	c.parentid = parentid
 12210  	c.googleprivacydlpv2creatediscoveryconfigrequest = googleprivacydlpv2creatediscoveryconfigrequest
 12211  	return c
 12212  }
 12213  
 12214  // Fields allows partial responses to be retrieved. See
 12215  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12216  // details.
 12217  func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsCreateCall {
 12218  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12219  	return c
 12220  }
 12221  
 12222  // Context sets the context to be used in this call's Do method.
 12223  func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsCreateCall {
 12224  	c.ctx_ = ctx
 12225  	return c
 12226  }
 12227  
 12228  // Header returns a http.Header that can be modified by the caller to add
 12229  // headers to the request.
 12230  func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Header() http.Header {
 12231  	if c.header_ == nil {
 12232  		c.header_ = make(http.Header)
 12233  	}
 12234  	return c.header_
 12235  }
 12236  
 12237  func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
 12238  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12239  	var body io.Reader = nil
 12240  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2creatediscoveryconfigrequest)
 12241  	if err != nil {
 12242  		return nil, err
 12243  	}
 12244  	c.urlParams_.Set("alt", alt)
 12245  	c.urlParams_.Set("prettyPrint", "false")
 12246  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
 12247  	urls += "?" + c.urlParams_.Encode()
 12248  	req, err := http.NewRequest("POST", urls, body)
 12249  	if err != nil {
 12250  		return nil, err
 12251  	}
 12252  	req.Header = reqHeaders
 12253  	googleapi.Expand(req.URL, map[string]string{
 12254  		"parent": c.parentid,
 12255  	})
 12256  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12257  }
 12258  
 12259  // Do executes the "dlp.organizations.locations.discoveryConfigs.create" call.
 12260  // Any non-2xx status code is an error. Response headers are in either
 12261  // *GooglePrivacyDlpV2DiscoveryConfig.ServerResponse.Header or (if a response
 12262  // was returned at all) in error.(*googleapi.Error).Header. Use
 12263  // googleapi.IsNotModified to check whether the returned error was because
 12264  // http.StatusNotModified was returned.
 12265  func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
 12266  	gensupport.SetOptions(c.urlParams_, opts...)
 12267  	res, err := c.doRequest("json")
 12268  	if res != nil && res.StatusCode == http.StatusNotModified {
 12269  		if res.Body != nil {
 12270  			res.Body.Close()
 12271  		}
 12272  		return nil, gensupport.WrapError(&googleapi.Error{
 12273  			Code:   res.StatusCode,
 12274  			Header: res.Header,
 12275  		})
 12276  	}
 12277  	if err != nil {
 12278  		return nil, err
 12279  	}
 12280  	defer googleapi.CloseBody(res)
 12281  	if err := googleapi.CheckResponse(res); err != nil {
 12282  		return nil, gensupport.WrapError(err)
 12283  	}
 12284  	ret := &GooglePrivacyDlpV2DiscoveryConfig{
 12285  		ServerResponse: googleapi.ServerResponse{
 12286  			Header:         res.Header,
 12287  			HTTPStatusCode: res.StatusCode,
 12288  		},
 12289  	}
 12290  	target := &ret
 12291  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12292  		return nil, err
 12293  	}
 12294  	return ret, nil
 12295  }
 12296  
 12297  type OrganizationsLocationsDiscoveryConfigsDeleteCall struct {
 12298  	s          *Service
 12299  	name       string
 12300  	urlParams_ gensupport.URLParams
 12301  	ctx_       context.Context
 12302  	header_    http.Header
 12303  }
 12304  
 12305  // Delete: Deletes a discovery configuration.
 12306  //
 12307  //   - name: Resource name of the project and the config, for example
 12308  //     `projects/dlp-test-project/discoveryConfigs/53234423`.
 12309  func (r *OrganizationsLocationsDiscoveryConfigsService) Delete(name string) *OrganizationsLocationsDiscoveryConfigsDeleteCall {
 12310  	c := &OrganizationsLocationsDiscoveryConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12311  	c.name = name
 12312  	return c
 12313  }
 12314  
 12315  // Fields allows partial responses to be retrieved. See
 12316  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12317  // details.
 12318  func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsDeleteCall {
 12319  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12320  	return c
 12321  }
 12322  
 12323  // Context sets the context to be used in this call's Do method.
 12324  func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsDeleteCall {
 12325  	c.ctx_ = ctx
 12326  	return c
 12327  }
 12328  
 12329  // Header returns a http.Header that can be modified by the caller to add
 12330  // headers to the request.
 12331  func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Header() http.Header {
 12332  	if c.header_ == nil {
 12333  		c.header_ = make(http.Header)
 12334  	}
 12335  	return c.header_
 12336  }
 12337  
 12338  func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12339  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12340  	var body io.Reader = nil
 12341  	c.urlParams_.Set("alt", alt)
 12342  	c.urlParams_.Set("prettyPrint", "false")
 12343  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 12344  	urls += "?" + c.urlParams_.Encode()
 12345  	req, err := http.NewRequest("DELETE", urls, body)
 12346  	if err != nil {
 12347  		return nil, err
 12348  	}
 12349  	req.Header = reqHeaders
 12350  	googleapi.Expand(req.URL, map[string]string{
 12351  		"name": c.name,
 12352  	})
 12353  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12354  }
 12355  
 12356  // Do executes the "dlp.organizations.locations.discoveryConfigs.delete" call.
 12357  // Any non-2xx status code is an error. Response headers are in either
 12358  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 12359  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12360  // check whether the returned error was because http.StatusNotModified was
 12361  // returned.
 12362  func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 12363  	gensupport.SetOptions(c.urlParams_, opts...)
 12364  	res, err := c.doRequest("json")
 12365  	if res != nil && res.StatusCode == http.StatusNotModified {
 12366  		if res.Body != nil {
 12367  			res.Body.Close()
 12368  		}
 12369  		return nil, gensupport.WrapError(&googleapi.Error{
 12370  			Code:   res.StatusCode,
 12371  			Header: res.Header,
 12372  		})
 12373  	}
 12374  	if err != nil {
 12375  		return nil, err
 12376  	}
 12377  	defer googleapi.CloseBody(res)
 12378  	if err := googleapi.CheckResponse(res); err != nil {
 12379  		return nil, gensupport.WrapError(err)
 12380  	}
 12381  	ret := &GoogleProtobufEmpty{
 12382  		ServerResponse: googleapi.ServerResponse{
 12383  			Header:         res.Header,
 12384  			HTTPStatusCode: res.StatusCode,
 12385  		},
 12386  	}
 12387  	target := &ret
 12388  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12389  		return nil, err
 12390  	}
 12391  	return ret, nil
 12392  }
 12393  
 12394  type OrganizationsLocationsDiscoveryConfigsGetCall struct {
 12395  	s            *Service
 12396  	name         string
 12397  	urlParams_   gensupport.URLParams
 12398  	ifNoneMatch_ string
 12399  	ctx_         context.Context
 12400  	header_      http.Header
 12401  }
 12402  
 12403  // Get: Gets a discovery configuration.
 12404  //
 12405  //   - name: Resource name of the project and the configuration, for example
 12406  //     `projects/dlp-test-project/discoveryConfigs/53234423`.
 12407  func (r *OrganizationsLocationsDiscoveryConfigsService) Get(name string) *OrganizationsLocationsDiscoveryConfigsGetCall {
 12408  	c := &OrganizationsLocationsDiscoveryConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12409  	c.name = name
 12410  	return c
 12411  }
 12412  
 12413  // Fields allows partial responses to be retrieved. See
 12414  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12415  // details.
 12416  func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsGetCall {
 12417  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12418  	return c
 12419  }
 12420  
 12421  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12422  // object's ETag matches the given value. This is useful for getting updates
 12423  // only after the object has changed since the last request.
 12424  func (c *OrganizationsLocationsDiscoveryConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDiscoveryConfigsGetCall {
 12425  	c.ifNoneMatch_ = entityTag
 12426  	return c
 12427  }
 12428  
 12429  // Context sets the context to be used in this call's Do method.
 12430  func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsGetCall {
 12431  	c.ctx_ = ctx
 12432  	return c
 12433  }
 12434  
 12435  // Header returns a http.Header that can be modified by the caller to add
 12436  // headers to the request.
 12437  func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Header() http.Header {
 12438  	if c.header_ == nil {
 12439  		c.header_ = make(http.Header)
 12440  	}
 12441  	return c.header_
 12442  }
 12443  
 12444  func (c *OrganizationsLocationsDiscoveryConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 12445  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12446  	if c.ifNoneMatch_ != "" {
 12447  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12448  	}
 12449  	var body io.Reader = nil
 12450  	c.urlParams_.Set("alt", alt)
 12451  	c.urlParams_.Set("prettyPrint", "false")
 12452  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 12453  	urls += "?" + c.urlParams_.Encode()
 12454  	req, err := http.NewRequest("GET", urls, body)
 12455  	if err != nil {
 12456  		return nil, err
 12457  	}
 12458  	req.Header = reqHeaders
 12459  	googleapi.Expand(req.URL, map[string]string{
 12460  		"name": c.name,
 12461  	})
 12462  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12463  }
 12464  
 12465  // Do executes the "dlp.organizations.locations.discoveryConfigs.get" call.
 12466  // Any non-2xx status code is an error. Response headers are in either
 12467  // *GooglePrivacyDlpV2DiscoveryConfig.ServerResponse.Header or (if a response
 12468  // was returned at all) in error.(*googleapi.Error).Header. Use
 12469  // googleapi.IsNotModified to check whether the returned error was because
 12470  // http.StatusNotModified was returned.
 12471  func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
 12472  	gensupport.SetOptions(c.urlParams_, opts...)
 12473  	res, err := c.doRequest("json")
 12474  	if res != nil && res.StatusCode == http.StatusNotModified {
 12475  		if res.Body != nil {
 12476  			res.Body.Close()
 12477  		}
 12478  		return nil, gensupport.WrapError(&googleapi.Error{
 12479  			Code:   res.StatusCode,
 12480  			Header: res.Header,
 12481  		})
 12482  	}
 12483  	if err != nil {
 12484  		return nil, err
 12485  	}
 12486  	defer googleapi.CloseBody(res)
 12487  	if err := googleapi.CheckResponse(res); err != nil {
 12488  		return nil, gensupport.WrapError(err)
 12489  	}
 12490  	ret := &GooglePrivacyDlpV2DiscoveryConfig{
 12491  		ServerResponse: googleapi.ServerResponse{
 12492  			Header:         res.Header,
 12493  			HTTPStatusCode: res.StatusCode,
 12494  		},
 12495  	}
 12496  	target := &ret
 12497  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12498  		return nil, err
 12499  	}
 12500  	return ret, nil
 12501  }
 12502  
 12503  type OrganizationsLocationsDiscoveryConfigsListCall struct {
 12504  	s            *Service
 12505  	parentid     string
 12506  	urlParams_   gensupport.URLParams
 12507  	ifNoneMatch_ string
 12508  	ctx_         context.Context
 12509  	header_      http.Header
 12510  }
 12511  
 12512  // List: Lists discovery configurations.
 12513  //
 12514  //   - parent: Parent resource name. The format of this value is as follows:
 12515  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example
 12516  //     `parent` string specifies a parent project with the identifier
 12517  //     `example-project`, and specifies the `europe-west3` location for
 12518  //     processing data: parent=projects/example-project/locations/europe-west3.
 12519  func (r *OrganizationsLocationsDiscoveryConfigsService) List(parentid string) *OrganizationsLocationsDiscoveryConfigsListCall {
 12520  	c := &OrganizationsLocationsDiscoveryConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12521  	c.parentid = parentid
 12522  	return c
 12523  }
 12524  
 12525  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 12526  // config fields to order by, followed by `asc` or `desc` postfix. This list is
 12527  // case insensitive. The default sorting order is ascending. Redundant space
 12528  // characters are insignificant. Example: `name asc,update_time, create_time
 12529  // desc` Supported fields are: - `last_run_time`: corresponds to the last time
 12530  // the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's
 12531  // name. - `status`: corresponds to DiscoveryConfig's status.
 12532  func (c *OrganizationsLocationsDiscoveryConfigsListCall) OrderBy(orderBy string) *OrganizationsLocationsDiscoveryConfigsListCall {
 12533  	c.urlParams_.Set("orderBy", orderBy)
 12534  	return c
 12535  }
 12536  
 12537  // PageSize sets the optional parameter "pageSize": Size of the page. This
 12538  // value can be limited by a server.
 12539  func (c *OrganizationsLocationsDiscoveryConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsDiscoveryConfigsListCall {
 12540  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12541  	return c
 12542  }
 12543  
 12544  // PageToken sets the optional parameter "pageToken": Page token to continue
 12545  // retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by`
 12546  // field must not change for subsequent calls.
 12547  func (c *OrganizationsLocationsDiscoveryConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsDiscoveryConfigsListCall {
 12548  	c.urlParams_.Set("pageToken", pageToken)
 12549  	return c
 12550  }
 12551  
 12552  // Fields allows partial responses to be retrieved. See
 12553  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12554  // details.
 12555  func (c *OrganizationsLocationsDiscoveryConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsListCall {
 12556  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12557  	return c
 12558  }
 12559  
 12560  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12561  // object's ETag matches the given value. This is useful for getting updates
 12562  // only after the object has changed since the last request.
 12563  func (c *OrganizationsLocationsDiscoveryConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDiscoveryConfigsListCall {
 12564  	c.ifNoneMatch_ = entityTag
 12565  	return c
 12566  }
 12567  
 12568  // Context sets the context to be used in this call's Do method.
 12569  func (c *OrganizationsLocationsDiscoveryConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsListCall {
 12570  	c.ctx_ = ctx
 12571  	return c
 12572  }
 12573  
 12574  // Header returns a http.Header that can be modified by the caller to add
 12575  // headers to the request.
 12576  func (c *OrganizationsLocationsDiscoveryConfigsListCall) Header() http.Header {
 12577  	if c.header_ == nil {
 12578  		c.header_ = make(http.Header)
 12579  	}
 12580  	return c.header_
 12581  }
 12582  
 12583  func (c *OrganizationsLocationsDiscoveryConfigsListCall) doRequest(alt string) (*http.Response, error) {
 12584  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12585  	if c.ifNoneMatch_ != "" {
 12586  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12587  	}
 12588  	var body io.Reader = nil
 12589  	c.urlParams_.Set("alt", alt)
 12590  	c.urlParams_.Set("prettyPrint", "false")
 12591  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
 12592  	urls += "?" + c.urlParams_.Encode()
 12593  	req, err := http.NewRequest("GET", urls, body)
 12594  	if err != nil {
 12595  		return nil, err
 12596  	}
 12597  	req.Header = reqHeaders
 12598  	googleapi.Expand(req.URL, map[string]string{
 12599  		"parent": c.parentid,
 12600  	})
 12601  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12602  }
 12603  
 12604  // Do executes the "dlp.organizations.locations.discoveryConfigs.list" call.
 12605  // Any non-2xx status code is an error. Response headers are in either
 12606  // *GooglePrivacyDlpV2ListDiscoveryConfigsResponse.ServerResponse.Header or (if
 12607  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 12608  // googleapi.IsNotModified to check whether the returned error was because
 12609  // http.StatusNotModified was returned.
 12610  func (c *OrganizationsLocationsDiscoveryConfigsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDiscoveryConfigsResponse, error) {
 12611  	gensupport.SetOptions(c.urlParams_, opts...)
 12612  	res, err := c.doRequest("json")
 12613  	if res != nil && res.StatusCode == http.StatusNotModified {
 12614  		if res.Body != nil {
 12615  			res.Body.Close()
 12616  		}
 12617  		return nil, gensupport.WrapError(&googleapi.Error{
 12618  			Code:   res.StatusCode,
 12619  			Header: res.Header,
 12620  		})
 12621  	}
 12622  	if err != nil {
 12623  		return nil, err
 12624  	}
 12625  	defer googleapi.CloseBody(res)
 12626  	if err := googleapi.CheckResponse(res); err != nil {
 12627  		return nil, gensupport.WrapError(err)
 12628  	}
 12629  	ret := &GooglePrivacyDlpV2ListDiscoveryConfigsResponse{
 12630  		ServerResponse: googleapi.ServerResponse{
 12631  			Header:         res.Header,
 12632  			HTTPStatusCode: res.StatusCode,
 12633  		},
 12634  	}
 12635  	target := &ret
 12636  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12637  		return nil, err
 12638  	}
 12639  	return ret, nil
 12640  }
 12641  
 12642  // Pages invokes f for each page of results.
 12643  // A non-nil error returned from f will halt the iteration.
 12644  // The provided context supersedes any context provided to the Context method.
 12645  func (c *OrganizationsLocationsDiscoveryConfigsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDiscoveryConfigsResponse) error) error {
 12646  	c.ctx_ = ctx
 12647  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12648  	for {
 12649  		x, err := c.Do()
 12650  		if err != nil {
 12651  			return err
 12652  		}
 12653  		if err := f(x); err != nil {
 12654  			return err
 12655  		}
 12656  		if x.NextPageToken == "" {
 12657  			return nil
 12658  		}
 12659  		c.PageToken(x.NextPageToken)
 12660  	}
 12661  }
 12662  
 12663  type OrganizationsLocationsDiscoveryConfigsPatchCall struct {
 12664  	s                                              *Service
 12665  	name                                           string
 12666  	googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest
 12667  	urlParams_                                     gensupport.URLParams
 12668  	ctx_                                           context.Context
 12669  	header_                                        http.Header
 12670  }
 12671  
 12672  // Patch: Updates a discovery configuration.
 12673  //
 12674  //   - name: Resource name of the project and the configuration, for example
 12675  //     `projects/dlp-test-project/discoveryConfigs/53234423`.
 12676  func (r *OrganizationsLocationsDiscoveryConfigsService) Patch(name string, googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) *OrganizationsLocationsDiscoveryConfigsPatchCall {
 12677  	c := &OrganizationsLocationsDiscoveryConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12678  	c.name = name
 12679  	c.googleprivacydlpv2updatediscoveryconfigrequest = googleprivacydlpv2updatediscoveryconfigrequest
 12680  	return c
 12681  }
 12682  
 12683  // Fields allows partial responses to be retrieved. See
 12684  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12685  // details.
 12686  func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsPatchCall {
 12687  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12688  	return c
 12689  }
 12690  
 12691  // Context sets the context to be used in this call's Do method.
 12692  func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsPatchCall {
 12693  	c.ctx_ = ctx
 12694  	return c
 12695  }
 12696  
 12697  // Header returns a http.Header that can be modified by the caller to add
 12698  // headers to the request.
 12699  func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Header() http.Header {
 12700  	if c.header_ == nil {
 12701  		c.header_ = make(http.Header)
 12702  	}
 12703  	return c.header_
 12704  }
 12705  
 12706  func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 12707  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12708  	var body io.Reader = nil
 12709  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatediscoveryconfigrequest)
 12710  	if err != nil {
 12711  		return nil, err
 12712  	}
 12713  	c.urlParams_.Set("alt", alt)
 12714  	c.urlParams_.Set("prettyPrint", "false")
 12715  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 12716  	urls += "?" + c.urlParams_.Encode()
 12717  	req, err := http.NewRequest("PATCH", urls, body)
 12718  	if err != nil {
 12719  		return nil, err
 12720  	}
 12721  	req.Header = reqHeaders
 12722  	googleapi.Expand(req.URL, map[string]string{
 12723  		"name": c.name,
 12724  	})
 12725  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12726  }
 12727  
 12728  // Do executes the "dlp.organizations.locations.discoveryConfigs.patch" call.
 12729  // Any non-2xx status code is an error. Response headers are in either
 12730  // *GooglePrivacyDlpV2DiscoveryConfig.ServerResponse.Header or (if a response
 12731  // was returned at all) in error.(*googleapi.Error).Header. Use
 12732  // googleapi.IsNotModified to check whether the returned error was because
 12733  // http.StatusNotModified was returned.
 12734  func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
 12735  	gensupport.SetOptions(c.urlParams_, opts...)
 12736  	res, err := c.doRequest("json")
 12737  	if res != nil && res.StatusCode == http.StatusNotModified {
 12738  		if res.Body != nil {
 12739  			res.Body.Close()
 12740  		}
 12741  		return nil, gensupport.WrapError(&googleapi.Error{
 12742  			Code:   res.StatusCode,
 12743  			Header: res.Header,
 12744  		})
 12745  	}
 12746  	if err != nil {
 12747  		return nil, err
 12748  	}
 12749  	defer googleapi.CloseBody(res)
 12750  	if err := googleapi.CheckResponse(res); err != nil {
 12751  		return nil, gensupport.WrapError(err)
 12752  	}
 12753  	ret := &GooglePrivacyDlpV2DiscoveryConfig{
 12754  		ServerResponse: googleapi.ServerResponse{
 12755  			Header:         res.Header,
 12756  			HTTPStatusCode: res.StatusCode,
 12757  		},
 12758  	}
 12759  	target := &ret
 12760  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12761  		return nil, err
 12762  	}
 12763  	return ret, nil
 12764  }
 12765  
 12766  type OrganizationsLocationsDlpJobsListCall struct {
 12767  	s            *Service
 12768  	parentid     string
 12769  	urlParams_   gensupport.URLParams
 12770  	ifNoneMatch_ string
 12771  	ctx_         context.Context
 12772  	header_      http.Header
 12773  }
 12774  
 12775  // List: Lists DlpJobs that match the specified filter in the request. See
 12776  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 12777  // and
 12778  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 12779  // to learn more.
 12780  //
 12781  //   - parent: Parent resource name. The format of this value varies depending on
 12782  //     whether you have specified a processing location
 12783  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 12784  //   - Projects scope, location specified:
 12785  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 12786  //     location specified (defaults to global): `projects/`PROJECT_ID The
 12787  //     following example `parent` string specifies a parent project with the
 12788  //     identifier `example-project`, and specifies the `europe-west3` location
 12789  //     for processing data:
 12790  //     parent=projects/example-project/locations/europe-west3.
 12791  func (r *OrganizationsLocationsDlpJobsService) List(parentid string) *OrganizationsLocationsDlpJobsListCall {
 12792  	c := &OrganizationsLocationsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12793  	c.parentid = parentid
 12794  	return c
 12795  }
 12796  
 12797  // Filter sets the optional parameter "filter": Allows filtering. Supported
 12798  // syntax: * Filter expressions are made up of one or more restrictions. *
 12799  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 12800  // of restrictions implicitly uses `AND`. * A restriction has the form of
 12801  // `{field} {operator} {value}`. * Supported fields/values for inspect jobs: -
 12802  // `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` -
 12803  // DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger
 12804  // that created the job. - 'end_time` - Corresponds to the time the job
 12805  // finished. - 'start_time` - Corresponds to the time the job finished. *
 12806  // Supported fields for risk analysis jobs: - `state` -
 12807  // RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the
 12808  // job finished. - 'start_time` - Corresponds to the time the job finished. *
 12809  // The operator must be `=` or `!=`. Examples: * inspected_storage =
 12810  // cloud_storage AND state = done * inspected_storage = cloud_storage OR
 12811  // inspected_storage = bigquery * inspected_storage = cloud_storage AND (state
 12812  // = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The
 12813  // length of this field should be no more than 500 characters.
 12814  func (c *OrganizationsLocationsDlpJobsListCall) Filter(filter string) *OrganizationsLocationsDlpJobsListCall {
 12815  	c.urlParams_.Set("filter", filter)
 12816  	return c
 12817  }
 12818  
 12819  // LocationId sets the optional parameter "locationId": Deprecated. This field
 12820  // has no effect.
 12821  func (c *OrganizationsLocationsDlpJobsListCall) LocationId(locationId string) *OrganizationsLocationsDlpJobsListCall {
 12822  	c.urlParams_.Set("locationId", locationId)
 12823  	return c
 12824  }
 12825  
 12826  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 12827  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 12828  // insensitive. The default sorting order is ascending. Redundant space
 12829  // characters are insignificant. Example: `name asc, end_time asc, create_time
 12830  // desc` Supported fields are: - `create_time`: corresponds to the time the job
 12831  // was created. - `end_time`: corresponds to the time the job ended. - `name`:
 12832  // corresponds to the job's name. - `state`: corresponds to `state`
 12833  func (c *OrganizationsLocationsDlpJobsListCall) OrderBy(orderBy string) *OrganizationsLocationsDlpJobsListCall {
 12834  	c.urlParams_.Set("orderBy", orderBy)
 12835  	return c
 12836  }
 12837  
 12838  // PageSize sets the optional parameter "pageSize": The standard list page
 12839  // size.
 12840  func (c *OrganizationsLocationsDlpJobsListCall) PageSize(pageSize int64) *OrganizationsLocationsDlpJobsListCall {
 12841  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12842  	return c
 12843  }
 12844  
 12845  // PageToken sets the optional parameter "pageToken": The standard list page
 12846  // token.
 12847  func (c *OrganizationsLocationsDlpJobsListCall) PageToken(pageToken string) *OrganizationsLocationsDlpJobsListCall {
 12848  	c.urlParams_.Set("pageToken", pageToken)
 12849  	return c
 12850  }
 12851  
 12852  // Type sets the optional parameter "type": The type of job. Defaults to
 12853  // `DlpJobType.INSPECT`
 12854  //
 12855  // Possible values:
 12856  //
 12857  //	"DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
 12858  //	"INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
 12859  //	"RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
 12860  func (c *OrganizationsLocationsDlpJobsListCall) Type(type_ string) *OrganizationsLocationsDlpJobsListCall {
 12861  	c.urlParams_.Set("type", type_)
 12862  	return c
 12863  }
 12864  
 12865  // Fields allows partial responses to be retrieved. See
 12866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12867  // details.
 12868  func (c *OrganizationsLocationsDlpJobsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDlpJobsListCall {
 12869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12870  	return c
 12871  }
 12872  
 12873  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12874  // object's ETag matches the given value. This is useful for getting updates
 12875  // only after the object has changed since the last request.
 12876  func (c *OrganizationsLocationsDlpJobsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDlpJobsListCall {
 12877  	c.ifNoneMatch_ = entityTag
 12878  	return c
 12879  }
 12880  
 12881  // Context sets the context to be used in this call's Do method.
 12882  func (c *OrganizationsLocationsDlpJobsListCall) Context(ctx context.Context) *OrganizationsLocationsDlpJobsListCall {
 12883  	c.ctx_ = ctx
 12884  	return c
 12885  }
 12886  
 12887  // Header returns a http.Header that can be modified by the caller to add
 12888  // headers to the request.
 12889  func (c *OrganizationsLocationsDlpJobsListCall) Header() http.Header {
 12890  	if c.header_ == nil {
 12891  		c.header_ = make(http.Header)
 12892  	}
 12893  	return c.header_
 12894  }
 12895  
 12896  func (c *OrganizationsLocationsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
 12897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12898  	if c.ifNoneMatch_ != "" {
 12899  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12900  	}
 12901  	var body io.Reader = nil
 12902  	c.urlParams_.Set("alt", alt)
 12903  	c.urlParams_.Set("prettyPrint", "false")
 12904  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
 12905  	urls += "?" + c.urlParams_.Encode()
 12906  	req, err := http.NewRequest("GET", urls, body)
 12907  	if err != nil {
 12908  		return nil, err
 12909  	}
 12910  	req.Header = reqHeaders
 12911  	googleapi.Expand(req.URL, map[string]string{
 12912  		"parent": c.parentid,
 12913  	})
 12914  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12915  }
 12916  
 12917  // Do executes the "dlp.organizations.locations.dlpJobs.list" call.
 12918  // Any non-2xx status code is an error. Response headers are in either
 12919  // *GooglePrivacyDlpV2ListDlpJobsResponse.ServerResponse.Header or (if a
 12920  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12921  // googleapi.IsNotModified to check whether the returned error was because
 12922  // http.StatusNotModified was returned.
 12923  func (c *OrganizationsLocationsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDlpJobsResponse, error) {
 12924  	gensupport.SetOptions(c.urlParams_, opts...)
 12925  	res, err := c.doRequest("json")
 12926  	if res != nil && res.StatusCode == http.StatusNotModified {
 12927  		if res.Body != nil {
 12928  			res.Body.Close()
 12929  		}
 12930  		return nil, gensupport.WrapError(&googleapi.Error{
 12931  			Code:   res.StatusCode,
 12932  			Header: res.Header,
 12933  		})
 12934  	}
 12935  	if err != nil {
 12936  		return nil, err
 12937  	}
 12938  	defer googleapi.CloseBody(res)
 12939  	if err := googleapi.CheckResponse(res); err != nil {
 12940  		return nil, gensupport.WrapError(err)
 12941  	}
 12942  	ret := &GooglePrivacyDlpV2ListDlpJobsResponse{
 12943  		ServerResponse: googleapi.ServerResponse{
 12944  			Header:         res.Header,
 12945  			HTTPStatusCode: res.StatusCode,
 12946  		},
 12947  	}
 12948  	target := &ret
 12949  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12950  		return nil, err
 12951  	}
 12952  	return ret, nil
 12953  }
 12954  
 12955  // Pages invokes f for each page of results.
 12956  // A non-nil error returned from f will halt the iteration.
 12957  // The provided context supersedes any context provided to the Context method.
 12958  func (c *OrganizationsLocationsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDlpJobsResponse) error) error {
 12959  	c.ctx_ = ctx
 12960  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12961  	for {
 12962  		x, err := c.Do()
 12963  		if err != nil {
 12964  			return err
 12965  		}
 12966  		if err := f(x); err != nil {
 12967  			return err
 12968  		}
 12969  		if x.NextPageToken == "" {
 12970  			return nil
 12971  		}
 12972  		c.PageToken(x.NextPageToken)
 12973  	}
 12974  }
 12975  
 12976  type OrganizationsLocationsInspectTemplatesCreateCall struct {
 12977  	s                                              *Service
 12978  	parentid                                       string
 12979  	googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
 12980  	urlParams_                                     gensupport.URLParams
 12981  	ctx_                                           context.Context
 12982  	header_                                        http.Header
 12983  }
 12984  
 12985  // Create: Creates an InspectTemplate for reusing frequently used configuration
 12986  // for inspecting content, images, and storage. See
 12987  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 12988  // to learn more.
 12989  //
 12990  //   - parent: Parent resource name. The format of this value varies depending on
 12991  //     the scope of the request (project or organization) and whether you have
 12992  //     specified a processing location
 12993  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 12994  //   - Projects scope, location specified:
 12995  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 12996  //     location specified (defaults to global): `projects/`PROJECT_ID +
 12997  //     Organizations scope, location specified:
 12998  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 12999  //     location specified (defaults to global): `organizations/`ORG_ID The
 13000  //     following example `parent` string specifies a parent project with the
 13001  //     identifier `example-project`, and specifies the `europe-west3` location
 13002  //     for processing data:
 13003  //     parent=projects/example-project/locations/europe-west3.
 13004  func (r *OrganizationsLocationsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *OrganizationsLocationsInspectTemplatesCreateCall {
 13005  	c := &OrganizationsLocationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13006  	c.parentid = parentid
 13007  	c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
 13008  	return c
 13009  }
 13010  
 13011  // Fields allows partial responses to be retrieved. See
 13012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13013  // details.
 13014  func (c *OrganizationsLocationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesCreateCall {
 13015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13016  	return c
 13017  }
 13018  
 13019  // Context sets the context to be used in this call's Do method.
 13020  func (c *OrganizationsLocationsInspectTemplatesCreateCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesCreateCall {
 13021  	c.ctx_ = ctx
 13022  	return c
 13023  }
 13024  
 13025  // Header returns a http.Header that can be modified by the caller to add
 13026  // headers to the request.
 13027  func (c *OrganizationsLocationsInspectTemplatesCreateCall) Header() http.Header {
 13028  	if c.header_ == nil {
 13029  		c.header_ = make(http.Header)
 13030  	}
 13031  	return c.header_
 13032  }
 13033  
 13034  func (c *OrganizationsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 13035  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13036  	var body io.Reader = nil
 13037  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
 13038  	if err != nil {
 13039  		return nil, err
 13040  	}
 13041  	c.urlParams_.Set("alt", alt)
 13042  	c.urlParams_.Set("prettyPrint", "false")
 13043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 13044  	urls += "?" + c.urlParams_.Encode()
 13045  	req, err := http.NewRequest("POST", urls, body)
 13046  	if err != nil {
 13047  		return nil, err
 13048  	}
 13049  	req.Header = reqHeaders
 13050  	googleapi.Expand(req.URL, map[string]string{
 13051  		"parent": c.parentid,
 13052  	})
 13053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13054  }
 13055  
 13056  // Do executes the "dlp.organizations.locations.inspectTemplates.create" call.
 13057  // Any non-2xx status code is an error. Response headers are in either
 13058  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 13059  // was returned at all) in error.(*googleapi.Error).Header. Use
 13060  // googleapi.IsNotModified to check whether the returned error was because
 13061  // http.StatusNotModified was returned.
 13062  func (c *OrganizationsLocationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 13063  	gensupport.SetOptions(c.urlParams_, opts...)
 13064  	res, err := c.doRequest("json")
 13065  	if res != nil && res.StatusCode == http.StatusNotModified {
 13066  		if res.Body != nil {
 13067  			res.Body.Close()
 13068  		}
 13069  		return nil, gensupport.WrapError(&googleapi.Error{
 13070  			Code:   res.StatusCode,
 13071  			Header: res.Header,
 13072  		})
 13073  	}
 13074  	if err != nil {
 13075  		return nil, err
 13076  	}
 13077  	defer googleapi.CloseBody(res)
 13078  	if err := googleapi.CheckResponse(res); err != nil {
 13079  		return nil, gensupport.WrapError(err)
 13080  	}
 13081  	ret := &GooglePrivacyDlpV2InspectTemplate{
 13082  		ServerResponse: googleapi.ServerResponse{
 13083  			Header:         res.Header,
 13084  			HTTPStatusCode: res.StatusCode,
 13085  		},
 13086  	}
 13087  	target := &ret
 13088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13089  		return nil, err
 13090  	}
 13091  	return ret, nil
 13092  }
 13093  
 13094  type OrganizationsLocationsInspectTemplatesDeleteCall struct {
 13095  	s          *Service
 13096  	name       string
 13097  	urlParams_ gensupport.URLParams
 13098  	ctx_       context.Context
 13099  	header_    http.Header
 13100  }
 13101  
 13102  // Delete: Deletes an InspectTemplate. See
 13103  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 13104  // to learn more.
 13105  //
 13106  //   - name: Resource name of the organization and inspectTemplate to be deleted,
 13107  //     for example `organizations/433245324/inspectTemplates/432452342` or
 13108  //     projects/project-id/inspectTemplates/432452342.
 13109  func (r *OrganizationsLocationsInspectTemplatesService) Delete(name string) *OrganizationsLocationsInspectTemplatesDeleteCall {
 13110  	c := &OrganizationsLocationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13111  	c.name = name
 13112  	return c
 13113  }
 13114  
 13115  // Fields allows partial responses to be retrieved. See
 13116  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13117  // details.
 13118  func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesDeleteCall {
 13119  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13120  	return c
 13121  }
 13122  
 13123  // Context sets the context to be used in this call's Do method.
 13124  func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesDeleteCall {
 13125  	c.ctx_ = ctx
 13126  	return c
 13127  }
 13128  
 13129  // Header returns a http.Header that can be modified by the caller to add
 13130  // headers to the request.
 13131  func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Header() http.Header {
 13132  	if c.header_ == nil {
 13133  		c.header_ = make(http.Header)
 13134  	}
 13135  	return c.header_
 13136  }
 13137  
 13138  func (c *OrganizationsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 13139  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13140  	var body io.Reader = nil
 13141  	c.urlParams_.Set("alt", alt)
 13142  	c.urlParams_.Set("prettyPrint", "false")
 13143  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 13144  	urls += "?" + c.urlParams_.Encode()
 13145  	req, err := http.NewRequest("DELETE", urls, body)
 13146  	if err != nil {
 13147  		return nil, err
 13148  	}
 13149  	req.Header = reqHeaders
 13150  	googleapi.Expand(req.URL, map[string]string{
 13151  		"name": c.name,
 13152  	})
 13153  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13154  }
 13155  
 13156  // Do executes the "dlp.organizations.locations.inspectTemplates.delete" call.
 13157  // Any non-2xx status code is an error. Response headers are in either
 13158  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 13159  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13160  // check whether the returned error was because http.StatusNotModified was
 13161  // returned.
 13162  func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 13163  	gensupport.SetOptions(c.urlParams_, opts...)
 13164  	res, err := c.doRequest("json")
 13165  	if res != nil && res.StatusCode == http.StatusNotModified {
 13166  		if res.Body != nil {
 13167  			res.Body.Close()
 13168  		}
 13169  		return nil, gensupport.WrapError(&googleapi.Error{
 13170  			Code:   res.StatusCode,
 13171  			Header: res.Header,
 13172  		})
 13173  	}
 13174  	if err != nil {
 13175  		return nil, err
 13176  	}
 13177  	defer googleapi.CloseBody(res)
 13178  	if err := googleapi.CheckResponse(res); err != nil {
 13179  		return nil, gensupport.WrapError(err)
 13180  	}
 13181  	ret := &GoogleProtobufEmpty{
 13182  		ServerResponse: googleapi.ServerResponse{
 13183  			Header:         res.Header,
 13184  			HTTPStatusCode: res.StatusCode,
 13185  		},
 13186  	}
 13187  	target := &ret
 13188  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13189  		return nil, err
 13190  	}
 13191  	return ret, nil
 13192  }
 13193  
 13194  type OrganizationsLocationsInspectTemplatesGetCall struct {
 13195  	s            *Service
 13196  	name         string
 13197  	urlParams_   gensupport.URLParams
 13198  	ifNoneMatch_ string
 13199  	ctx_         context.Context
 13200  	header_      http.Header
 13201  }
 13202  
 13203  // Get: Gets an InspectTemplate. See
 13204  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 13205  // to learn more.
 13206  //
 13207  //   - name: Resource name of the organization and inspectTemplate to be read,
 13208  //     for example `organizations/433245324/inspectTemplates/432452342` or
 13209  //     projects/project-id/inspectTemplates/432452342.
 13210  func (r *OrganizationsLocationsInspectTemplatesService) Get(name string) *OrganizationsLocationsInspectTemplatesGetCall {
 13211  	c := &OrganizationsLocationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13212  	c.name = name
 13213  	return c
 13214  }
 13215  
 13216  // Fields allows partial responses to be retrieved. See
 13217  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13218  // details.
 13219  func (c *OrganizationsLocationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesGetCall {
 13220  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13221  	return c
 13222  }
 13223  
 13224  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13225  // object's ETag matches the given value. This is useful for getting updates
 13226  // only after the object has changed since the last request.
 13227  func (c *OrganizationsLocationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInspectTemplatesGetCall {
 13228  	c.ifNoneMatch_ = entityTag
 13229  	return c
 13230  }
 13231  
 13232  // Context sets the context to be used in this call's Do method.
 13233  func (c *OrganizationsLocationsInspectTemplatesGetCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesGetCall {
 13234  	c.ctx_ = ctx
 13235  	return c
 13236  }
 13237  
 13238  // Header returns a http.Header that can be modified by the caller to add
 13239  // headers to the request.
 13240  func (c *OrganizationsLocationsInspectTemplatesGetCall) Header() http.Header {
 13241  	if c.header_ == nil {
 13242  		c.header_ = make(http.Header)
 13243  	}
 13244  	return c.header_
 13245  }
 13246  
 13247  func (c *OrganizationsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 13248  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13249  	if c.ifNoneMatch_ != "" {
 13250  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13251  	}
 13252  	var body io.Reader = nil
 13253  	c.urlParams_.Set("alt", alt)
 13254  	c.urlParams_.Set("prettyPrint", "false")
 13255  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 13256  	urls += "?" + c.urlParams_.Encode()
 13257  	req, err := http.NewRequest("GET", urls, body)
 13258  	if err != nil {
 13259  		return nil, err
 13260  	}
 13261  	req.Header = reqHeaders
 13262  	googleapi.Expand(req.URL, map[string]string{
 13263  		"name": c.name,
 13264  	})
 13265  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13266  }
 13267  
 13268  // Do executes the "dlp.organizations.locations.inspectTemplates.get" call.
 13269  // Any non-2xx status code is an error. Response headers are in either
 13270  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 13271  // was returned at all) in error.(*googleapi.Error).Header. Use
 13272  // googleapi.IsNotModified to check whether the returned error was because
 13273  // http.StatusNotModified was returned.
 13274  func (c *OrganizationsLocationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 13275  	gensupport.SetOptions(c.urlParams_, opts...)
 13276  	res, err := c.doRequest("json")
 13277  	if res != nil && res.StatusCode == http.StatusNotModified {
 13278  		if res.Body != nil {
 13279  			res.Body.Close()
 13280  		}
 13281  		return nil, gensupport.WrapError(&googleapi.Error{
 13282  			Code:   res.StatusCode,
 13283  			Header: res.Header,
 13284  		})
 13285  	}
 13286  	if err != nil {
 13287  		return nil, err
 13288  	}
 13289  	defer googleapi.CloseBody(res)
 13290  	if err := googleapi.CheckResponse(res); err != nil {
 13291  		return nil, gensupport.WrapError(err)
 13292  	}
 13293  	ret := &GooglePrivacyDlpV2InspectTemplate{
 13294  		ServerResponse: googleapi.ServerResponse{
 13295  			Header:         res.Header,
 13296  			HTTPStatusCode: res.StatusCode,
 13297  		},
 13298  	}
 13299  	target := &ret
 13300  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13301  		return nil, err
 13302  	}
 13303  	return ret, nil
 13304  }
 13305  
 13306  type OrganizationsLocationsInspectTemplatesListCall struct {
 13307  	s            *Service
 13308  	parentid     string
 13309  	urlParams_   gensupport.URLParams
 13310  	ifNoneMatch_ string
 13311  	ctx_         context.Context
 13312  	header_      http.Header
 13313  }
 13314  
 13315  // List: Lists InspectTemplates. See
 13316  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 13317  // to learn more.
 13318  //
 13319  //   - parent: Parent resource name. The format of this value varies depending on
 13320  //     the scope of the request (project or organization) and whether you have
 13321  //     specified a processing location
 13322  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 13323  //   - Projects scope, location specified:
 13324  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 13325  //     location specified (defaults to global): `projects/`PROJECT_ID +
 13326  //     Organizations scope, location specified:
 13327  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 13328  //     location specified (defaults to global): `organizations/`ORG_ID The
 13329  //     following example `parent` string specifies a parent project with the
 13330  //     identifier `example-project`, and specifies the `europe-west3` location
 13331  //     for processing data:
 13332  //     parent=projects/example-project/locations/europe-west3.
 13333  func (r *OrganizationsLocationsInspectTemplatesService) List(parentid string) *OrganizationsLocationsInspectTemplatesListCall {
 13334  	c := &OrganizationsLocationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13335  	c.parentid = parentid
 13336  	return c
 13337  }
 13338  
 13339  // LocationId sets the optional parameter "locationId": Deprecated. This field
 13340  // has no effect.
 13341  func (c *OrganizationsLocationsInspectTemplatesListCall) LocationId(locationId string) *OrganizationsLocationsInspectTemplatesListCall {
 13342  	c.urlParams_.Set("locationId", locationId)
 13343  	return c
 13344  }
 13345  
 13346  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 13347  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 13348  // insensitive. The default sorting order is ascending. Redundant space
 13349  // characters are insignificant. Example: `name asc,update_time, create_time
 13350  // desc` Supported fields are: - `create_time`: corresponds to the time the
 13351  // template was created. - `update_time`: corresponds to the time the template
 13352  // was last updated. - `name`: corresponds to the template's name. -
 13353  // `display_name`: corresponds to the template's display name.
 13354  func (c *OrganizationsLocationsInspectTemplatesListCall) OrderBy(orderBy string) *OrganizationsLocationsInspectTemplatesListCall {
 13355  	c.urlParams_.Set("orderBy", orderBy)
 13356  	return c
 13357  }
 13358  
 13359  // PageSize sets the optional parameter "pageSize": Size of the page. This
 13360  // value can be limited by the server. If zero server returns a page of max
 13361  // size 100.
 13362  func (c *OrganizationsLocationsInspectTemplatesListCall) PageSize(pageSize int64) *OrganizationsLocationsInspectTemplatesListCall {
 13363  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13364  	return c
 13365  }
 13366  
 13367  // PageToken sets the optional parameter "pageToken": Page token to continue
 13368  // retrieval. Comes from the previous call to `ListInspectTemplates`.
 13369  func (c *OrganizationsLocationsInspectTemplatesListCall) PageToken(pageToken string) *OrganizationsLocationsInspectTemplatesListCall {
 13370  	c.urlParams_.Set("pageToken", pageToken)
 13371  	return c
 13372  }
 13373  
 13374  // Fields allows partial responses to be retrieved. See
 13375  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13376  // details.
 13377  func (c *OrganizationsLocationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesListCall {
 13378  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13379  	return c
 13380  }
 13381  
 13382  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13383  // object's ETag matches the given value. This is useful for getting updates
 13384  // only after the object has changed since the last request.
 13385  func (c *OrganizationsLocationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInspectTemplatesListCall {
 13386  	c.ifNoneMatch_ = entityTag
 13387  	return c
 13388  }
 13389  
 13390  // Context sets the context to be used in this call's Do method.
 13391  func (c *OrganizationsLocationsInspectTemplatesListCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesListCall {
 13392  	c.ctx_ = ctx
 13393  	return c
 13394  }
 13395  
 13396  // Header returns a http.Header that can be modified by the caller to add
 13397  // headers to the request.
 13398  func (c *OrganizationsLocationsInspectTemplatesListCall) Header() http.Header {
 13399  	if c.header_ == nil {
 13400  		c.header_ = make(http.Header)
 13401  	}
 13402  	return c.header_
 13403  }
 13404  
 13405  func (c *OrganizationsLocationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 13406  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13407  	if c.ifNoneMatch_ != "" {
 13408  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13409  	}
 13410  	var body io.Reader = nil
 13411  	c.urlParams_.Set("alt", alt)
 13412  	c.urlParams_.Set("prettyPrint", "false")
 13413  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 13414  	urls += "?" + c.urlParams_.Encode()
 13415  	req, err := http.NewRequest("GET", urls, body)
 13416  	if err != nil {
 13417  		return nil, err
 13418  	}
 13419  	req.Header = reqHeaders
 13420  	googleapi.Expand(req.URL, map[string]string{
 13421  		"parent": c.parentid,
 13422  	})
 13423  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13424  }
 13425  
 13426  // Do executes the "dlp.organizations.locations.inspectTemplates.list" call.
 13427  // Any non-2xx status code is an error. Response headers are in either
 13428  // *GooglePrivacyDlpV2ListInspectTemplatesResponse.ServerResponse.Header or (if
 13429  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 13430  // googleapi.IsNotModified to check whether the returned error was because
 13431  // http.StatusNotModified was returned.
 13432  func (c *OrganizationsLocationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
 13433  	gensupport.SetOptions(c.urlParams_, opts...)
 13434  	res, err := c.doRequest("json")
 13435  	if res != nil && res.StatusCode == http.StatusNotModified {
 13436  		if res.Body != nil {
 13437  			res.Body.Close()
 13438  		}
 13439  		return nil, gensupport.WrapError(&googleapi.Error{
 13440  			Code:   res.StatusCode,
 13441  			Header: res.Header,
 13442  		})
 13443  	}
 13444  	if err != nil {
 13445  		return nil, err
 13446  	}
 13447  	defer googleapi.CloseBody(res)
 13448  	if err := googleapi.CheckResponse(res); err != nil {
 13449  		return nil, gensupport.WrapError(err)
 13450  	}
 13451  	ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
 13452  		ServerResponse: googleapi.ServerResponse{
 13453  			Header:         res.Header,
 13454  			HTTPStatusCode: res.StatusCode,
 13455  		},
 13456  	}
 13457  	target := &ret
 13458  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13459  		return nil, err
 13460  	}
 13461  	return ret, nil
 13462  }
 13463  
 13464  // Pages invokes f for each page of results.
 13465  // A non-nil error returned from f will halt the iteration.
 13466  // The provided context supersedes any context provided to the Context method.
 13467  func (c *OrganizationsLocationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
 13468  	c.ctx_ = ctx
 13469  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13470  	for {
 13471  		x, err := c.Do()
 13472  		if err != nil {
 13473  			return err
 13474  		}
 13475  		if err := f(x); err != nil {
 13476  			return err
 13477  		}
 13478  		if x.NextPageToken == "" {
 13479  			return nil
 13480  		}
 13481  		c.PageToken(x.NextPageToken)
 13482  	}
 13483  }
 13484  
 13485  type OrganizationsLocationsInspectTemplatesPatchCall struct {
 13486  	s                                              *Service
 13487  	name                                           string
 13488  	googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
 13489  	urlParams_                                     gensupport.URLParams
 13490  	ctx_                                           context.Context
 13491  	header_                                        http.Header
 13492  }
 13493  
 13494  // Patch: Updates the InspectTemplate. See
 13495  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 13496  // to learn more.
 13497  //
 13498  //   - name: Resource name of organization and inspectTemplate to be updated, for
 13499  //     example `organizations/433245324/inspectTemplates/432452342` or
 13500  //     projects/project-id/inspectTemplates/432452342.
 13501  func (r *OrganizationsLocationsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *OrganizationsLocationsInspectTemplatesPatchCall {
 13502  	c := &OrganizationsLocationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13503  	c.name = name
 13504  	c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
 13505  	return c
 13506  }
 13507  
 13508  // Fields allows partial responses to be retrieved. See
 13509  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13510  // details.
 13511  func (c *OrganizationsLocationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesPatchCall {
 13512  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13513  	return c
 13514  }
 13515  
 13516  // Context sets the context to be used in this call's Do method.
 13517  func (c *OrganizationsLocationsInspectTemplatesPatchCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesPatchCall {
 13518  	c.ctx_ = ctx
 13519  	return c
 13520  }
 13521  
 13522  // Header returns a http.Header that can be modified by the caller to add
 13523  // headers to the request.
 13524  func (c *OrganizationsLocationsInspectTemplatesPatchCall) Header() http.Header {
 13525  	if c.header_ == nil {
 13526  		c.header_ = make(http.Header)
 13527  	}
 13528  	return c.header_
 13529  }
 13530  
 13531  func (c *OrganizationsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 13532  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13533  	var body io.Reader = nil
 13534  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
 13535  	if err != nil {
 13536  		return nil, err
 13537  	}
 13538  	c.urlParams_.Set("alt", alt)
 13539  	c.urlParams_.Set("prettyPrint", "false")
 13540  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 13541  	urls += "?" + c.urlParams_.Encode()
 13542  	req, err := http.NewRequest("PATCH", urls, body)
 13543  	if err != nil {
 13544  		return nil, err
 13545  	}
 13546  	req.Header = reqHeaders
 13547  	googleapi.Expand(req.URL, map[string]string{
 13548  		"name": c.name,
 13549  	})
 13550  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13551  }
 13552  
 13553  // Do executes the "dlp.organizations.locations.inspectTemplates.patch" call.
 13554  // Any non-2xx status code is an error. Response headers are in either
 13555  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 13556  // was returned at all) in error.(*googleapi.Error).Header. Use
 13557  // googleapi.IsNotModified to check whether the returned error was because
 13558  // http.StatusNotModified was returned.
 13559  func (c *OrganizationsLocationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 13560  	gensupport.SetOptions(c.urlParams_, opts...)
 13561  	res, err := c.doRequest("json")
 13562  	if res != nil && res.StatusCode == http.StatusNotModified {
 13563  		if res.Body != nil {
 13564  			res.Body.Close()
 13565  		}
 13566  		return nil, gensupport.WrapError(&googleapi.Error{
 13567  			Code:   res.StatusCode,
 13568  			Header: res.Header,
 13569  		})
 13570  	}
 13571  	if err != nil {
 13572  		return nil, err
 13573  	}
 13574  	defer googleapi.CloseBody(res)
 13575  	if err := googleapi.CheckResponse(res); err != nil {
 13576  		return nil, gensupport.WrapError(err)
 13577  	}
 13578  	ret := &GooglePrivacyDlpV2InspectTemplate{
 13579  		ServerResponse: googleapi.ServerResponse{
 13580  			Header:         res.Header,
 13581  			HTTPStatusCode: res.StatusCode,
 13582  		},
 13583  	}
 13584  	target := &ret
 13585  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13586  		return nil, err
 13587  	}
 13588  	return ret, nil
 13589  }
 13590  
 13591  type OrganizationsLocationsJobTriggersCreateCall struct {
 13592  	s                                         *Service
 13593  	parentid                                  string
 13594  	googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest
 13595  	urlParams_                                gensupport.URLParams
 13596  	ctx_                                      context.Context
 13597  	header_                                   http.Header
 13598  }
 13599  
 13600  // Create: Creates a job trigger to run DLP actions such as scanning storage
 13601  // for sensitive information on a set schedule. See
 13602  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 13603  // to learn more.
 13604  //
 13605  //   - parent: Parent resource name. The format of this value varies depending on
 13606  //     whether you have specified a processing location
 13607  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 13608  //   - Projects scope, location specified:
 13609  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 13610  //     location specified (defaults to global): `projects/`PROJECT_ID The
 13611  //     following example `parent` string specifies a parent project with the
 13612  //     identifier `example-project`, and specifies the `europe-west3` location
 13613  //     for processing data:
 13614  //     parent=projects/example-project/locations/europe-west3.
 13615  func (r *OrganizationsLocationsJobTriggersService) Create(parentid string, googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest) *OrganizationsLocationsJobTriggersCreateCall {
 13616  	c := &OrganizationsLocationsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13617  	c.parentid = parentid
 13618  	c.googleprivacydlpv2createjobtriggerrequest = googleprivacydlpv2createjobtriggerrequest
 13619  	return c
 13620  }
 13621  
 13622  // Fields allows partial responses to be retrieved. See
 13623  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13624  // details.
 13625  func (c *OrganizationsLocationsJobTriggersCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersCreateCall {
 13626  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13627  	return c
 13628  }
 13629  
 13630  // Context sets the context to be used in this call's Do method.
 13631  func (c *OrganizationsLocationsJobTriggersCreateCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersCreateCall {
 13632  	c.ctx_ = ctx
 13633  	return c
 13634  }
 13635  
 13636  // Header returns a http.Header that can be modified by the caller to add
 13637  // headers to the request.
 13638  func (c *OrganizationsLocationsJobTriggersCreateCall) Header() http.Header {
 13639  	if c.header_ == nil {
 13640  		c.header_ = make(http.Header)
 13641  	}
 13642  	return c.header_
 13643  }
 13644  
 13645  func (c *OrganizationsLocationsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
 13646  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13647  	var body io.Reader = nil
 13648  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createjobtriggerrequest)
 13649  	if err != nil {
 13650  		return nil, err
 13651  	}
 13652  	c.urlParams_.Set("alt", alt)
 13653  	c.urlParams_.Set("prettyPrint", "false")
 13654  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
 13655  	urls += "?" + c.urlParams_.Encode()
 13656  	req, err := http.NewRequest("POST", urls, body)
 13657  	if err != nil {
 13658  		return nil, err
 13659  	}
 13660  	req.Header = reqHeaders
 13661  	googleapi.Expand(req.URL, map[string]string{
 13662  		"parent": c.parentid,
 13663  	})
 13664  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13665  }
 13666  
 13667  // Do executes the "dlp.organizations.locations.jobTriggers.create" call.
 13668  // Any non-2xx status code is an error. Response headers are in either
 13669  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 13670  // returned at all) in error.(*googleapi.Error).Header. Use
 13671  // googleapi.IsNotModified to check whether the returned error was because
 13672  // http.StatusNotModified was returned.
 13673  func (c *OrganizationsLocationsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 13674  	gensupport.SetOptions(c.urlParams_, opts...)
 13675  	res, err := c.doRequest("json")
 13676  	if res != nil && res.StatusCode == http.StatusNotModified {
 13677  		if res.Body != nil {
 13678  			res.Body.Close()
 13679  		}
 13680  		return nil, gensupport.WrapError(&googleapi.Error{
 13681  			Code:   res.StatusCode,
 13682  			Header: res.Header,
 13683  		})
 13684  	}
 13685  	if err != nil {
 13686  		return nil, err
 13687  	}
 13688  	defer googleapi.CloseBody(res)
 13689  	if err := googleapi.CheckResponse(res); err != nil {
 13690  		return nil, gensupport.WrapError(err)
 13691  	}
 13692  	ret := &GooglePrivacyDlpV2JobTrigger{
 13693  		ServerResponse: googleapi.ServerResponse{
 13694  			Header:         res.Header,
 13695  			HTTPStatusCode: res.StatusCode,
 13696  		},
 13697  	}
 13698  	target := &ret
 13699  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13700  		return nil, err
 13701  	}
 13702  	return ret, nil
 13703  }
 13704  
 13705  type OrganizationsLocationsJobTriggersDeleteCall struct {
 13706  	s          *Service
 13707  	name       string
 13708  	urlParams_ gensupport.URLParams
 13709  	ctx_       context.Context
 13710  	header_    http.Header
 13711  }
 13712  
 13713  // Delete: Deletes a job trigger. See
 13714  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 13715  // to learn more.
 13716  //
 13717  //   - name: Resource name of the project and the triggeredJob, for example
 13718  //     `projects/dlp-test-project/jobTriggers/53234423`.
 13719  func (r *OrganizationsLocationsJobTriggersService) Delete(name string) *OrganizationsLocationsJobTriggersDeleteCall {
 13720  	c := &OrganizationsLocationsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13721  	c.name = name
 13722  	return c
 13723  }
 13724  
 13725  // Fields allows partial responses to be retrieved. See
 13726  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13727  // details.
 13728  func (c *OrganizationsLocationsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersDeleteCall {
 13729  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13730  	return c
 13731  }
 13732  
 13733  // Context sets the context to be used in this call's Do method.
 13734  func (c *OrganizationsLocationsJobTriggersDeleteCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersDeleteCall {
 13735  	c.ctx_ = ctx
 13736  	return c
 13737  }
 13738  
 13739  // Header returns a http.Header that can be modified by the caller to add
 13740  // headers to the request.
 13741  func (c *OrganizationsLocationsJobTriggersDeleteCall) Header() http.Header {
 13742  	if c.header_ == nil {
 13743  		c.header_ = make(http.Header)
 13744  	}
 13745  	return c.header_
 13746  }
 13747  
 13748  func (c *OrganizationsLocationsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
 13749  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13750  	var body io.Reader = nil
 13751  	c.urlParams_.Set("alt", alt)
 13752  	c.urlParams_.Set("prettyPrint", "false")
 13753  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 13754  	urls += "?" + c.urlParams_.Encode()
 13755  	req, err := http.NewRequest("DELETE", urls, body)
 13756  	if err != nil {
 13757  		return nil, err
 13758  	}
 13759  	req.Header = reqHeaders
 13760  	googleapi.Expand(req.URL, map[string]string{
 13761  		"name": c.name,
 13762  	})
 13763  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13764  }
 13765  
 13766  // Do executes the "dlp.organizations.locations.jobTriggers.delete" call.
 13767  // Any non-2xx status code is an error. Response headers are in either
 13768  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 13769  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13770  // check whether the returned error was because http.StatusNotModified was
 13771  // returned.
 13772  func (c *OrganizationsLocationsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 13773  	gensupport.SetOptions(c.urlParams_, opts...)
 13774  	res, err := c.doRequest("json")
 13775  	if res != nil && res.StatusCode == http.StatusNotModified {
 13776  		if res.Body != nil {
 13777  			res.Body.Close()
 13778  		}
 13779  		return nil, gensupport.WrapError(&googleapi.Error{
 13780  			Code:   res.StatusCode,
 13781  			Header: res.Header,
 13782  		})
 13783  	}
 13784  	if err != nil {
 13785  		return nil, err
 13786  	}
 13787  	defer googleapi.CloseBody(res)
 13788  	if err := googleapi.CheckResponse(res); err != nil {
 13789  		return nil, gensupport.WrapError(err)
 13790  	}
 13791  	ret := &GoogleProtobufEmpty{
 13792  		ServerResponse: googleapi.ServerResponse{
 13793  			Header:         res.Header,
 13794  			HTTPStatusCode: res.StatusCode,
 13795  		},
 13796  	}
 13797  	target := &ret
 13798  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13799  		return nil, err
 13800  	}
 13801  	return ret, nil
 13802  }
 13803  
 13804  type OrganizationsLocationsJobTriggersGetCall struct {
 13805  	s            *Service
 13806  	name         string
 13807  	urlParams_   gensupport.URLParams
 13808  	ifNoneMatch_ string
 13809  	ctx_         context.Context
 13810  	header_      http.Header
 13811  }
 13812  
 13813  // Get: Gets a job trigger. See
 13814  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 13815  // to learn more.
 13816  //
 13817  //   - name: Resource name of the project and the triggeredJob, for example
 13818  //     `projects/dlp-test-project/jobTriggers/53234423`.
 13819  func (r *OrganizationsLocationsJobTriggersService) Get(name string) *OrganizationsLocationsJobTriggersGetCall {
 13820  	c := &OrganizationsLocationsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13821  	c.name = name
 13822  	return c
 13823  }
 13824  
 13825  // Fields allows partial responses to be retrieved. See
 13826  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13827  // details.
 13828  func (c *OrganizationsLocationsJobTriggersGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersGetCall {
 13829  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13830  	return c
 13831  }
 13832  
 13833  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13834  // object's ETag matches the given value. This is useful for getting updates
 13835  // only after the object has changed since the last request.
 13836  func (c *OrganizationsLocationsJobTriggersGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsJobTriggersGetCall {
 13837  	c.ifNoneMatch_ = entityTag
 13838  	return c
 13839  }
 13840  
 13841  // Context sets the context to be used in this call's Do method.
 13842  func (c *OrganizationsLocationsJobTriggersGetCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersGetCall {
 13843  	c.ctx_ = ctx
 13844  	return c
 13845  }
 13846  
 13847  // Header returns a http.Header that can be modified by the caller to add
 13848  // headers to the request.
 13849  func (c *OrganizationsLocationsJobTriggersGetCall) Header() http.Header {
 13850  	if c.header_ == nil {
 13851  		c.header_ = make(http.Header)
 13852  	}
 13853  	return c.header_
 13854  }
 13855  
 13856  func (c *OrganizationsLocationsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
 13857  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13858  	if c.ifNoneMatch_ != "" {
 13859  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13860  	}
 13861  	var body io.Reader = nil
 13862  	c.urlParams_.Set("alt", alt)
 13863  	c.urlParams_.Set("prettyPrint", "false")
 13864  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 13865  	urls += "?" + c.urlParams_.Encode()
 13866  	req, err := http.NewRequest("GET", urls, body)
 13867  	if err != nil {
 13868  		return nil, err
 13869  	}
 13870  	req.Header = reqHeaders
 13871  	googleapi.Expand(req.URL, map[string]string{
 13872  		"name": c.name,
 13873  	})
 13874  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13875  }
 13876  
 13877  // Do executes the "dlp.organizations.locations.jobTriggers.get" call.
 13878  // Any non-2xx status code is an error. Response headers are in either
 13879  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 13880  // returned at all) in error.(*googleapi.Error).Header. Use
 13881  // googleapi.IsNotModified to check whether the returned error was because
 13882  // http.StatusNotModified was returned.
 13883  func (c *OrganizationsLocationsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 13884  	gensupport.SetOptions(c.urlParams_, opts...)
 13885  	res, err := c.doRequest("json")
 13886  	if res != nil && res.StatusCode == http.StatusNotModified {
 13887  		if res.Body != nil {
 13888  			res.Body.Close()
 13889  		}
 13890  		return nil, gensupport.WrapError(&googleapi.Error{
 13891  			Code:   res.StatusCode,
 13892  			Header: res.Header,
 13893  		})
 13894  	}
 13895  	if err != nil {
 13896  		return nil, err
 13897  	}
 13898  	defer googleapi.CloseBody(res)
 13899  	if err := googleapi.CheckResponse(res); err != nil {
 13900  		return nil, gensupport.WrapError(err)
 13901  	}
 13902  	ret := &GooglePrivacyDlpV2JobTrigger{
 13903  		ServerResponse: googleapi.ServerResponse{
 13904  			Header:         res.Header,
 13905  			HTTPStatusCode: res.StatusCode,
 13906  		},
 13907  	}
 13908  	target := &ret
 13909  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13910  		return nil, err
 13911  	}
 13912  	return ret, nil
 13913  }
 13914  
 13915  type OrganizationsLocationsJobTriggersListCall struct {
 13916  	s            *Service
 13917  	parentid     string
 13918  	urlParams_   gensupport.URLParams
 13919  	ifNoneMatch_ string
 13920  	ctx_         context.Context
 13921  	header_      http.Header
 13922  }
 13923  
 13924  // List: Lists job triggers. See
 13925  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 13926  // to learn more.
 13927  //
 13928  //   - parent: Parent resource name. The format of this value varies depending on
 13929  //     whether you have specified a processing location
 13930  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 13931  //   - Projects scope, location specified:
 13932  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 13933  //     location specified (defaults to global): `projects/`PROJECT_ID The
 13934  //     following example `parent` string specifies a parent project with the
 13935  //     identifier `example-project`, and specifies the `europe-west3` location
 13936  //     for processing data:
 13937  //     parent=projects/example-project/locations/europe-west3.
 13938  func (r *OrganizationsLocationsJobTriggersService) List(parentid string) *OrganizationsLocationsJobTriggersListCall {
 13939  	c := &OrganizationsLocationsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13940  	c.parentid = parentid
 13941  	return c
 13942  }
 13943  
 13944  // Filter sets the optional parameter "filter": Allows filtering. Supported
 13945  // syntax: * Filter expressions are made up of one or more restrictions. *
 13946  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 13947  // of restrictions implicitly uses `AND`. * A restriction has the form of
 13948  // `{field} {operator} {value}`. * Supported fields/values for inspect
 13949  // triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` -
 13950  // DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted
 13951  // timestamp, surrounded by quotation marks. Nanoseconds are ignored. -
 13952  // 'error_count' - Number of errors that have occurred while running. * The
 13953  // operator must be `=` or `!=` for status and inspected_storage. Examples: *
 13954  // inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage =
 13955  // cloud_storage OR inspected_storage = bigquery * inspected_storage =
 13956  // cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time >
 13957  // \"2017-12-12T00:00:00+00:00\" The length of this field should be no more
 13958  // than 500 characters.
 13959  func (c *OrganizationsLocationsJobTriggersListCall) Filter(filter string) *OrganizationsLocationsJobTriggersListCall {
 13960  	c.urlParams_.Set("filter", filter)
 13961  	return c
 13962  }
 13963  
 13964  // LocationId sets the optional parameter "locationId": Deprecated. This field
 13965  // has no effect.
 13966  func (c *OrganizationsLocationsJobTriggersListCall) LocationId(locationId string) *OrganizationsLocationsJobTriggersListCall {
 13967  	c.urlParams_.Set("locationId", locationId)
 13968  	return c
 13969  }
 13970  
 13971  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 13972  // triggeredJob fields to order by, followed by `asc` or `desc` postfix. This
 13973  // list is case insensitive. The default sorting order is ascending. Redundant
 13974  // space characters are insignificant. Example: `name asc,update_time,
 13975  // create_time desc` Supported fields are: - `create_time`: corresponds to the
 13976  // time the JobTrigger was created. - `update_time`: corresponds to the time
 13977  // the JobTrigger was last updated. - `last_run_time`: corresponds to the last
 13978  // time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. -
 13979  // `display_name`: corresponds to the JobTrigger's display name. - `status`:
 13980  // corresponds to JobTrigger's status.
 13981  func (c *OrganizationsLocationsJobTriggersListCall) OrderBy(orderBy string) *OrganizationsLocationsJobTriggersListCall {
 13982  	c.urlParams_.Set("orderBy", orderBy)
 13983  	return c
 13984  }
 13985  
 13986  // PageSize sets the optional parameter "pageSize": Size of the page. This
 13987  // value can be limited by a server.
 13988  func (c *OrganizationsLocationsJobTriggersListCall) PageSize(pageSize int64) *OrganizationsLocationsJobTriggersListCall {
 13989  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13990  	return c
 13991  }
 13992  
 13993  // PageToken sets the optional parameter "pageToken": Page token to continue
 13994  // retrieval. Comes from the previous call to ListJobTriggers. `order_by` field
 13995  // must not change for subsequent calls.
 13996  func (c *OrganizationsLocationsJobTriggersListCall) PageToken(pageToken string) *OrganizationsLocationsJobTriggersListCall {
 13997  	c.urlParams_.Set("pageToken", pageToken)
 13998  	return c
 13999  }
 14000  
 14001  // Type sets the optional parameter "type": The type of jobs. Will use
 14002  // `DlpJobType.INSPECT` if not set.
 14003  //
 14004  // Possible values:
 14005  //
 14006  //	"DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
 14007  //	"INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
 14008  //	"RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
 14009  func (c *OrganizationsLocationsJobTriggersListCall) Type(type_ string) *OrganizationsLocationsJobTriggersListCall {
 14010  	c.urlParams_.Set("type", type_)
 14011  	return c
 14012  }
 14013  
 14014  // Fields allows partial responses to be retrieved. See
 14015  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14016  // details.
 14017  func (c *OrganizationsLocationsJobTriggersListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersListCall {
 14018  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14019  	return c
 14020  }
 14021  
 14022  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14023  // object's ETag matches the given value. This is useful for getting updates
 14024  // only after the object has changed since the last request.
 14025  func (c *OrganizationsLocationsJobTriggersListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsJobTriggersListCall {
 14026  	c.ifNoneMatch_ = entityTag
 14027  	return c
 14028  }
 14029  
 14030  // Context sets the context to be used in this call's Do method.
 14031  func (c *OrganizationsLocationsJobTriggersListCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersListCall {
 14032  	c.ctx_ = ctx
 14033  	return c
 14034  }
 14035  
 14036  // Header returns a http.Header that can be modified by the caller to add
 14037  // headers to the request.
 14038  func (c *OrganizationsLocationsJobTriggersListCall) Header() http.Header {
 14039  	if c.header_ == nil {
 14040  		c.header_ = make(http.Header)
 14041  	}
 14042  	return c.header_
 14043  }
 14044  
 14045  func (c *OrganizationsLocationsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
 14046  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14047  	if c.ifNoneMatch_ != "" {
 14048  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14049  	}
 14050  	var body io.Reader = nil
 14051  	c.urlParams_.Set("alt", alt)
 14052  	c.urlParams_.Set("prettyPrint", "false")
 14053  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
 14054  	urls += "?" + c.urlParams_.Encode()
 14055  	req, err := http.NewRequest("GET", urls, body)
 14056  	if err != nil {
 14057  		return nil, err
 14058  	}
 14059  	req.Header = reqHeaders
 14060  	googleapi.Expand(req.URL, map[string]string{
 14061  		"parent": c.parentid,
 14062  	})
 14063  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14064  }
 14065  
 14066  // Do executes the "dlp.organizations.locations.jobTriggers.list" call.
 14067  // Any non-2xx status code is an error. Response headers are in either
 14068  // *GooglePrivacyDlpV2ListJobTriggersResponse.ServerResponse.Header or (if a
 14069  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14070  // googleapi.IsNotModified to check whether the returned error was because
 14071  // http.StatusNotModified was returned.
 14072  func (c *OrganizationsLocationsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListJobTriggersResponse, error) {
 14073  	gensupport.SetOptions(c.urlParams_, opts...)
 14074  	res, err := c.doRequest("json")
 14075  	if res != nil && res.StatusCode == http.StatusNotModified {
 14076  		if res.Body != nil {
 14077  			res.Body.Close()
 14078  		}
 14079  		return nil, gensupport.WrapError(&googleapi.Error{
 14080  			Code:   res.StatusCode,
 14081  			Header: res.Header,
 14082  		})
 14083  	}
 14084  	if err != nil {
 14085  		return nil, err
 14086  	}
 14087  	defer googleapi.CloseBody(res)
 14088  	if err := googleapi.CheckResponse(res); err != nil {
 14089  		return nil, gensupport.WrapError(err)
 14090  	}
 14091  	ret := &GooglePrivacyDlpV2ListJobTriggersResponse{
 14092  		ServerResponse: googleapi.ServerResponse{
 14093  			Header:         res.Header,
 14094  			HTTPStatusCode: res.StatusCode,
 14095  		},
 14096  	}
 14097  	target := &ret
 14098  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14099  		return nil, err
 14100  	}
 14101  	return ret, nil
 14102  }
 14103  
 14104  // Pages invokes f for each page of results.
 14105  // A non-nil error returned from f will halt the iteration.
 14106  // The provided context supersedes any context provided to the Context method.
 14107  func (c *OrganizationsLocationsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListJobTriggersResponse) error) error {
 14108  	c.ctx_ = ctx
 14109  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14110  	for {
 14111  		x, err := c.Do()
 14112  		if err != nil {
 14113  			return err
 14114  		}
 14115  		if err := f(x); err != nil {
 14116  			return err
 14117  		}
 14118  		if x.NextPageToken == "" {
 14119  			return nil
 14120  		}
 14121  		c.PageToken(x.NextPageToken)
 14122  	}
 14123  }
 14124  
 14125  type OrganizationsLocationsJobTriggersPatchCall struct {
 14126  	s                                         *Service
 14127  	name                                      string
 14128  	googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest
 14129  	urlParams_                                gensupport.URLParams
 14130  	ctx_                                      context.Context
 14131  	header_                                   http.Header
 14132  }
 14133  
 14134  // Patch: Updates a job trigger. See
 14135  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 14136  // to learn more.
 14137  //
 14138  //   - name: Resource name of the project and the triggeredJob, for example
 14139  //     `projects/dlp-test-project/jobTriggers/53234423`.
 14140  func (r *OrganizationsLocationsJobTriggersService) Patch(name string, googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest) *OrganizationsLocationsJobTriggersPatchCall {
 14141  	c := &OrganizationsLocationsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14142  	c.name = name
 14143  	c.googleprivacydlpv2updatejobtriggerrequest = googleprivacydlpv2updatejobtriggerrequest
 14144  	return c
 14145  }
 14146  
 14147  // Fields allows partial responses to be retrieved. See
 14148  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14149  // details.
 14150  func (c *OrganizationsLocationsJobTriggersPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersPatchCall {
 14151  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14152  	return c
 14153  }
 14154  
 14155  // Context sets the context to be used in this call's Do method.
 14156  func (c *OrganizationsLocationsJobTriggersPatchCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersPatchCall {
 14157  	c.ctx_ = ctx
 14158  	return c
 14159  }
 14160  
 14161  // Header returns a http.Header that can be modified by the caller to add
 14162  // headers to the request.
 14163  func (c *OrganizationsLocationsJobTriggersPatchCall) Header() http.Header {
 14164  	if c.header_ == nil {
 14165  		c.header_ = make(http.Header)
 14166  	}
 14167  	return c.header_
 14168  }
 14169  
 14170  func (c *OrganizationsLocationsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
 14171  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14172  	var body io.Reader = nil
 14173  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatejobtriggerrequest)
 14174  	if err != nil {
 14175  		return nil, err
 14176  	}
 14177  	c.urlParams_.Set("alt", alt)
 14178  	c.urlParams_.Set("prettyPrint", "false")
 14179  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 14180  	urls += "?" + c.urlParams_.Encode()
 14181  	req, err := http.NewRequest("PATCH", urls, body)
 14182  	if err != nil {
 14183  		return nil, err
 14184  	}
 14185  	req.Header = reqHeaders
 14186  	googleapi.Expand(req.URL, map[string]string{
 14187  		"name": c.name,
 14188  	})
 14189  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14190  }
 14191  
 14192  // Do executes the "dlp.organizations.locations.jobTriggers.patch" call.
 14193  // Any non-2xx status code is an error. Response headers are in either
 14194  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 14195  // returned at all) in error.(*googleapi.Error).Header. Use
 14196  // googleapi.IsNotModified to check whether the returned error was because
 14197  // http.StatusNotModified was returned.
 14198  func (c *OrganizationsLocationsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 14199  	gensupport.SetOptions(c.urlParams_, opts...)
 14200  	res, err := c.doRequest("json")
 14201  	if res != nil && res.StatusCode == http.StatusNotModified {
 14202  		if res.Body != nil {
 14203  			res.Body.Close()
 14204  		}
 14205  		return nil, gensupport.WrapError(&googleapi.Error{
 14206  			Code:   res.StatusCode,
 14207  			Header: res.Header,
 14208  		})
 14209  	}
 14210  	if err != nil {
 14211  		return nil, err
 14212  	}
 14213  	defer googleapi.CloseBody(res)
 14214  	if err := googleapi.CheckResponse(res); err != nil {
 14215  		return nil, gensupport.WrapError(err)
 14216  	}
 14217  	ret := &GooglePrivacyDlpV2JobTrigger{
 14218  		ServerResponse: googleapi.ServerResponse{
 14219  			Header:         res.Header,
 14220  			HTTPStatusCode: res.StatusCode,
 14221  		},
 14222  	}
 14223  	target := &ret
 14224  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14225  		return nil, err
 14226  	}
 14227  	return ret, nil
 14228  }
 14229  
 14230  type OrganizationsLocationsProjectDataProfilesGetCall struct {
 14231  	s            *Service
 14232  	name         string
 14233  	urlParams_   gensupport.URLParams
 14234  	ifNoneMatch_ string
 14235  	ctx_         context.Context
 14236  	header_      http.Header
 14237  }
 14238  
 14239  // Get: Gets a project data profile.
 14240  //
 14241  //   - name: Resource name, for example
 14242  //     `organizations/12345/locations/us/projectDataProfiles/53234423`.
 14243  func (r *OrganizationsLocationsProjectDataProfilesService) Get(name string) *OrganizationsLocationsProjectDataProfilesGetCall {
 14244  	c := &OrganizationsLocationsProjectDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14245  	c.name = name
 14246  	return c
 14247  }
 14248  
 14249  // Fields allows partial responses to be retrieved. See
 14250  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14251  // details.
 14252  func (c *OrganizationsLocationsProjectDataProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsProjectDataProfilesGetCall {
 14253  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14254  	return c
 14255  }
 14256  
 14257  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14258  // object's ETag matches the given value. This is useful for getting updates
 14259  // only after the object has changed since the last request.
 14260  func (c *OrganizationsLocationsProjectDataProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsProjectDataProfilesGetCall {
 14261  	c.ifNoneMatch_ = entityTag
 14262  	return c
 14263  }
 14264  
 14265  // Context sets the context to be used in this call's Do method.
 14266  func (c *OrganizationsLocationsProjectDataProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsProjectDataProfilesGetCall {
 14267  	c.ctx_ = ctx
 14268  	return c
 14269  }
 14270  
 14271  // Header returns a http.Header that can be modified by the caller to add
 14272  // headers to the request.
 14273  func (c *OrganizationsLocationsProjectDataProfilesGetCall) Header() http.Header {
 14274  	if c.header_ == nil {
 14275  		c.header_ = make(http.Header)
 14276  	}
 14277  	return c.header_
 14278  }
 14279  
 14280  func (c *OrganizationsLocationsProjectDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 14281  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14282  	if c.ifNoneMatch_ != "" {
 14283  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14284  	}
 14285  	var body io.Reader = nil
 14286  	c.urlParams_.Set("alt", alt)
 14287  	c.urlParams_.Set("prettyPrint", "false")
 14288  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 14289  	urls += "?" + c.urlParams_.Encode()
 14290  	req, err := http.NewRequest("GET", urls, body)
 14291  	if err != nil {
 14292  		return nil, err
 14293  	}
 14294  	req.Header = reqHeaders
 14295  	googleapi.Expand(req.URL, map[string]string{
 14296  		"name": c.name,
 14297  	})
 14298  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14299  }
 14300  
 14301  // Do executes the "dlp.organizations.locations.projectDataProfiles.get" call.
 14302  // Any non-2xx status code is an error. Response headers are in either
 14303  // *GooglePrivacyDlpV2ProjectDataProfile.ServerResponse.Header or (if a
 14304  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14305  // googleapi.IsNotModified to check whether the returned error was because
 14306  // http.StatusNotModified was returned.
 14307  func (c *OrganizationsLocationsProjectDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ProjectDataProfile, error) {
 14308  	gensupport.SetOptions(c.urlParams_, opts...)
 14309  	res, err := c.doRequest("json")
 14310  	if res != nil && res.StatusCode == http.StatusNotModified {
 14311  		if res.Body != nil {
 14312  			res.Body.Close()
 14313  		}
 14314  		return nil, gensupport.WrapError(&googleapi.Error{
 14315  			Code:   res.StatusCode,
 14316  			Header: res.Header,
 14317  		})
 14318  	}
 14319  	if err != nil {
 14320  		return nil, err
 14321  	}
 14322  	defer googleapi.CloseBody(res)
 14323  	if err := googleapi.CheckResponse(res); err != nil {
 14324  		return nil, gensupport.WrapError(err)
 14325  	}
 14326  	ret := &GooglePrivacyDlpV2ProjectDataProfile{
 14327  		ServerResponse: googleapi.ServerResponse{
 14328  			Header:         res.Header,
 14329  			HTTPStatusCode: res.StatusCode,
 14330  		},
 14331  	}
 14332  	target := &ret
 14333  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14334  		return nil, err
 14335  	}
 14336  	return ret, nil
 14337  }
 14338  
 14339  type OrganizationsLocationsProjectDataProfilesListCall struct {
 14340  	s            *Service
 14341  	parent       string
 14342  	urlParams_   gensupport.URLParams
 14343  	ifNoneMatch_ string
 14344  	ctx_         context.Context
 14345  	header_      http.Header
 14346  }
 14347  
 14348  // List: Lists project data profiles for an organization.
 14349  //
 14350  // - parent: organizations/{org_id}/locations/{loc_id}.
 14351  func (r *OrganizationsLocationsProjectDataProfilesService) List(parent string) *OrganizationsLocationsProjectDataProfilesListCall {
 14352  	c := &OrganizationsLocationsProjectDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14353  	c.parent = parent
 14354  	return c
 14355  }
 14356  
 14357  // Filter sets the optional parameter "filter": Allows filtering. Supported
 14358  // syntax: * Filter expressions are made up of one or more restrictions. *
 14359  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 14360  // of restrictions implicitly uses `AND`. * A restriction has the form of
 14361  // `{field} {operator} {value}`. * Supported fields/values: -
 14362  // `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` -
 14363  // HIGH|MODERATE|LOW - `status_code` - an RPC status code as defined in
 14364  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
 14365  // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND
 14366  // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` The
 14367  // length of this field should be no more than 500 characters.
 14368  func (c *OrganizationsLocationsProjectDataProfilesListCall) Filter(filter string) *OrganizationsLocationsProjectDataProfilesListCall {
 14369  	c.urlParams_.Set("filter", filter)
 14370  	return c
 14371  }
 14372  
 14373  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 14374  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 14375  // insensitive. The default sorting order is ascending. Redundant space
 14376  // characters are insignificant. Only one order field at a time is allowed.
 14377  // Examples: * `project_id` * `sensitivity_level desc` Supported fields are: -
 14378  // `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive
 14379  // the data in a project is, at most. - `data_risk_level`: How much risk is
 14380  // associated with this data. - `profile_last_generated`: When the profile was
 14381  // last updated in epoch seconds.
 14382  func (c *OrganizationsLocationsProjectDataProfilesListCall) OrderBy(orderBy string) *OrganizationsLocationsProjectDataProfilesListCall {
 14383  	c.urlParams_.Set("orderBy", orderBy)
 14384  	return c
 14385  }
 14386  
 14387  // PageSize sets the optional parameter "pageSize": Size of the page. This
 14388  // value can be limited by the server. If zero, server returns a page of max
 14389  // size 100.
 14390  func (c *OrganizationsLocationsProjectDataProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsProjectDataProfilesListCall {
 14391  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14392  	return c
 14393  }
 14394  
 14395  // PageToken sets the optional parameter "pageToken": Page token to continue
 14396  // retrieval.
 14397  func (c *OrganizationsLocationsProjectDataProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsProjectDataProfilesListCall {
 14398  	c.urlParams_.Set("pageToken", pageToken)
 14399  	return c
 14400  }
 14401  
 14402  // Fields allows partial responses to be retrieved. See
 14403  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14404  // details.
 14405  func (c *OrganizationsLocationsProjectDataProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsProjectDataProfilesListCall {
 14406  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14407  	return c
 14408  }
 14409  
 14410  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14411  // object's ETag matches the given value. This is useful for getting updates
 14412  // only after the object has changed since the last request.
 14413  func (c *OrganizationsLocationsProjectDataProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsProjectDataProfilesListCall {
 14414  	c.ifNoneMatch_ = entityTag
 14415  	return c
 14416  }
 14417  
 14418  // Context sets the context to be used in this call's Do method.
 14419  func (c *OrganizationsLocationsProjectDataProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsProjectDataProfilesListCall {
 14420  	c.ctx_ = ctx
 14421  	return c
 14422  }
 14423  
 14424  // Header returns a http.Header that can be modified by the caller to add
 14425  // headers to the request.
 14426  func (c *OrganizationsLocationsProjectDataProfilesListCall) Header() http.Header {
 14427  	if c.header_ == nil {
 14428  		c.header_ = make(http.Header)
 14429  	}
 14430  	return c.header_
 14431  }
 14432  
 14433  func (c *OrganizationsLocationsProjectDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
 14434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14435  	if c.ifNoneMatch_ != "" {
 14436  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14437  	}
 14438  	var body io.Reader = nil
 14439  	c.urlParams_.Set("alt", alt)
 14440  	c.urlParams_.Set("prettyPrint", "false")
 14441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/projectDataProfiles")
 14442  	urls += "?" + c.urlParams_.Encode()
 14443  	req, err := http.NewRequest("GET", urls, body)
 14444  	if err != nil {
 14445  		return nil, err
 14446  	}
 14447  	req.Header = reqHeaders
 14448  	googleapi.Expand(req.URL, map[string]string{
 14449  		"parent": c.parent,
 14450  	})
 14451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14452  }
 14453  
 14454  // Do executes the "dlp.organizations.locations.projectDataProfiles.list" call.
 14455  // Any non-2xx status code is an error. Response headers are in either
 14456  // *GooglePrivacyDlpV2ListProjectDataProfilesResponse.ServerResponse.Header or
 14457  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 14458  // googleapi.IsNotModified to check whether the returned error was because
 14459  // http.StatusNotModified was returned.
 14460  func (c *OrganizationsLocationsProjectDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListProjectDataProfilesResponse, error) {
 14461  	gensupport.SetOptions(c.urlParams_, opts...)
 14462  	res, err := c.doRequest("json")
 14463  	if res != nil && res.StatusCode == http.StatusNotModified {
 14464  		if res.Body != nil {
 14465  			res.Body.Close()
 14466  		}
 14467  		return nil, gensupport.WrapError(&googleapi.Error{
 14468  			Code:   res.StatusCode,
 14469  			Header: res.Header,
 14470  		})
 14471  	}
 14472  	if err != nil {
 14473  		return nil, err
 14474  	}
 14475  	defer googleapi.CloseBody(res)
 14476  	if err := googleapi.CheckResponse(res); err != nil {
 14477  		return nil, gensupport.WrapError(err)
 14478  	}
 14479  	ret := &GooglePrivacyDlpV2ListProjectDataProfilesResponse{
 14480  		ServerResponse: googleapi.ServerResponse{
 14481  			Header:         res.Header,
 14482  			HTTPStatusCode: res.StatusCode,
 14483  		},
 14484  	}
 14485  	target := &ret
 14486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14487  		return nil, err
 14488  	}
 14489  	return ret, nil
 14490  }
 14491  
 14492  // Pages invokes f for each page of results.
 14493  // A non-nil error returned from f will halt the iteration.
 14494  // The provided context supersedes any context provided to the Context method.
 14495  func (c *OrganizationsLocationsProjectDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListProjectDataProfilesResponse) error) error {
 14496  	c.ctx_ = ctx
 14497  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14498  	for {
 14499  		x, err := c.Do()
 14500  		if err != nil {
 14501  			return err
 14502  		}
 14503  		if err := f(x); err != nil {
 14504  			return err
 14505  		}
 14506  		if x.NextPageToken == "" {
 14507  			return nil
 14508  		}
 14509  		c.PageToken(x.NextPageToken)
 14510  	}
 14511  }
 14512  
 14513  type OrganizationsLocationsStoredInfoTypesCreateCall struct {
 14514  	s                                             *Service
 14515  	parentid                                      string
 14516  	googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
 14517  	urlParams_                                    gensupport.URLParams
 14518  	ctx_                                          context.Context
 14519  	header_                                       http.Header
 14520  }
 14521  
 14522  // Create: Creates a pre-built stored infoType to be used for inspection. See
 14523  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 14524  // to learn more.
 14525  //
 14526  //   - parent: Parent resource name. The format of this value varies depending on
 14527  //     the scope of the request (project or organization) and whether you have
 14528  //     specified a processing location
 14529  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 14530  //   - Projects scope, location specified:
 14531  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 14532  //     location specified (defaults to global): `projects/`PROJECT_ID +
 14533  //     Organizations scope, location specified:
 14534  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 14535  //     location specified (defaults to global): `organizations/`ORG_ID The
 14536  //     following example `parent` string specifies a parent project with the
 14537  //     identifier `example-project`, and specifies the `europe-west3` location
 14538  //     for processing data:
 14539  //     parent=projects/example-project/locations/europe-west3.
 14540  func (r *OrganizationsLocationsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *OrganizationsLocationsStoredInfoTypesCreateCall {
 14541  	c := &OrganizationsLocationsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14542  	c.parentid = parentid
 14543  	c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
 14544  	return c
 14545  }
 14546  
 14547  // Fields allows partial responses to be retrieved. See
 14548  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14549  // details.
 14550  func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesCreateCall {
 14551  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14552  	return c
 14553  }
 14554  
 14555  // Context sets the context to be used in this call's Do method.
 14556  func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesCreateCall {
 14557  	c.ctx_ = ctx
 14558  	return c
 14559  }
 14560  
 14561  // Header returns a http.Header that can be modified by the caller to add
 14562  // headers to the request.
 14563  func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Header() http.Header {
 14564  	if c.header_ == nil {
 14565  		c.header_ = make(http.Header)
 14566  	}
 14567  	return c.header_
 14568  }
 14569  
 14570  func (c *OrganizationsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 14571  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14572  	var body io.Reader = nil
 14573  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
 14574  	if err != nil {
 14575  		return nil, err
 14576  	}
 14577  	c.urlParams_.Set("alt", alt)
 14578  	c.urlParams_.Set("prettyPrint", "false")
 14579  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 14580  	urls += "?" + c.urlParams_.Encode()
 14581  	req, err := http.NewRequest("POST", urls, body)
 14582  	if err != nil {
 14583  		return nil, err
 14584  	}
 14585  	req.Header = reqHeaders
 14586  	googleapi.Expand(req.URL, map[string]string{
 14587  		"parent": c.parentid,
 14588  	})
 14589  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14590  }
 14591  
 14592  // Do executes the "dlp.organizations.locations.storedInfoTypes.create" call.
 14593  // Any non-2xx status code is an error. Response headers are in either
 14594  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 14595  // was returned at all) in error.(*googleapi.Error).Header. Use
 14596  // googleapi.IsNotModified to check whether the returned error was because
 14597  // http.StatusNotModified was returned.
 14598  func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 14599  	gensupport.SetOptions(c.urlParams_, opts...)
 14600  	res, err := c.doRequest("json")
 14601  	if res != nil && res.StatusCode == http.StatusNotModified {
 14602  		if res.Body != nil {
 14603  			res.Body.Close()
 14604  		}
 14605  		return nil, gensupport.WrapError(&googleapi.Error{
 14606  			Code:   res.StatusCode,
 14607  			Header: res.Header,
 14608  		})
 14609  	}
 14610  	if err != nil {
 14611  		return nil, err
 14612  	}
 14613  	defer googleapi.CloseBody(res)
 14614  	if err := googleapi.CheckResponse(res); err != nil {
 14615  		return nil, gensupport.WrapError(err)
 14616  	}
 14617  	ret := &GooglePrivacyDlpV2StoredInfoType{
 14618  		ServerResponse: googleapi.ServerResponse{
 14619  			Header:         res.Header,
 14620  			HTTPStatusCode: res.StatusCode,
 14621  		},
 14622  	}
 14623  	target := &ret
 14624  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14625  		return nil, err
 14626  	}
 14627  	return ret, nil
 14628  }
 14629  
 14630  type OrganizationsLocationsStoredInfoTypesDeleteCall struct {
 14631  	s          *Service
 14632  	name       string
 14633  	urlParams_ gensupport.URLParams
 14634  	ctx_       context.Context
 14635  	header_    http.Header
 14636  }
 14637  
 14638  // Delete: Deletes a stored infoType. See
 14639  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 14640  // to learn more.
 14641  //
 14642  //   - name: Resource name of the organization and storedInfoType to be deleted,
 14643  //     for example `organizations/433245324/storedInfoTypes/432452342` or
 14644  //     projects/project-id/storedInfoTypes/432452342.
 14645  func (r *OrganizationsLocationsStoredInfoTypesService) Delete(name string) *OrganizationsLocationsStoredInfoTypesDeleteCall {
 14646  	c := &OrganizationsLocationsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14647  	c.name = name
 14648  	return c
 14649  }
 14650  
 14651  // Fields allows partial responses to be retrieved. See
 14652  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14653  // details.
 14654  func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesDeleteCall {
 14655  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14656  	return c
 14657  }
 14658  
 14659  // Context sets the context to be used in this call's Do method.
 14660  func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesDeleteCall {
 14661  	c.ctx_ = ctx
 14662  	return c
 14663  }
 14664  
 14665  // Header returns a http.Header that can be modified by the caller to add
 14666  // headers to the request.
 14667  func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Header() http.Header {
 14668  	if c.header_ == nil {
 14669  		c.header_ = make(http.Header)
 14670  	}
 14671  	return c.header_
 14672  }
 14673  
 14674  func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 14675  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14676  	var body io.Reader = nil
 14677  	c.urlParams_.Set("alt", alt)
 14678  	c.urlParams_.Set("prettyPrint", "false")
 14679  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 14680  	urls += "?" + c.urlParams_.Encode()
 14681  	req, err := http.NewRequest("DELETE", urls, body)
 14682  	if err != nil {
 14683  		return nil, err
 14684  	}
 14685  	req.Header = reqHeaders
 14686  	googleapi.Expand(req.URL, map[string]string{
 14687  		"name": c.name,
 14688  	})
 14689  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14690  }
 14691  
 14692  // Do executes the "dlp.organizations.locations.storedInfoTypes.delete" call.
 14693  // Any non-2xx status code is an error. Response headers are in either
 14694  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 14695  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14696  // check whether the returned error was because http.StatusNotModified was
 14697  // returned.
 14698  func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 14699  	gensupport.SetOptions(c.urlParams_, opts...)
 14700  	res, err := c.doRequest("json")
 14701  	if res != nil && res.StatusCode == http.StatusNotModified {
 14702  		if res.Body != nil {
 14703  			res.Body.Close()
 14704  		}
 14705  		return nil, gensupport.WrapError(&googleapi.Error{
 14706  			Code:   res.StatusCode,
 14707  			Header: res.Header,
 14708  		})
 14709  	}
 14710  	if err != nil {
 14711  		return nil, err
 14712  	}
 14713  	defer googleapi.CloseBody(res)
 14714  	if err := googleapi.CheckResponse(res); err != nil {
 14715  		return nil, gensupport.WrapError(err)
 14716  	}
 14717  	ret := &GoogleProtobufEmpty{
 14718  		ServerResponse: googleapi.ServerResponse{
 14719  			Header:         res.Header,
 14720  			HTTPStatusCode: res.StatusCode,
 14721  		},
 14722  	}
 14723  	target := &ret
 14724  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14725  		return nil, err
 14726  	}
 14727  	return ret, nil
 14728  }
 14729  
 14730  type OrganizationsLocationsStoredInfoTypesGetCall struct {
 14731  	s            *Service
 14732  	name         string
 14733  	urlParams_   gensupport.URLParams
 14734  	ifNoneMatch_ string
 14735  	ctx_         context.Context
 14736  	header_      http.Header
 14737  }
 14738  
 14739  // Get: Gets a stored infoType. See
 14740  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 14741  // to learn more.
 14742  //
 14743  //   - name: Resource name of the organization and storedInfoType to be read, for
 14744  //     example `organizations/433245324/storedInfoTypes/432452342` or
 14745  //     projects/project-id/storedInfoTypes/432452342.
 14746  func (r *OrganizationsLocationsStoredInfoTypesService) Get(name string) *OrganizationsLocationsStoredInfoTypesGetCall {
 14747  	c := &OrganizationsLocationsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14748  	c.name = name
 14749  	return c
 14750  }
 14751  
 14752  // Fields allows partial responses to be retrieved. See
 14753  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14754  // details.
 14755  func (c *OrganizationsLocationsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesGetCall {
 14756  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14757  	return c
 14758  }
 14759  
 14760  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14761  // object's ETag matches the given value. This is useful for getting updates
 14762  // only after the object has changed since the last request.
 14763  func (c *OrganizationsLocationsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsStoredInfoTypesGetCall {
 14764  	c.ifNoneMatch_ = entityTag
 14765  	return c
 14766  }
 14767  
 14768  // Context sets the context to be used in this call's Do method.
 14769  func (c *OrganizationsLocationsStoredInfoTypesGetCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesGetCall {
 14770  	c.ctx_ = ctx
 14771  	return c
 14772  }
 14773  
 14774  // Header returns a http.Header that can be modified by the caller to add
 14775  // headers to the request.
 14776  func (c *OrganizationsLocationsStoredInfoTypesGetCall) Header() http.Header {
 14777  	if c.header_ == nil {
 14778  		c.header_ = make(http.Header)
 14779  	}
 14780  	return c.header_
 14781  }
 14782  
 14783  func (c *OrganizationsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
 14784  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14785  	if c.ifNoneMatch_ != "" {
 14786  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14787  	}
 14788  	var body io.Reader = nil
 14789  	c.urlParams_.Set("alt", alt)
 14790  	c.urlParams_.Set("prettyPrint", "false")
 14791  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 14792  	urls += "?" + c.urlParams_.Encode()
 14793  	req, err := http.NewRequest("GET", urls, body)
 14794  	if err != nil {
 14795  		return nil, err
 14796  	}
 14797  	req.Header = reqHeaders
 14798  	googleapi.Expand(req.URL, map[string]string{
 14799  		"name": c.name,
 14800  	})
 14801  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14802  }
 14803  
 14804  // Do executes the "dlp.organizations.locations.storedInfoTypes.get" call.
 14805  // Any non-2xx status code is an error. Response headers are in either
 14806  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 14807  // was returned at all) in error.(*googleapi.Error).Header. Use
 14808  // googleapi.IsNotModified to check whether the returned error was because
 14809  // http.StatusNotModified was returned.
 14810  func (c *OrganizationsLocationsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 14811  	gensupport.SetOptions(c.urlParams_, opts...)
 14812  	res, err := c.doRequest("json")
 14813  	if res != nil && res.StatusCode == http.StatusNotModified {
 14814  		if res.Body != nil {
 14815  			res.Body.Close()
 14816  		}
 14817  		return nil, gensupport.WrapError(&googleapi.Error{
 14818  			Code:   res.StatusCode,
 14819  			Header: res.Header,
 14820  		})
 14821  	}
 14822  	if err != nil {
 14823  		return nil, err
 14824  	}
 14825  	defer googleapi.CloseBody(res)
 14826  	if err := googleapi.CheckResponse(res); err != nil {
 14827  		return nil, gensupport.WrapError(err)
 14828  	}
 14829  	ret := &GooglePrivacyDlpV2StoredInfoType{
 14830  		ServerResponse: googleapi.ServerResponse{
 14831  			Header:         res.Header,
 14832  			HTTPStatusCode: res.StatusCode,
 14833  		},
 14834  	}
 14835  	target := &ret
 14836  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14837  		return nil, err
 14838  	}
 14839  	return ret, nil
 14840  }
 14841  
 14842  type OrganizationsLocationsStoredInfoTypesListCall struct {
 14843  	s            *Service
 14844  	parentid     string
 14845  	urlParams_   gensupport.URLParams
 14846  	ifNoneMatch_ string
 14847  	ctx_         context.Context
 14848  	header_      http.Header
 14849  }
 14850  
 14851  // List: Lists stored infoTypes. See
 14852  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 14853  // to learn more.
 14854  //
 14855  //   - parent: Parent resource name. The format of this value varies depending on
 14856  //     the scope of the request (project or organization) and whether you have
 14857  //     specified a processing location
 14858  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 14859  //   - Projects scope, location specified:
 14860  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 14861  //     location specified (defaults to global): `projects/`PROJECT_ID The
 14862  //     following example `parent` string specifies a parent project with the
 14863  //     identifier `example-project`, and specifies the `europe-west3` location
 14864  //     for processing data:
 14865  //     parent=projects/example-project/locations/europe-west3.
 14866  func (r *OrganizationsLocationsStoredInfoTypesService) List(parentid string) *OrganizationsLocationsStoredInfoTypesListCall {
 14867  	c := &OrganizationsLocationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14868  	c.parentid = parentid
 14869  	return c
 14870  }
 14871  
 14872  // LocationId sets the optional parameter "locationId": Deprecated. This field
 14873  // has no effect.
 14874  func (c *OrganizationsLocationsStoredInfoTypesListCall) LocationId(locationId string) *OrganizationsLocationsStoredInfoTypesListCall {
 14875  	c.urlParams_.Set("locationId", locationId)
 14876  	return c
 14877  }
 14878  
 14879  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 14880  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 14881  // insensitive. The default sorting order is ascending. Redundant space
 14882  // characters are insignificant. Example: `name asc, display_name, create_time
 14883  // desc` Supported fields are: - `create_time`: corresponds to the time the
 14884  // most recent version of the resource was created. - `state`: corresponds to
 14885  // the state of the resource. - `name`: corresponds to resource name. -
 14886  // `display_name`: corresponds to info type's display name.
 14887  func (c *OrganizationsLocationsStoredInfoTypesListCall) OrderBy(orderBy string) *OrganizationsLocationsStoredInfoTypesListCall {
 14888  	c.urlParams_.Set("orderBy", orderBy)
 14889  	return c
 14890  }
 14891  
 14892  // PageSize sets the optional parameter "pageSize": Size of the page. This
 14893  // value can be limited by the server. If zero server returns a page of max
 14894  // size 100.
 14895  func (c *OrganizationsLocationsStoredInfoTypesListCall) PageSize(pageSize int64) *OrganizationsLocationsStoredInfoTypesListCall {
 14896  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14897  	return c
 14898  }
 14899  
 14900  // PageToken sets the optional parameter "pageToken": Page token to continue
 14901  // retrieval. Comes from the previous call to `ListStoredInfoTypes`.
 14902  func (c *OrganizationsLocationsStoredInfoTypesListCall) PageToken(pageToken string) *OrganizationsLocationsStoredInfoTypesListCall {
 14903  	c.urlParams_.Set("pageToken", pageToken)
 14904  	return c
 14905  }
 14906  
 14907  // Fields allows partial responses to be retrieved. See
 14908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14909  // details.
 14910  func (c *OrganizationsLocationsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesListCall {
 14911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14912  	return c
 14913  }
 14914  
 14915  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14916  // object's ETag matches the given value. This is useful for getting updates
 14917  // only after the object has changed since the last request.
 14918  func (c *OrganizationsLocationsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsStoredInfoTypesListCall {
 14919  	c.ifNoneMatch_ = entityTag
 14920  	return c
 14921  }
 14922  
 14923  // Context sets the context to be used in this call's Do method.
 14924  func (c *OrganizationsLocationsStoredInfoTypesListCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesListCall {
 14925  	c.ctx_ = ctx
 14926  	return c
 14927  }
 14928  
 14929  // Header returns a http.Header that can be modified by the caller to add
 14930  // headers to the request.
 14931  func (c *OrganizationsLocationsStoredInfoTypesListCall) Header() http.Header {
 14932  	if c.header_ == nil {
 14933  		c.header_ = make(http.Header)
 14934  	}
 14935  	return c.header_
 14936  }
 14937  
 14938  func (c *OrganizationsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
 14939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14940  	if c.ifNoneMatch_ != "" {
 14941  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14942  	}
 14943  	var body io.Reader = nil
 14944  	c.urlParams_.Set("alt", alt)
 14945  	c.urlParams_.Set("prettyPrint", "false")
 14946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 14947  	urls += "?" + c.urlParams_.Encode()
 14948  	req, err := http.NewRequest("GET", urls, body)
 14949  	if err != nil {
 14950  		return nil, err
 14951  	}
 14952  	req.Header = reqHeaders
 14953  	googleapi.Expand(req.URL, map[string]string{
 14954  		"parent": c.parentid,
 14955  	})
 14956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14957  }
 14958  
 14959  // Do executes the "dlp.organizations.locations.storedInfoTypes.list" call.
 14960  // Any non-2xx status code is an error. Response headers are in either
 14961  // *GooglePrivacyDlpV2ListStoredInfoTypesResponse.ServerResponse.Header or (if
 14962  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 14963  // googleapi.IsNotModified to check whether the returned error was because
 14964  // http.StatusNotModified was returned.
 14965  func (c *OrganizationsLocationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
 14966  	gensupport.SetOptions(c.urlParams_, opts...)
 14967  	res, err := c.doRequest("json")
 14968  	if res != nil && res.StatusCode == http.StatusNotModified {
 14969  		if res.Body != nil {
 14970  			res.Body.Close()
 14971  		}
 14972  		return nil, gensupport.WrapError(&googleapi.Error{
 14973  			Code:   res.StatusCode,
 14974  			Header: res.Header,
 14975  		})
 14976  	}
 14977  	if err != nil {
 14978  		return nil, err
 14979  	}
 14980  	defer googleapi.CloseBody(res)
 14981  	if err := googleapi.CheckResponse(res); err != nil {
 14982  		return nil, gensupport.WrapError(err)
 14983  	}
 14984  	ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
 14985  		ServerResponse: googleapi.ServerResponse{
 14986  			Header:         res.Header,
 14987  			HTTPStatusCode: res.StatusCode,
 14988  		},
 14989  	}
 14990  	target := &ret
 14991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14992  		return nil, err
 14993  	}
 14994  	return ret, nil
 14995  }
 14996  
 14997  // Pages invokes f for each page of results.
 14998  // A non-nil error returned from f will halt the iteration.
 14999  // The provided context supersedes any context provided to the Context method.
 15000  func (c *OrganizationsLocationsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
 15001  	c.ctx_ = ctx
 15002  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15003  	for {
 15004  		x, err := c.Do()
 15005  		if err != nil {
 15006  			return err
 15007  		}
 15008  		if err := f(x); err != nil {
 15009  			return err
 15010  		}
 15011  		if x.NextPageToken == "" {
 15012  			return nil
 15013  		}
 15014  		c.PageToken(x.NextPageToken)
 15015  	}
 15016  }
 15017  
 15018  type OrganizationsLocationsStoredInfoTypesPatchCall struct {
 15019  	s                                             *Service
 15020  	name                                          string
 15021  	googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
 15022  	urlParams_                                    gensupport.URLParams
 15023  	ctx_                                          context.Context
 15024  	header_                                       http.Header
 15025  }
 15026  
 15027  // Patch: Updates the stored infoType by creating a new version. The existing
 15028  // version will continue to be used until the new version is ready. See
 15029  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 15030  // to learn more.
 15031  //
 15032  //   - name: Resource name of organization and storedInfoType to be updated, for
 15033  //     example `organizations/433245324/storedInfoTypes/432452342` or
 15034  //     projects/project-id/storedInfoTypes/432452342.
 15035  func (r *OrganizationsLocationsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *OrganizationsLocationsStoredInfoTypesPatchCall {
 15036  	c := &OrganizationsLocationsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15037  	c.name = name
 15038  	c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
 15039  	return c
 15040  }
 15041  
 15042  // Fields allows partial responses to be retrieved. See
 15043  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15044  // details.
 15045  func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesPatchCall {
 15046  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15047  	return c
 15048  }
 15049  
 15050  // Context sets the context to be used in this call's Do method.
 15051  func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesPatchCall {
 15052  	c.ctx_ = ctx
 15053  	return c
 15054  }
 15055  
 15056  // Header returns a http.Header that can be modified by the caller to add
 15057  // headers to the request.
 15058  func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Header() http.Header {
 15059  	if c.header_ == nil {
 15060  		c.header_ = make(http.Header)
 15061  	}
 15062  	return c.header_
 15063  }
 15064  
 15065  func (c *OrganizationsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 15066  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15067  	var body io.Reader = nil
 15068  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
 15069  	if err != nil {
 15070  		return nil, err
 15071  	}
 15072  	c.urlParams_.Set("alt", alt)
 15073  	c.urlParams_.Set("prettyPrint", "false")
 15074  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 15075  	urls += "?" + c.urlParams_.Encode()
 15076  	req, err := http.NewRequest("PATCH", urls, body)
 15077  	if err != nil {
 15078  		return nil, err
 15079  	}
 15080  	req.Header = reqHeaders
 15081  	googleapi.Expand(req.URL, map[string]string{
 15082  		"name": c.name,
 15083  	})
 15084  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15085  }
 15086  
 15087  // Do executes the "dlp.organizations.locations.storedInfoTypes.patch" call.
 15088  // Any non-2xx status code is an error. Response headers are in either
 15089  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 15090  // was returned at all) in error.(*googleapi.Error).Header. Use
 15091  // googleapi.IsNotModified to check whether the returned error was because
 15092  // http.StatusNotModified was returned.
 15093  func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 15094  	gensupport.SetOptions(c.urlParams_, opts...)
 15095  	res, err := c.doRequest("json")
 15096  	if res != nil && res.StatusCode == http.StatusNotModified {
 15097  		if res.Body != nil {
 15098  			res.Body.Close()
 15099  		}
 15100  		return nil, gensupport.WrapError(&googleapi.Error{
 15101  			Code:   res.StatusCode,
 15102  			Header: res.Header,
 15103  		})
 15104  	}
 15105  	if err != nil {
 15106  		return nil, err
 15107  	}
 15108  	defer googleapi.CloseBody(res)
 15109  	if err := googleapi.CheckResponse(res); err != nil {
 15110  		return nil, gensupport.WrapError(err)
 15111  	}
 15112  	ret := &GooglePrivacyDlpV2StoredInfoType{
 15113  		ServerResponse: googleapi.ServerResponse{
 15114  			Header:         res.Header,
 15115  			HTTPStatusCode: res.StatusCode,
 15116  		},
 15117  	}
 15118  	target := &ret
 15119  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15120  		return nil, err
 15121  	}
 15122  	return ret, nil
 15123  }
 15124  
 15125  type OrganizationsLocationsTableDataProfilesDeleteCall struct {
 15126  	s          *Service
 15127  	name       string
 15128  	urlParams_ gensupport.URLParams
 15129  	ctx_       context.Context
 15130  	header_    http.Header
 15131  }
 15132  
 15133  // Delete: Delete a TableDataProfile. Will not prevent the profile from being
 15134  // regenerated if the table is still included in a discovery configuration.
 15135  //
 15136  // - name: Resource name of the table data profile.
 15137  func (r *OrganizationsLocationsTableDataProfilesService) Delete(name string) *OrganizationsLocationsTableDataProfilesDeleteCall {
 15138  	c := &OrganizationsLocationsTableDataProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15139  	c.name = name
 15140  	return c
 15141  }
 15142  
 15143  // Fields allows partial responses to be retrieved. See
 15144  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15145  // details.
 15146  func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsTableDataProfilesDeleteCall {
 15147  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15148  	return c
 15149  }
 15150  
 15151  // Context sets the context to be used in this call's Do method.
 15152  func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsTableDataProfilesDeleteCall {
 15153  	c.ctx_ = ctx
 15154  	return c
 15155  }
 15156  
 15157  // Header returns a http.Header that can be modified by the caller to add
 15158  // headers to the request.
 15159  func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Header() http.Header {
 15160  	if c.header_ == nil {
 15161  		c.header_ = make(http.Header)
 15162  	}
 15163  	return c.header_
 15164  }
 15165  
 15166  func (c *OrganizationsLocationsTableDataProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 15167  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15168  	var body io.Reader = nil
 15169  	c.urlParams_.Set("alt", alt)
 15170  	c.urlParams_.Set("prettyPrint", "false")
 15171  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 15172  	urls += "?" + c.urlParams_.Encode()
 15173  	req, err := http.NewRequest("DELETE", urls, body)
 15174  	if err != nil {
 15175  		return nil, err
 15176  	}
 15177  	req.Header = reqHeaders
 15178  	googleapi.Expand(req.URL, map[string]string{
 15179  		"name": c.name,
 15180  	})
 15181  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15182  }
 15183  
 15184  // Do executes the "dlp.organizations.locations.tableDataProfiles.delete" call.
 15185  // Any non-2xx status code is an error. Response headers are in either
 15186  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 15187  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15188  // check whether the returned error was because http.StatusNotModified was
 15189  // returned.
 15190  func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 15191  	gensupport.SetOptions(c.urlParams_, opts...)
 15192  	res, err := c.doRequest("json")
 15193  	if res != nil && res.StatusCode == http.StatusNotModified {
 15194  		if res.Body != nil {
 15195  			res.Body.Close()
 15196  		}
 15197  		return nil, gensupport.WrapError(&googleapi.Error{
 15198  			Code:   res.StatusCode,
 15199  			Header: res.Header,
 15200  		})
 15201  	}
 15202  	if err != nil {
 15203  		return nil, err
 15204  	}
 15205  	defer googleapi.CloseBody(res)
 15206  	if err := googleapi.CheckResponse(res); err != nil {
 15207  		return nil, gensupport.WrapError(err)
 15208  	}
 15209  	ret := &GoogleProtobufEmpty{
 15210  		ServerResponse: googleapi.ServerResponse{
 15211  			Header:         res.Header,
 15212  			HTTPStatusCode: res.StatusCode,
 15213  		},
 15214  	}
 15215  	target := &ret
 15216  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15217  		return nil, err
 15218  	}
 15219  	return ret, nil
 15220  }
 15221  
 15222  type OrganizationsLocationsTableDataProfilesGetCall struct {
 15223  	s            *Service
 15224  	name         string
 15225  	urlParams_   gensupport.URLParams
 15226  	ifNoneMatch_ string
 15227  	ctx_         context.Context
 15228  	header_      http.Header
 15229  }
 15230  
 15231  // Get: Gets a table data profile.
 15232  //
 15233  //   - name: Resource name, for example
 15234  //     `organizations/12345/locations/us/tableDataProfiles/53234423`.
 15235  func (r *OrganizationsLocationsTableDataProfilesService) Get(name string) *OrganizationsLocationsTableDataProfilesGetCall {
 15236  	c := &OrganizationsLocationsTableDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15237  	c.name = name
 15238  	return c
 15239  }
 15240  
 15241  // Fields allows partial responses to be retrieved. See
 15242  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15243  // details.
 15244  func (c *OrganizationsLocationsTableDataProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsTableDataProfilesGetCall {
 15245  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15246  	return c
 15247  }
 15248  
 15249  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15250  // object's ETag matches the given value. This is useful for getting updates
 15251  // only after the object has changed since the last request.
 15252  func (c *OrganizationsLocationsTableDataProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsTableDataProfilesGetCall {
 15253  	c.ifNoneMatch_ = entityTag
 15254  	return c
 15255  }
 15256  
 15257  // Context sets the context to be used in this call's Do method.
 15258  func (c *OrganizationsLocationsTableDataProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsTableDataProfilesGetCall {
 15259  	c.ctx_ = ctx
 15260  	return c
 15261  }
 15262  
 15263  // Header returns a http.Header that can be modified by the caller to add
 15264  // headers to the request.
 15265  func (c *OrganizationsLocationsTableDataProfilesGetCall) Header() http.Header {
 15266  	if c.header_ == nil {
 15267  		c.header_ = make(http.Header)
 15268  	}
 15269  	return c.header_
 15270  }
 15271  
 15272  func (c *OrganizationsLocationsTableDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 15273  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15274  	if c.ifNoneMatch_ != "" {
 15275  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15276  	}
 15277  	var body io.Reader = nil
 15278  	c.urlParams_.Set("alt", alt)
 15279  	c.urlParams_.Set("prettyPrint", "false")
 15280  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 15281  	urls += "?" + c.urlParams_.Encode()
 15282  	req, err := http.NewRequest("GET", urls, body)
 15283  	if err != nil {
 15284  		return nil, err
 15285  	}
 15286  	req.Header = reqHeaders
 15287  	googleapi.Expand(req.URL, map[string]string{
 15288  		"name": c.name,
 15289  	})
 15290  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15291  }
 15292  
 15293  // Do executes the "dlp.organizations.locations.tableDataProfiles.get" call.
 15294  // Any non-2xx status code is an error. Response headers are in either
 15295  // *GooglePrivacyDlpV2TableDataProfile.ServerResponse.Header or (if a response
 15296  // was returned at all) in error.(*googleapi.Error).Header. Use
 15297  // googleapi.IsNotModified to check whether the returned error was because
 15298  // http.StatusNotModified was returned.
 15299  func (c *OrganizationsLocationsTableDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2TableDataProfile, error) {
 15300  	gensupport.SetOptions(c.urlParams_, opts...)
 15301  	res, err := c.doRequest("json")
 15302  	if res != nil && res.StatusCode == http.StatusNotModified {
 15303  		if res.Body != nil {
 15304  			res.Body.Close()
 15305  		}
 15306  		return nil, gensupport.WrapError(&googleapi.Error{
 15307  			Code:   res.StatusCode,
 15308  			Header: res.Header,
 15309  		})
 15310  	}
 15311  	if err != nil {
 15312  		return nil, err
 15313  	}
 15314  	defer googleapi.CloseBody(res)
 15315  	if err := googleapi.CheckResponse(res); err != nil {
 15316  		return nil, gensupport.WrapError(err)
 15317  	}
 15318  	ret := &GooglePrivacyDlpV2TableDataProfile{
 15319  		ServerResponse: googleapi.ServerResponse{
 15320  			Header:         res.Header,
 15321  			HTTPStatusCode: res.StatusCode,
 15322  		},
 15323  	}
 15324  	target := &ret
 15325  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15326  		return nil, err
 15327  	}
 15328  	return ret, nil
 15329  }
 15330  
 15331  type OrganizationsLocationsTableDataProfilesListCall struct {
 15332  	s            *Service
 15333  	parent       string
 15334  	urlParams_   gensupport.URLParams
 15335  	ifNoneMatch_ string
 15336  	ctx_         context.Context
 15337  	header_      http.Header
 15338  }
 15339  
 15340  // List: Lists table data profiles for an organization.
 15341  //
 15342  //   - parent: Resource name of the organization or project, for example
 15343  //     `organizations/433245324/locations/europe` or
 15344  //     `projects/project-id/locations/asia`.
 15345  func (r *OrganizationsLocationsTableDataProfilesService) List(parent string) *OrganizationsLocationsTableDataProfilesListCall {
 15346  	c := &OrganizationsLocationsTableDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15347  	c.parent = parent
 15348  	return c
 15349  }
 15350  
 15351  // Filter sets the optional parameter "filter": Allows filtering. Supported
 15352  // syntax: * Filter expressions are made up of one or more restrictions. *
 15353  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 15354  // of restrictions implicitly uses `AND`. * A restriction has the form of
 15355  // `{field} {operator} {value}`. * Supported fields/values: - `project_id` -
 15356  // The Google Cloud project ID. - `dataset_id` - The BigQuery dataset ID. -
 15357  // `table_id` - The ID of the BigQuery table. - `sensitivity_level` -
 15358  // HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW -
 15359  // `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status
 15360  // code as defined in
 15361  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
 15362  // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND
 15363  // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` *
 15364  // `project_id = 12345 AND resource_visibility = PUBLIC` The length of this
 15365  // field should be no more than 500 characters.
 15366  func (c *OrganizationsLocationsTableDataProfilesListCall) Filter(filter string) *OrganizationsLocationsTableDataProfilesListCall {
 15367  	c.urlParams_.Set("filter", filter)
 15368  	return c
 15369  }
 15370  
 15371  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 15372  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 15373  // insensitive. The default sorting order is ascending. Redundant space
 15374  // characters are insignificant. Only one order field at a time is allowed.
 15375  // Examples: * `project_id asc` * `table_id` * `sensitivity_level desc`
 15376  // Supported fields are: - `project_id`: The Google Cloud project ID. -
 15377  // `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a
 15378  // BigQuery table. - `sensitivity_level`: How sensitive the data in a table is,
 15379  // at most. - `data_risk_level`: How much risk is associated with this data. -
 15380  // `profile_last_generated`: When the profile was last updated in epoch
 15381  // seconds. - `last_modified`: The last time the resource was modified. -
 15382  // `resource_visibility`: Visibility restriction for this resource. -
 15383  // `row_count`: Number of rows in this resource.
 15384  func (c *OrganizationsLocationsTableDataProfilesListCall) OrderBy(orderBy string) *OrganizationsLocationsTableDataProfilesListCall {
 15385  	c.urlParams_.Set("orderBy", orderBy)
 15386  	return c
 15387  }
 15388  
 15389  // PageSize sets the optional parameter "pageSize": Size of the page. This
 15390  // value can be limited by the server. If zero, server returns a page of max
 15391  // size 100.
 15392  func (c *OrganizationsLocationsTableDataProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsTableDataProfilesListCall {
 15393  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15394  	return c
 15395  }
 15396  
 15397  // PageToken sets the optional parameter "pageToken": Page token to continue
 15398  // retrieval.
 15399  func (c *OrganizationsLocationsTableDataProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsTableDataProfilesListCall {
 15400  	c.urlParams_.Set("pageToken", pageToken)
 15401  	return c
 15402  }
 15403  
 15404  // Fields allows partial responses to be retrieved. See
 15405  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15406  // details.
 15407  func (c *OrganizationsLocationsTableDataProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsTableDataProfilesListCall {
 15408  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15409  	return c
 15410  }
 15411  
 15412  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15413  // object's ETag matches the given value. This is useful for getting updates
 15414  // only after the object has changed since the last request.
 15415  func (c *OrganizationsLocationsTableDataProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsTableDataProfilesListCall {
 15416  	c.ifNoneMatch_ = entityTag
 15417  	return c
 15418  }
 15419  
 15420  // Context sets the context to be used in this call's Do method.
 15421  func (c *OrganizationsLocationsTableDataProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsTableDataProfilesListCall {
 15422  	c.ctx_ = ctx
 15423  	return c
 15424  }
 15425  
 15426  // Header returns a http.Header that can be modified by the caller to add
 15427  // headers to the request.
 15428  func (c *OrganizationsLocationsTableDataProfilesListCall) Header() http.Header {
 15429  	if c.header_ == nil {
 15430  		c.header_ = make(http.Header)
 15431  	}
 15432  	return c.header_
 15433  }
 15434  
 15435  func (c *OrganizationsLocationsTableDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
 15436  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15437  	if c.ifNoneMatch_ != "" {
 15438  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15439  	}
 15440  	var body io.Reader = nil
 15441  	c.urlParams_.Set("alt", alt)
 15442  	c.urlParams_.Set("prettyPrint", "false")
 15443  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tableDataProfiles")
 15444  	urls += "?" + c.urlParams_.Encode()
 15445  	req, err := http.NewRequest("GET", urls, body)
 15446  	if err != nil {
 15447  		return nil, err
 15448  	}
 15449  	req.Header = reqHeaders
 15450  	googleapi.Expand(req.URL, map[string]string{
 15451  		"parent": c.parent,
 15452  	})
 15453  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15454  }
 15455  
 15456  // Do executes the "dlp.organizations.locations.tableDataProfiles.list" call.
 15457  // Any non-2xx status code is an error. Response headers are in either
 15458  // *GooglePrivacyDlpV2ListTableDataProfilesResponse.ServerResponse.Header or
 15459  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 15460  // googleapi.IsNotModified to check whether the returned error was because
 15461  // http.StatusNotModified was returned.
 15462  func (c *OrganizationsLocationsTableDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListTableDataProfilesResponse, error) {
 15463  	gensupport.SetOptions(c.urlParams_, opts...)
 15464  	res, err := c.doRequest("json")
 15465  	if res != nil && res.StatusCode == http.StatusNotModified {
 15466  		if res.Body != nil {
 15467  			res.Body.Close()
 15468  		}
 15469  		return nil, gensupport.WrapError(&googleapi.Error{
 15470  			Code:   res.StatusCode,
 15471  			Header: res.Header,
 15472  		})
 15473  	}
 15474  	if err != nil {
 15475  		return nil, err
 15476  	}
 15477  	defer googleapi.CloseBody(res)
 15478  	if err := googleapi.CheckResponse(res); err != nil {
 15479  		return nil, gensupport.WrapError(err)
 15480  	}
 15481  	ret := &GooglePrivacyDlpV2ListTableDataProfilesResponse{
 15482  		ServerResponse: googleapi.ServerResponse{
 15483  			Header:         res.Header,
 15484  			HTTPStatusCode: res.StatusCode,
 15485  		},
 15486  	}
 15487  	target := &ret
 15488  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15489  		return nil, err
 15490  	}
 15491  	return ret, nil
 15492  }
 15493  
 15494  // Pages invokes f for each page of results.
 15495  // A non-nil error returned from f will halt the iteration.
 15496  // The provided context supersedes any context provided to the Context method.
 15497  func (c *OrganizationsLocationsTableDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListTableDataProfilesResponse) error) error {
 15498  	c.ctx_ = ctx
 15499  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15500  	for {
 15501  		x, err := c.Do()
 15502  		if err != nil {
 15503  			return err
 15504  		}
 15505  		if err := f(x); err != nil {
 15506  			return err
 15507  		}
 15508  		if x.NextPageToken == "" {
 15509  			return nil
 15510  		}
 15511  		c.PageToken(x.NextPageToken)
 15512  	}
 15513  }
 15514  
 15515  type OrganizationsStoredInfoTypesCreateCall struct {
 15516  	s                                             *Service
 15517  	parentid                                      string
 15518  	googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
 15519  	urlParams_                                    gensupport.URLParams
 15520  	ctx_                                          context.Context
 15521  	header_                                       http.Header
 15522  }
 15523  
 15524  // Create: Creates a pre-built stored infoType to be used for inspection. See
 15525  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 15526  // to learn more.
 15527  //
 15528  //   - parent: Parent resource name. The format of this value varies depending on
 15529  //     the scope of the request (project or organization) and whether you have
 15530  //     specified a processing location
 15531  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 15532  //   - Projects scope, location specified:
 15533  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 15534  //     location specified (defaults to global): `projects/`PROJECT_ID +
 15535  //     Organizations scope, location specified:
 15536  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 15537  //     location specified (defaults to global): `organizations/`ORG_ID The
 15538  //     following example `parent` string specifies a parent project with the
 15539  //     identifier `example-project`, and specifies the `europe-west3` location
 15540  //     for processing data:
 15541  //     parent=projects/example-project/locations/europe-west3.
 15542  func (r *OrganizationsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *OrganizationsStoredInfoTypesCreateCall {
 15543  	c := &OrganizationsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15544  	c.parentid = parentid
 15545  	c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
 15546  	return c
 15547  }
 15548  
 15549  // Fields allows partial responses to be retrieved. See
 15550  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15551  // details.
 15552  func (c *OrganizationsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesCreateCall {
 15553  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15554  	return c
 15555  }
 15556  
 15557  // Context sets the context to be used in this call's Do method.
 15558  func (c *OrganizationsStoredInfoTypesCreateCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesCreateCall {
 15559  	c.ctx_ = ctx
 15560  	return c
 15561  }
 15562  
 15563  // Header returns a http.Header that can be modified by the caller to add
 15564  // headers to the request.
 15565  func (c *OrganizationsStoredInfoTypesCreateCall) Header() http.Header {
 15566  	if c.header_ == nil {
 15567  		c.header_ = make(http.Header)
 15568  	}
 15569  	return c.header_
 15570  }
 15571  
 15572  func (c *OrganizationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 15573  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15574  	var body io.Reader = nil
 15575  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
 15576  	if err != nil {
 15577  		return nil, err
 15578  	}
 15579  	c.urlParams_.Set("alt", alt)
 15580  	c.urlParams_.Set("prettyPrint", "false")
 15581  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 15582  	urls += "?" + c.urlParams_.Encode()
 15583  	req, err := http.NewRequest("POST", urls, body)
 15584  	if err != nil {
 15585  		return nil, err
 15586  	}
 15587  	req.Header = reqHeaders
 15588  	googleapi.Expand(req.URL, map[string]string{
 15589  		"parent": c.parentid,
 15590  	})
 15591  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15592  }
 15593  
 15594  // Do executes the "dlp.organizations.storedInfoTypes.create" call.
 15595  // Any non-2xx status code is an error. Response headers are in either
 15596  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 15597  // was returned at all) in error.(*googleapi.Error).Header. Use
 15598  // googleapi.IsNotModified to check whether the returned error was because
 15599  // http.StatusNotModified was returned.
 15600  func (c *OrganizationsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 15601  	gensupport.SetOptions(c.urlParams_, opts...)
 15602  	res, err := c.doRequest("json")
 15603  	if res != nil && res.StatusCode == http.StatusNotModified {
 15604  		if res.Body != nil {
 15605  			res.Body.Close()
 15606  		}
 15607  		return nil, gensupport.WrapError(&googleapi.Error{
 15608  			Code:   res.StatusCode,
 15609  			Header: res.Header,
 15610  		})
 15611  	}
 15612  	if err != nil {
 15613  		return nil, err
 15614  	}
 15615  	defer googleapi.CloseBody(res)
 15616  	if err := googleapi.CheckResponse(res); err != nil {
 15617  		return nil, gensupport.WrapError(err)
 15618  	}
 15619  	ret := &GooglePrivacyDlpV2StoredInfoType{
 15620  		ServerResponse: googleapi.ServerResponse{
 15621  			Header:         res.Header,
 15622  			HTTPStatusCode: res.StatusCode,
 15623  		},
 15624  	}
 15625  	target := &ret
 15626  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15627  		return nil, err
 15628  	}
 15629  	return ret, nil
 15630  }
 15631  
 15632  type OrganizationsStoredInfoTypesDeleteCall struct {
 15633  	s          *Service
 15634  	name       string
 15635  	urlParams_ gensupport.URLParams
 15636  	ctx_       context.Context
 15637  	header_    http.Header
 15638  }
 15639  
 15640  // Delete: Deletes a stored infoType. See
 15641  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 15642  // to learn more.
 15643  //
 15644  //   - name: Resource name of the organization and storedInfoType to be deleted,
 15645  //     for example `organizations/433245324/storedInfoTypes/432452342` or
 15646  //     projects/project-id/storedInfoTypes/432452342.
 15647  func (r *OrganizationsStoredInfoTypesService) Delete(name string) *OrganizationsStoredInfoTypesDeleteCall {
 15648  	c := &OrganizationsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15649  	c.name = name
 15650  	return c
 15651  }
 15652  
 15653  // Fields allows partial responses to be retrieved. See
 15654  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15655  // details.
 15656  func (c *OrganizationsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesDeleteCall {
 15657  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15658  	return c
 15659  }
 15660  
 15661  // Context sets the context to be used in this call's Do method.
 15662  func (c *OrganizationsStoredInfoTypesDeleteCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesDeleteCall {
 15663  	c.ctx_ = ctx
 15664  	return c
 15665  }
 15666  
 15667  // Header returns a http.Header that can be modified by the caller to add
 15668  // headers to the request.
 15669  func (c *OrganizationsStoredInfoTypesDeleteCall) Header() http.Header {
 15670  	if c.header_ == nil {
 15671  		c.header_ = make(http.Header)
 15672  	}
 15673  	return c.header_
 15674  }
 15675  
 15676  func (c *OrganizationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 15677  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15678  	var body io.Reader = nil
 15679  	c.urlParams_.Set("alt", alt)
 15680  	c.urlParams_.Set("prettyPrint", "false")
 15681  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 15682  	urls += "?" + c.urlParams_.Encode()
 15683  	req, err := http.NewRequest("DELETE", urls, body)
 15684  	if err != nil {
 15685  		return nil, err
 15686  	}
 15687  	req.Header = reqHeaders
 15688  	googleapi.Expand(req.URL, map[string]string{
 15689  		"name": c.name,
 15690  	})
 15691  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15692  }
 15693  
 15694  // Do executes the "dlp.organizations.storedInfoTypes.delete" call.
 15695  // Any non-2xx status code is an error. Response headers are in either
 15696  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 15697  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15698  // check whether the returned error was because http.StatusNotModified was
 15699  // returned.
 15700  func (c *OrganizationsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 15701  	gensupport.SetOptions(c.urlParams_, opts...)
 15702  	res, err := c.doRequest("json")
 15703  	if res != nil && res.StatusCode == http.StatusNotModified {
 15704  		if res.Body != nil {
 15705  			res.Body.Close()
 15706  		}
 15707  		return nil, gensupport.WrapError(&googleapi.Error{
 15708  			Code:   res.StatusCode,
 15709  			Header: res.Header,
 15710  		})
 15711  	}
 15712  	if err != nil {
 15713  		return nil, err
 15714  	}
 15715  	defer googleapi.CloseBody(res)
 15716  	if err := googleapi.CheckResponse(res); err != nil {
 15717  		return nil, gensupport.WrapError(err)
 15718  	}
 15719  	ret := &GoogleProtobufEmpty{
 15720  		ServerResponse: googleapi.ServerResponse{
 15721  			Header:         res.Header,
 15722  			HTTPStatusCode: res.StatusCode,
 15723  		},
 15724  	}
 15725  	target := &ret
 15726  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15727  		return nil, err
 15728  	}
 15729  	return ret, nil
 15730  }
 15731  
 15732  type OrganizationsStoredInfoTypesGetCall struct {
 15733  	s            *Service
 15734  	name         string
 15735  	urlParams_   gensupport.URLParams
 15736  	ifNoneMatch_ string
 15737  	ctx_         context.Context
 15738  	header_      http.Header
 15739  }
 15740  
 15741  // Get: Gets a stored infoType. See
 15742  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 15743  // to learn more.
 15744  //
 15745  //   - name: Resource name of the organization and storedInfoType to be read, for
 15746  //     example `organizations/433245324/storedInfoTypes/432452342` or
 15747  //     projects/project-id/storedInfoTypes/432452342.
 15748  func (r *OrganizationsStoredInfoTypesService) Get(name string) *OrganizationsStoredInfoTypesGetCall {
 15749  	c := &OrganizationsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15750  	c.name = name
 15751  	return c
 15752  }
 15753  
 15754  // Fields allows partial responses to be retrieved. See
 15755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15756  // details.
 15757  func (c *OrganizationsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesGetCall {
 15758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15759  	return c
 15760  }
 15761  
 15762  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15763  // object's ETag matches the given value. This is useful for getting updates
 15764  // only after the object has changed since the last request.
 15765  func (c *OrganizationsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *OrganizationsStoredInfoTypesGetCall {
 15766  	c.ifNoneMatch_ = entityTag
 15767  	return c
 15768  }
 15769  
 15770  // Context sets the context to be used in this call's Do method.
 15771  func (c *OrganizationsStoredInfoTypesGetCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesGetCall {
 15772  	c.ctx_ = ctx
 15773  	return c
 15774  }
 15775  
 15776  // Header returns a http.Header that can be modified by the caller to add
 15777  // headers to the request.
 15778  func (c *OrganizationsStoredInfoTypesGetCall) Header() http.Header {
 15779  	if c.header_ == nil {
 15780  		c.header_ = make(http.Header)
 15781  	}
 15782  	return c.header_
 15783  }
 15784  
 15785  func (c *OrganizationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
 15786  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15787  	if c.ifNoneMatch_ != "" {
 15788  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15789  	}
 15790  	var body io.Reader = nil
 15791  	c.urlParams_.Set("alt", alt)
 15792  	c.urlParams_.Set("prettyPrint", "false")
 15793  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 15794  	urls += "?" + c.urlParams_.Encode()
 15795  	req, err := http.NewRequest("GET", urls, body)
 15796  	if err != nil {
 15797  		return nil, err
 15798  	}
 15799  	req.Header = reqHeaders
 15800  	googleapi.Expand(req.URL, map[string]string{
 15801  		"name": c.name,
 15802  	})
 15803  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15804  }
 15805  
 15806  // Do executes the "dlp.organizations.storedInfoTypes.get" call.
 15807  // Any non-2xx status code is an error. Response headers are in either
 15808  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 15809  // was returned at all) in error.(*googleapi.Error).Header. Use
 15810  // googleapi.IsNotModified to check whether the returned error was because
 15811  // http.StatusNotModified was returned.
 15812  func (c *OrganizationsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 15813  	gensupport.SetOptions(c.urlParams_, opts...)
 15814  	res, err := c.doRequest("json")
 15815  	if res != nil && res.StatusCode == http.StatusNotModified {
 15816  		if res.Body != nil {
 15817  			res.Body.Close()
 15818  		}
 15819  		return nil, gensupport.WrapError(&googleapi.Error{
 15820  			Code:   res.StatusCode,
 15821  			Header: res.Header,
 15822  		})
 15823  	}
 15824  	if err != nil {
 15825  		return nil, err
 15826  	}
 15827  	defer googleapi.CloseBody(res)
 15828  	if err := googleapi.CheckResponse(res); err != nil {
 15829  		return nil, gensupport.WrapError(err)
 15830  	}
 15831  	ret := &GooglePrivacyDlpV2StoredInfoType{
 15832  		ServerResponse: googleapi.ServerResponse{
 15833  			Header:         res.Header,
 15834  			HTTPStatusCode: res.StatusCode,
 15835  		},
 15836  	}
 15837  	target := &ret
 15838  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15839  		return nil, err
 15840  	}
 15841  	return ret, nil
 15842  }
 15843  
 15844  type OrganizationsStoredInfoTypesListCall struct {
 15845  	s            *Service
 15846  	parentid     string
 15847  	urlParams_   gensupport.URLParams
 15848  	ifNoneMatch_ string
 15849  	ctx_         context.Context
 15850  	header_      http.Header
 15851  }
 15852  
 15853  // List: Lists stored infoTypes. See
 15854  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 15855  // to learn more.
 15856  //
 15857  //   - parent: Parent resource name. The format of this value varies depending on
 15858  //     the scope of the request (project or organization) and whether you have
 15859  //     specified a processing location
 15860  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 15861  //   - Projects scope, location specified:
 15862  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 15863  //     location specified (defaults to global): `projects/`PROJECT_ID The
 15864  //     following example `parent` string specifies a parent project with the
 15865  //     identifier `example-project`, and specifies the `europe-west3` location
 15866  //     for processing data:
 15867  //     parent=projects/example-project/locations/europe-west3.
 15868  func (r *OrganizationsStoredInfoTypesService) List(parentid string) *OrganizationsStoredInfoTypesListCall {
 15869  	c := &OrganizationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15870  	c.parentid = parentid
 15871  	return c
 15872  }
 15873  
 15874  // LocationId sets the optional parameter "locationId": Deprecated. This field
 15875  // has no effect.
 15876  func (c *OrganizationsStoredInfoTypesListCall) LocationId(locationId string) *OrganizationsStoredInfoTypesListCall {
 15877  	c.urlParams_.Set("locationId", locationId)
 15878  	return c
 15879  }
 15880  
 15881  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 15882  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 15883  // insensitive. The default sorting order is ascending. Redundant space
 15884  // characters are insignificant. Example: `name asc, display_name, create_time
 15885  // desc` Supported fields are: - `create_time`: corresponds to the time the
 15886  // most recent version of the resource was created. - `state`: corresponds to
 15887  // the state of the resource. - `name`: corresponds to resource name. -
 15888  // `display_name`: corresponds to info type's display name.
 15889  func (c *OrganizationsStoredInfoTypesListCall) OrderBy(orderBy string) *OrganizationsStoredInfoTypesListCall {
 15890  	c.urlParams_.Set("orderBy", orderBy)
 15891  	return c
 15892  }
 15893  
 15894  // PageSize sets the optional parameter "pageSize": Size of the page. This
 15895  // value can be limited by the server. If zero server returns a page of max
 15896  // size 100.
 15897  func (c *OrganizationsStoredInfoTypesListCall) PageSize(pageSize int64) *OrganizationsStoredInfoTypesListCall {
 15898  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15899  	return c
 15900  }
 15901  
 15902  // PageToken sets the optional parameter "pageToken": Page token to continue
 15903  // retrieval. Comes from the previous call to `ListStoredInfoTypes`.
 15904  func (c *OrganizationsStoredInfoTypesListCall) PageToken(pageToken string) *OrganizationsStoredInfoTypesListCall {
 15905  	c.urlParams_.Set("pageToken", pageToken)
 15906  	return c
 15907  }
 15908  
 15909  // Fields allows partial responses to be retrieved. See
 15910  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15911  // details.
 15912  func (c *OrganizationsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesListCall {
 15913  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15914  	return c
 15915  }
 15916  
 15917  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15918  // object's ETag matches the given value. This is useful for getting updates
 15919  // only after the object has changed since the last request.
 15920  func (c *OrganizationsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *OrganizationsStoredInfoTypesListCall {
 15921  	c.ifNoneMatch_ = entityTag
 15922  	return c
 15923  }
 15924  
 15925  // Context sets the context to be used in this call's Do method.
 15926  func (c *OrganizationsStoredInfoTypesListCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesListCall {
 15927  	c.ctx_ = ctx
 15928  	return c
 15929  }
 15930  
 15931  // Header returns a http.Header that can be modified by the caller to add
 15932  // headers to the request.
 15933  func (c *OrganizationsStoredInfoTypesListCall) Header() http.Header {
 15934  	if c.header_ == nil {
 15935  		c.header_ = make(http.Header)
 15936  	}
 15937  	return c.header_
 15938  }
 15939  
 15940  func (c *OrganizationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
 15941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15942  	if c.ifNoneMatch_ != "" {
 15943  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15944  	}
 15945  	var body io.Reader = nil
 15946  	c.urlParams_.Set("alt", alt)
 15947  	c.urlParams_.Set("prettyPrint", "false")
 15948  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 15949  	urls += "?" + c.urlParams_.Encode()
 15950  	req, err := http.NewRequest("GET", urls, body)
 15951  	if err != nil {
 15952  		return nil, err
 15953  	}
 15954  	req.Header = reqHeaders
 15955  	googleapi.Expand(req.URL, map[string]string{
 15956  		"parent": c.parentid,
 15957  	})
 15958  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15959  }
 15960  
 15961  // Do executes the "dlp.organizations.storedInfoTypes.list" call.
 15962  // Any non-2xx status code is an error. Response headers are in either
 15963  // *GooglePrivacyDlpV2ListStoredInfoTypesResponse.ServerResponse.Header or (if
 15964  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 15965  // googleapi.IsNotModified to check whether the returned error was because
 15966  // http.StatusNotModified was returned.
 15967  func (c *OrganizationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
 15968  	gensupport.SetOptions(c.urlParams_, opts...)
 15969  	res, err := c.doRequest("json")
 15970  	if res != nil && res.StatusCode == http.StatusNotModified {
 15971  		if res.Body != nil {
 15972  			res.Body.Close()
 15973  		}
 15974  		return nil, gensupport.WrapError(&googleapi.Error{
 15975  			Code:   res.StatusCode,
 15976  			Header: res.Header,
 15977  		})
 15978  	}
 15979  	if err != nil {
 15980  		return nil, err
 15981  	}
 15982  	defer googleapi.CloseBody(res)
 15983  	if err := googleapi.CheckResponse(res); err != nil {
 15984  		return nil, gensupport.WrapError(err)
 15985  	}
 15986  	ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
 15987  		ServerResponse: googleapi.ServerResponse{
 15988  			Header:         res.Header,
 15989  			HTTPStatusCode: res.StatusCode,
 15990  		},
 15991  	}
 15992  	target := &ret
 15993  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15994  		return nil, err
 15995  	}
 15996  	return ret, nil
 15997  }
 15998  
 15999  // Pages invokes f for each page of results.
 16000  // A non-nil error returned from f will halt the iteration.
 16001  // The provided context supersedes any context provided to the Context method.
 16002  func (c *OrganizationsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
 16003  	c.ctx_ = ctx
 16004  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16005  	for {
 16006  		x, err := c.Do()
 16007  		if err != nil {
 16008  			return err
 16009  		}
 16010  		if err := f(x); err != nil {
 16011  			return err
 16012  		}
 16013  		if x.NextPageToken == "" {
 16014  			return nil
 16015  		}
 16016  		c.PageToken(x.NextPageToken)
 16017  	}
 16018  }
 16019  
 16020  type OrganizationsStoredInfoTypesPatchCall struct {
 16021  	s                                             *Service
 16022  	name                                          string
 16023  	googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
 16024  	urlParams_                                    gensupport.URLParams
 16025  	ctx_                                          context.Context
 16026  	header_                                       http.Header
 16027  }
 16028  
 16029  // Patch: Updates the stored infoType by creating a new version. The existing
 16030  // version will continue to be used until the new version is ready. See
 16031  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 16032  // to learn more.
 16033  //
 16034  //   - name: Resource name of organization and storedInfoType to be updated, for
 16035  //     example `organizations/433245324/storedInfoTypes/432452342` or
 16036  //     projects/project-id/storedInfoTypes/432452342.
 16037  func (r *OrganizationsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *OrganizationsStoredInfoTypesPatchCall {
 16038  	c := &OrganizationsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16039  	c.name = name
 16040  	c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
 16041  	return c
 16042  }
 16043  
 16044  // Fields allows partial responses to be retrieved. See
 16045  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16046  // details.
 16047  func (c *OrganizationsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesPatchCall {
 16048  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16049  	return c
 16050  }
 16051  
 16052  // Context sets the context to be used in this call's Do method.
 16053  func (c *OrganizationsStoredInfoTypesPatchCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesPatchCall {
 16054  	c.ctx_ = ctx
 16055  	return c
 16056  }
 16057  
 16058  // Header returns a http.Header that can be modified by the caller to add
 16059  // headers to the request.
 16060  func (c *OrganizationsStoredInfoTypesPatchCall) Header() http.Header {
 16061  	if c.header_ == nil {
 16062  		c.header_ = make(http.Header)
 16063  	}
 16064  	return c.header_
 16065  }
 16066  
 16067  func (c *OrganizationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 16068  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16069  	var body io.Reader = nil
 16070  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
 16071  	if err != nil {
 16072  		return nil, err
 16073  	}
 16074  	c.urlParams_.Set("alt", alt)
 16075  	c.urlParams_.Set("prettyPrint", "false")
 16076  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 16077  	urls += "?" + c.urlParams_.Encode()
 16078  	req, err := http.NewRequest("PATCH", urls, body)
 16079  	if err != nil {
 16080  		return nil, err
 16081  	}
 16082  	req.Header = reqHeaders
 16083  	googleapi.Expand(req.URL, map[string]string{
 16084  		"name": c.name,
 16085  	})
 16086  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16087  }
 16088  
 16089  // Do executes the "dlp.organizations.storedInfoTypes.patch" call.
 16090  // Any non-2xx status code is an error. Response headers are in either
 16091  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 16092  // was returned at all) in error.(*googleapi.Error).Header. Use
 16093  // googleapi.IsNotModified to check whether the returned error was because
 16094  // http.StatusNotModified was returned.
 16095  func (c *OrganizationsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 16096  	gensupport.SetOptions(c.urlParams_, opts...)
 16097  	res, err := c.doRequest("json")
 16098  	if res != nil && res.StatusCode == http.StatusNotModified {
 16099  		if res.Body != nil {
 16100  			res.Body.Close()
 16101  		}
 16102  		return nil, gensupport.WrapError(&googleapi.Error{
 16103  			Code:   res.StatusCode,
 16104  			Header: res.Header,
 16105  		})
 16106  	}
 16107  	if err != nil {
 16108  		return nil, err
 16109  	}
 16110  	defer googleapi.CloseBody(res)
 16111  	if err := googleapi.CheckResponse(res); err != nil {
 16112  		return nil, gensupport.WrapError(err)
 16113  	}
 16114  	ret := &GooglePrivacyDlpV2StoredInfoType{
 16115  		ServerResponse: googleapi.ServerResponse{
 16116  			Header:         res.Header,
 16117  			HTTPStatusCode: res.StatusCode,
 16118  		},
 16119  	}
 16120  	target := &ret
 16121  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16122  		return nil, err
 16123  	}
 16124  	return ret, nil
 16125  }
 16126  
 16127  type ProjectsContentDeidentifyCall struct {
 16128  	s                                          *Service
 16129  	parentid                                   string
 16130  	googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest
 16131  	urlParams_                                 gensupport.URLParams
 16132  	ctx_                                       context.Context
 16133  	header_                                    http.Header
 16134  }
 16135  
 16136  // Deidentify: De-identifies potentially sensitive info from a ContentItem.
 16137  // This method has limits on input size and output size. See
 16138  // https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
 16139  // to learn more. When no InfoTypes or CustomInfoTypes are specified in this
 16140  // request, the system will automatically choose what detectors to run. By
 16141  // default this may be all types, but may change over time as detectors are
 16142  // updated.
 16143  //
 16144  //   - parent: Parent resource name. The format of this value varies depending on
 16145  //     whether you have specified a processing location
 16146  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 16147  //   - Projects scope, location specified:
 16148  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 16149  //     location specified (defaults to global): `projects/`PROJECT_ID The
 16150  //     following example `parent` string specifies a parent project with the
 16151  //     identifier `example-project`, and specifies the `europe-west3` location
 16152  //     for processing data:
 16153  //     parent=projects/example-project/locations/europe-west3.
 16154  func (r *ProjectsContentService) Deidentify(parentid string, googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest) *ProjectsContentDeidentifyCall {
 16155  	c := &ProjectsContentDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16156  	c.parentid = parentid
 16157  	c.googleprivacydlpv2deidentifycontentrequest = googleprivacydlpv2deidentifycontentrequest
 16158  	return c
 16159  }
 16160  
 16161  // Fields allows partial responses to be retrieved. See
 16162  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16163  // details.
 16164  func (c *ProjectsContentDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsContentDeidentifyCall {
 16165  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16166  	return c
 16167  }
 16168  
 16169  // Context sets the context to be used in this call's Do method.
 16170  func (c *ProjectsContentDeidentifyCall) Context(ctx context.Context) *ProjectsContentDeidentifyCall {
 16171  	c.ctx_ = ctx
 16172  	return c
 16173  }
 16174  
 16175  // Header returns a http.Header that can be modified by the caller to add
 16176  // headers to the request.
 16177  func (c *ProjectsContentDeidentifyCall) Header() http.Header {
 16178  	if c.header_ == nil {
 16179  		c.header_ = make(http.Header)
 16180  	}
 16181  	return c.header_
 16182  }
 16183  
 16184  func (c *ProjectsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) {
 16185  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16186  	var body io.Reader = nil
 16187  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2deidentifycontentrequest)
 16188  	if err != nil {
 16189  		return nil, err
 16190  	}
 16191  	c.urlParams_.Set("alt", alt)
 16192  	c.urlParams_.Set("prettyPrint", "false")
 16193  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:deidentify")
 16194  	urls += "?" + c.urlParams_.Encode()
 16195  	req, err := http.NewRequest("POST", urls, body)
 16196  	if err != nil {
 16197  		return nil, err
 16198  	}
 16199  	req.Header = reqHeaders
 16200  	googleapi.Expand(req.URL, map[string]string{
 16201  		"parent": c.parentid,
 16202  	})
 16203  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16204  }
 16205  
 16206  // Do executes the "dlp.projects.content.deidentify" call.
 16207  // Any non-2xx status code is an error. Response headers are in either
 16208  // *GooglePrivacyDlpV2DeidentifyContentResponse.ServerResponse.Header or (if a
 16209  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16210  // googleapi.IsNotModified to check whether the returned error was because
 16211  // http.StatusNotModified was returned.
 16212  func (c *ProjectsContentDeidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyContentResponse, error) {
 16213  	gensupport.SetOptions(c.urlParams_, opts...)
 16214  	res, err := c.doRequest("json")
 16215  	if res != nil && res.StatusCode == http.StatusNotModified {
 16216  		if res.Body != nil {
 16217  			res.Body.Close()
 16218  		}
 16219  		return nil, gensupport.WrapError(&googleapi.Error{
 16220  			Code:   res.StatusCode,
 16221  			Header: res.Header,
 16222  		})
 16223  	}
 16224  	if err != nil {
 16225  		return nil, err
 16226  	}
 16227  	defer googleapi.CloseBody(res)
 16228  	if err := googleapi.CheckResponse(res); err != nil {
 16229  		return nil, gensupport.WrapError(err)
 16230  	}
 16231  	ret := &GooglePrivacyDlpV2DeidentifyContentResponse{
 16232  		ServerResponse: googleapi.ServerResponse{
 16233  			Header:         res.Header,
 16234  			HTTPStatusCode: res.StatusCode,
 16235  		},
 16236  	}
 16237  	target := &ret
 16238  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16239  		return nil, err
 16240  	}
 16241  	return ret, nil
 16242  }
 16243  
 16244  type ProjectsContentInspectCall struct {
 16245  	s                                       *Service
 16246  	parentid                                string
 16247  	googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest
 16248  	urlParams_                              gensupport.URLParams
 16249  	ctx_                                    context.Context
 16250  	header_                                 http.Header
 16251  }
 16252  
 16253  // Inspect: Finds potentially sensitive info in content. This method has limits
 16254  // on input size, processing time, and output size. When no InfoTypes or
 16255  // CustomInfoTypes are specified in this request, the system will automatically
 16256  // choose what detectors to run. By default this may be all types, but may
 16257  // change over time as detectors are updated. For how to guides, see
 16258  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
 16259  // and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
 16260  //
 16261  //   - parent: Parent resource name. The format of this value varies depending on
 16262  //     whether you have specified a processing location
 16263  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 16264  //   - Projects scope, location specified:
 16265  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 16266  //     location specified (defaults to global): `projects/`PROJECT_ID The
 16267  //     following example `parent` string specifies a parent project with the
 16268  //     identifier `example-project`, and specifies the `europe-west3` location
 16269  //     for processing data:
 16270  //     parent=projects/example-project/locations/europe-west3.
 16271  func (r *ProjectsContentService) Inspect(parentid string, googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest) *ProjectsContentInspectCall {
 16272  	c := &ProjectsContentInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16273  	c.parentid = parentid
 16274  	c.googleprivacydlpv2inspectcontentrequest = googleprivacydlpv2inspectcontentrequest
 16275  	return c
 16276  }
 16277  
 16278  // Fields allows partial responses to be retrieved. See
 16279  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16280  // details.
 16281  func (c *ProjectsContentInspectCall) Fields(s ...googleapi.Field) *ProjectsContentInspectCall {
 16282  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16283  	return c
 16284  }
 16285  
 16286  // Context sets the context to be used in this call's Do method.
 16287  func (c *ProjectsContentInspectCall) Context(ctx context.Context) *ProjectsContentInspectCall {
 16288  	c.ctx_ = ctx
 16289  	return c
 16290  }
 16291  
 16292  // Header returns a http.Header that can be modified by the caller to add
 16293  // headers to the request.
 16294  func (c *ProjectsContentInspectCall) Header() http.Header {
 16295  	if c.header_ == nil {
 16296  		c.header_ = make(http.Header)
 16297  	}
 16298  	return c.header_
 16299  }
 16300  
 16301  func (c *ProjectsContentInspectCall) doRequest(alt string) (*http.Response, error) {
 16302  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16303  	var body io.Reader = nil
 16304  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2inspectcontentrequest)
 16305  	if err != nil {
 16306  		return nil, err
 16307  	}
 16308  	c.urlParams_.Set("alt", alt)
 16309  	c.urlParams_.Set("prettyPrint", "false")
 16310  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:inspect")
 16311  	urls += "?" + c.urlParams_.Encode()
 16312  	req, err := http.NewRequest("POST", urls, body)
 16313  	if err != nil {
 16314  		return nil, err
 16315  	}
 16316  	req.Header = reqHeaders
 16317  	googleapi.Expand(req.URL, map[string]string{
 16318  		"parent": c.parentid,
 16319  	})
 16320  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16321  }
 16322  
 16323  // Do executes the "dlp.projects.content.inspect" call.
 16324  // Any non-2xx status code is an error. Response headers are in either
 16325  // *GooglePrivacyDlpV2InspectContentResponse.ServerResponse.Header or (if a
 16326  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16327  // googleapi.IsNotModified to check whether the returned error was because
 16328  // http.StatusNotModified was returned.
 16329  func (c *ProjectsContentInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectContentResponse, error) {
 16330  	gensupport.SetOptions(c.urlParams_, opts...)
 16331  	res, err := c.doRequest("json")
 16332  	if res != nil && res.StatusCode == http.StatusNotModified {
 16333  		if res.Body != nil {
 16334  			res.Body.Close()
 16335  		}
 16336  		return nil, gensupport.WrapError(&googleapi.Error{
 16337  			Code:   res.StatusCode,
 16338  			Header: res.Header,
 16339  		})
 16340  	}
 16341  	if err != nil {
 16342  		return nil, err
 16343  	}
 16344  	defer googleapi.CloseBody(res)
 16345  	if err := googleapi.CheckResponse(res); err != nil {
 16346  		return nil, gensupport.WrapError(err)
 16347  	}
 16348  	ret := &GooglePrivacyDlpV2InspectContentResponse{
 16349  		ServerResponse: googleapi.ServerResponse{
 16350  			Header:         res.Header,
 16351  			HTTPStatusCode: res.StatusCode,
 16352  		},
 16353  	}
 16354  	target := &ret
 16355  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16356  		return nil, err
 16357  	}
 16358  	return ret, nil
 16359  }
 16360  
 16361  type ProjectsContentReidentifyCall struct {
 16362  	s                                          *Service
 16363  	parentid                                   string
 16364  	googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest
 16365  	urlParams_                                 gensupport.URLParams
 16366  	ctx_                                       context.Context
 16367  	header_                                    http.Header
 16368  }
 16369  
 16370  // Reidentify: Re-identifies content that has been de-identified. See
 16371  // https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
 16372  // to learn more.
 16373  //
 16374  //   - parent: Parent resource name. The format of this value varies depending on
 16375  //     whether you have specified a processing location
 16376  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 16377  //   - Projects scope, location specified:
 16378  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 16379  //     location specified (defaults to global): `projects/`PROJECT_ID The
 16380  //     following example `parent` string specifies a parent project with the
 16381  //     identifier `example-project`, and specifies the `europe-west3` location
 16382  //     for processing data:
 16383  //     parent=projects/example-project/locations/europe-west3.
 16384  func (r *ProjectsContentService) Reidentify(parentid string, googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest) *ProjectsContentReidentifyCall {
 16385  	c := &ProjectsContentReidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16386  	c.parentid = parentid
 16387  	c.googleprivacydlpv2reidentifycontentrequest = googleprivacydlpv2reidentifycontentrequest
 16388  	return c
 16389  }
 16390  
 16391  // Fields allows partial responses to be retrieved. See
 16392  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16393  // details.
 16394  func (c *ProjectsContentReidentifyCall) Fields(s ...googleapi.Field) *ProjectsContentReidentifyCall {
 16395  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16396  	return c
 16397  }
 16398  
 16399  // Context sets the context to be used in this call's Do method.
 16400  func (c *ProjectsContentReidentifyCall) Context(ctx context.Context) *ProjectsContentReidentifyCall {
 16401  	c.ctx_ = ctx
 16402  	return c
 16403  }
 16404  
 16405  // Header returns a http.Header that can be modified by the caller to add
 16406  // headers to the request.
 16407  func (c *ProjectsContentReidentifyCall) Header() http.Header {
 16408  	if c.header_ == nil {
 16409  		c.header_ = make(http.Header)
 16410  	}
 16411  	return c.header_
 16412  }
 16413  
 16414  func (c *ProjectsContentReidentifyCall) doRequest(alt string) (*http.Response, error) {
 16415  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16416  	var body io.Reader = nil
 16417  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2reidentifycontentrequest)
 16418  	if err != nil {
 16419  		return nil, err
 16420  	}
 16421  	c.urlParams_.Set("alt", alt)
 16422  	c.urlParams_.Set("prettyPrint", "false")
 16423  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:reidentify")
 16424  	urls += "?" + c.urlParams_.Encode()
 16425  	req, err := http.NewRequest("POST", urls, body)
 16426  	if err != nil {
 16427  		return nil, err
 16428  	}
 16429  	req.Header = reqHeaders
 16430  	googleapi.Expand(req.URL, map[string]string{
 16431  		"parent": c.parentid,
 16432  	})
 16433  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16434  }
 16435  
 16436  // Do executes the "dlp.projects.content.reidentify" call.
 16437  // Any non-2xx status code is an error. Response headers are in either
 16438  // *GooglePrivacyDlpV2ReidentifyContentResponse.ServerResponse.Header or (if a
 16439  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16440  // googleapi.IsNotModified to check whether the returned error was because
 16441  // http.StatusNotModified was returned.
 16442  func (c *ProjectsContentReidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ReidentifyContentResponse, error) {
 16443  	gensupport.SetOptions(c.urlParams_, opts...)
 16444  	res, err := c.doRequest("json")
 16445  	if res != nil && res.StatusCode == http.StatusNotModified {
 16446  		if res.Body != nil {
 16447  			res.Body.Close()
 16448  		}
 16449  		return nil, gensupport.WrapError(&googleapi.Error{
 16450  			Code:   res.StatusCode,
 16451  			Header: res.Header,
 16452  		})
 16453  	}
 16454  	if err != nil {
 16455  		return nil, err
 16456  	}
 16457  	defer googleapi.CloseBody(res)
 16458  	if err := googleapi.CheckResponse(res); err != nil {
 16459  		return nil, gensupport.WrapError(err)
 16460  	}
 16461  	ret := &GooglePrivacyDlpV2ReidentifyContentResponse{
 16462  		ServerResponse: googleapi.ServerResponse{
 16463  			Header:         res.Header,
 16464  			HTTPStatusCode: res.StatusCode,
 16465  		},
 16466  	}
 16467  	target := &ret
 16468  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16469  		return nil, err
 16470  	}
 16471  	return ret, nil
 16472  }
 16473  
 16474  type ProjectsDeidentifyTemplatesCreateCall struct {
 16475  	s                                                 *Service
 16476  	parentid                                          string
 16477  	googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
 16478  	urlParams_                                        gensupport.URLParams
 16479  	ctx_                                              context.Context
 16480  	header_                                           http.Header
 16481  }
 16482  
 16483  // Create: Creates a DeidentifyTemplate for reusing frequently used
 16484  // configuration for de-identifying content, images, and storage. See
 16485  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 16486  // to learn more.
 16487  //
 16488  //   - parent: Parent resource name. The format of this value varies depending on
 16489  //     the scope of the request (project or organization) and whether you have
 16490  //     specified a processing location
 16491  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 16492  //   - Projects scope, location specified:
 16493  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 16494  //     location specified (defaults to global): `projects/`PROJECT_ID +
 16495  //     Organizations scope, location specified:
 16496  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 16497  //     location specified (defaults to global): `organizations/`ORG_ID The
 16498  //     following example `parent` string specifies a parent project with the
 16499  //     identifier `example-project`, and specifies the `europe-west3` location
 16500  //     for processing data:
 16501  //     parent=projects/example-project/locations/europe-west3.
 16502  func (r *ProjectsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *ProjectsDeidentifyTemplatesCreateCall {
 16503  	c := &ProjectsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16504  	c.parentid = parentid
 16505  	c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
 16506  	return c
 16507  }
 16508  
 16509  // Fields allows partial responses to be retrieved. See
 16510  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16511  // details.
 16512  func (c *ProjectsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesCreateCall {
 16513  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16514  	return c
 16515  }
 16516  
 16517  // Context sets the context to be used in this call's Do method.
 16518  func (c *ProjectsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesCreateCall {
 16519  	c.ctx_ = ctx
 16520  	return c
 16521  }
 16522  
 16523  // Header returns a http.Header that can be modified by the caller to add
 16524  // headers to the request.
 16525  func (c *ProjectsDeidentifyTemplatesCreateCall) Header() http.Header {
 16526  	if c.header_ == nil {
 16527  		c.header_ = make(http.Header)
 16528  	}
 16529  	return c.header_
 16530  }
 16531  
 16532  func (c *ProjectsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 16533  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16534  	var body io.Reader = nil
 16535  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
 16536  	if err != nil {
 16537  		return nil, err
 16538  	}
 16539  	c.urlParams_.Set("alt", alt)
 16540  	c.urlParams_.Set("prettyPrint", "false")
 16541  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 16542  	urls += "?" + c.urlParams_.Encode()
 16543  	req, err := http.NewRequest("POST", urls, body)
 16544  	if err != nil {
 16545  		return nil, err
 16546  	}
 16547  	req.Header = reqHeaders
 16548  	googleapi.Expand(req.URL, map[string]string{
 16549  		"parent": c.parentid,
 16550  	})
 16551  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16552  }
 16553  
 16554  // Do executes the "dlp.projects.deidentifyTemplates.create" call.
 16555  // Any non-2xx status code is an error. Response headers are in either
 16556  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 16557  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16558  // googleapi.IsNotModified to check whether the returned error was because
 16559  // http.StatusNotModified was returned.
 16560  func (c *ProjectsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 16561  	gensupport.SetOptions(c.urlParams_, opts...)
 16562  	res, err := c.doRequest("json")
 16563  	if res != nil && res.StatusCode == http.StatusNotModified {
 16564  		if res.Body != nil {
 16565  			res.Body.Close()
 16566  		}
 16567  		return nil, gensupport.WrapError(&googleapi.Error{
 16568  			Code:   res.StatusCode,
 16569  			Header: res.Header,
 16570  		})
 16571  	}
 16572  	if err != nil {
 16573  		return nil, err
 16574  	}
 16575  	defer googleapi.CloseBody(res)
 16576  	if err := googleapi.CheckResponse(res); err != nil {
 16577  		return nil, gensupport.WrapError(err)
 16578  	}
 16579  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 16580  		ServerResponse: googleapi.ServerResponse{
 16581  			Header:         res.Header,
 16582  			HTTPStatusCode: res.StatusCode,
 16583  		},
 16584  	}
 16585  	target := &ret
 16586  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16587  		return nil, err
 16588  	}
 16589  	return ret, nil
 16590  }
 16591  
 16592  type ProjectsDeidentifyTemplatesDeleteCall struct {
 16593  	s          *Service
 16594  	name       string
 16595  	urlParams_ gensupport.URLParams
 16596  	ctx_       context.Context
 16597  	header_    http.Header
 16598  }
 16599  
 16600  // Delete: Deletes a DeidentifyTemplate. See
 16601  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 16602  // to learn more.
 16603  //
 16604  //   - name: Resource name of the organization and deidentify template to be
 16605  //     deleted, for example
 16606  //     `organizations/433245324/deidentifyTemplates/432452342` or
 16607  //     projects/project-id/deidentifyTemplates/432452342.
 16608  func (r *ProjectsDeidentifyTemplatesService) Delete(name string) *ProjectsDeidentifyTemplatesDeleteCall {
 16609  	c := &ProjectsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16610  	c.name = name
 16611  	return c
 16612  }
 16613  
 16614  // Fields allows partial responses to be retrieved. See
 16615  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16616  // details.
 16617  func (c *ProjectsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesDeleteCall {
 16618  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16619  	return c
 16620  }
 16621  
 16622  // Context sets the context to be used in this call's Do method.
 16623  func (c *ProjectsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesDeleteCall {
 16624  	c.ctx_ = ctx
 16625  	return c
 16626  }
 16627  
 16628  // Header returns a http.Header that can be modified by the caller to add
 16629  // headers to the request.
 16630  func (c *ProjectsDeidentifyTemplatesDeleteCall) Header() http.Header {
 16631  	if c.header_ == nil {
 16632  		c.header_ = make(http.Header)
 16633  	}
 16634  	return c.header_
 16635  }
 16636  
 16637  func (c *ProjectsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 16638  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16639  	var body io.Reader = nil
 16640  	c.urlParams_.Set("alt", alt)
 16641  	c.urlParams_.Set("prettyPrint", "false")
 16642  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 16643  	urls += "?" + c.urlParams_.Encode()
 16644  	req, err := http.NewRequest("DELETE", urls, body)
 16645  	if err != nil {
 16646  		return nil, err
 16647  	}
 16648  	req.Header = reqHeaders
 16649  	googleapi.Expand(req.URL, map[string]string{
 16650  		"name": c.name,
 16651  	})
 16652  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16653  }
 16654  
 16655  // Do executes the "dlp.projects.deidentifyTemplates.delete" call.
 16656  // Any non-2xx status code is an error. Response headers are in either
 16657  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 16658  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16659  // check whether the returned error was because http.StatusNotModified was
 16660  // returned.
 16661  func (c *ProjectsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 16662  	gensupport.SetOptions(c.urlParams_, opts...)
 16663  	res, err := c.doRequest("json")
 16664  	if res != nil && res.StatusCode == http.StatusNotModified {
 16665  		if res.Body != nil {
 16666  			res.Body.Close()
 16667  		}
 16668  		return nil, gensupport.WrapError(&googleapi.Error{
 16669  			Code:   res.StatusCode,
 16670  			Header: res.Header,
 16671  		})
 16672  	}
 16673  	if err != nil {
 16674  		return nil, err
 16675  	}
 16676  	defer googleapi.CloseBody(res)
 16677  	if err := googleapi.CheckResponse(res); err != nil {
 16678  		return nil, gensupport.WrapError(err)
 16679  	}
 16680  	ret := &GoogleProtobufEmpty{
 16681  		ServerResponse: googleapi.ServerResponse{
 16682  			Header:         res.Header,
 16683  			HTTPStatusCode: res.StatusCode,
 16684  		},
 16685  	}
 16686  	target := &ret
 16687  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16688  		return nil, err
 16689  	}
 16690  	return ret, nil
 16691  }
 16692  
 16693  type ProjectsDeidentifyTemplatesGetCall struct {
 16694  	s            *Service
 16695  	name         string
 16696  	urlParams_   gensupport.URLParams
 16697  	ifNoneMatch_ string
 16698  	ctx_         context.Context
 16699  	header_      http.Header
 16700  }
 16701  
 16702  // Get: Gets a DeidentifyTemplate. See
 16703  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 16704  // to learn more.
 16705  //
 16706  //   - name: Resource name of the organization and deidentify template to be
 16707  //     read, for example `organizations/433245324/deidentifyTemplates/432452342`
 16708  //     or projects/project-id/deidentifyTemplates/432452342.
 16709  func (r *ProjectsDeidentifyTemplatesService) Get(name string) *ProjectsDeidentifyTemplatesGetCall {
 16710  	c := &ProjectsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16711  	c.name = name
 16712  	return c
 16713  }
 16714  
 16715  // Fields allows partial responses to be retrieved. See
 16716  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16717  // details.
 16718  func (c *ProjectsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesGetCall {
 16719  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16720  	return c
 16721  }
 16722  
 16723  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16724  // object's ETag matches the given value. This is useful for getting updates
 16725  // only after the object has changed since the last request.
 16726  func (c *ProjectsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsDeidentifyTemplatesGetCall {
 16727  	c.ifNoneMatch_ = entityTag
 16728  	return c
 16729  }
 16730  
 16731  // Context sets the context to be used in this call's Do method.
 16732  func (c *ProjectsDeidentifyTemplatesGetCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesGetCall {
 16733  	c.ctx_ = ctx
 16734  	return c
 16735  }
 16736  
 16737  // Header returns a http.Header that can be modified by the caller to add
 16738  // headers to the request.
 16739  func (c *ProjectsDeidentifyTemplatesGetCall) Header() http.Header {
 16740  	if c.header_ == nil {
 16741  		c.header_ = make(http.Header)
 16742  	}
 16743  	return c.header_
 16744  }
 16745  
 16746  func (c *ProjectsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 16747  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16748  	if c.ifNoneMatch_ != "" {
 16749  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16750  	}
 16751  	var body io.Reader = nil
 16752  	c.urlParams_.Set("alt", alt)
 16753  	c.urlParams_.Set("prettyPrint", "false")
 16754  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 16755  	urls += "?" + c.urlParams_.Encode()
 16756  	req, err := http.NewRequest("GET", urls, body)
 16757  	if err != nil {
 16758  		return nil, err
 16759  	}
 16760  	req.Header = reqHeaders
 16761  	googleapi.Expand(req.URL, map[string]string{
 16762  		"name": c.name,
 16763  	})
 16764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16765  }
 16766  
 16767  // Do executes the "dlp.projects.deidentifyTemplates.get" call.
 16768  // Any non-2xx status code is an error. Response headers are in either
 16769  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 16770  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16771  // googleapi.IsNotModified to check whether the returned error was because
 16772  // http.StatusNotModified was returned.
 16773  func (c *ProjectsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 16774  	gensupport.SetOptions(c.urlParams_, opts...)
 16775  	res, err := c.doRequest("json")
 16776  	if res != nil && res.StatusCode == http.StatusNotModified {
 16777  		if res.Body != nil {
 16778  			res.Body.Close()
 16779  		}
 16780  		return nil, gensupport.WrapError(&googleapi.Error{
 16781  			Code:   res.StatusCode,
 16782  			Header: res.Header,
 16783  		})
 16784  	}
 16785  	if err != nil {
 16786  		return nil, err
 16787  	}
 16788  	defer googleapi.CloseBody(res)
 16789  	if err := googleapi.CheckResponse(res); err != nil {
 16790  		return nil, gensupport.WrapError(err)
 16791  	}
 16792  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 16793  		ServerResponse: googleapi.ServerResponse{
 16794  			Header:         res.Header,
 16795  			HTTPStatusCode: res.StatusCode,
 16796  		},
 16797  	}
 16798  	target := &ret
 16799  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16800  		return nil, err
 16801  	}
 16802  	return ret, nil
 16803  }
 16804  
 16805  type ProjectsDeidentifyTemplatesListCall struct {
 16806  	s            *Service
 16807  	parentid     string
 16808  	urlParams_   gensupport.URLParams
 16809  	ifNoneMatch_ string
 16810  	ctx_         context.Context
 16811  	header_      http.Header
 16812  }
 16813  
 16814  // List: Lists DeidentifyTemplates. See
 16815  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 16816  // to learn more.
 16817  //
 16818  //   - parent: Parent resource name. The format of this value varies depending on
 16819  //     the scope of the request (project or organization) and whether you have
 16820  //     specified a processing location
 16821  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 16822  //   - Projects scope, location specified:
 16823  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 16824  //     location specified (defaults to global): `projects/`PROJECT_ID +
 16825  //     Organizations scope, location specified:
 16826  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 16827  //     location specified (defaults to global): `organizations/`ORG_ID The
 16828  //     following example `parent` string specifies a parent project with the
 16829  //     identifier `example-project`, and specifies the `europe-west3` location
 16830  //     for processing data:
 16831  //     parent=projects/example-project/locations/europe-west3.
 16832  func (r *ProjectsDeidentifyTemplatesService) List(parentid string) *ProjectsDeidentifyTemplatesListCall {
 16833  	c := &ProjectsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16834  	c.parentid = parentid
 16835  	return c
 16836  }
 16837  
 16838  // LocationId sets the optional parameter "locationId": Deprecated. This field
 16839  // has no effect.
 16840  func (c *ProjectsDeidentifyTemplatesListCall) LocationId(locationId string) *ProjectsDeidentifyTemplatesListCall {
 16841  	c.urlParams_.Set("locationId", locationId)
 16842  	return c
 16843  }
 16844  
 16845  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 16846  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 16847  // insensitive. The default sorting order is ascending. Redundant space
 16848  // characters are insignificant. Example: `name asc,update_time, create_time
 16849  // desc` Supported fields are: - `create_time`: corresponds to the time the
 16850  // template was created. - `update_time`: corresponds to the time the template
 16851  // was last updated. - `name`: corresponds to the template's name. -
 16852  // `display_name`: corresponds to the template's display name.
 16853  func (c *ProjectsDeidentifyTemplatesListCall) OrderBy(orderBy string) *ProjectsDeidentifyTemplatesListCall {
 16854  	c.urlParams_.Set("orderBy", orderBy)
 16855  	return c
 16856  }
 16857  
 16858  // PageSize sets the optional parameter "pageSize": Size of the page. This
 16859  // value can be limited by the server. If zero server returns a page of max
 16860  // size 100.
 16861  func (c *ProjectsDeidentifyTemplatesListCall) PageSize(pageSize int64) *ProjectsDeidentifyTemplatesListCall {
 16862  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16863  	return c
 16864  }
 16865  
 16866  // PageToken sets the optional parameter "pageToken": Page token to continue
 16867  // retrieval. Comes from the previous call to `ListDeidentifyTemplates`.
 16868  func (c *ProjectsDeidentifyTemplatesListCall) PageToken(pageToken string) *ProjectsDeidentifyTemplatesListCall {
 16869  	c.urlParams_.Set("pageToken", pageToken)
 16870  	return c
 16871  }
 16872  
 16873  // Fields allows partial responses to be retrieved. See
 16874  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16875  // details.
 16876  func (c *ProjectsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesListCall {
 16877  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16878  	return c
 16879  }
 16880  
 16881  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16882  // object's ETag matches the given value. This is useful for getting updates
 16883  // only after the object has changed since the last request.
 16884  func (c *ProjectsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsDeidentifyTemplatesListCall {
 16885  	c.ifNoneMatch_ = entityTag
 16886  	return c
 16887  }
 16888  
 16889  // Context sets the context to be used in this call's Do method.
 16890  func (c *ProjectsDeidentifyTemplatesListCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesListCall {
 16891  	c.ctx_ = ctx
 16892  	return c
 16893  }
 16894  
 16895  // Header returns a http.Header that can be modified by the caller to add
 16896  // headers to the request.
 16897  func (c *ProjectsDeidentifyTemplatesListCall) Header() http.Header {
 16898  	if c.header_ == nil {
 16899  		c.header_ = make(http.Header)
 16900  	}
 16901  	return c.header_
 16902  }
 16903  
 16904  func (c *ProjectsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 16905  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16906  	if c.ifNoneMatch_ != "" {
 16907  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16908  	}
 16909  	var body io.Reader = nil
 16910  	c.urlParams_.Set("alt", alt)
 16911  	c.urlParams_.Set("prettyPrint", "false")
 16912  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 16913  	urls += "?" + c.urlParams_.Encode()
 16914  	req, err := http.NewRequest("GET", urls, body)
 16915  	if err != nil {
 16916  		return nil, err
 16917  	}
 16918  	req.Header = reqHeaders
 16919  	googleapi.Expand(req.URL, map[string]string{
 16920  		"parent": c.parentid,
 16921  	})
 16922  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16923  }
 16924  
 16925  // Do executes the "dlp.projects.deidentifyTemplates.list" call.
 16926  // Any non-2xx status code is an error. Response headers are in either
 16927  // *GooglePrivacyDlpV2ListDeidentifyTemplatesResponse.ServerResponse.Header or
 16928  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 16929  // googleapi.IsNotModified to check whether the returned error was because
 16930  // http.StatusNotModified was returned.
 16931  func (c *ProjectsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
 16932  	gensupport.SetOptions(c.urlParams_, opts...)
 16933  	res, err := c.doRequest("json")
 16934  	if res != nil && res.StatusCode == http.StatusNotModified {
 16935  		if res.Body != nil {
 16936  			res.Body.Close()
 16937  		}
 16938  		return nil, gensupport.WrapError(&googleapi.Error{
 16939  			Code:   res.StatusCode,
 16940  			Header: res.Header,
 16941  		})
 16942  	}
 16943  	if err != nil {
 16944  		return nil, err
 16945  	}
 16946  	defer googleapi.CloseBody(res)
 16947  	if err := googleapi.CheckResponse(res); err != nil {
 16948  		return nil, gensupport.WrapError(err)
 16949  	}
 16950  	ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
 16951  		ServerResponse: googleapi.ServerResponse{
 16952  			Header:         res.Header,
 16953  			HTTPStatusCode: res.StatusCode,
 16954  		},
 16955  	}
 16956  	target := &ret
 16957  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16958  		return nil, err
 16959  	}
 16960  	return ret, nil
 16961  }
 16962  
 16963  // Pages invokes f for each page of results.
 16964  // A non-nil error returned from f will halt the iteration.
 16965  // The provided context supersedes any context provided to the Context method.
 16966  func (c *ProjectsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
 16967  	c.ctx_ = ctx
 16968  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16969  	for {
 16970  		x, err := c.Do()
 16971  		if err != nil {
 16972  			return err
 16973  		}
 16974  		if err := f(x); err != nil {
 16975  			return err
 16976  		}
 16977  		if x.NextPageToken == "" {
 16978  			return nil
 16979  		}
 16980  		c.PageToken(x.NextPageToken)
 16981  	}
 16982  }
 16983  
 16984  type ProjectsDeidentifyTemplatesPatchCall struct {
 16985  	s                                                 *Service
 16986  	name                                              string
 16987  	googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
 16988  	urlParams_                                        gensupport.URLParams
 16989  	ctx_                                              context.Context
 16990  	header_                                           http.Header
 16991  }
 16992  
 16993  // Patch: Updates the DeidentifyTemplate. See
 16994  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 16995  // to learn more.
 16996  //
 16997  //   - name: Resource name of organization and deidentify template to be updated,
 16998  //     for example `organizations/433245324/deidentifyTemplates/432452342` or
 16999  //     projects/project-id/deidentifyTemplates/432452342.
 17000  func (r *ProjectsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *ProjectsDeidentifyTemplatesPatchCall {
 17001  	c := &ProjectsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17002  	c.name = name
 17003  	c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
 17004  	return c
 17005  }
 17006  
 17007  // Fields allows partial responses to be retrieved. See
 17008  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17009  // details.
 17010  func (c *ProjectsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesPatchCall {
 17011  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17012  	return c
 17013  }
 17014  
 17015  // Context sets the context to be used in this call's Do method.
 17016  func (c *ProjectsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesPatchCall {
 17017  	c.ctx_ = ctx
 17018  	return c
 17019  }
 17020  
 17021  // Header returns a http.Header that can be modified by the caller to add
 17022  // headers to the request.
 17023  func (c *ProjectsDeidentifyTemplatesPatchCall) Header() http.Header {
 17024  	if c.header_ == nil {
 17025  		c.header_ = make(http.Header)
 17026  	}
 17027  	return c.header_
 17028  }
 17029  
 17030  func (c *ProjectsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 17031  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17032  	var body io.Reader = nil
 17033  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
 17034  	if err != nil {
 17035  		return nil, err
 17036  	}
 17037  	c.urlParams_.Set("alt", alt)
 17038  	c.urlParams_.Set("prettyPrint", "false")
 17039  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 17040  	urls += "?" + c.urlParams_.Encode()
 17041  	req, err := http.NewRequest("PATCH", urls, body)
 17042  	if err != nil {
 17043  		return nil, err
 17044  	}
 17045  	req.Header = reqHeaders
 17046  	googleapi.Expand(req.URL, map[string]string{
 17047  		"name": c.name,
 17048  	})
 17049  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17050  }
 17051  
 17052  // Do executes the "dlp.projects.deidentifyTemplates.patch" call.
 17053  // Any non-2xx status code is an error. Response headers are in either
 17054  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 17055  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17056  // googleapi.IsNotModified to check whether the returned error was because
 17057  // http.StatusNotModified was returned.
 17058  func (c *ProjectsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 17059  	gensupport.SetOptions(c.urlParams_, opts...)
 17060  	res, err := c.doRequest("json")
 17061  	if res != nil && res.StatusCode == http.StatusNotModified {
 17062  		if res.Body != nil {
 17063  			res.Body.Close()
 17064  		}
 17065  		return nil, gensupport.WrapError(&googleapi.Error{
 17066  			Code:   res.StatusCode,
 17067  			Header: res.Header,
 17068  		})
 17069  	}
 17070  	if err != nil {
 17071  		return nil, err
 17072  	}
 17073  	defer googleapi.CloseBody(res)
 17074  	if err := googleapi.CheckResponse(res); err != nil {
 17075  		return nil, gensupport.WrapError(err)
 17076  	}
 17077  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 17078  		ServerResponse: googleapi.ServerResponse{
 17079  			Header:         res.Header,
 17080  			HTTPStatusCode: res.StatusCode,
 17081  		},
 17082  	}
 17083  	target := &ret
 17084  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17085  		return nil, err
 17086  	}
 17087  	return ret, nil
 17088  }
 17089  
 17090  type ProjectsDlpJobsCancelCall struct {
 17091  	s                                     *Service
 17092  	name                                  string
 17093  	googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest
 17094  	urlParams_                            gensupport.URLParams
 17095  	ctx_                                  context.Context
 17096  	header_                               http.Header
 17097  }
 17098  
 17099  // Cancel: Starts asynchronous cancellation on a long-running DlpJob. The
 17100  // server makes a best effort to cancel the DlpJob, but success is not
 17101  // guaranteed. See
 17102  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 17103  // and
 17104  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 17105  // to learn more.
 17106  //
 17107  // - name: The name of the DlpJob resource to be cancelled.
 17108  func (r *ProjectsDlpJobsService) Cancel(name string, googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest) *ProjectsDlpJobsCancelCall {
 17109  	c := &ProjectsDlpJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17110  	c.name = name
 17111  	c.googleprivacydlpv2canceldlpjobrequest = googleprivacydlpv2canceldlpjobrequest
 17112  	return c
 17113  }
 17114  
 17115  // Fields allows partial responses to be retrieved. See
 17116  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17117  // details.
 17118  func (c *ProjectsDlpJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsCancelCall {
 17119  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17120  	return c
 17121  }
 17122  
 17123  // Context sets the context to be used in this call's Do method.
 17124  func (c *ProjectsDlpJobsCancelCall) Context(ctx context.Context) *ProjectsDlpJobsCancelCall {
 17125  	c.ctx_ = ctx
 17126  	return c
 17127  }
 17128  
 17129  // Header returns a http.Header that can be modified by the caller to add
 17130  // headers to the request.
 17131  func (c *ProjectsDlpJobsCancelCall) Header() http.Header {
 17132  	if c.header_ == nil {
 17133  		c.header_ = make(http.Header)
 17134  	}
 17135  	return c.header_
 17136  }
 17137  
 17138  func (c *ProjectsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) {
 17139  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17140  	var body io.Reader = nil
 17141  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2canceldlpjobrequest)
 17142  	if err != nil {
 17143  		return nil, err
 17144  	}
 17145  	c.urlParams_.Set("alt", alt)
 17146  	c.urlParams_.Set("prettyPrint", "false")
 17147  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
 17148  	urls += "?" + c.urlParams_.Encode()
 17149  	req, err := http.NewRequest("POST", urls, body)
 17150  	if err != nil {
 17151  		return nil, err
 17152  	}
 17153  	req.Header = reqHeaders
 17154  	googleapi.Expand(req.URL, map[string]string{
 17155  		"name": c.name,
 17156  	})
 17157  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17158  }
 17159  
 17160  // Do executes the "dlp.projects.dlpJobs.cancel" call.
 17161  // Any non-2xx status code is an error. Response headers are in either
 17162  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 17163  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17164  // check whether the returned error was because http.StatusNotModified was
 17165  // returned.
 17166  func (c *ProjectsDlpJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 17167  	gensupport.SetOptions(c.urlParams_, opts...)
 17168  	res, err := c.doRequest("json")
 17169  	if res != nil && res.StatusCode == http.StatusNotModified {
 17170  		if res.Body != nil {
 17171  			res.Body.Close()
 17172  		}
 17173  		return nil, gensupport.WrapError(&googleapi.Error{
 17174  			Code:   res.StatusCode,
 17175  			Header: res.Header,
 17176  		})
 17177  	}
 17178  	if err != nil {
 17179  		return nil, err
 17180  	}
 17181  	defer googleapi.CloseBody(res)
 17182  	if err := googleapi.CheckResponse(res); err != nil {
 17183  		return nil, gensupport.WrapError(err)
 17184  	}
 17185  	ret := &GoogleProtobufEmpty{
 17186  		ServerResponse: googleapi.ServerResponse{
 17187  			Header:         res.Header,
 17188  			HTTPStatusCode: res.StatusCode,
 17189  		},
 17190  	}
 17191  	target := &ret
 17192  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17193  		return nil, err
 17194  	}
 17195  	return ret, nil
 17196  }
 17197  
 17198  type ProjectsDlpJobsCreateCall struct {
 17199  	s                                     *Service
 17200  	parentid                              string
 17201  	googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest
 17202  	urlParams_                            gensupport.URLParams
 17203  	ctx_                                  context.Context
 17204  	header_                               http.Header
 17205  }
 17206  
 17207  // Create: Creates a new job to inspect storage or calculate risk metrics. See
 17208  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 17209  // and
 17210  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 17211  // to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect
 17212  // jobs, the system will automatically choose what detectors to run. By default
 17213  // this may be all types, but may change over time as detectors are updated.
 17214  //
 17215  //   - parent: Parent resource name. The format of this value varies depending on
 17216  //     whether you have specified a processing location
 17217  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 17218  //   - Projects scope, location specified:
 17219  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 17220  //     location specified (defaults to global): `projects/`PROJECT_ID The
 17221  //     following example `parent` string specifies a parent project with the
 17222  //     identifier `example-project`, and specifies the `europe-west3` location
 17223  //     for processing data:
 17224  //     parent=projects/example-project/locations/europe-west3.
 17225  func (r *ProjectsDlpJobsService) Create(parentid string, googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest) *ProjectsDlpJobsCreateCall {
 17226  	c := &ProjectsDlpJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17227  	c.parentid = parentid
 17228  	c.googleprivacydlpv2createdlpjobrequest = googleprivacydlpv2createdlpjobrequest
 17229  	return c
 17230  }
 17231  
 17232  // Fields allows partial responses to be retrieved. See
 17233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17234  // details.
 17235  func (c *ProjectsDlpJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsCreateCall {
 17236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17237  	return c
 17238  }
 17239  
 17240  // Context sets the context to be used in this call's Do method.
 17241  func (c *ProjectsDlpJobsCreateCall) Context(ctx context.Context) *ProjectsDlpJobsCreateCall {
 17242  	c.ctx_ = ctx
 17243  	return c
 17244  }
 17245  
 17246  // Header returns a http.Header that can be modified by the caller to add
 17247  // headers to the request.
 17248  func (c *ProjectsDlpJobsCreateCall) Header() http.Header {
 17249  	if c.header_ == nil {
 17250  		c.header_ = make(http.Header)
 17251  	}
 17252  	return c.header_
 17253  }
 17254  
 17255  func (c *ProjectsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error) {
 17256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17257  	var body io.Reader = nil
 17258  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdlpjobrequest)
 17259  	if err != nil {
 17260  		return nil, err
 17261  	}
 17262  	c.urlParams_.Set("alt", alt)
 17263  	c.urlParams_.Set("prettyPrint", "false")
 17264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
 17265  	urls += "?" + c.urlParams_.Encode()
 17266  	req, err := http.NewRequest("POST", urls, body)
 17267  	if err != nil {
 17268  		return nil, err
 17269  	}
 17270  	req.Header = reqHeaders
 17271  	googleapi.Expand(req.URL, map[string]string{
 17272  		"parent": c.parentid,
 17273  	})
 17274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17275  }
 17276  
 17277  // Do executes the "dlp.projects.dlpJobs.create" call.
 17278  // Any non-2xx status code is an error. Response headers are in either
 17279  // *GooglePrivacyDlpV2DlpJob.ServerResponse.Header or (if a response was
 17280  // returned at all) in error.(*googleapi.Error).Header. Use
 17281  // googleapi.IsNotModified to check whether the returned error was because
 17282  // http.StatusNotModified was returned.
 17283  func (c *ProjectsDlpJobsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
 17284  	gensupport.SetOptions(c.urlParams_, opts...)
 17285  	res, err := c.doRequest("json")
 17286  	if res != nil && res.StatusCode == http.StatusNotModified {
 17287  		if res.Body != nil {
 17288  			res.Body.Close()
 17289  		}
 17290  		return nil, gensupport.WrapError(&googleapi.Error{
 17291  			Code:   res.StatusCode,
 17292  			Header: res.Header,
 17293  		})
 17294  	}
 17295  	if err != nil {
 17296  		return nil, err
 17297  	}
 17298  	defer googleapi.CloseBody(res)
 17299  	if err := googleapi.CheckResponse(res); err != nil {
 17300  		return nil, gensupport.WrapError(err)
 17301  	}
 17302  	ret := &GooglePrivacyDlpV2DlpJob{
 17303  		ServerResponse: googleapi.ServerResponse{
 17304  			Header:         res.Header,
 17305  			HTTPStatusCode: res.StatusCode,
 17306  		},
 17307  	}
 17308  	target := &ret
 17309  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17310  		return nil, err
 17311  	}
 17312  	return ret, nil
 17313  }
 17314  
 17315  type ProjectsDlpJobsDeleteCall struct {
 17316  	s          *Service
 17317  	name       string
 17318  	urlParams_ gensupport.URLParams
 17319  	ctx_       context.Context
 17320  	header_    http.Header
 17321  }
 17322  
 17323  // Delete: Deletes a long-running DlpJob. This method indicates that the client
 17324  // is no longer interested in the DlpJob result. The job will be canceled if
 17325  // possible. See
 17326  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 17327  // and
 17328  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 17329  // to learn more.
 17330  //
 17331  // - name: The name of the DlpJob resource to be deleted.
 17332  func (r *ProjectsDlpJobsService) Delete(name string) *ProjectsDlpJobsDeleteCall {
 17333  	c := &ProjectsDlpJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17334  	c.name = name
 17335  	return c
 17336  }
 17337  
 17338  // Fields allows partial responses to be retrieved. See
 17339  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17340  // details.
 17341  func (c *ProjectsDlpJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsDeleteCall {
 17342  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17343  	return c
 17344  }
 17345  
 17346  // Context sets the context to be used in this call's Do method.
 17347  func (c *ProjectsDlpJobsDeleteCall) Context(ctx context.Context) *ProjectsDlpJobsDeleteCall {
 17348  	c.ctx_ = ctx
 17349  	return c
 17350  }
 17351  
 17352  // Header returns a http.Header that can be modified by the caller to add
 17353  // headers to the request.
 17354  func (c *ProjectsDlpJobsDeleteCall) Header() http.Header {
 17355  	if c.header_ == nil {
 17356  		c.header_ = make(http.Header)
 17357  	}
 17358  	return c.header_
 17359  }
 17360  
 17361  func (c *ProjectsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
 17362  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17363  	var body io.Reader = nil
 17364  	c.urlParams_.Set("alt", alt)
 17365  	c.urlParams_.Set("prettyPrint", "false")
 17366  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 17367  	urls += "?" + c.urlParams_.Encode()
 17368  	req, err := http.NewRequest("DELETE", urls, body)
 17369  	if err != nil {
 17370  		return nil, err
 17371  	}
 17372  	req.Header = reqHeaders
 17373  	googleapi.Expand(req.URL, map[string]string{
 17374  		"name": c.name,
 17375  	})
 17376  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17377  }
 17378  
 17379  // Do executes the "dlp.projects.dlpJobs.delete" call.
 17380  // Any non-2xx status code is an error. Response headers are in either
 17381  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 17382  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17383  // check whether the returned error was because http.StatusNotModified was
 17384  // returned.
 17385  func (c *ProjectsDlpJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 17386  	gensupport.SetOptions(c.urlParams_, opts...)
 17387  	res, err := c.doRequest("json")
 17388  	if res != nil && res.StatusCode == http.StatusNotModified {
 17389  		if res.Body != nil {
 17390  			res.Body.Close()
 17391  		}
 17392  		return nil, gensupport.WrapError(&googleapi.Error{
 17393  			Code:   res.StatusCode,
 17394  			Header: res.Header,
 17395  		})
 17396  	}
 17397  	if err != nil {
 17398  		return nil, err
 17399  	}
 17400  	defer googleapi.CloseBody(res)
 17401  	if err := googleapi.CheckResponse(res); err != nil {
 17402  		return nil, gensupport.WrapError(err)
 17403  	}
 17404  	ret := &GoogleProtobufEmpty{
 17405  		ServerResponse: googleapi.ServerResponse{
 17406  			Header:         res.Header,
 17407  			HTTPStatusCode: res.StatusCode,
 17408  		},
 17409  	}
 17410  	target := &ret
 17411  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17412  		return nil, err
 17413  	}
 17414  	return ret, nil
 17415  }
 17416  
 17417  type ProjectsDlpJobsGetCall struct {
 17418  	s            *Service
 17419  	name         string
 17420  	urlParams_   gensupport.URLParams
 17421  	ifNoneMatch_ string
 17422  	ctx_         context.Context
 17423  	header_      http.Header
 17424  }
 17425  
 17426  // Get: Gets the latest state of a long-running DlpJob. See
 17427  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 17428  // and
 17429  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 17430  // to learn more.
 17431  //
 17432  // - name: The name of the DlpJob resource.
 17433  func (r *ProjectsDlpJobsService) Get(name string) *ProjectsDlpJobsGetCall {
 17434  	c := &ProjectsDlpJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17435  	c.name = name
 17436  	return c
 17437  }
 17438  
 17439  // Fields allows partial responses to be retrieved. See
 17440  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17441  // details.
 17442  func (c *ProjectsDlpJobsGetCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsGetCall {
 17443  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17444  	return c
 17445  }
 17446  
 17447  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17448  // object's ETag matches the given value. This is useful for getting updates
 17449  // only after the object has changed since the last request.
 17450  func (c *ProjectsDlpJobsGetCall) IfNoneMatch(entityTag string) *ProjectsDlpJobsGetCall {
 17451  	c.ifNoneMatch_ = entityTag
 17452  	return c
 17453  }
 17454  
 17455  // Context sets the context to be used in this call's Do method.
 17456  func (c *ProjectsDlpJobsGetCall) Context(ctx context.Context) *ProjectsDlpJobsGetCall {
 17457  	c.ctx_ = ctx
 17458  	return c
 17459  }
 17460  
 17461  // Header returns a http.Header that can be modified by the caller to add
 17462  // headers to the request.
 17463  func (c *ProjectsDlpJobsGetCall) Header() http.Header {
 17464  	if c.header_ == nil {
 17465  		c.header_ = make(http.Header)
 17466  	}
 17467  	return c.header_
 17468  }
 17469  
 17470  func (c *ProjectsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) {
 17471  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17472  	if c.ifNoneMatch_ != "" {
 17473  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17474  	}
 17475  	var body io.Reader = nil
 17476  	c.urlParams_.Set("alt", alt)
 17477  	c.urlParams_.Set("prettyPrint", "false")
 17478  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 17479  	urls += "?" + c.urlParams_.Encode()
 17480  	req, err := http.NewRequest("GET", urls, body)
 17481  	if err != nil {
 17482  		return nil, err
 17483  	}
 17484  	req.Header = reqHeaders
 17485  	googleapi.Expand(req.URL, map[string]string{
 17486  		"name": c.name,
 17487  	})
 17488  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17489  }
 17490  
 17491  // Do executes the "dlp.projects.dlpJobs.get" call.
 17492  // Any non-2xx status code is an error. Response headers are in either
 17493  // *GooglePrivacyDlpV2DlpJob.ServerResponse.Header or (if a response was
 17494  // returned at all) in error.(*googleapi.Error).Header. Use
 17495  // googleapi.IsNotModified to check whether the returned error was because
 17496  // http.StatusNotModified was returned.
 17497  func (c *ProjectsDlpJobsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
 17498  	gensupport.SetOptions(c.urlParams_, opts...)
 17499  	res, err := c.doRequest("json")
 17500  	if res != nil && res.StatusCode == http.StatusNotModified {
 17501  		if res.Body != nil {
 17502  			res.Body.Close()
 17503  		}
 17504  		return nil, gensupport.WrapError(&googleapi.Error{
 17505  			Code:   res.StatusCode,
 17506  			Header: res.Header,
 17507  		})
 17508  	}
 17509  	if err != nil {
 17510  		return nil, err
 17511  	}
 17512  	defer googleapi.CloseBody(res)
 17513  	if err := googleapi.CheckResponse(res); err != nil {
 17514  		return nil, gensupport.WrapError(err)
 17515  	}
 17516  	ret := &GooglePrivacyDlpV2DlpJob{
 17517  		ServerResponse: googleapi.ServerResponse{
 17518  			Header:         res.Header,
 17519  			HTTPStatusCode: res.StatusCode,
 17520  		},
 17521  	}
 17522  	target := &ret
 17523  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17524  		return nil, err
 17525  	}
 17526  	return ret, nil
 17527  }
 17528  
 17529  type ProjectsDlpJobsListCall struct {
 17530  	s            *Service
 17531  	parentid     string
 17532  	urlParams_   gensupport.URLParams
 17533  	ifNoneMatch_ string
 17534  	ctx_         context.Context
 17535  	header_      http.Header
 17536  }
 17537  
 17538  // List: Lists DlpJobs that match the specified filter in the request. See
 17539  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 17540  // and
 17541  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 17542  // to learn more.
 17543  //
 17544  //   - parent: Parent resource name. The format of this value varies depending on
 17545  //     whether you have specified a processing location
 17546  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 17547  //   - Projects scope, location specified:
 17548  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 17549  //     location specified (defaults to global): `projects/`PROJECT_ID The
 17550  //     following example `parent` string specifies a parent project with the
 17551  //     identifier `example-project`, and specifies the `europe-west3` location
 17552  //     for processing data:
 17553  //     parent=projects/example-project/locations/europe-west3.
 17554  func (r *ProjectsDlpJobsService) List(parentid string) *ProjectsDlpJobsListCall {
 17555  	c := &ProjectsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17556  	c.parentid = parentid
 17557  	return c
 17558  }
 17559  
 17560  // Filter sets the optional parameter "filter": Allows filtering. Supported
 17561  // syntax: * Filter expressions are made up of one or more restrictions. *
 17562  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 17563  // of restrictions implicitly uses `AND`. * A restriction has the form of
 17564  // `{field} {operator} {value}`. * Supported fields/values for inspect jobs: -
 17565  // `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` -
 17566  // DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger
 17567  // that created the job. - 'end_time` - Corresponds to the time the job
 17568  // finished. - 'start_time` - Corresponds to the time the job finished. *
 17569  // Supported fields for risk analysis jobs: - `state` -
 17570  // RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the
 17571  // job finished. - 'start_time` - Corresponds to the time the job finished. *
 17572  // The operator must be `=` or `!=`. Examples: * inspected_storage =
 17573  // cloud_storage AND state = done * inspected_storage = cloud_storage OR
 17574  // inspected_storage = bigquery * inspected_storage = cloud_storage AND (state
 17575  // = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The
 17576  // length of this field should be no more than 500 characters.
 17577  func (c *ProjectsDlpJobsListCall) Filter(filter string) *ProjectsDlpJobsListCall {
 17578  	c.urlParams_.Set("filter", filter)
 17579  	return c
 17580  }
 17581  
 17582  // LocationId sets the optional parameter "locationId": Deprecated. This field
 17583  // has no effect.
 17584  func (c *ProjectsDlpJobsListCall) LocationId(locationId string) *ProjectsDlpJobsListCall {
 17585  	c.urlParams_.Set("locationId", locationId)
 17586  	return c
 17587  }
 17588  
 17589  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 17590  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 17591  // insensitive. The default sorting order is ascending. Redundant space
 17592  // characters are insignificant. Example: `name asc, end_time asc, create_time
 17593  // desc` Supported fields are: - `create_time`: corresponds to the time the job
 17594  // was created. - `end_time`: corresponds to the time the job ended. - `name`:
 17595  // corresponds to the job's name. - `state`: corresponds to `state`
 17596  func (c *ProjectsDlpJobsListCall) OrderBy(orderBy string) *ProjectsDlpJobsListCall {
 17597  	c.urlParams_.Set("orderBy", orderBy)
 17598  	return c
 17599  }
 17600  
 17601  // PageSize sets the optional parameter "pageSize": The standard list page
 17602  // size.
 17603  func (c *ProjectsDlpJobsListCall) PageSize(pageSize int64) *ProjectsDlpJobsListCall {
 17604  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17605  	return c
 17606  }
 17607  
 17608  // PageToken sets the optional parameter "pageToken": The standard list page
 17609  // token.
 17610  func (c *ProjectsDlpJobsListCall) PageToken(pageToken string) *ProjectsDlpJobsListCall {
 17611  	c.urlParams_.Set("pageToken", pageToken)
 17612  	return c
 17613  }
 17614  
 17615  // Type sets the optional parameter "type": The type of job. Defaults to
 17616  // `DlpJobType.INSPECT`
 17617  //
 17618  // Possible values:
 17619  //
 17620  //	"DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
 17621  //	"INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
 17622  //	"RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
 17623  func (c *ProjectsDlpJobsListCall) Type(type_ string) *ProjectsDlpJobsListCall {
 17624  	c.urlParams_.Set("type", type_)
 17625  	return c
 17626  }
 17627  
 17628  // Fields allows partial responses to be retrieved. See
 17629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17630  // details.
 17631  func (c *ProjectsDlpJobsListCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsListCall {
 17632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17633  	return c
 17634  }
 17635  
 17636  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17637  // object's ETag matches the given value. This is useful for getting updates
 17638  // only after the object has changed since the last request.
 17639  func (c *ProjectsDlpJobsListCall) IfNoneMatch(entityTag string) *ProjectsDlpJobsListCall {
 17640  	c.ifNoneMatch_ = entityTag
 17641  	return c
 17642  }
 17643  
 17644  // Context sets the context to be used in this call's Do method.
 17645  func (c *ProjectsDlpJobsListCall) Context(ctx context.Context) *ProjectsDlpJobsListCall {
 17646  	c.ctx_ = ctx
 17647  	return c
 17648  }
 17649  
 17650  // Header returns a http.Header that can be modified by the caller to add
 17651  // headers to the request.
 17652  func (c *ProjectsDlpJobsListCall) Header() http.Header {
 17653  	if c.header_ == nil {
 17654  		c.header_ = make(http.Header)
 17655  	}
 17656  	return c.header_
 17657  }
 17658  
 17659  func (c *ProjectsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
 17660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17661  	if c.ifNoneMatch_ != "" {
 17662  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17663  	}
 17664  	var body io.Reader = nil
 17665  	c.urlParams_.Set("alt", alt)
 17666  	c.urlParams_.Set("prettyPrint", "false")
 17667  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
 17668  	urls += "?" + c.urlParams_.Encode()
 17669  	req, err := http.NewRequest("GET", urls, body)
 17670  	if err != nil {
 17671  		return nil, err
 17672  	}
 17673  	req.Header = reqHeaders
 17674  	googleapi.Expand(req.URL, map[string]string{
 17675  		"parent": c.parentid,
 17676  	})
 17677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17678  }
 17679  
 17680  // Do executes the "dlp.projects.dlpJobs.list" call.
 17681  // Any non-2xx status code is an error. Response headers are in either
 17682  // *GooglePrivacyDlpV2ListDlpJobsResponse.ServerResponse.Header or (if a
 17683  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17684  // googleapi.IsNotModified to check whether the returned error was because
 17685  // http.StatusNotModified was returned.
 17686  func (c *ProjectsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDlpJobsResponse, error) {
 17687  	gensupport.SetOptions(c.urlParams_, opts...)
 17688  	res, err := c.doRequest("json")
 17689  	if res != nil && res.StatusCode == http.StatusNotModified {
 17690  		if res.Body != nil {
 17691  			res.Body.Close()
 17692  		}
 17693  		return nil, gensupport.WrapError(&googleapi.Error{
 17694  			Code:   res.StatusCode,
 17695  			Header: res.Header,
 17696  		})
 17697  	}
 17698  	if err != nil {
 17699  		return nil, err
 17700  	}
 17701  	defer googleapi.CloseBody(res)
 17702  	if err := googleapi.CheckResponse(res); err != nil {
 17703  		return nil, gensupport.WrapError(err)
 17704  	}
 17705  	ret := &GooglePrivacyDlpV2ListDlpJobsResponse{
 17706  		ServerResponse: googleapi.ServerResponse{
 17707  			Header:         res.Header,
 17708  			HTTPStatusCode: res.StatusCode,
 17709  		},
 17710  	}
 17711  	target := &ret
 17712  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17713  		return nil, err
 17714  	}
 17715  	return ret, nil
 17716  }
 17717  
 17718  // Pages invokes f for each page of results.
 17719  // A non-nil error returned from f will halt the iteration.
 17720  // The provided context supersedes any context provided to the Context method.
 17721  func (c *ProjectsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDlpJobsResponse) error) error {
 17722  	c.ctx_ = ctx
 17723  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17724  	for {
 17725  		x, err := c.Do()
 17726  		if err != nil {
 17727  			return err
 17728  		}
 17729  		if err := f(x); err != nil {
 17730  			return err
 17731  		}
 17732  		if x.NextPageToken == "" {
 17733  			return nil
 17734  		}
 17735  		c.PageToken(x.NextPageToken)
 17736  	}
 17737  }
 17738  
 17739  type ProjectsImageRedactCall struct {
 17740  	s                                    *Service
 17741  	parentid                             string
 17742  	googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest
 17743  	urlParams_                           gensupport.URLParams
 17744  	ctx_                                 context.Context
 17745  	header_                              http.Header
 17746  }
 17747  
 17748  // Redact: Redacts potentially sensitive info from an image. This method has
 17749  // limits on input size, processing time, and output size. See
 17750  // https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
 17751  // to learn more. When no InfoTypes or CustomInfoTypes are specified in this
 17752  // request, the system will automatically choose what detectors to run. By
 17753  // default this may be all types, but may change over time as detectors are
 17754  // updated.
 17755  //
 17756  //   - parent: Parent resource name. The format of this value varies depending on
 17757  //     whether you have specified a processing location
 17758  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 17759  //   - Projects scope, location specified:
 17760  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 17761  //     location specified (defaults to global): `projects/`PROJECT_ID The
 17762  //     following example `parent` string specifies a parent project with the
 17763  //     identifier `example-project`, and specifies the `europe-west3` location
 17764  //     for processing data:
 17765  //     parent=projects/example-project/locations/europe-west3.
 17766  func (r *ProjectsImageService) Redact(parentid string, googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest) *ProjectsImageRedactCall {
 17767  	c := &ProjectsImageRedactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17768  	c.parentid = parentid
 17769  	c.googleprivacydlpv2redactimagerequest = googleprivacydlpv2redactimagerequest
 17770  	return c
 17771  }
 17772  
 17773  // Fields allows partial responses to be retrieved. See
 17774  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17775  // details.
 17776  func (c *ProjectsImageRedactCall) Fields(s ...googleapi.Field) *ProjectsImageRedactCall {
 17777  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17778  	return c
 17779  }
 17780  
 17781  // Context sets the context to be used in this call's Do method.
 17782  func (c *ProjectsImageRedactCall) Context(ctx context.Context) *ProjectsImageRedactCall {
 17783  	c.ctx_ = ctx
 17784  	return c
 17785  }
 17786  
 17787  // Header returns a http.Header that can be modified by the caller to add
 17788  // headers to the request.
 17789  func (c *ProjectsImageRedactCall) Header() http.Header {
 17790  	if c.header_ == nil {
 17791  		c.header_ = make(http.Header)
 17792  	}
 17793  	return c.header_
 17794  }
 17795  
 17796  func (c *ProjectsImageRedactCall) doRequest(alt string) (*http.Response, error) {
 17797  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17798  	var body io.Reader = nil
 17799  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2redactimagerequest)
 17800  	if err != nil {
 17801  		return nil, err
 17802  	}
 17803  	c.urlParams_.Set("alt", alt)
 17804  	c.urlParams_.Set("prettyPrint", "false")
 17805  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/image:redact")
 17806  	urls += "?" + c.urlParams_.Encode()
 17807  	req, err := http.NewRequest("POST", urls, body)
 17808  	if err != nil {
 17809  		return nil, err
 17810  	}
 17811  	req.Header = reqHeaders
 17812  	googleapi.Expand(req.URL, map[string]string{
 17813  		"parent": c.parentid,
 17814  	})
 17815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17816  }
 17817  
 17818  // Do executes the "dlp.projects.image.redact" call.
 17819  // Any non-2xx status code is an error. Response headers are in either
 17820  // *GooglePrivacyDlpV2RedactImageResponse.ServerResponse.Header or (if a
 17821  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17822  // googleapi.IsNotModified to check whether the returned error was because
 17823  // http.StatusNotModified was returned.
 17824  func (c *ProjectsImageRedactCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2RedactImageResponse, error) {
 17825  	gensupport.SetOptions(c.urlParams_, opts...)
 17826  	res, err := c.doRequest("json")
 17827  	if res != nil && res.StatusCode == http.StatusNotModified {
 17828  		if res.Body != nil {
 17829  			res.Body.Close()
 17830  		}
 17831  		return nil, gensupport.WrapError(&googleapi.Error{
 17832  			Code:   res.StatusCode,
 17833  			Header: res.Header,
 17834  		})
 17835  	}
 17836  	if err != nil {
 17837  		return nil, err
 17838  	}
 17839  	defer googleapi.CloseBody(res)
 17840  	if err := googleapi.CheckResponse(res); err != nil {
 17841  		return nil, gensupport.WrapError(err)
 17842  	}
 17843  	ret := &GooglePrivacyDlpV2RedactImageResponse{
 17844  		ServerResponse: googleapi.ServerResponse{
 17845  			Header:         res.Header,
 17846  			HTTPStatusCode: res.StatusCode,
 17847  		},
 17848  	}
 17849  	target := &ret
 17850  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17851  		return nil, err
 17852  	}
 17853  	return ret, nil
 17854  }
 17855  
 17856  type ProjectsInspectTemplatesCreateCall struct {
 17857  	s                                              *Service
 17858  	parentid                                       string
 17859  	googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
 17860  	urlParams_                                     gensupport.URLParams
 17861  	ctx_                                           context.Context
 17862  	header_                                        http.Header
 17863  }
 17864  
 17865  // Create: Creates an InspectTemplate for reusing frequently used configuration
 17866  // for inspecting content, images, and storage. See
 17867  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 17868  // to learn more.
 17869  //
 17870  //   - parent: Parent resource name. The format of this value varies depending on
 17871  //     the scope of the request (project or organization) and whether you have
 17872  //     specified a processing location
 17873  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 17874  //   - Projects scope, location specified:
 17875  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 17876  //     location specified (defaults to global): `projects/`PROJECT_ID +
 17877  //     Organizations scope, location specified:
 17878  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 17879  //     location specified (defaults to global): `organizations/`ORG_ID The
 17880  //     following example `parent` string specifies a parent project with the
 17881  //     identifier `example-project`, and specifies the `europe-west3` location
 17882  //     for processing data:
 17883  //     parent=projects/example-project/locations/europe-west3.
 17884  func (r *ProjectsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *ProjectsInspectTemplatesCreateCall {
 17885  	c := &ProjectsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17886  	c.parentid = parentid
 17887  	c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
 17888  	return c
 17889  }
 17890  
 17891  // Fields allows partial responses to be retrieved. See
 17892  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17893  // details.
 17894  func (c *ProjectsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesCreateCall {
 17895  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17896  	return c
 17897  }
 17898  
 17899  // Context sets the context to be used in this call's Do method.
 17900  func (c *ProjectsInspectTemplatesCreateCall) Context(ctx context.Context) *ProjectsInspectTemplatesCreateCall {
 17901  	c.ctx_ = ctx
 17902  	return c
 17903  }
 17904  
 17905  // Header returns a http.Header that can be modified by the caller to add
 17906  // headers to the request.
 17907  func (c *ProjectsInspectTemplatesCreateCall) Header() http.Header {
 17908  	if c.header_ == nil {
 17909  		c.header_ = make(http.Header)
 17910  	}
 17911  	return c.header_
 17912  }
 17913  
 17914  func (c *ProjectsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 17915  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17916  	var body io.Reader = nil
 17917  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
 17918  	if err != nil {
 17919  		return nil, err
 17920  	}
 17921  	c.urlParams_.Set("alt", alt)
 17922  	c.urlParams_.Set("prettyPrint", "false")
 17923  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 17924  	urls += "?" + c.urlParams_.Encode()
 17925  	req, err := http.NewRequest("POST", urls, body)
 17926  	if err != nil {
 17927  		return nil, err
 17928  	}
 17929  	req.Header = reqHeaders
 17930  	googleapi.Expand(req.URL, map[string]string{
 17931  		"parent": c.parentid,
 17932  	})
 17933  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17934  }
 17935  
 17936  // Do executes the "dlp.projects.inspectTemplates.create" call.
 17937  // Any non-2xx status code is an error. Response headers are in either
 17938  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 17939  // was returned at all) in error.(*googleapi.Error).Header. Use
 17940  // googleapi.IsNotModified to check whether the returned error was because
 17941  // http.StatusNotModified was returned.
 17942  func (c *ProjectsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 17943  	gensupport.SetOptions(c.urlParams_, opts...)
 17944  	res, err := c.doRequest("json")
 17945  	if res != nil && res.StatusCode == http.StatusNotModified {
 17946  		if res.Body != nil {
 17947  			res.Body.Close()
 17948  		}
 17949  		return nil, gensupport.WrapError(&googleapi.Error{
 17950  			Code:   res.StatusCode,
 17951  			Header: res.Header,
 17952  		})
 17953  	}
 17954  	if err != nil {
 17955  		return nil, err
 17956  	}
 17957  	defer googleapi.CloseBody(res)
 17958  	if err := googleapi.CheckResponse(res); err != nil {
 17959  		return nil, gensupport.WrapError(err)
 17960  	}
 17961  	ret := &GooglePrivacyDlpV2InspectTemplate{
 17962  		ServerResponse: googleapi.ServerResponse{
 17963  			Header:         res.Header,
 17964  			HTTPStatusCode: res.StatusCode,
 17965  		},
 17966  	}
 17967  	target := &ret
 17968  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17969  		return nil, err
 17970  	}
 17971  	return ret, nil
 17972  }
 17973  
 17974  type ProjectsInspectTemplatesDeleteCall struct {
 17975  	s          *Service
 17976  	name       string
 17977  	urlParams_ gensupport.URLParams
 17978  	ctx_       context.Context
 17979  	header_    http.Header
 17980  }
 17981  
 17982  // Delete: Deletes an InspectTemplate. See
 17983  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 17984  // to learn more.
 17985  //
 17986  //   - name: Resource name of the organization and inspectTemplate to be deleted,
 17987  //     for example `organizations/433245324/inspectTemplates/432452342` or
 17988  //     projects/project-id/inspectTemplates/432452342.
 17989  func (r *ProjectsInspectTemplatesService) Delete(name string) *ProjectsInspectTemplatesDeleteCall {
 17990  	c := &ProjectsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17991  	c.name = name
 17992  	return c
 17993  }
 17994  
 17995  // Fields allows partial responses to be retrieved. See
 17996  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17997  // details.
 17998  func (c *ProjectsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesDeleteCall {
 17999  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18000  	return c
 18001  }
 18002  
 18003  // Context sets the context to be used in this call's Do method.
 18004  func (c *ProjectsInspectTemplatesDeleteCall) Context(ctx context.Context) *ProjectsInspectTemplatesDeleteCall {
 18005  	c.ctx_ = ctx
 18006  	return c
 18007  }
 18008  
 18009  // Header returns a http.Header that can be modified by the caller to add
 18010  // headers to the request.
 18011  func (c *ProjectsInspectTemplatesDeleteCall) Header() http.Header {
 18012  	if c.header_ == nil {
 18013  		c.header_ = make(http.Header)
 18014  	}
 18015  	return c.header_
 18016  }
 18017  
 18018  func (c *ProjectsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 18019  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18020  	var body io.Reader = nil
 18021  	c.urlParams_.Set("alt", alt)
 18022  	c.urlParams_.Set("prettyPrint", "false")
 18023  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 18024  	urls += "?" + c.urlParams_.Encode()
 18025  	req, err := http.NewRequest("DELETE", urls, body)
 18026  	if err != nil {
 18027  		return nil, err
 18028  	}
 18029  	req.Header = reqHeaders
 18030  	googleapi.Expand(req.URL, map[string]string{
 18031  		"name": c.name,
 18032  	})
 18033  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18034  }
 18035  
 18036  // Do executes the "dlp.projects.inspectTemplates.delete" call.
 18037  // Any non-2xx status code is an error. Response headers are in either
 18038  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 18039  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18040  // check whether the returned error was because http.StatusNotModified was
 18041  // returned.
 18042  func (c *ProjectsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 18043  	gensupport.SetOptions(c.urlParams_, opts...)
 18044  	res, err := c.doRequest("json")
 18045  	if res != nil && res.StatusCode == http.StatusNotModified {
 18046  		if res.Body != nil {
 18047  			res.Body.Close()
 18048  		}
 18049  		return nil, gensupport.WrapError(&googleapi.Error{
 18050  			Code:   res.StatusCode,
 18051  			Header: res.Header,
 18052  		})
 18053  	}
 18054  	if err != nil {
 18055  		return nil, err
 18056  	}
 18057  	defer googleapi.CloseBody(res)
 18058  	if err := googleapi.CheckResponse(res); err != nil {
 18059  		return nil, gensupport.WrapError(err)
 18060  	}
 18061  	ret := &GoogleProtobufEmpty{
 18062  		ServerResponse: googleapi.ServerResponse{
 18063  			Header:         res.Header,
 18064  			HTTPStatusCode: res.StatusCode,
 18065  		},
 18066  	}
 18067  	target := &ret
 18068  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18069  		return nil, err
 18070  	}
 18071  	return ret, nil
 18072  }
 18073  
 18074  type ProjectsInspectTemplatesGetCall struct {
 18075  	s            *Service
 18076  	name         string
 18077  	urlParams_   gensupport.URLParams
 18078  	ifNoneMatch_ string
 18079  	ctx_         context.Context
 18080  	header_      http.Header
 18081  }
 18082  
 18083  // Get: Gets an InspectTemplate. See
 18084  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 18085  // to learn more.
 18086  //
 18087  //   - name: Resource name of the organization and inspectTemplate to be read,
 18088  //     for example `organizations/433245324/inspectTemplates/432452342` or
 18089  //     projects/project-id/inspectTemplates/432452342.
 18090  func (r *ProjectsInspectTemplatesService) Get(name string) *ProjectsInspectTemplatesGetCall {
 18091  	c := &ProjectsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18092  	c.name = name
 18093  	return c
 18094  }
 18095  
 18096  // Fields allows partial responses to be retrieved. See
 18097  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18098  // details.
 18099  func (c *ProjectsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesGetCall {
 18100  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18101  	return c
 18102  }
 18103  
 18104  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18105  // object's ETag matches the given value. This is useful for getting updates
 18106  // only after the object has changed since the last request.
 18107  func (c *ProjectsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsInspectTemplatesGetCall {
 18108  	c.ifNoneMatch_ = entityTag
 18109  	return c
 18110  }
 18111  
 18112  // Context sets the context to be used in this call's Do method.
 18113  func (c *ProjectsInspectTemplatesGetCall) Context(ctx context.Context) *ProjectsInspectTemplatesGetCall {
 18114  	c.ctx_ = ctx
 18115  	return c
 18116  }
 18117  
 18118  // Header returns a http.Header that can be modified by the caller to add
 18119  // headers to the request.
 18120  func (c *ProjectsInspectTemplatesGetCall) Header() http.Header {
 18121  	if c.header_ == nil {
 18122  		c.header_ = make(http.Header)
 18123  	}
 18124  	return c.header_
 18125  }
 18126  
 18127  func (c *ProjectsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 18128  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18129  	if c.ifNoneMatch_ != "" {
 18130  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18131  	}
 18132  	var body io.Reader = nil
 18133  	c.urlParams_.Set("alt", alt)
 18134  	c.urlParams_.Set("prettyPrint", "false")
 18135  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 18136  	urls += "?" + c.urlParams_.Encode()
 18137  	req, err := http.NewRequest("GET", urls, body)
 18138  	if err != nil {
 18139  		return nil, err
 18140  	}
 18141  	req.Header = reqHeaders
 18142  	googleapi.Expand(req.URL, map[string]string{
 18143  		"name": c.name,
 18144  	})
 18145  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18146  }
 18147  
 18148  // Do executes the "dlp.projects.inspectTemplates.get" call.
 18149  // Any non-2xx status code is an error. Response headers are in either
 18150  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 18151  // was returned at all) in error.(*googleapi.Error).Header. Use
 18152  // googleapi.IsNotModified to check whether the returned error was because
 18153  // http.StatusNotModified was returned.
 18154  func (c *ProjectsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 18155  	gensupport.SetOptions(c.urlParams_, opts...)
 18156  	res, err := c.doRequest("json")
 18157  	if res != nil && res.StatusCode == http.StatusNotModified {
 18158  		if res.Body != nil {
 18159  			res.Body.Close()
 18160  		}
 18161  		return nil, gensupport.WrapError(&googleapi.Error{
 18162  			Code:   res.StatusCode,
 18163  			Header: res.Header,
 18164  		})
 18165  	}
 18166  	if err != nil {
 18167  		return nil, err
 18168  	}
 18169  	defer googleapi.CloseBody(res)
 18170  	if err := googleapi.CheckResponse(res); err != nil {
 18171  		return nil, gensupport.WrapError(err)
 18172  	}
 18173  	ret := &GooglePrivacyDlpV2InspectTemplate{
 18174  		ServerResponse: googleapi.ServerResponse{
 18175  			Header:         res.Header,
 18176  			HTTPStatusCode: res.StatusCode,
 18177  		},
 18178  	}
 18179  	target := &ret
 18180  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18181  		return nil, err
 18182  	}
 18183  	return ret, nil
 18184  }
 18185  
 18186  type ProjectsInspectTemplatesListCall struct {
 18187  	s            *Service
 18188  	parentid     string
 18189  	urlParams_   gensupport.URLParams
 18190  	ifNoneMatch_ string
 18191  	ctx_         context.Context
 18192  	header_      http.Header
 18193  }
 18194  
 18195  // List: Lists InspectTemplates. See
 18196  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 18197  // to learn more.
 18198  //
 18199  //   - parent: Parent resource name. The format of this value varies depending on
 18200  //     the scope of the request (project or organization) and whether you have
 18201  //     specified a processing location
 18202  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 18203  //   - Projects scope, location specified:
 18204  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 18205  //     location specified (defaults to global): `projects/`PROJECT_ID +
 18206  //     Organizations scope, location specified:
 18207  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 18208  //     location specified (defaults to global): `organizations/`ORG_ID The
 18209  //     following example `parent` string specifies a parent project with the
 18210  //     identifier `example-project`, and specifies the `europe-west3` location
 18211  //     for processing data:
 18212  //     parent=projects/example-project/locations/europe-west3.
 18213  func (r *ProjectsInspectTemplatesService) List(parentid string) *ProjectsInspectTemplatesListCall {
 18214  	c := &ProjectsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18215  	c.parentid = parentid
 18216  	return c
 18217  }
 18218  
 18219  // LocationId sets the optional parameter "locationId": Deprecated. This field
 18220  // has no effect.
 18221  func (c *ProjectsInspectTemplatesListCall) LocationId(locationId string) *ProjectsInspectTemplatesListCall {
 18222  	c.urlParams_.Set("locationId", locationId)
 18223  	return c
 18224  }
 18225  
 18226  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 18227  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 18228  // insensitive. The default sorting order is ascending. Redundant space
 18229  // characters are insignificant. Example: `name asc,update_time, create_time
 18230  // desc` Supported fields are: - `create_time`: corresponds to the time the
 18231  // template was created. - `update_time`: corresponds to the time the template
 18232  // was last updated. - `name`: corresponds to the template's name. -
 18233  // `display_name`: corresponds to the template's display name.
 18234  func (c *ProjectsInspectTemplatesListCall) OrderBy(orderBy string) *ProjectsInspectTemplatesListCall {
 18235  	c.urlParams_.Set("orderBy", orderBy)
 18236  	return c
 18237  }
 18238  
 18239  // PageSize sets the optional parameter "pageSize": Size of the page. This
 18240  // value can be limited by the server. If zero server returns a page of max
 18241  // size 100.
 18242  func (c *ProjectsInspectTemplatesListCall) PageSize(pageSize int64) *ProjectsInspectTemplatesListCall {
 18243  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18244  	return c
 18245  }
 18246  
 18247  // PageToken sets the optional parameter "pageToken": Page token to continue
 18248  // retrieval. Comes from the previous call to `ListInspectTemplates`.
 18249  func (c *ProjectsInspectTemplatesListCall) PageToken(pageToken string) *ProjectsInspectTemplatesListCall {
 18250  	c.urlParams_.Set("pageToken", pageToken)
 18251  	return c
 18252  }
 18253  
 18254  // Fields allows partial responses to be retrieved. See
 18255  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18256  // details.
 18257  func (c *ProjectsInspectTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesListCall {
 18258  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18259  	return c
 18260  }
 18261  
 18262  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18263  // object's ETag matches the given value. This is useful for getting updates
 18264  // only after the object has changed since the last request.
 18265  func (c *ProjectsInspectTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsInspectTemplatesListCall {
 18266  	c.ifNoneMatch_ = entityTag
 18267  	return c
 18268  }
 18269  
 18270  // Context sets the context to be used in this call's Do method.
 18271  func (c *ProjectsInspectTemplatesListCall) Context(ctx context.Context) *ProjectsInspectTemplatesListCall {
 18272  	c.ctx_ = ctx
 18273  	return c
 18274  }
 18275  
 18276  // Header returns a http.Header that can be modified by the caller to add
 18277  // headers to the request.
 18278  func (c *ProjectsInspectTemplatesListCall) Header() http.Header {
 18279  	if c.header_ == nil {
 18280  		c.header_ = make(http.Header)
 18281  	}
 18282  	return c.header_
 18283  }
 18284  
 18285  func (c *ProjectsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 18286  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18287  	if c.ifNoneMatch_ != "" {
 18288  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18289  	}
 18290  	var body io.Reader = nil
 18291  	c.urlParams_.Set("alt", alt)
 18292  	c.urlParams_.Set("prettyPrint", "false")
 18293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 18294  	urls += "?" + c.urlParams_.Encode()
 18295  	req, err := http.NewRequest("GET", urls, body)
 18296  	if err != nil {
 18297  		return nil, err
 18298  	}
 18299  	req.Header = reqHeaders
 18300  	googleapi.Expand(req.URL, map[string]string{
 18301  		"parent": c.parentid,
 18302  	})
 18303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18304  }
 18305  
 18306  // Do executes the "dlp.projects.inspectTemplates.list" call.
 18307  // Any non-2xx status code is an error. Response headers are in either
 18308  // *GooglePrivacyDlpV2ListInspectTemplatesResponse.ServerResponse.Header or (if
 18309  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 18310  // googleapi.IsNotModified to check whether the returned error was because
 18311  // http.StatusNotModified was returned.
 18312  func (c *ProjectsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
 18313  	gensupport.SetOptions(c.urlParams_, opts...)
 18314  	res, err := c.doRequest("json")
 18315  	if res != nil && res.StatusCode == http.StatusNotModified {
 18316  		if res.Body != nil {
 18317  			res.Body.Close()
 18318  		}
 18319  		return nil, gensupport.WrapError(&googleapi.Error{
 18320  			Code:   res.StatusCode,
 18321  			Header: res.Header,
 18322  		})
 18323  	}
 18324  	if err != nil {
 18325  		return nil, err
 18326  	}
 18327  	defer googleapi.CloseBody(res)
 18328  	if err := googleapi.CheckResponse(res); err != nil {
 18329  		return nil, gensupport.WrapError(err)
 18330  	}
 18331  	ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
 18332  		ServerResponse: googleapi.ServerResponse{
 18333  			Header:         res.Header,
 18334  			HTTPStatusCode: res.StatusCode,
 18335  		},
 18336  	}
 18337  	target := &ret
 18338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18339  		return nil, err
 18340  	}
 18341  	return ret, nil
 18342  }
 18343  
 18344  // Pages invokes f for each page of results.
 18345  // A non-nil error returned from f will halt the iteration.
 18346  // The provided context supersedes any context provided to the Context method.
 18347  func (c *ProjectsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
 18348  	c.ctx_ = ctx
 18349  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18350  	for {
 18351  		x, err := c.Do()
 18352  		if err != nil {
 18353  			return err
 18354  		}
 18355  		if err := f(x); err != nil {
 18356  			return err
 18357  		}
 18358  		if x.NextPageToken == "" {
 18359  			return nil
 18360  		}
 18361  		c.PageToken(x.NextPageToken)
 18362  	}
 18363  }
 18364  
 18365  type ProjectsInspectTemplatesPatchCall struct {
 18366  	s                                              *Service
 18367  	name                                           string
 18368  	googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
 18369  	urlParams_                                     gensupport.URLParams
 18370  	ctx_                                           context.Context
 18371  	header_                                        http.Header
 18372  }
 18373  
 18374  // Patch: Updates the InspectTemplate. See
 18375  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 18376  // to learn more.
 18377  //
 18378  //   - name: Resource name of organization and inspectTemplate to be updated, for
 18379  //     example `organizations/433245324/inspectTemplates/432452342` or
 18380  //     projects/project-id/inspectTemplates/432452342.
 18381  func (r *ProjectsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *ProjectsInspectTemplatesPatchCall {
 18382  	c := &ProjectsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18383  	c.name = name
 18384  	c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
 18385  	return c
 18386  }
 18387  
 18388  // Fields allows partial responses to be retrieved. See
 18389  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18390  // details.
 18391  func (c *ProjectsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesPatchCall {
 18392  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18393  	return c
 18394  }
 18395  
 18396  // Context sets the context to be used in this call's Do method.
 18397  func (c *ProjectsInspectTemplatesPatchCall) Context(ctx context.Context) *ProjectsInspectTemplatesPatchCall {
 18398  	c.ctx_ = ctx
 18399  	return c
 18400  }
 18401  
 18402  // Header returns a http.Header that can be modified by the caller to add
 18403  // headers to the request.
 18404  func (c *ProjectsInspectTemplatesPatchCall) Header() http.Header {
 18405  	if c.header_ == nil {
 18406  		c.header_ = make(http.Header)
 18407  	}
 18408  	return c.header_
 18409  }
 18410  
 18411  func (c *ProjectsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 18412  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18413  	var body io.Reader = nil
 18414  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
 18415  	if err != nil {
 18416  		return nil, err
 18417  	}
 18418  	c.urlParams_.Set("alt", alt)
 18419  	c.urlParams_.Set("prettyPrint", "false")
 18420  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 18421  	urls += "?" + c.urlParams_.Encode()
 18422  	req, err := http.NewRequest("PATCH", urls, body)
 18423  	if err != nil {
 18424  		return nil, err
 18425  	}
 18426  	req.Header = reqHeaders
 18427  	googleapi.Expand(req.URL, map[string]string{
 18428  		"name": c.name,
 18429  	})
 18430  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18431  }
 18432  
 18433  // Do executes the "dlp.projects.inspectTemplates.patch" call.
 18434  // Any non-2xx status code is an error. Response headers are in either
 18435  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 18436  // was returned at all) in error.(*googleapi.Error).Header. Use
 18437  // googleapi.IsNotModified to check whether the returned error was because
 18438  // http.StatusNotModified was returned.
 18439  func (c *ProjectsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 18440  	gensupport.SetOptions(c.urlParams_, opts...)
 18441  	res, err := c.doRequest("json")
 18442  	if res != nil && res.StatusCode == http.StatusNotModified {
 18443  		if res.Body != nil {
 18444  			res.Body.Close()
 18445  		}
 18446  		return nil, gensupport.WrapError(&googleapi.Error{
 18447  			Code:   res.StatusCode,
 18448  			Header: res.Header,
 18449  		})
 18450  	}
 18451  	if err != nil {
 18452  		return nil, err
 18453  	}
 18454  	defer googleapi.CloseBody(res)
 18455  	if err := googleapi.CheckResponse(res); err != nil {
 18456  		return nil, gensupport.WrapError(err)
 18457  	}
 18458  	ret := &GooglePrivacyDlpV2InspectTemplate{
 18459  		ServerResponse: googleapi.ServerResponse{
 18460  			Header:         res.Header,
 18461  			HTTPStatusCode: res.StatusCode,
 18462  		},
 18463  	}
 18464  	target := &ret
 18465  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18466  		return nil, err
 18467  	}
 18468  	return ret, nil
 18469  }
 18470  
 18471  type ProjectsJobTriggersActivateCall struct {
 18472  	s                                           *Service
 18473  	name                                        string
 18474  	googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest
 18475  	urlParams_                                  gensupport.URLParams
 18476  	ctx_                                        context.Context
 18477  	header_                                     http.Header
 18478  }
 18479  
 18480  // Activate: Activate a job trigger. Causes the immediate execute of a trigger
 18481  // instead of waiting on the trigger event to occur.
 18482  //
 18483  //   - name: Resource name of the trigger to activate, for example
 18484  //     `projects/dlp-test-project/jobTriggers/53234423`.
 18485  func (r *ProjectsJobTriggersService) Activate(name string, googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest) *ProjectsJobTriggersActivateCall {
 18486  	c := &ProjectsJobTriggersActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18487  	c.name = name
 18488  	c.googleprivacydlpv2activatejobtriggerrequest = googleprivacydlpv2activatejobtriggerrequest
 18489  	return c
 18490  }
 18491  
 18492  // Fields allows partial responses to be retrieved. See
 18493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18494  // details.
 18495  func (c *ProjectsJobTriggersActivateCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersActivateCall {
 18496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18497  	return c
 18498  }
 18499  
 18500  // Context sets the context to be used in this call's Do method.
 18501  func (c *ProjectsJobTriggersActivateCall) Context(ctx context.Context) *ProjectsJobTriggersActivateCall {
 18502  	c.ctx_ = ctx
 18503  	return c
 18504  }
 18505  
 18506  // Header returns a http.Header that can be modified by the caller to add
 18507  // headers to the request.
 18508  func (c *ProjectsJobTriggersActivateCall) Header() http.Header {
 18509  	if c.header_ == nil {
 18510  		c.header_ = make(http.Header)
 18511  	}
 18512  	return c.header_
 18513  }
 18514  
 18515  func (c *ProjectsJobTriggersActivateCall) doRequest(alt string) (*http.Response, error) {
 18516  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18517  	var body io.Reader = nil
 18518  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2activatejobtriggerrequest)
 18519  	if err != nil {
 18520  		return nil, err
 18521  	}
 18522  	c.urlParams_.Set("alt", alt)
 18523  	c.urlParams_.Set("prettyPrint", "false")
 18524  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:activate")
 18525  	urls += "?" + c.urlParams_.Encode()
 18526  	req, err := http.NewRequest("POST", urls, body)
 18527  	if err != nil {
 18528  		return nil, err
 18529  	}
 18530  	req.Header = reqHeaders
 18531  	googleapi.Expand(req.URL, map[string]string{
 18532  		"name": c.name,
 18533  	})
 18534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18535  }
 18536  
 18537  // Do executes the "dlp.projects.jobTriggers.activate" call.
 18538  // Any non-2xx status code is an error. Response headers are in either
 18539  // *GooglePrivacyDlpV2DlpJob.ServerResponse.Header or (if a response was
 18540  // returned at all) in error.(*googleapi.Error).Header. Use
 18541  // googleapi.IsNotModified to check whether the returned error was because
 18542  // http.StatusNotModified was returned.
 18543  func (c *ProjectsJobTriggersActivateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
 18544  	gensupport.SetOptions(c.urlParams_, opts...)
 18545  	res, err := c.doRequest("json")
 18546  	if res != nil && res.StatusCode == http.StatusNotModified {
 18547  		if res.Body != nil {
 18548  			res.Body.Close()
 18549  		}
 18550  		return nil, gensupport.WrapError(&googleapi.Error{
 18551  			Code:   res.StatusCode,
 18552  			Header: res.Header,
 18553  		})
 18554  	}
 18555  	if err != nil {
 18556  		return nil, err
 18557  	}
 18558  	defer googleapi.CloseBody(res)
 18559  	if err := googleapi.CheckResponse(res); err != nil {
 18560  		return nil, gensupport.WrapError(err)
 18561  	}
 18562  	ret := &GooglePrivacyDlpV2DlpJob{
 18563  		ServerResponse: googleapi.ServerResponse{
 18564  			Header:         res.Header,
 18565  			HTTPStatusCode: res.StatusCode,
 18566  		},
 18567  	}
 18568  	target := &ret
 18569  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18570  		return nil, err
 18571  	}
 18572  	return ret, nil
 18573  }
 18574  
 18575  type ProjectsJobTriggersCreateCall struct {
 18576  	s                                         *Service
 18577  	parentid                                  string
 18578  	googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest
 18579  	urlParams_                                gensupport.URLParams
 18580  	ctx_                                      context.Context
 18581  	header_                                   http.Header
 18582  }
 18583  
 18584  // Create: Creates a job trigger to run DLP actions such as scanning storage
 18585  // for sensitive information on a set schedule. See
 18586  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 18587  // to learn more.
 18588  //
 18589  //   - parent: Parent resource name. The format of this value varies depending on
 18590  //     whether you have specified a processing location
 18591  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 18592  //   - Projects scope, location specified:
 18593  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 18594  //     location specified (defaults to global): `projects/`PROJECT_ID The
 18595  //     following example `parent` string specifies a parent project with the
 18596  //     identifier `example-project`, and specifies the `europe-west3` location
 18597  //     for processing data:
 18598  //     parent=projects/example-project/locations/europe-west3.
 18599  func (r *ProjectsJobTriggersService) Create(parentid string, googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest) *ProjectsJobTriggersCreateCall {
 18600  	c := &ProjectsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18601  	c.parentid = parentid
 18602  	c.googleprivacydlpv2createjobtriggerrequest = googleprivacydlpv2createjobtriggerrequest
 18603  	return c
 18604  }
 18605  
 18606  // Fields allows partial responses to be retrieved. See
 18607  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18608  // details.
 18609  func (c *ProjectsJobTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersCreateCall {
 18610  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18611  	return c
 18612  }
 18613  
 18614  // Context sets the context to be used in this call's Do method.
 18615  func (c *ProjectsJobTriggersCreateCall) Context(ctx context.Context) *ProjectsJobTriggersCreateCall {
 18616  	c.ctx_ = ctx
 18617  	return c
 18618  }
 18619  
 18620  // Header returns a http.Header that can be modified by the caller to add
 18621  // headers to the request.
 18622  func (c *ProjectsJobTriggersCreateCall) Header() http.Header {
 18623  	if c.header_ == nil {
 18624  		c.header_ = make(http.Header)
 18625  	}
 18626  	return c.header_
 18627  }
 18628  
 18629  func (c *ProjectsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
 18630  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18631  	var body io.Reader = nil
 18632  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createjobtriggerrequest)
 18633  	if err != nil {
 18634  		return nil, err
 18635  	}
 18636  	c.urlParams_.Set("alt", alt)
 18637  	c.urlParams_.Set("prettyPrint", "false")
 18638  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
 18639  	urls += "?" + c.urlParams_.Encode()
 18640  	req, err := http.NewRequest("POST", urls, body)
 18641  	if err != nil {
 18642  		return nil, err
 18643  	}
 18644  	req.Header = reqHeaders
 18645  	googleapi.Expand(req.URL, map[string]string{
 18646  		"parent": c.parentid,
 18647  	})
 18648  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18649  }
 18650  
 18651  // Do executes the "dlp.projects.jobTriggers.create" call.
 18652  // Any non-2xx status code is an error. Response headers are in either
 18653  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 18654  // returned at all) in error.(*googleapi.Error).Header. Use
 18655  // googleapi.IsNotModified to check whether the returned error was because
 18656  // http.StatusNotModified was returned.
 18657  func (c *ProjectsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 18658  	gensupport.SetOptions(c.urlParams_, opts...)
 18659  	res, err := c.doRequest("json")
 18660  	if res != nil && res.StatusCode == http.StatusNotModified {
 18661  		if res.Body != nil {
 18662  			res.Body.Close()
 18663  		}
 18664  		return nil, gensupport.WrapError(&googleapi.Error{
 18665  			Code:   res.StatusCode,
 18666  			Header: res.Header,
 18667  		})
 18668  	}
 18669  	if err != nil {
 18670  		return nil, err
 18671  	}
 18672  	defer googleapi.CloseBody(res)
 18673  	if err := googleapi.CheckResponse(res); err != nil {
 18674  		return nil, gensupport.WrapError(err)
 18675  	}
 18676  	ret := &GooglePrivacyDlpV2JobTrigger{
 18677  		ServerResponse: googleapi.ServerResponse{
 18678  			Header:         res.Header,
 18679  			HTTPStatusCode: res.StatusCode,
 18680  		},
 18681  	}
 18682  	target := &ret
 18683  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18684  		return nil, err
 18685  	}
 18686  	return ret, nil
 18687  }
 18688  
 18689  type ProjectsJobTriggersDeleteCall struct {
 18690  	s          *Service
 18691  	name       string
 18692  	urlParams_ gensupport.URLParams
 18693  	ctx_       context.Context
 18694  	header_    http.Header
 18695  }
 18696  
 18697  // Delete: Deletes a job trigger. See
 18698  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 18699  // to learn more.
 18700  //
 18701  //   - name: Resource name of the project and the triggeredJob, for example
 18702  //     `projects/dlp-test-project/jobTriggers/53234423`.
 18703  func (r *ProjectsJobTriggersService) Delete(name string) *ProjectsJobTriggersDeleteCall {
 18704  	c := &ProjectsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18705  	c.name = name
 18706  	return c
 18707  }
 18708  
 18709  // Fields allows partial responses to be retrieved. See
 18710  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18711  // details.
 18712  func (c *ProjectsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersDeleteCall {
 18713  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18714  	return c
 18715  }
 18716  
 18717  // Context sets the context to be used in this call's Do method.
 18718  func (c *ProjectsJobTriggersDeleteCall) Context(ctx context.Context) *ProjectsJobTriggersDeleteCall {
 18719  	c.ctx_ = ctx
 18720  	return c
 18721  }
 18722  
 18723  // Header returns a http.Header that can be modified by the caller to add
 18724  // headers to the request.
 18725  func (c *ProjectsJobTriggersDeleteCall) Header() http.Header {
 18726  	if c.header_ == nil {
 18727  		c.header_ = make(http.Header)
 18728  	}
 18729  	return c.header_
 18730  }
 18731  
 18732  func (c *ProjectsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
 18733  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18734  	var body io.Reader = nil
 18735  	c.urlParams_.Set("alt", alt)
 18736  	c.urlParams_.Set("prettyPrint", "false")
 18737  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 18738  	urls += "?" + c.urlParams_.Encode()
 18739  	req, err := http.NewRequest("DELETE", urls, body)
 18740  	if err != nil {
 18741  		return nil, err
 18742  	}
 18743  	req.Header = reqHeaders
 18744  	googleapi.Expand(req.URL, map[string]string{
 18745  		"name": c.name,
 18746  	})
 18747  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18748  }
 18749  
 18750  // Do executes the "dlp.projects.jobTriggers.delete" call.
 18751  // Any non-2xx status code is an error. Response headers are in either
 18752  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 18753  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18754  // check whether the returned error was because http.StatusNotModified was
 18755  // returned.
 18756  func (c *ProjectsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 18757  	gensupport.SetOptions(c.urlParams_, opts...)
 18758  	res, err := c.doRequest("json")
 18759  	if res != nil && res.StatusCode == http.StatusNotModified {
 18760  		if res.Body != nil {
 18761  			res.Body.Close()
 18762  		}
 18763  		return nil, gensupport.WrapError(&googleapi.Error{
 18764  			Code:   res.StatusCode,
 18765  			Header: res.Header,
 18766  		})
 18767  	}
 18768  	if err != nil {
 18769  		return nil, err
 18770  	}
 18771  	defer googleapi.CloseBody(res)
 18772  	if err := googleapi.CheckResponse(res); err != nil {
 18773  		return nil, gensupport.WrapError(err)
 18774  	}
 18775  	ret := &GoogleProtobufEmpty{
 18776  		ServerResponse: googleapi.ServerResponse{
 18777  			Header:         res.Header,
 18778  			HTTPStatusCode: res.StatusCode,
 18779  		},
 18780  	}
 18781  	target := &ret
 18782  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18783  		return nil, err
 18784  	}
 18785  	return ret, nil
 18786  }
 18787  
 18788  type ProjectsJobTriggersGetCall struct {
 18789  	s            *Service
 18790  	name         string
 18791  	urlParams_   gensupport.URLParams
 18792  	ifNoneMatch_ string
 18793  	ctx_         context.Context
 18794  	header_      http.Header
 18795  }
 18796  
 18797  // Get: Gets a job trigger. See
 18798  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 18799  // to learn more.
 18800  //
 18801  //   - name: Resource name of the project and the triggeredJob, for example
 18802  //     `projects/dlp-test-project/jobTriggers/53234423`.
 18803  func (r *ProjectsJobTriggersService) Get(name string) *ProjectsJobTriggersGetCall {
 18804  	c := &ProjectsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18805  	c.name = name
 18806  	return c
 18807  }
 18808  
 18809  // Fields allows partial responses to be retrieved. See
 18810  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18811  // details.
 18812  func (c *ProjectsJobTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersGetCall {
 18813  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18814  	return c
 18815  }
 18816  
 18817  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18818  // object's ETag matches the given value. This is useful for getting updates
 18819  // only after the object has changed since the last request.
 18820  func (c *ProjectsJobTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsJobTriggersGetCall {
 18821  	c.ifNoneMatch_ = entityTag
 18822  	return c
 18823  }
 18824  
 18825  // Context sets the context to be used in this call's Do method.
 18826  func (c *ProjectsJobTriggersGetCall) Context(ctx context.Context) *ProjectsJobTriggersGetCall {
 18827  	c.ctx_ = ctx
 18828  	return c
 18829  }
 18830  
 18831  // Header returns a http.Header that can be modified by the caller to add
 18832  // headers to the request.
 18833  func (c *ProjectsJobTriggersGetCall) Header() http.Header {
 18834  	if c.header_ == nil {
 18835  		c.header_ = make(http.Header)
 18836  	}
 18837  	return c.header_
 18838  }
 18839  
 18840  func (c *ProjectsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
 18841  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18842  	if c.ifNoneMatch_ != "" {
 18843  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18844  	}
 18845  	var body io.Reader = nil
 18846  	c.urlParams_.Set("alt", alt)
 18847  	c.urlParams_.Set("prettyPrint", "false")
 18848  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 18849  	urls += "?" + c.urlParams_.Encode()
 18850  	req, err := http.NewRequest("GET", urls, body)
 18851  	if err != nil {
 18852  		return nil, err
 18853  	}
 18854  	req.Header = reqHeaders
 18855  	googleapi.Expand(req.URL, map[string]string{
 18856  		"name": c.name,
 18857  	})
 18858  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18859  }
 18860  
 18861  // Do executes the "dlp.projects.jobTriggers.get" call.
 18862  // Any non-2xx status code is an error. Response headers are in either
 18863  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 18864  // returned at all) in error.(*googleapi.Error).Header. Use
 18865  // googleapi.IsNotModified to check whether the returned error was because
 18866  // http.StatusNotModified was returned.
 18867  func (c *ProjectsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 18868  	gensupport.SetOptions(c.urlParams_, opts...)
 18869  	res, err := c.doRequest("json")
 18870  	if res != nil && res.StatusCode == http.StatusNotModified {
 18871  		if res.Body != nil {
 18872  			res.Body.Close()
 18873  		}
 18874  		return nil, gensupport.WrapError(&googleapi.Error{
 18875  			Code:   res.StatusCode,
 18876  			Header: res.Header,
 18877  		})
 18878  	}
 18879  	if err != nil {
 18880  		return nil, err
 18881  	}
 18882  	defer googleapi.CloseBody(res)
 18883  	if err := googleapi.CheckResponse(res); err != nil {
 18884  		return nil, gensupport.WrapError(err)
 18885  	}
 18886  	ret := &GooglePrivacyDlpV2JobTrigger{
 18887  		ServerResponse: googleapi.ServerResponse{
 18888  			Header:         res.Header,
 18889  			HTTPStatusCode: res.StatusCode,
 18890  		},
 18891  	}
 18892  	target := &ret
 18893  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18894  		return nil, err
 18895  	}
 18896  	return ret, nil
 18897  }
 18898  
 18899  type ProjectsJobTriggersListCall struct {
 18900  	s            *Service
 18901  	parentid     string
 18902  	urlParams_   gensupport.URLParams
 18903  	ifNoneMatch_ string
 18904  	ctx_         context.Context
 18905  	header_      http.Header
 18906  }
 18907  
 18908  // List: Lists job triggers. See
 18909  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 18910  // to learn more.
 18911  //
 18912  //   - parent: Parent resource name. The format of this value varies depending on
 18913  //     whether you have specified a processing location
 18914  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 18915  //   - Projects scope, location specified:
 18916  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 18917  //     location specified (defaults to global): `projects/`PROJECT_ID The
 18918  //     following example `parent` string specifies a parent project with the
 18919  //     identifier `example-project`, and specifies the `europe-west3` location
 18920  //     for processing data:
 18921  //     parent=projects/example-project/locations/europe-west3.
 18922  func (r *ProjectsJobTriggersService) List(parentid string) *ProjectsJobTriggersListCall {
 18923  	c := &ProjectsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18924  	c.parentid = parentid
 18925  	return c
 18926  }
 18927  
 18928  // Filter sets the optional parameter "filter": Allows filtering. Supported
 18929  // syntax: * Filter expressions are made up of one or more restrictions. *
 18930  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 18931  // of restrictions implicitly uses `AND`. * A restriction has the form of
 18932  // `{field} {operator} {value}`. * Supported fields/values for inspect
 18933  // triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` -
 18934  // DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted
 18935  // timestamp, surrounded by quotation marks. Nanoseconds are ignored. -
 18936  // 'error_count' - Number of errors that have occurred while running. * The
 18937  // operator must be `=` or `!=` for status and inspected_storage. Examples: *
 18938  // inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage =
 18939  // cloud_storage OR inspected_storage = bigquery * inspected_storage =
 18940  // cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time >
 18941  // \"2017-12-12T00:00:00+00:00\" The length of this field should be no more
 18942  // than 500 characters.
 18943  func (c *ProjectsJobTriggersListCall) Filter(filter string) *ProjectsJobTriggersListCall {
 18944  	c.urlParams_.Set("filter", filter)
 18945  	return c
 18946  }
 18947  
 18948  // LocationId sets the optional parameter "locationId": Deprecated. This field
 18949  // has no effect.
 18950  func (c *ProjectsJobTriggersListCall) LocationId(locationId string) *ProjectsJobTriggersListCall {
 18951  	c.urlParams_.Set("locationId", locationId)
 18952  	return c
 18953  }
 18954  
 18955  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 18956  // triggeredJob fields to order by, followed by `asc` or `desc` postfix. This
 18957  // list is case insensitive. The default sorting order is ascending. Redundant
 18958  // space characters are insignificant. Example: `name asc,update_time,
 18959  // create_time desc` Supported fields are: - `create_time`: corresponds to the
 18960  // time the JobTrigger was created. - `update_time`: corresponds to the time
 18961  // the JobTrigger was last updated. - `last_run_time`: corresponds to the last
 18962  // time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. -
 18963  // `display_name`: corresponds to the JobTrigger's display name. - `status`:
 18964  // corresponds to JobTrigger's status.
 18965  func (c *ProjectsJobTriggersListCall) OrderBy(orderBy string) *ProjectsJobTriggersListCall {
 18966  	c.urlParams_.Set("orderBy", orderBy)
 18967  	return c
 18968  }
 18969  
 18970  // PageSize sets the optional parameter "pageSize": Size of the page. This
 18971  // value can be limited by a server.
 18972  func (c *ProjectsJobTriggersListCall) PageSize(pageSize int64) *ProjectsJobTriggersListCall {
 18973  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18974  	return c
 18975  }
 18976  
 18977  // PageToken sets the optional parameter "pageToken": Page token to continue
 18978  // retrieval. Comes from the previous call to ListJobTriggers. `order_by` field
 18979  // must not change for subsequent calls.
 18980  func (c *ProjectsJobTriggersListCall) PageToken(pageToken string) *ProjectsJobTriggersListCall {
 18981  	c.urlParams_.Set("pageToken", pageToken)
 18982  	return c
 18983  }
 18984  
 18985  // Type sets the optional parameter "type": The type of jobs. Will use
 18986  // `DlpJobType.INSPECT` if not set.
 18987  //
 18988  // Possible values:
 18989  //
 18990  //	"DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
 18991  //	"INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
 18992  //	"RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
 18993  func (c *ProjectsJobTriggersListCall) Type(type_ string) *ProjectsJobTriggersListCall {
 18994  	c.urlParams_.Set("type", type_)
 18995  	return c
 18996  }
 18997  
 18998  // Fields allows partial responses to be retrieved. See
 18999  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19000  // details.
 19001  func (c *ProjectsJobTriggersListCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersListCall {
 19002  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19003  	return c
 19004  }
 19005  
 19006  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19007  // object's ETag matches the given value. This is useful for getting updates
 19008  // only after the object has changed since the last request.
 19009  func (c *ProjectsJobTriggersListCall) IfNoneMatch(entityTag string) *ProjectsJobTriggersListCall {
 19010  	c.ifNoneMatch_ = entityTag
 19011  	return c
 19012  }
 19013  
 19014  // Context sets the context to be used in this call's Do method.
 19015  func (c *ProjectsJobTriggersListCall) Context(ctx context.Context) *ProjectsJobTriggersListCall {
 19016  	c.ctx_ = ctx
 19017  	return c
 19018  }
 19019  
 19020  // Header returns a http.Header that can be modified by the caller to add
 19021  // headers to the request.
 19022  func (c *ProjectsJobTriggersListCall) Header() http.Header {
 19023  	if c.header_ == nil {
 19024  		c.header_ = make(http.Header)
 19025  	}
 19026  	return c.header_
 19027  }
 19028  
 19029  func (c *ProjectsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
 19030  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19031  	if c.ifNoneMatch_ != "" {
 19032  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19033  	}
 19034  	var body io.Reader = nil
 19035  	c.urlParams_.Set("alt", alt)
 19036  	c.urlParams_.Set("prettyPrint", "false")
 19037  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
 19038  	urls += "?" + c.urlParams_.Encode()
 19039  	req, err := http.NewRequest("GET", urls, body)
 19040  	if err != nil {
 19041  		return nil, err
 19042  	}
 19043  	req.Header = reqHeaders
 19044  	googleapi.Expand(req.URL, map[string]string{
 19045  		"parent": c.parentid,
 19046  	})
 19047  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19048  }
 19049  
 19050  // Do executes the "dlp.projects.jobTriggers.list" call.
 19051  // Any non-2xx status code is an error. Response headers are in either
 19052  // *GooglePrivacyDlpV2ListJobTriggersResponse.ServerResponse.Header or (if a
 19053  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19054  // googleapi.IsNotModified to check whether the returned error was because
 19055  // http.StatusNotModified was returned.
 19056  func (c *ProjectsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListJobTriggersResponse, error) {
 19057  	gensupport.SetOptions(c.urlParams_, opts...)
 19058  	res, err := c.doRequest("json")
 19059  	if res != nil && res.StatusCode == http.StatusNotModified {
 19060  		if res.Body != nil {
 19061  			res.Body.Close()
 19062  		}
 19063  		return nil, gensupport.WrapError(&googleapi.Error{
 19064  			Code:   res.StatusCode,
 19065  			Header: res.Header,
 19066  		})
 19067  	}
 19068  	if err != nil {
 19069  		return nil, err
 19070  	}
 19071  	defer googleapi.CloseBody(res)
 19072  	if err := googleapi.CheckResponse(res); err != nil {
 19073  		return nil, gensupport.WrapError(err)
 19074  	}
 19075  	ret := &GooglePrivacyDlpV2ListJobTriggersResponse{
 19076  		ServerResponse: googleapi.ServerResponse{
 19077  			Header:         res.Header,
 19078  			HTTPStatusCode: res.StatusCode,
 19079  		},
 19080  	}
 19081  	target := &ret
 19082  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19083  		return nil, err
 19084  	}
 19085  	return ret, nil
 19086  }
 19087  
 19088  // Pages invokes f for each page of results.
 19089  // A non-nil error returned from f will halt the iteration.
 19090  // The provided context supersedes any context provided to the Context method.
 19091  func (c *ProjectsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListJobTriggersResponse) error) error {
 19092  	c.ctx_ = ctx
 19093  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19094  	for {
 19095  		x, err := c.Do()
 19096  		if err != nil {
 19097  			return err
 19098  		}
 19099  		if err := f(x); err != nil {
 19100  			return err
 19101  		}
 19102  		if x.NextPageToken == "" {
 19103  			return nil
 19104  		}
 19105  		c.PageToken(x.NextPageToken)
 19106  	}
 19107  }
 19108  
 19109  type ProjectsJobTriggersPatchCall struct {
 19110  	s                                         *Service
 19111  	name                                      string
 19112  	googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest
 19113  	urlParams_                                gensupport.URLParams
 19114  	ctx_                                      context.Context
 19115  	header_                                   http.Header
 19116  }
 19117  
 19118  // Patch: Updates a job trigger. See
 19119  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 19120  // to learn more.
 19121  //
 19122  //   - name: Resource name of the project and the triggeredJob, for example
 19123  //     `projects/dlp-test-project/jobTriggers/53234423`.
 19124  func (r *ProjectsJobTriggersService) Patch(name string, googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest) *ProjectsJobTriggersPatchCall {
 19125  	c := &ProjectsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19126  	c.name = name
 19127  	c.googleprivacydlpv2updatejobtriggerrequest = googleprivacydlpv2updatejobtriggerrequest
 19128  	return c
 19129  }
 19130  
 19131  // Fields allows partial responses to be retrieved. See
 19132  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19133  // details.
 19134  func (c *ProjectsJobTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersPatchCall {
 19135  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19136  	return c
 19137  }
 19138  
 19139  // Context sets the context to be used in this call's Do method.
 19140  func (c *ProjectsJobTriggersPatchCall) Context(ctx context.Context) *ProjectsJobTriggersPatchCall {
 19141  	c.ctx_ = ctx
 19142  	return c
 19143  }
 19144  
 19145  // Header returns a http.Header that can be modified by the caller to add
 19146  // headers to the request.
 19147  func (c *ProjectsJobTriggersPatchCall) Header() http.Header {
 19148  	if c.header_ == nil {
 19149  		c.header_ = make(http.Header)
 19150  	}
 19151  	return c.header_
 19152  }
 19153  
 19154  func (c *ProjectsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
 19155  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19156  	var body io.Reader = nil
 19157  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatejobtriggerrequest)
 19158  	if err != nil {
 19159  		return nil, err
 19160  	}
 19161  	c.urlParams_.Set("alt", alt)
 19162  	c.urlParams_.Set("prettyPrint", "false")
 19163  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 19164  	urls += "?" + c.urlParams_.Encode()
 19165  	req, err := http.NewRequest("PATCH", urls, body)
 19166  	if err != nil {
 19167  		return nil, err
 19168  	}
 19169  	req.Header = reqHeaders
 19170  	googleapi.Expand(req.URL, map[string]string{
 19171  		"name": c.name,
 19172  	})
 19173  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19174  }
 19175  
 19176  // Do executes the "dlp.projects.jobTriggers.patch" call.
 19177  // Any non-2xx status code is an error. Response headers are in either
 19178  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 19179  // returned at all) in error.(*googleapi.Error).Header. Use
 19180  // googleapi.IsNotModified to check whether the returned error was because
 19181  // http.StatusNotModified was returned.
 19182  func (c *ProjectsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 19183  	gensupport.SetOptions(c.urlParams_, opts...)
 19184  	res, err := c.doRequest("json")
 19185  	if res != nil && res.StatusCode == http.StatusNotModified {
 19186  		if res.Body != nil {
 19187  			res.Body.Close()
 19188  		}
 19189  		return nil, gensupport.WrapError(&googleapi.Error{
 19190  			Code:   res.StatusCode,
 19191  			Header: res.Header,
 19192  		})
 19193  	}
 19194  	if err != nil {
 19195  		return nil, err
 19196  	}
 19197  	defer googleapi.CloseBody(res)
 19198  	if err := googleapi.CheckResponse(res); err != nil {
 19199  		return nil, gensupport.WrapError(err)
 19200  	}
 19201  	ret := &GooglePrivacyDlpV2JobTrigger{
 19202  		ServerResponse: googleapi.ServerResponse{
 19203  			Header:         res.Header,
 19204  			HTTPStatusCode: res.StatusCode,
 19205  		},
 19206  	}
 19207  	target := &ret
 19208  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19209  		return nil, err
 19210  	}
 19211  	return ret, nil
 19212  }
 19213  
 19214  type ProjectsLocationsColumnDataProfilesGetCall struct {
 19215  	s            *Service
 19216  	name         string
 19217  	urlParams_   gensupport.URLParams
 19218  	ifNoneMatch_ string
 19219  	ctx_         context.Context
 19220  	header_      http.Header
 19221  }
 19222  
 19223  // Get: Gets a column data profile.
 19224  //
 19225  //   - name: Resource name, for example
 19226  //     `organizations/12345/locations/us/columnDataProfiles/53234423`.
 19227  func (r *ProjectsLocationsColumnDataProfilesService) Get(name string) *ProjectsLocationsColumnDataProfilesGetCall {
 19228  	c := &ProjectsLocationsColumnDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19229  	c.name = name
 19230  	return c
 19231  }
 19232  
 19233  // Fields allows partial responses to be retrieved. See
 19234  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19235  // details.
 19236  func (c *ProjectsLocationsColumnDataProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsColumnDataProfilesGetCall {
 19237  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19238  	return c
 19239  }
 19240  
 19241  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19242  // object's ETag matches the given value. This is useful for getting updates
 19243  // only after the object has changed since the last request.
 19244  func (c *ProjectsLocationsColumnDataProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsColumnDataProfilesGetCall {
 19245  	c.ifNoneMatch_ = entityTag
 19246  	return c
 19247  }
 19248  
 19249  // Context sets the context to be used in this call's Do method.
 19250  func (c *ProjectsLocationsColumnDataProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsColumnDataProfilesGetCall {
 19251  	c.ctx_ = ctx
 19252  	return c
 19253  }
 19254  
 19255  // Header returns a http.Header that can be modified by the caller to add
 19256  // headers to the request.
 19257  func (c *ProjectsLocationsColumnDataProfilesGetCall) Header() http.Header {
 19258  	if c.header_ == nil {
 19259  		c.header_ = make(http.Header)
 19260  	}
 19261  	return c.header_
 19262  }
 19263  
 19264  func (c *ProjectsLocationsColumnDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 19265  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19266  	if c.ifNoneMatch_ != "" {
 19267  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19268  	}
 19269  	var body io.Reader = nil
 19270  	c.urlParams_.Set("alt", alt)
 19271  	c.urlParams_.Set("prettyPrint", "false")
 19272  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 19273  	urls += "?" + c.urlParams_.Encode()
 19274  	req, err := http.NewRequest("GET", urls, body)
 19275  	if err != nil {
 19276  		return nil, err
 19277  	}
 19278  	req.Header = reqHeaders
 19279  	googleapi.Expand(req.URL, map[string]string{
 19280  		"name": c.name,
 19281  	})
 19282  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19283  }
 19284  
 19285  // Do executes the "dlp.projects.locations.columnDataProfiles.get" call.
 19286  // Any non-2xx status code is an error. Response headers are in either
 19287  // *GooglePrivacyDlpV2ColumnDataProfile.ServerResponse.Header or (if a response
 19288  // was returned at all) in error.(*googleapi.Error).Header. Use
 19289  // googleapi.IsNotModified to check whether the returned error was because
 19290  // http.StatusNotModified was returned.
 19291  func (c *ProjectsLocationsColumnDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ColumnDataProfile, error) {
 19292  	gensupport.SetOptions(c.urlParams_, opts...)
 19293  	res, err := c.doRequest("json")
 19294  	if res != nil && res.StatusCode == http.StatusNotModified {
 19295  		if res.Body != nil {
 19296  			res.Body.Close()
 19297  		}
 19298  		return nil, gensupport.WrapError(&googleapi.Error{
 19299  			Code:   res.StatusCode,
 19300  			Header: res.Header,
 19301  		})
 19302  	}
 19303  	if err != nil {
 19304  		return nil, err
 19305  	}
 19306  	defer googleapi.CloseBody(res)
 19307  	if err := googleapi.CheckResponse(res); err != nil {
 19308  		return nil, gensupport.WrapError(err)
 19309  	}
 19310  	ret := &GooglePrivacyDlpV2ColumnDataProfile{
 19311  		ServerResponse: googleapi.ServerResponse{
 19312  			Header:         res.Header,
 19313  			HTTPStatusCode: res.StatusCode,
 19314  		},
 19315  	}
 19316  	target := &ret
 19317  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19318  		return nil, err
 19319  	}
 19320  	return ret, nil
 19321  }
 19322  
 19323  type ProjectsLocationsColumnDataProfilesListCall struct {
 19324  	s            *Service
 19325  	parent       string
 19326  	urlParams_   gensupport.URLParams
 19327  	ifNoneMatch_ string
 19328  	ctx_         context.Context
 19329  	header_      http.Header
 19330  }
 19331  
 19332  // List: Lists column data profiles for an organization.
 19333  //
 19334  //   - parent: Resource name of the organization or project, for example
 19335  //     `organizations/433245324/locations/europe` or
 19336  //     `projects/project-id/locations/asia`.
 19337  func (r *ProjectsLocationsColumnDataProfilesService) List(parent string) *ProjectsLocationsColumnDataProfilesListCall {
 19338  	c := &ProjectsLocationsColumnDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19339  	c.parent = parent
 19340  	return c
 19341  }
 19342  
 19343  // Filter sets the optional parameter "filter": Allows filtering. Supported
 19344  // syntax: * Filter expressions are made up of one or more restrictions. *
 19345  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 19346  // of restrictions implicitly uses `AND`. * A restriction has the form of
 19347  // `{field} {operator} {value}`. * Supported fields/values: -
 19348  // `table_data_profile_name` - The name of the related table data profile. -
 19349  // `project_id` - The Google Cloud project ID. (REQUIRED) - `dataset_id` - The
 19350  // BigQuery dataset ID. (REQUIRED) - `table_id` - The BigQuery table ID.
 19351  // (REQUIRED) - `field_id` - The ID of the BigQuery field. - `info_type` - The
 19352  // infotype detected in the resource. - `sensitivity_level` - HIGH|MEDIUM|LOW -
 19353  // `data_risk_level`: How much risk is associated with this data. -
 19354  // `status_code` - an RPC status code as defined in
 19355  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
 19356  // The operator must be `=` for project_id, dataset_id, and table_id. Other
 19357  // filters also support `!=`. Examples: * project_id = 12345 AND status_code =
 19358  // 1 * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND
 19359  // info_type = STREET_ADDRESS The length of this field should be no more than
 19360  // 500 characters.
 19361  func (c *ProjectsLocationsColumnDataProfilesListCall) Filter(filter string) *ProjectsLocationsColumnDataProfilesListCall {
 19362  	c.urlParams_.Set("filter", filter)
 19363  	return c
 19364  }
 19365  
 19366  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 19367  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 19368  // insensitive. The default sorting order is ascending. Redundant space
 19369  // characters are insignificant. Only one order field at a time is allowed.
 19370  // Examples: * `project_id asc` * `table_id` * `sensitivity_level desc`
 19371  // Supported fields are: - `project_id`: The Google Cloud project ID. -
 19372  // `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a
 19373  // BigQuery table. - `sensitivity_level`: How sensitive the data in a column
 19374  // is, at most. - `data_risk_level`: How much risk is associated with this
 19375  // data. - `profile_last_generated`: When the profile was last updated in epoch
 19376  // seconds.
 19377  func (c *ProjectsLocationsColumnDataProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsColumnDataProfilesListCall {
 19378  	c.urlParams_.Set("orderBy", orderBy)
 19379  	return c
 19380  }
 19381  
 19382  // PageSize sets the optional parameter "pageSize": Size of the page. This
 19383  // value can be limited by the server. If zero, server returns a page of max
 19384  // size 100.
 19385  func (c *ProjectsLocationsColumnDataProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsColumnDataProfilesListCall {
 19386  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19387  	return c
 19388  }
 19389  
 19390  // PageToken sets the optional parameter "pageToken": Page token to continue
 19391  // retrieval.
 19392  func (c *ProjectsLocationsColumnDataProfilesListCall) PageToken(pageToken string) *ProjectsLocationsColumnDataProfilesListCall {
 19393  	c.urlParams_.Set("pageToken", pageToken)
 19394  	return c
 19395  }
 19396  
 19397  // Fields allows partial responses to be retrieved. See
 19398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19399  // details.
 19400  func (c *ProjectsLocationsColumnDataProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsColumnDataProfilesListCall {
 19401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19402  	return c
 19403  }
 19404  
 19405  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19406  // object's ETag matches the given value. This is useful for getting updates
 19407  // only after the object has changed since the last request.
 19408  func (c *ProjectsLocationsColumnDataProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsColumnDataProfilesListCall {
 19409  	c.ifNoneMatch_ = entityTag
 19410  	return c
 19411  }
 19412  
 19413  // Context sets the context to be used in this call's Do method.
 19414  func (c *ProjectsLocationsColumnDataProfilesListCall) Context(ctx context.Context) *ProjectsLocationsColumnDataProfilesListCall {
 19415  	c.ctx_ = ctx
 19416  	return c
 19417  }
 19418  
 19419  // Header returns a http.Header that can be modified by the caller to add
 19420  // headers to the request.
 19421  func (c *ProjectsLocationsColumnDataProfilesListCall) Header() http.Header {
 19422  	if c.header_ == nil {
 19423  		c.header_ = make(http.Header)
 19424  	}
 19425  	return c.header_
 19426  }
 19427  
 19428  func (c *ProjectsLocationsColumnDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
 19429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19430  	if c.ifNoneMatch_ != "" {
 19431  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19432  	}
 19433  	var body io.Reader = nil
 19434  	c.urlParams_.Set("alt", alt)
 19435  	c.urlParams_.Set("prettyPrint", "false")
 19436  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/columnDataProfiles")
 19437  	urls += "?" + c.urlParams_.Encode()
 19438  	req, err := http.NewRequest("GET", urls, body)
 19439  	if err != nil {
 19440  		return nil, err
 19441  	}
 19442  	req.Header = reqHeaders
 19443  	googleapi.Expand(req.URL, map[string]string{
 19444  		"parent": c.parent,
 19445  	})
 19446  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19447  }
 19448  
 19449  // Do executes the "dlp.projects.locations.columnDataProfiles.list" call.
 19450  // Any non-2xx status code is an error. Response headers are in either
 19451  // *GooglePrivacyDlpV2ListColumnDataProfilesResponse.ServerResponse.Header or
 19452  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 19453  // googleapi.IsNotModified to check whether the returned error was because
 19454  // http.StatusNotModified was returned.
 19455  func (c *ProjectsLocationsColumnDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListColumnDataProfilesResponse, error) {
 19456  	gensupport.SetOptions(c.urlParams_, opts...)
 19457  	res, err := c.doRequest("json")
 19458  	if res != nil && res.StatusCode == http.StatusNotModified {
 19459  		if res.Body != nil {
 19460  			res.Body.Close()
 19461  		}
 19462  		return nil, gensupport.WrapError(&googleapi.Error{
 19463  			Code:   res.StatusCode,
 19464  			Header: res.Header,
 19465  		})
 19466  	}
 19467  	if err != nil {
 19468  		return nil, err
 19469  	}
 19470  	defer googleapi.CloseBody(res)
 19471  	if err := googleapi.CheckResponse(res); err != nil {
 19472  		return nil, gensupport.WrapError(err)
 19473  	}
 19474  	ret := &GooglePrivacyDlpV2ListColumnDataProfilesResponse{
 19475  		ServerResponse: googleapi.ServerResponse{
 19476  			Header:         res.Header,
 19477  			HTTPStatusCode: res.StatusCode,
 19478  		},
 19479  	}
 19480  	target := &ret
 19481  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19482  		return nil, err
 19483  	}
 19484  	return ret, nil
 19485  }
 19486  
 19487  // Pages invokes f for each page of results.
 19488  // A non-nil error returned from f will halt the iteration.
 19489  // The provided context supersedes any context provided to the Context method.
 19490  func (c *ProjectsLocationsColumnDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListColumnDataProfilesResponse) error) error {
 19491  	c.ctx_ = ctx
 19492  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19493  	for {
 19494  		x, err := c.Do()
 19495  		if err != nil {
 19496  			return err
 19497  		}
 19498  		if err := f(x); err != nil {
 19499  			return err
 19500  		}
 19501  		if x.NextPageToken == "" {
 19502  			return nil
 19503  		}
 19504  		c.PageToken(x.NextPageToken)
 19505  	}
 19506  }
 19507  
 19508  type ProjectsLocationsConnectionsCreateCall struct {
 19509  	s                                         *Service
 19510  	parent                                    string
 19511  	googleprivacydlpv2createconnectionrequest *GooglePrivacyDlpV2CreateConnectionRequest
 19512  	urlParams_                                gensupport.URLParams
 19513  	ctx_                                      context.Context
 19514  	header_                                   http.Header
 19515  }
 19516  
 19517  // Create: Create a Connection to an external data source.
 19518  //
 19519  //   - parent: Parent resource name in the format:
 19520  //     `projects/{project}/locations/{location}`.
 19521  func (r *ProjectsLocationsConnectionsService) Create(parent string, googleprivacydlpv2createconnectionrequest *GooglePrivacyDlpV2CreateConnectionRequest) *ProjectsLocationsConnectionsCreateCall {
 19522  	c := &ProjectsLocationsConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19523  	c.parent = parent
 19524  	c.googleprivacydlpv2createconnectionrequest = googleprivacydlpv2createconnectionrequest
 19525  	return c
 19526  }
 19527  
 19528  // Fields allows partial responses to be retrieved. See
 19529  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19530  // details.
 19531  func (c *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall {
 19532  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19533  	return c
 19534  }
 19535  
 19536  // Context sets the context to be used in this call's Do method.
 19537  func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall {
 19538  	c.ctx_ = ctx
 19539  	return c
 19540  }
 19541  
 19542  // Header returns a http.Header that can be modified by the caller to add
 19543  // headers to the request.
 19544  func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header {
 19545  	if c.header_ == nil {
 19546  		c.header_ = make(http.Header)
 19547  	}
 19548  	return c.header_
 19549  }
 19550  
 19551  func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Response, error) {
 19552  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19553  	var body io.Reader = nil
 19554  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createconnectionrequest)
 19555  	if err != nil {
 19556  		return nil, err
 19557  	}
 19558  	c.urlParams_.Set("alt", alt)
 19559  	c.urlParams_.Set("prettyPrint", "false")
 19560  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections")
 19561  	urls += "?" + c.urlParams_.Encode()
 19562  	req, err := http.NewRequest("POST", urls, body)
 19563  	if err != nil {
 19564  		return nil, err
 19565  	}
 19566  	req.Header = reqHeaders
 19567  	googleapi.Expand(req.URL, map[string]string{
 19568  		"parent": c.parent,
 19569  	})
 19570  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19571  }
 19572  
 19573  // Do executes the "dlp.projects.locations.connections.create" call.
 19574  // Any non-2xx status code is an error. Response headers are in either
 19575  // *GooglePrivacyDlpV2Connection.ServerResponse.Header or (if a response was
 19576  // returned at all) in error.(*googleapi.Error).Header. Use
 19577  // googleapi.IsNotModified to check whether the returned error was because
 19578  // http.StatusNotModified was returned.
 19579  func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2Connection, error) {
 19580  	gensupport.SetOptions(c.urlParams_, opts...)
 19581  	res, err := c.doRequest("json")
 19582  	if res != nil && res.StatusCode == http.StatusNotModified {
 19583  		if res.Body != nil {
 19584  			res.Body.Close()
 19585  		}
 19586  		return nil, gensupport.WrapError(&googleapi.Error{
 19587  			Code:   res.StatusCode,
 19588  			Header: res.Header,
 19589  		})
 19590  	}
 19591  	if err != nil {
 19592  		return nil, err
 19593  	}
 19594  	defer googleapi.CloseBody(res)
 19595  	if err := googleapi.CheckResponse(res); err != nil {
 19596  		return nil, gensupport.WrapError(err)
 19597  	}
 19598  	ret := &GooglePrivacyDlpV2Connection{
 19599  		ServerResponse: googleapi.ServerResponse{
 19600  			Header:         res.Header,
 19601  			HTTPStatusCode: res.StatusCode,
 19602  		},
 19603  	}
 19604  	target := &ret
 19605  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19606  		return nil, err
 19607  	}
 19608  	return ret, nil
 19609  }
 19610  
 19611  type ProjectsLocationsConnectionsDeleteCall struct {
 19612  	s          *Service
 19613  	name       string
 19614  	urlParams_ gensupport.URLParams
 19615  	ctx_       context.Context
 19616  	header_    http.Header
 19617  }
 19618  
 19619  // Delete: Delete a Connection.
 19620  //
 19621  //   - name: Resource name of the Connection to be deleted, in the format:
 19622  //     `projects/{project}/locations/{location}/connections/{connection}`.
 19623  func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall {
 19624  	c := &ProjectsLocationsConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19625  	c.name = name
 19626  	return c
 19627  }
 19628  
 19629  // Fields allows partial responses to be retrieved. See
 19630  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19631  // details.
 19632  func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall {
 19633  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19634  	return c
 19635  }
 19636  
 19637  // Context sets the context to be used in this call's Do method.
 19638  func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall {
 19639  	c.ctx_ = ctx
 19640  	return c
 19641  }
 19642  
 19643  // Header returns a http.Header that can be modified by the caller to add
 19644  // headers to the request.
 19645  func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header {
 19646  	if c.header_ == nil {
 19647  		c.header_ = make(http.Header)
 19648  	}
 19649  	return c.header_
 19650  }
 19651  
 19652  func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19653  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19654  	var body io.Reader = nil
 19655  	c.urlParams_.Set("alt", alt)
 19656  	c.urlParams_.Set("prettyPrint", "false")
 19657  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 19658  	urls += "?" + c.urlParams_.Encode()
 19659  	req, err := http.NewRequest("DELETE", urls, body)
 19660  	if err != nil {
 19661  		return nil, err
 19662  	}
 19663  	req.Header = reqHeaders
 19664  	googleapi.Expand(req.URL, map[string]string{
 19665  		"name": c.name,
 19666  	})
 19667  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19668  }
 19669  
 19670  // Do executes the "dlp.projects.locations.connections.delete" call.
 19671  // Any non-2xx status code is an error. Response headers are in either
 19672  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19673  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19674  // check whether the returned error was because http.StatusNotModified was
 19675  // returned.
 19676  func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19677  	gensupport.SetOptions(c.urlParams_, opts...)
 19678  	res, err := c.doRequest("json")
 19679  	if res != nil && res.StatusCode == http.StatusNotModified {
 19680  		if res.Body != nil {
 19681  			res.Body.Close()
 19682  		}
 19683  		return nil, gensupport.WrapError(&googleapi.Error{
 19684  			Code:   res.StatusCode,
 19685  			Header: res.Header,
 19686  		})
 19687  	}
 19688  	if err != nil {
 19689  		return nil, err
 19690  	}
 19691  	defer googleapi.CloseBody(res)
 19692  	if err := googleapi.CheckResponse(res); err != nil {
 19693  		return nil, gensupport.WrapError(err)
 19694  	}
 19695  	ret := &GoogleProtobufEmpty{
 19696  		ServerResponse: googleapi.ServerResponse{
 19697  			Header:         res.Header,
 19698  			HTTPStatusCode: res.StatusCode,
 19699  		},
 19700  	}
 19701  	target := &ret
 19702  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19703  		return nil, err
 19704  	}
 19705  	return ret, nil
 19706  }
 19707  
 19708  type ProjectsLocationsConnectionsGetCall struct {
 19709  	s            *Service
 19710  	name         string
 19711  	urlParams_   gensupport.URLParams
 19712  	ifNoneMatch_ string
 19713  	ctx_         context.Context
 19714  	header_      http.Header
 19715  }
 19716  
 19717  // Get: Get a Connection by name.
 19718  //
 19719  //   - name: Resource name in the format:
 19720  //     `projects/{project}/locations/{location}/connections/{connection}`.
 19721  func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall {
 19722  	c := &ProjectsLocationsConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19723  	c.name = name
 19724  	return c
 19725  }
 19726  
 19727  // Fields allows partial responses to be retrieved. See
 19728  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19729  // details.
 19730  func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall {
 19731  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19732  	return c
 19733  }
 19734  
 19735  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19736  // object's ETag matches the given value. This is useful for getting updates
 19737  // only after the object has changed since the last request.
 19738  func (c *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall {
 19739  	c.ifNoneMatch_ = entityTag
 19740  	return c
 19741  }
 19742  
 19743  // Context sets the context to be used in this call's Do method.
 19744  func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall {
 19745  	c.ctx_ = ctx
 19746  	return c
 19747  }
 19748  
 19749  // Header returns a http.Header that can be modified by the caller to add
 19750  // headers to the request.
 19751  func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header {
 19752  	if c.header_ == nil {
 19753  		c.header_ = make(http.Header)
 19754  	}
 19755  	return c.header_
 19756  }
 19757  
 19758  func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Response, error) {
 19759  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19760  	if c.ifNoneMatch_ != "" {
 19761  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19762  	}
 19763  	var body io.Reader = nil
 19764  	c.urlParams_.Set("alt", alt)
 19765  	c.urlParams_.Set("prettyPrint", "false")
 19766  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 19767  	urls += "?" + c.urlParams_.Encode()
 19768  	req, err := http.NewRequest("GET", urls, body)
 19769  	if err != nil {
 19770  		return nil, err
 19771  	}
 19772  	req.Header = reqHeaders
 19773  	googleapi.Expand(req.URL, map[string]string{
 19774  		"name": c.name,
 19775  	})
 19776  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19777  }
 19778  
 19779  // Do executes the "dlp.projects.locations.connections.get" call.
 19780  // Any non-2xx status code is an error. Response headers are in either
 19781  // *GooglePrivacyDlpV2Connection.ServerResponse.Header or (if a response was
 19782  // returned at all) in error.(*googleapi.Error).Header. Use
 19783  // googleapi.IsNotModified to check whether the returned error was because
 19784  // http.StatusNotModified was returned.
 19785  func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2Connection, error) {
 19786  	gensupport.SetOptions(c.urlParams_, opts...)
 19787  	res, err := c.doRequest("json")
 19788  	if res != nil && res.StatusCode == http.StatusNotModified {
 19789  		if res.Body != nil {
 19790  			res.Body.Close()
 19791  		}
 19792  		return nil, gensupport.WrapError(&googleapi.Error{
 19793  			Code:   res.StatusCode,
 19794  			Header: res.Header,
 19795  		})
 19796  	}
 19797  	if err != nil {
 19798  		return nil, err
 19799  	}
 19800  	defer googleapi.CloseBody(res)
 19801  	if err := googleapi.CheckResponse(res); err != nil {
 19802  		return nil, gensupport.WrapError(err)
 19803  	}
 19804  	ret := &GooglePrivacyDlpV2Connection{
 19805  		ServerResponse: googleapi.ServerResponse{
 19806  			Header:         res.Header,
 19807  			HTTPStatusCode: res.StatusCode,
 19808  		},
 19809  	}
 19810  	target := &ret
 19811  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19812  		return nil, err
 19813  	}
 19814  	return ret, nil
 19815  }
 19816  
 19817  type ProjectsLocationsConnectionsListCall struct {
 19818  	s            *Service
 19819  	parent       string
 19820  	urlParams_   gensupport.URLParams
 19821  	ifNoneMatch_ string
 19822  	ctx_         context.Context
 19823  	header_      http.Header
 19824  }
 19825  
 19826  // List: Lists Connections in a parent.
 19827  //
 19828  // - parent: Parent name, for example: `projects/project-id/locations/global`.
 19829  func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall {
 19830  	c := &ProjectsLocationsConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19831  	c.parent = parent
 19832  	return c
 19833  }
 19834  
 19835  // Filter sets the optional parameter "filter": * Supported fields/values -
 19836  // `state` - MISSING|AVAILABLE|ERROR
 19837  func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall {
 19838  	c.urlParams_.Set("filter", filter)
 19839  	return c
 19840  }
 19841  
 19842  // PageSize sets the optional parameter "pageSize": Number of results per page,
 19843  // max 1000.
 19844  func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall {
 19845  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19846  	return c
 19847  }
 19848  
 19849  // PageToken sets the optional parameter "pageToken": Page token from a
 19850  // previous page to return the next set of results. If set, all other request
 19851  // fields must match the original request.
 19852  func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall {
 19853  	c.urlParams_.Set("pageToken", pageToken)
 19854  	return c
 19855  }
 19856  
 19857  // Fields allows partial responses to be retrieved. See
 19858  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19859  // details.
 19860  func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall {
 19861  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19862  	return c
 19863  }
 19864  
 19865  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19866  // object's ETag matches the given value. This is useful for getting updates
 19867  // only after the object has changed since the last request.
 19868  func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall {
 19869  	c.ifNoneMatch_ = entityTag
 19870  	return c
 19871  }
 19872  
 19873  // Context sets the context to be used in this call's Do method.
 19874  func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall {
 19875  	c.ctx_ = ctx
 19876  	return c
 19877  }
 19878  
 19879  // Header returns a http.Header that can be modified by the caller to add
 19880  // headers to the request.
 19881  func (c *ProjectsLocationsConnectionsListCall) Header() http.Header {
 19882  	if c.header_ == nil {
 19883  		c.header_ = make(http.Header)
 19884  	}
 19885  	return c.header_
 19886  }
 19887  
 19888  func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) {
 19889  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19890  	if c.ifNoneMatch_ != "" {
 19891  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19892  	}
 19893  	var body io.Reader = nil
 19894  	c.urlParams_.Set("alt", alt)
 19895  	c.urlParams_.Set("prettyPrint", "false")
 19896  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections")
 19897  	urls += "?" + c.urlParams_.Encode()
 19898  	req, err := http.NewRequest("GET", urls, body)
 19899  	if err != nil {
 19900  		return nil, err
 19901  	}
 19902  	req.Header = reqHeaders
 19903  	googleapi.Expand(req.URL, map[string]string{
 19904  		"parent": c.parent,
 19905  	})
 19906  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19907  }
 19908  
 19909  // Do executes the "dlp.projects.locations.connections.list" call.
 19910  // Any non-2xx status code is an error. Response headers are in either
 19911  // *GooglePrivacyDlpV2ListConnectionsResponse.ServerResponse.Header or (if a
 19912  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19913  // googleapi.IsNotModified to check whether the returned error was because
 19914  // http.StatusNotModified was returned.
 19915  func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListConnectionsResponse, error) {
 19916  	gensupport.SetOptions(c.urlParams_, opts...)
 19917  	res, err := c.doRequest("json")
 19918  	if res != nil && res.StatusCode == http.StatusNotModified {
 19919  		if res.Body != nil {
 19920  			res.Body.Close()
 19921  		}
 19922  		return nil, gensupport.WrapError(&googleapi.Error{
 19923  			Code:   res.StatusCode,
 19924  			Header: res.Header,
 19925  		})
 19926  	}
 19927  	if err != nil {
 19928  		return nil, err
 19929  	}
 19930  	defer googleapi.CloseBody(res)
 19931  	if err := googleapi.CheckResponse(res); err != nil {
 19932  		return nil, gensupport.WrapError(err)
 19933  	}
 19934  	ret := &GooglePrivacyDlpV2ListConnectionsResponse{
 19935  		ServerResponse: googleapi.ServerResponse{
 19936  			Header:         res.Header,
 19937  			HTTPStatusCode: res.StatusCode,
 19938  		},
 19939  	}
 19940  	target := &ret
 19941  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19942  		return nil, err
 19943  	}
 19944  	return ret, nil
 19945  }
 19946  
 19947  // Pages invokes f for each page of results.
 19948  // A non-nil error returned from f will halt the iteration.
 19949  // The provided context supersedes any context provided to the Context method.
 19950  func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListConnectionsResponse) error) error {
 19951  	c.ctx_ = ctx
 19952  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19953  	for {
 19954  		x, err := c.Do()
 19955  		if err != nil {
 19956  			return err
 19957  		}
 19958  		if err := f(x); err != nil {
 19959  			return err
 19960  		}
 19961  		if x.NextPageToken == "" {
 19962  			return nil
 19963  		}
 19964  		c.PageToken(x.NextPageToken)
 19965  	}
 19966  }
 19967  
 19968  type ProjectsLocationsConnectionsPatchCall struct {
 19969  	s                                         *Service
 19970  	name                                      string
 19971  	googleprivacydlpv2updateconnectionrequest *GooglePrivacyDlpV2UpdateConnectionRequest
 19972  	urlParams_                                gensupport.URLParams
 19973  	ctx_                                      context.Context
 19974  	header_                                   http.Header
 19975  }
 19976  
 19977  // Patch: Update a Connection.
 19978  //
 19979  //   - name: Resource name in the format:
 19980  //     `projects/{project}/locations/{location}/connections/{connection}`.
 19981  func (r *ProjectsLocationsConnectionsService) Patch(name string, googleprivacydlpv2updateconnectionrequest *GooglePrivacyDlpV2UpdateConnectionRequest) *ProjectsLocationsConnectionsPatchCall {
 19982  	c := &ProjectsLocationsConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19983  	c.name = name
 19984  	c.googleprivacydlpv2updateconnectionrequest = googleprivacydlpv2updateconnectionrequest
 19985  	return c
 19986  }
 19987  
 19988  // Fields allows partial responses to be retrieved. See
 19989  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19990  // details.
 19991  func (c *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall {
 19992  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19993  	return c
 19994  }
 19995  
 19996  // Context sets the context to be used in this call's Do method.
 19997  func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall {
 19998  	c.ctx_ = ctx
 19999  	return c
 20000  }
 20001  
 20002  // Header returns a http.Header that can be modified by the caller to add
 20003  // headers to the request.
 20004  func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header {
 20005  	if c.header_ == nil {
 20006  		c.header_ = make(http.Header)
 20007  	}
 20008  	return c.header_
 20009  }
 20010  
 20011  func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Response, error) {
 20012  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20013  	var body io.Reader = nil
 20014  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateconnectionrequest)
 20015  	if err != nil {
 20016  		return nil, err
 20017  	}
 20018  	c.urlParams_.Set("alt", alt)
 20019  	c.urlParams_.Set("prettyPrint", "false")
 20020  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20021  	urls += "?" + c.urlParams_.Encode()
 20022  	req, err := http.NewRequest("PATCH", urls, body)
 20023  	if err != nil {
 20024  		return nil, err
 20025  	}
 20026  	req.Header = reqHeaders
 20027  	googleapi.Expand(req.URL, map[string]string{
 20028  		"name": c.name,
 20029  	})
 20030  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20031  }
 20032  
 20033  // Do executes the "dlp.projects.locations.connections.patch" call.
 20034  // Any non-2xx status code is an error. Response headers are in either
 20035  // *GooglePrivacyDlpV2Connection.ServerResponse.Header or (if a response was
 20036  // returned at all) in error.(*googleapi.Error).Header. Use
 20037  // googleapi.IsNotModified to check whether the returned error was because
 20038  // http.StatusNotModified was returned.
 20039  func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2Connection, error) {
 20040  	gensupport.SetOptions(c.urlParams_, opts...)
 20041  	res, err := c.doRequest("json")
 20042  	if res != nil && res.StatusCode == http.StatusNotModified {
 20043  		if res.Body != nil {
 20044  			res.Body.Close()
 20045  		}
 20046  		return nil, gensupport.WrapError(&googleapi.Error{
 20047  			Code:   res.StatusCode,
 20048  			Header: res.Header,
 20049  		})
 20050  	}
 20051  	if err != nil {
 20052  		return nil, err
 20053  	}
 20054  	defer googleapi.CloseBody(res)
 20055  	if err := googleapi.CheckResponse(res); err != nil {
 20056  		return nil, gensupport.WrapError(err)
 20057  	}
 20058  	ret := &GooglePrivacyDlpV2Connection{
 20059  		ServerResponse: googleapi.ServerResponse{
 20060  			Header:         res.Header,
 20061  			HTTPStatusCode: res.StatusCode,
 20062  		},
 20063  	}
 20064  	target := &ret
 20065  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20066  		return nil, err
 20067  	}
 20068  	return ret, nil
 20069  }
 20070  
 20071  type ProjectsLocationsConnectionsSearchCall struct {
 20072  	s            *Service
 20073  	parent       string
 20074  	urlParams_   gensupport.URLParams
 20075  	ifNoneMatch_ string
 20076  	ctx_         context.Context
 20077  	header_      http.Header
 20078  }
 20079  
 20080  // Search: Searches for Connections in a parent.
 20081  //
 20082  //   - parent: Parent name, typically an organization, without location. For
 20083  //     example: `organizations/12345678`.
 20084  func (r *ProjectsLocationsConnectionsService) Search(parent string) *ProjectsLocationsConnectionsSearchCall {
 20085  	c := &ProjectsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20086  	c.parent = parent
 20087  	return c
 20088  }
 20089  
 20090  // Filter sets the optional parameter "filter": * Supported fields/values -
 20091  // `state` - MISSING|AVAILABLE|ERROR
 20092  func (c *ProjectsLocationsConnectionsSearchCall) Filter(filter string) *ProjectsLocationsConnectionsSearchCall {
 20093  	c.urlParams_.Set("filter", filter)
 20094  	return c
 20095  }
 20096  
 20097  // PageSize sets the optional parameter "pageSize": Number of results per page,
 20098  // max 1000.
 20099  func (c *ProjectsLocationsConnectionsSearchCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsSearchCall {
 20100  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20101  	return c
 20102  }
 20103  
 20104  // PageToken sets the optional parameter "pageToken": Page token from a
 20105  // previous page to return the next set of results. If set, all other request
 20106  // fields must match the original request.
 20107  func (c *ProjectsLocationsConnectionsSearchCall) PageToken(pageToken string) *ProjectsLocationsConnectionsSearchCall {
 20108  	c.urlParams_.Set("pageToken", pageToken)
 20109  	return c
 20110  }
 20111  
 20112  // Fields allows partial responses to be retrieved. See
 20113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20114  // details.
 20115  func (c *ProjectsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSearchCall {
 20116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20117  	return c
 20118  }
 20119  
 20120  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20121  // object's ETag matches the given value. This is useful for getting updates
 20122  // only after the object has changed since the last request.
 20123  func (c *ProjectsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsSearchCall {
 20124  	c.ifNoneMatch_ = entityTag
 20125  	return c
 20126  }
 20127  
 20128  // Context sets the context to be used in this call's Do method.
 20129  func (c *ProjectsLocationsConnectionsSearchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSearchCall {
 20130  	c.ctx_ = ctx
 20131  	return c
 20132  }
 20133  
 20134  // Header returns a http.Header that can be modified by the caller to add
 20135  // headers to the request.
 20136  func (c *ProjectsLocationsConnectionsSearchCall) Header() http.Header {
 20137  	if c.header_ == nil {
 20138  		c.header_ = make(http.Header)
 20139  	}
 20140  	return c.header_
 20141  }
 20142  
 20143  func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) {
 20144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20145  	if c.ifNoneMatch_ != "" {
 20146  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20147  	}
 20148  	var body io.Reader = nil
 20149  	c.urlParams_.Set("alt", alt)
 20150  	c.urlParams_.Set("prettyPrint", "false")
 20151  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections:search")
 20152  	urls += "?" + c.urlParams_.Encode()
 20153  	req, err := http.NewRequest("GET", urls, body)
 20154  	if err != nil {
 20155  		return nil, err
 20156  	}
 20157  	req.Header = reqHeaders
 20158  	googleapi.Expand(req.URL, map[string]string{
 20159  		"parent": c.parent,
 20160  	})
 20161  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20162  }
 20163  
 20164  // Do executes the "dlp.projects.locations.connections.search" call.
 20165  // Any non-2xx status code is an error. Response headers are in either
 20166  // *GooglePrivacyDlpV2SearchConnectionsResponse.ServerResponse.Header or (if a
 20167  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20168  // googleapi.IsNotModified to check whether the returned error was because
 20169  // http.StatusNotModified was returned.
 20170  func (c *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2SearchConnectionsResponse, error) {
 20171  	gensupport.SetOptions(c.urlParams_, opts...)
 20172  	res, err := c.doRequest("json")
 20173  	if res != nil && res.StatusCode == http.StatusNotModified {
 20174  		if res.Body != nil {
 20175  			res.Body.Close()
 20176  		}
 20177  		return nil, gensupport.WrapError(&googleapi.Error{
 20178  			Code:   res.StatusCode,
 20179  			Header: res.Header,
 20180  		})
 20181  	}
 20182  	if err != nil {
 20183  		return nil, err
 20184  	}
 20185  	defer googleapi.CloseBody(res)
 20186  	if err := googleapi.CheckResponse(res); err != nil {
 20187  		return nil, gensupport.WrapError(err)
 20188  	}
 20189  	ret := &GooglePrivacyDlpV2SearchConnectionsResponse{
 20190  		ServerResponse: googleapi.ServerResponse{
 20191  			Header:         res.Header,
 20192  			HTTPStatusCode: res.StatusCode,
 20193  		},
 20194  	}
 20195  	target := &ret
 20196  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20197  		return nil, err
 20198  	}
 20199  	return ret, nil
 20200  }
 20201  
 20202  // Pages invokes f for each page of results.
 20203  // A non-nil error returned from f will halt the iteration.
 20204  // The provided context supersedes any context provided to the Context method.
 20205  func (c *ProjectsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2SearchConnectionsResponse) error) error {
 20206  	c.ctx_ = ctx
 20207  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20208  	for {
 20209  		x, err := c.Do()
 20210  		if err != nil {
 20211  			return err
 20212  		}
 20213  		if err := f(x); err != nil {
 20214  			return err
 20215  		}
 20216  		if x.NextPageToken == "" {
 20217  			return nil
 20218  		}
 20219  		c.PageToken(x.NextPageToken)
 20220  	}
 20221  }
 20222  
 20223  type ProjectsLocationsContentDeidentifyCall struct {
 20224  	s                                          *Service
 20225  	parentid                                   string
 20226  	googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest
 20227  	urlParams_                                 gensupport.URLParams
 20228  	ctx_                                       context.Context
 20229  	header_                                    http.Header
 20230  }
 20231  
 20232  // Deidentify: De-identifies potentially sensitive info from a ContentItem.
 20233  // This method has limits on input size and output size. See
 20234  // https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
 20235  // to learn more. When no InfoTypes or CustomInfoTypes are specified in this
 20236  // request, the system will automatically choose what detectors to run. By
 20237  // default this may be all types, but may change over time as detectors are
 20238  // updated.
 20239  //
 20240  //   - parent: Parent resource name. The format of this value varies depending on
 20241  //     whether you have specified a processing location
 20242  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 20243  //   - Projects scope, location specified:
 20244  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 20245  //     location specified (defaults to global): `projects/`PROJECT_ID The
 20246  //     following example `parent` string specifies a parent project with the
 20247  //     identifier `example-project`, and specifies the `europe-west3` location
 20248  //     for processing data:
 20249  //     parent=projects/example-project/locations/europe-west3.
 20250  func (r *ProjectsLocationsContentService) Deidentify(parentid string, googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest) *ProjectsLocationsContentDeidentifyCall {
 20251  	c := &ProjectsLocationsContentDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20252  	c.parentid = parentid
 20253  	c.googleprivacydlpv2deidentifycontentrequest = googleprivacydlpv2deidentifycontentrequest
 20254  	return c
 20255  }
 20256  
 20257  // Fields allows partial responses to be retrieved. See
 20258  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20259  // details.
 20260  func (c *ProjectsLocationsContentDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsContentDeidentifyCall {
 20261  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20262  	return c
 20263  }
 20264  
 20265  // Context sets the context to be used in this call's Do method.
 20266  func (c *ProjectsLocationsContentDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsContentDeidentifyCall {
 20267  	c.ctx_ = ctx
 20268  	return c
 20269  }
 20270  
 20271  // Header returns a http.Header that can be modified by the caller to add
 20272  // headers to the request.
 20273  func (c *ProjectsLocationsContentDeidentifyCall) Header() http.Header {
 20274  	if c.header_ == nil {
 20275  		c.header_ = make(http.Header)
 20276  	}
 20277  	return c.header_
 20278  }
 20279  
 20280  func (c *ProjectsLocationsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) {
 20281  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20282  	var body io.Reader = nil
 20283  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2deidentifycontentrequest)
 20284  	if err != nil {
 20285  		return nil, err
 20286  	}
 20287  	c.urlParams_.Set("alt", alt)
 20288  	c.urlParams_.Set("prettyPrint", "false")
 20289  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:deidentify")
 20290  	urls += "?" + c.urlParams_.Encode()
 20291  	req, err := http.NewRequest("POST", urls, body)
 20292  	if err != nil {
 20293  		return nil, err
 20294  	}
 20295  	req.Header = reqHeaders
 20296  	googleapi.Expand(req.URL, map[string]string{
 20297  		"parent": c.parentid,
 20298  	})
 20299  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20300  }
 20301  
 20302  // Do executes the "dlp.projects.locations.content.deidentify" call.
 20303  // Any non-2xx status code is an error. Response headers are in either
 20304  // *GooglePrivacyDlpV2DeidentifyContentResponse.ServerResponse.Header or (if a
 20305  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20306  // googleapi.IsNotModified to check whether the returned error was because
 20307  // http.StatusNotModified was returned.
 20308  func (c *ProjectsLocationsContentDeidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyContentResponse, error) {
 20309  	gensupport.SetOptions(c.urlParams_, opts...)
 20310  	res, err := c.doRequest("json")
 20311  	if res != nil && res.StatusCode == http.StatusNotModified {
 20312  		if res.Body != nil {
 20313  			res.Body.Close()
 20314  		}
 20315  		return nil, gensupport.WrapError(&googleapi.Error{
 20316  			Code:   res.StatusCode,
 20317  			Header: res.Header,
 20318  		})
 20319  	}
 20320  	if err != nil {
 20321  		return nil, err
 20322  	}
 20323  	defer googleapi.CloseBody(res)
 20324  	if err := googleapi.CheckResponse(res); err != nil {
 20325  		return nil, gensupport.WrapError(err)
 20326  	}
 20327  	ret := &GooglePrivacyDlpV2DeidentifyContentResponse{
 20328  		ServerResponse: googleapi.ServerResponse{
 20329  			Header:         res.Header,
 20330  			HTTPStatusCode: res.StatusCode,
 20331  		},
 20332  	}
 20333  	target := &ret
 20334  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20335  		return nil, err
 20336  	}
 20337  	return ret, nil
 20338  }
 20339  
 20340  type ProjectsLocationsContentInspectCall struct {
 20341  	s                                       *Service
 20342  	parentid                                string
 20343  	googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest
 20344  	urlParams_                              gensupport.URLParams
 20345  	ctx_                                    context.Context
 20346  	header_                                 http.Header
 20347  }
 20348  
 20349  // Inspect: Finds potentially sensitive info in content. This method has limits
 20350  // on input size, processing time, and output size. When no InfoTypes or
 20351  // CustomInfoTypes are specified in this request, the system will automatically
 20352  // choose what detectors to run. By default this may be all types, but may
 20353  // change over time as detectors are updated. For how to guides, see
 20354  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
 20355  // and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
 20356  //
 20357  //   - parent: Parent resource name. The format of this value varies depending on
 20358  //     whether you have specified a processing location
 20359  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 20360  //   - Projects scope, location specified:
 20361  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 20362  //     location specified (defaults to global): `projects/`PROJECT_ID The
 20363  //     following example `parent` string specifies a parent project with the
 20364  //     identifier `example-project`, and specifies the `europe-west3` location
 20365  //     for processing data:
 20366  //     parent=projects/example-project/locations/europe-west3.
 20367  func (r *ProjectsLocationsContentService) Inspect(parentid string, googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest) *ProjectsLocationsContentInspectCall {
 20368  	c := &ProjectsLocationsContentInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20369  	c.parentid = parentid
 20370  	c.googleprivacydlpv2inspectcontentrequest = googleprivacydlpv2inspectcontentrequest
 20371  	return c
 20372  }
 20373  
 20374  // Fields allows partial responses to be retrieved. See
 20375  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20376  // details.
 20377  func (c *ProjectsLocationsContentInspectCall) Fields(s ...googleapi.Field) *ProjectsLocationsContentInspectCall {
 20378  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20379  	return c
 20380  }
 20381  
 20382  // Context sets the context to be used in this call's Do method.
 20383  func (c *ProjectsLocationsContentInspectCall) Context(ctx context.Context) *ProjectsLocationsContentInspectCall {
 20384  	c.ctx_ = ctx
 20385  	return c
 20386  }
 20387  
 20388  // Header returns a http.Header that can be modified by the caller to add
 20389  // headers to the request.
 20390  func (c *ProjectsLocationsContentInspectCall) Header() http.Header {
 20391  	if c.header_ == nil {
 20392  		c.header_ = make(http.Header)
 20393  	}
 20394  	return c.header_
 20395  }
 20396  
 20397  func (c *ProjectsLocationsContentInspectCall) doRequest(alt string) (*http.Response, error) {
 20398  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20399  	var body io.Reader = nil
 20400  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2inspectcontentrequest)
 20401  	if err != nil {
 20402  		return nil, err
 20403  	}
 20404  	c.urlParams_.Set("alt", alt)
 20405  	c.urlParams_.Set("prettyPrint", "false")
 20406  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:inspect")
 20407  	urls += "?" + c.urlParams_.Encode()
 20408  	req, err := http.NewRequest("POST", urls, body)
 20409  	if err != nil {
 20410  		return nil, err
 20411  	}
 20412  	req.Header = reqHeaders
 20413  	googleapi.Expand(req.URL, map[string]string{
 20414  		"parent": c.parentid,
 20415  	})
 20416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20417  }
 20418  
 20419  // Do executes the "dlp.projects.locations.content.inspect" call.
 20420  // Any non-2xx status code is an error. Response headers are in either
 20421  // *GooglePrivacyDlpV2InspectContentResponse.ServerResponse.Header or (if a
 20422  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20423  // googleapi.IsNotModified to check whether the returned error was because
 20424  // http.StatusNotModified was returned.
 20425  func (c *ProjectsLocationsContentInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectContentResponse, error) {
 20426  	gensupport.SetOptions(c.urlParams_, opts...)
 20427  	res, err := c.doRequest("json")
 20428  	if res != nil && res.StatusCode == http.StatusNotModified {
 20429  		if res.Body != nil {
 20430  			res.Body.Close()
 20431  		}
 20432  		return nil, gensupport.WrapError(&googleapi.Error{
 20433  			Code:   res.StatusCode,
 20434  			Header: res.Header,
 20435  		})
 20436  	}
 20437  	if err != nil {
 20438  		return nil, err
 20439  	}
 20440  	defer googleapi.CloseBody(res)
 20441  	if err := googleapi.CheckResponse(res); err != nil {
 20442  		return nil, gensupport.WrapError(err)
 20443  	}
 20444  	ret := &GooglePrivacyDlpV2InspectContentResponse{
 20445  		ServerResponse: googleapi.ServerResponse{
 20446  			Header:         res.Header,
 20447  			HTTPStatusCode: res.StatusCode,
 20448  		},
 20449  	}
 20450  	target := &ret
 20451  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20452  		return nil, err
 20453  	}
 20454  	return ret, nil
 20455  }
 20456  
 20457  type ProjectsLocationsContentReidentifyCall struct {
 20458  	s                                          *Service
 20459  	parentid                                   string
 20460  	googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest
 20461  	urlParams_                                 gensupport.URLParams
 20462  	ctx_                                       context.Context
 20463  	header_                                    http.Header
 20464  }
 20465  
 20466  // Reidentify: Re-identifies content that has been de-identified. See
 20467  // https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
 20468  // to learn more.
 20469  //
 20470  //   - parent: Parent resource name. The format of this value varies depending on
 20471  //     whether you have specified a processing location
 20472  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 20473  //   - Projects scope, location specified:
 20474  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 20475  //     location specified (defaults to global): `projects/`PROJECT_ID The
 20476  //     following example `parent` string specifies a parent project with the
 20477  //     identifier `example-project`, and specifies the `europe-west3` location
 20478  //     for processing data:
 20479  //     parent=projects/example-project/locations/europe-west3.
 20480  func (r *ProjectsLocationsContentService) Reidentify(parentid string, googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest) *ProjectsLocationsContentReidentifyCall {
 20481  	c := &ProjectsLocationsContentReidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20482  	c.parentid = parentid
 20483  	c.googleprivacydlpv2reidentifycontentrequest = googleprivacydlpv2reidentifycontentrequest
 20484  	return c
 20485  }
 20486  
 20487  // Fields allows partial responses to be retrieved. See
 20488  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20489  // details.
 20490  func (c *ProjectsLocationsContentReidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsContentReidentifyCall {
 20491  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20492  	return c
 20493  }
 20494  
 20495  // Context sets the context to be used in this call's Do method.
 20496  func (c *ProjectsLocationsContentReidentifyCall) Context(ctx context.Context) *ProjectsLocationsContentReidentifyCall {
 20497  	c.ctx_ = ctx
 20498  	return c
 20499  }
 20500  
 20501  // Header returns a http.Header that can be modified by the caller to add
 20502  // headers to the request.
 20503  func (c *ProjectsLocationsContentReidentifyCall) Header() http.Header {
 20504  	if c.header_ == nil {
 20505  		c.header_ = make(http.Header)
 20506  	}
 20507  	return c.header_
 20508  }
 20509  
 20510  func (c *ProjectsLocationsContentReidentifyCall) doRequest(alt string) (*http.Response, error) {
 20511  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20512  	var body io.Reader = nil
 20513  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2reidentifycontentrequest)
 20514  	if err != nil {
 20515  		return nil, err
 20516  	}
 20517  	c.urlParams_.Set("alt", alt)
 20518  	c.urlParams_.Set("prettyPrint", "false")
 20519  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:reidentify")
 20520  	urls += "?" + c.urlParams_.Encode()
 20521  	req, err := http.NewRequest("POST", urls, body)
 20522  	if err != nil {
 20523  		return nil, err
 20524  	}
 20525  	req.Header = reqHeaders
 20526  	googleapi.Expand(req.URL, map[string]string{
 20527  		"parent": c.parentid,
 20528  	})
 20529  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20530  }
 20531  
 20532  // Do executes the "dlp.projects.locations.content.reidentify" call.
 20533  // Any non-2xx status code is an error. Response headers are in either
 20534  // *GooglePrivacyDlpV2ReidentifyContentResponse.ServerResponse.Header or (if a
 20535  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20536  // googleapi.IsNotModified to check whether the returned error was because
 20537  // http.StatusNotModified was returned.
 20538  func (c *ProjectsLocationsContentReidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ReidentifyContentResponse, error) {
 20539  	gensupport.SetOptions(c.urlParams_, opts...)
 20540  	res, err := c.doRequest("json")
 20541  	if res != nil && res.StatusCode == http.StatusNotModified {
 20542  		if res.Body != nil {
 20543  			res.Body.Close()
 20544  		}
 20545  		return nil, gensupport.WrapError(&googleapi.Error{
 20546  			Code:   res.StatusCode,
 20547  			Header: res.Header,
 20548  		})
 20549  	}
 20550  	if err != nil {
 20551  		return nil, err
 20552  	}
 20553  	defer googleapi.CloseBody(res)
 20554  	if err := googleapi.CheckResponse(res); err != nil {
 20555  		return nil, gensupport.WrapError(err)
 20556  	}
 20557  	ret := &GooglePrivacyDlpV2ReidentifyContentResponse{
 20558  		ServerResponse: googleapi.ServerResponse{
 20559  			Header:         res.Header,
 20560  			HTTPStatusCode: res.StatusCode,
 20561  		},
 20562  	}
 20563  	target := &ret
 20564  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20565  		return nil, err
 20566  	}
 20567  	return ret, nil
 20568  }
 20569  
 20570  type ProjectsLocationsDeidentifyTemplatesCreateCall struct {
 20571  	s                                                 *Service
 20572  	parentid                                          string
 20573  	googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
 20574  	urlParams_                                        gensupport.URLParams
 20575  	ctx_                                              context.Context
 20576  	header_                                           http.Header
 20577  }
 20578  
 20579  // Create: Creates a DeidentifyTemplate for reusing frequently used
 20580  // configuration for de-identifying content, images, and storage. See
 20581  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 20582  // to learn more.
 20583  //
 20584  //   - parent: Parent resource name. The format of this value varies depending on
 20585  //     the scope of the request (project or organization) and whether you have
 20586  //     specified a processing location
 20587  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 20588  //   - Projects scope, location specified:
 20589  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 20590  //     location specified (defaults to global): `projects/`PROJECT_ID +
 20591  //     Organizations scope, location specified:
 20592  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 20593  //     location specified (defaults to global): `organizations/`ORG_ID The
 20594  //     following example `parent` string specifies a parent project with the
 20595  //     identifier `example-project`, and specifies the `europe-west3` location
 20596  //     for processing data:
 20597  //     parent=projects/example-project/locations/europe-west3.
 20598  func (r *ProjectsLocationsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *ProjectsLocationsDeidentifyTemplatesCreateCall {
 20599  	c := &ProjectsLocationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20600  	c.parentid = parentid
 20601  	c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
 20602  	return c
 20603  }
 20604  
 20605  // Fields allows partial responses to be retrieved. See
 20606  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20607  // details.
 20608  func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesCreateCall {
 20609  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20610  	return c
 20611  }
 20612  
 20613  // Context sets the context to be used in this call's Do method.
 20614  func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesCreateCall {
 20615  	c.ctx_ = ctx
 20616  	return c
 20617  }
 20618  
 20619  // Header returns a http.Header that can be modified by the caller to add
 20620  // headers to the request.
 20621  func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Header() http.Header {
 20622  	if c.header_ == nil {
 20623  		c.header_ = make(http.Header)
 20624  	}
 20625  	return c.header_
 20626  }
 20627  
 20628  func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 20629  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20630  	var body io.Reader = nil
 20631  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
 20632  	if err != nil {
 20633  		return nil, err
 20634  	}
 20635  	c.urlParams_.Set("alt", alt)
 20636  	c.urlParams_.Set("prettyPrint", "false")
 20637  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 20638  	urls += "?" + c.urlParams_.Encode()
 20639  	req, err := http.NewRequest("POST", urls, body)
 20640  	if err != nil {
 20641  		return nil, err
 20642  	}
 20643  	req.Header = reqHeaders
 20644  	googleapi.Expand(req.URL, map[string]string{
 20645  		"parent": c.parentid,
 20646  	})
 20647  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20648  }
 20649  
 20650  // Do executes the "dlp.projects.locations.deidentifyTemplates.create" call.
 20651  // Any non-2xx status code is an error. Response headers are in either
 20652  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 20653  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20654  // googleapi.IsNotModified to check whether the returned error was because
 20655  // http.StatusNotModified was returned.
 20656  func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 20657  	gensupport.SetOptions(c.urlParams_, opts...)
 20658  	res, err := c.doRequest("json")
 20659  	if res != nil && res.StatusCode == http.StatusNotModified {
 20660  		if res.Body != nil {
 20661  			res.Body.Close()
 20662  		}
 20663  		return nil, gensupport.WrapError(&googleapi.Error{
 20664  			Code:   res.StatusCode,
 20665  			Header: res.Header,
 20666  		})
 20667  	}
 20668  	if err != nil {
 20669  		return nil, err
 20670  	}
 20671  	defer googleapi.CloseBody(res)
 20672  	if err := googleapi.CheckResponse(res); err != nil {
 20673  		return nil, gensupport.WrapError(err)
 20674  	}
 20675  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 20676  		ServerResponse: googleapi.ServerResponse{
 20677  			Header:         res.Header,
 20678  			HTTPStatusCode: res.StatusCode,
 20679  		},
 20680  	}
 20681  	target := &ret
 20682  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20683  		return nil, err
 20684  	}
 20685  	return ret, nil
 20686  }
 20687  
 20688  type ProjectsLocationsDeidentifyTemplatesDeleteCall struct {
 20689  	s          *Service
 20690  	name       string
 20691  	urlParams_ gensupport.URLParams
 20692  	ctx_       context.Context
 20693  	header_    http.Header
 20694  }
 20695  
 20696  // Delete: Deletes a DeidentifyTemplate. See
 20697  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 20698  // to learn more.
 20699  //
 20700  //   - name: Resource name of the organization and deidentify template to be
 20701  //     deleted, for example
 20702  //     `organizations/433245324/deidentifyTemplates/432452342` or
 20703  //     projects/project-id/deidentifyTemplates/432452342.
 20704  func (r *ProjectsLocationsDeidentifyTemplatesService) Delete(name string) *ProjectsLocationsDeidentifyTemplatesDeleteCall {
 20705  	c := &ProjectsLocationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20706  	c.name = name
 20707  	return c
 20708  }
 20709  
 20710  // Fields allows partial responses to be retrieved. See
 20711  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20712  // details.
 20713  func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesDeleteCall {
 20714  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20715  	return c
 20716  }
 20717  
 20718  // Context sets the context to be used in this call's Do method.
 20719  func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesDeleteCall {
 20720  	c.ctx_ = ctx
 20721  	return c
 20722  }
 20723  
 20724  // Header returns a http.Header that can be modified by the caller to add
 20725  // headers to the request.
 20726  func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Header() http.Header {
 20727  	if c.header_ == nil {
 20728  		c.header_ = make(http.Header)
 20729  	}
 20730  	return c.header_
 20731  }
 20732  
 20733  func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 20734  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20735  	var body io.Reader = nil
 20736  	c.urlParams_.Set("alt", alt)
 20737  	c.urlParams_.Set("prettyPrint", "false")
 20738  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20739  	urls += "?" + c.urlParams_.Encode()
 20740  	req, err := http.NewRequest("DELETE", urls, body)
 20741  	if err != nil {
 20742  		return nil, err
 20743  	}
 20744  	req.Header = reqHeaders
 20745  	googleapi.Expand(req.URL, map[string]string{
 20746  		"name": c.name,
 20747  	})
 20748  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20749  }
 20750  
 20751  // Do executes the "dlp.projects.locations.deidentifyTemplates.delete" call.
 20752  // Any non-2xx status code is an error. Response headers are in either
 20753  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20754  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20755  // check whether the returned error was because http.StatusNotModified was
 20756  // returned.
 20757  func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20758  	gensupport.SetOptions(c.urlParams_, opts...)
 20759  	res, err := c.doRequest("json")
 20760  	if res != nil && res.StatusCode == http.StatusNotModified {
 20761  		if res.Body != nil {
 20762  			res.Body.Close()
 20763  		}
 20764  		return nil, gensupport.WrapError(&googleapi.Error{
 20765  			Code:   res.StatusCode,
 20766  			Header: res.Header,
 20767  		})
 20768  	}
 20769  	if err != nil {
 20770  		return nil, err
 20771  	}
 20772  	defer googleapi.CloseBody(res)
 20773  	if err := googleapi.CheckResponse(res); err != nil {
 20774  		return nil, gensupport.WrapError(err)
 20775  	}
 20776  	ret := &GoogleProtobufEmpty{
 20777  		ServerResponse: googleapi.ServerResponse{
 20778  			Header:         res.Header,
 20779  			HTTPStatusCode: res.StatusCode,
 20780  		},
 20781  	}
 20782  	target := &ret
 20783  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20784  		return nil, err
 20785  	}
 20786  	return ret, nil
 20787  }
 20788  
 20789  type ProjectsLocationsDeidentifyTemplatesGetCall struct {
 20790  	s            *Service
 20791  	name         string
 20792  	urlParams_   gensupport.URLParams
 20793  	ifNoneMatch_ string
 20794  	ctx_         context.Context
 20795  	header_      http.Header
 20796  }
 20797  
 20798  // Get: Gets a DeidentifyTemplate. See
 20799  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 20800  // to learn more.
 20801  //
 20802  //   - name: Resource name of the organization and deidentify template to be
 20803  //     read, for example `organizations/433245324/deidentifyTemplates/432452342`
 20804  //     or projects/project-id/deidentifyTemplates/432452342.
 20805  func (r *ProjectsLocationsDeidentifyTemplatesService) Get(name string) *ProjectsLocationsDeidentifyTemplatesGetCall {
 20806  	c := &ProjectsLocationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20807  	c.name = name
 20808  	return c
 20809  }
 20810  
 20811  // Fields allows partial responses to be retrieved. See
 20812  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20813  // details.
 20814  func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesGetCall {
 20815  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20816  	return c
 20817  }
 20818  
 20819  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20820  // object's ETag matches the given value. This is useful for getting updates
 20821  // only after the object has changed since the last request.
 20822  func (c *ProjectsLocationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeidentifyTemplatesGetCall {
 20823  	c.ifNoneMatch_ = entityTag
 20824  	return c
 20825  }
 20826  
 20827  // Context sets the context to be used in this call's Do method.
 20828  func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesGetCall {
 20829  	c.ctx_ = ctx
 20830  	return c
 20831  }
 20832  
 20833  // Header returns a http.Header that can be modified by the caller to add
 20834  // headers to the request.
 20835  func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Header() http.Header {
 20836  	if c.header_ == nil {
 20837  		c.header_ = make(http.Header)
 20838  	}
 20839  	return c.header_
 20840  }
 20841  
 20842  func (c *ProjectsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 20843  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20844  	if c.ifNoneMatch_ != "" {
 20845  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20846  	}
 20847  	var body io.Reader = nil
 20848  	c.urlParams_.Set("alt", alt)
 20849  	c.urlParams_.Set("prettyPrint", "false")
 20850  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 20851  	urls += "?" + c.urlParams_.Encode()
 20852  	req, err := http.NewRequest("GET", urls, body)
 20853  	if err != nil {
 20854  		return nil, err
 20855  	}
 20856  	req.Header = reqHeaders
 20857  	googleapi.Expand(req.URL, map[string]string{
 20858  		"name": c.name,
 20859  	})
 20860  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20861  }
 20862  
 20863  // Do executes the "dlp.projects.locations.deidentifyTemplates.get" call.
 20864  // Any non-2xx status code is an error. Response headers are in either
 20865  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 20866  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20867  // googleapi.IsNotModified to check whether the returned error was because
 20868  // http.StatusNotModified was returned.
 20869  func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 20870  	gensupport.SetOptions(c.urlParams_, opts...)
 20871  	res, err := c.doRequest("json")
 20872  	if res != nil && res.StatusCode == http.StatusNotModified {
 20873  		if res.Body != nil {
 20874  			res.Body.Close()
 20875  		}
 20876  		return nil, gensupport.WrapError(&googleapi.Error{
 20877  			Code:   res.StatusCode,
 20878  			Header: res.Header,
 20879  		})
 20880  	}
 20881  	if err != nil {
 20882  		return nil, err
 20883  	}
 20884  	defer googleapi.CloseBody(res)
 20885  	if err := googleapi.CheckResponse(res); err != nil {
 20886  		return nil, gensupport.WrapError(err)
 20887  	}
 20888  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 20889  		ServerResponse: googleapi.ServerResponse{
 20890  			Header:         res.Header,
 20891  			HTTPStatusCode: res.StatusCode,
 20892  		},
 20893  	}
 20894  	target := &ret
 20895  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20896  		return nil, err
 20897  	}
 20898  	return ret, nil
 20899  }
 20900  
 20901  type ProjectsLocationsDeidentifyTemplatesListCall struct {
 20902  	s            *Service
 20903  	parentid     string
 20904  	urlParams_   gensupport.URLParams
 20905  	ifNoneMatch_ string
 20906  	ctx_         context.Context
 20907  	header_      http.Header
 20908  }
 20909  
 20910  // List: Lists DeidentifyTemplates. See
 20911  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 20912  // to learn more.
 20913  //
 20914  //   - parent: Parent resource name. The format of this value varies depending on
 20915  //     the scope of the request (project or organization) and whether you have
 20916  //     specified a processing location
 20917  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 20918  //   - Projects scope, location specified:
 20919  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 20920  //     location specified (defaults to global): `projects/`PROJECT_ID +
 20921  //     Organizations scope, location specified:
 20922  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 20923  //     location specified (defaults to global): `organizations/`ORG_ID The
 20924  //     following example `parent` string specifies a parent project with the
 20925  //     identifier `example-project`, and specifies the `europe-west3` location
 20926  //     for processing data:
 20927  //     parent=projects/example-project/locations/europe-west3.
 20928  func (r *ProjectsLocationsDeidentifyTemplatesService) List(parentid string) *ProjectsLocationsDeidentifyTemplatesListCall {
 20929  	c := &ProjectsLocationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20930  	c.parentid = parentid
 20931  	return c
 20932  }
 20933  
 20934  // LocationId sets the optional parameter "locationId": Deprecated. This field
 20935  // has no effect.
 20936  func (c *ProjectsLocationsDeidentifyTemplatesListCall) LocationId(locationId string) *ProjectsLocationsDeidentifyTemplatesListCall {
 20937  	c.urlParams_.Set("locationId", locationId)
 20938  	return c
 20939  }
 20940  
 20941  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 20942  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 20943  // insensitive. The default sorting order is ascending. Redundant space
 20944  // characters are insignificant. Example: `name asc,update_time, create_time
 20945  // desc` Supported fields are: - `create_time`: corresponds to the time the
 20946  // template was created. - `update_time`: corresponds to the time the template
 20947  // was last updated. - `name`: corresponds to the template's name. -
 20948  // `display_name`: corresponds to the template's display name.
 20949  func (c *ProjectsLocationsDeidentifyTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsDeidentifyTemplatesListCall {
 20950  	c.urlParams_.Set("orderBy", orderBy)
 20951  	return c
 20952  }
 20953  
 20954  // PageSize sets the optional parameter "pageSize": Size of the page. This
 20955  // value can be limited by the server. If zero server returns a page of max
 20956  // size 100.
 20957  func (c *ProjectsLocationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsDeidentifyTemplatesListCall {
 20958  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20959  	return c
 20960  }
 20961  
 20962  // PageToken sets the optional parameter "pageToken": Page token to continue
 20963  // retrieval. Comes from the previous call to `ListDeidentifyTemplates`.
 20964  func (c *ProjectsLocationsDeidentifyTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsDeidentifyTemplatesListCall {
 20965  	c.urlParams_.Set("pageToken", pageToken)
 20966  	return c
 20967  }
 20968  
 20969  // Fields allows partial responses to be retrieved. See
 20970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20971  // details.
 20972  func (c *ProjectsLocationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesListCall {
 20973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20974  	return c
 20975  }
 20976  
 20977  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20978  // object's ETag matches the given value. This is useful for getting updates
 20979  // only after the object has changed since the last request.
 20980  func (c *ProjectsLocationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeidentifyTemplatesListCall {
 20981  	c.ifNoneMatch_ = entityTag
 20982  	return c
 20983  }
 20984  
 20985  // Context sets the context to be used in this call's Do method.
 20986  func (c *ProjectsLocationsDeidentifyTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesListCall {
 20987  	c.ctx_ = ctx
 20988  	return c
 20989  }
 20990  
 20991  // Header returns a http.Header that can be modified by the caller to add
 20992  // headers to the request.
 20993  func (c *ProjectsLocationsDeidentifyTemplatesListCall) Header() http.Header {
 20994  	if c.header_ == nil {
 20995  		c.header_ = make(http.Header)
 20996  	}
 20997  	return c.header_
 20998  }
 20999  
 21000  func (c *ProjectsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 21001  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21002  	if c.ifNoneMatch_ != "" {
 21003  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21004  	}
 21005  	var body io.Reader = nil
 21006  	c.urlParams_.Set("alt", alt)
 21007  	c.urlParams_.Set("prettyPrint", "false")
 21008  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
 21009  	urls += "?" + c.urlParams_.Encode()
 21010  	req, err := http.NewRequest("GET", urls, body)
 21011  	if err != nil {
 21012  		return nil, err
 21013  	}
 21014  	req.Header = reqHeaders
 21015  	googleapi.Expand(req.URL, map[string]string{
 21016  		"parent": c.parentid,
 21017  	})
 21018  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21019  }
 21020  
 21021  // Do executes the "dlp.projects.locations.deidentifyTemplates.list" call.
 21022  // Any non-2xx status code is an error. Response headers are in either
 21023  // *GooglePrivacyDlpV2ListDeidentifyTemplatesResponse.ServerResponse.Header or
 21024  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 21025  // googleapi.IsNotModified to check whether the returned error was because
 21026  // http.StatusNotModified was returned.
 21027  func (c *ProjectsLocationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
 21028  	gensupport.SetOptions(c.urlParams_, opts...)
 21029  	res, err := c.doRequest("json")
 21030  	if res != nil && res.StatusCode == http.StatusNotModified {
 21031  		if res.Body != nil {
 21032  			res.Body.Close()
 21033  		}
 21034  		return nil, gensupport.WrapError(&googleapi.Error{
 21035  			Code:   res.StatusCode,
 21036  			Header: res.Header,
 21037  		})
 21038  	}
 21039  	if err != nil {
 21040  		return nil, err
 21041  	}
 21042  	defer googleapi.CloseBody(res)
 21043  	if err := googleapi.CheckResponse(res); err != nil {
 21044  		return nil, gensupport.WrapError(err)
 21045  	}
 21046  	ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
 21047  		ServerResponse: googleapi.ServerResponse{
 21048  			Header:         res.Header,
 21049  			HTTPStatusCode: res.StatusCode,
 21050  		},
 21051  	}
 21052  	target := &ret
 21053  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21054  		return nil, err
 21055  	}
 21056  	return ret, nil
 21057  }
 21058  
 21059  // Pages invokes f for each page of results.
 21060  // A non-nil error returned from f will halt the iteration.
 21061  // The provided context supersedes any context provided to the Context method.
 21062  func (c *ProjectsLocationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
 21063  	c.ctx_ = ctx
 21064  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21065  	for {
 21066  		x, err := c.Do()
 21067  		if err != nil {
 21068  			return err
 21069  		}
 21070  		if err := f(x); err != nil {
 21071  			return err
 21072  		}
 21073  		if x.NextPageToken == "" {
 21074  			return nil
 21075  		}
 21076  		c.PageToken(x.NextPageToken)
 21077  	}
 21078  }
 21079  
 21080  type ProjectsLocationsDeidentifyTemplatesPatchCall struct {
 21081  	s                                                 *Service
 21082  	name                                              string
 21083  	googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
 21084  	urlParams_                                        gensupport.URLParams
 21085  	ctx_                                              context.Context
 21086  	header_                                           http.Header
 21087  }
 21088  
 21089  // Patch: Updates the DeidentifyTemplate. See
 21090  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
 21091  // to learn more.
 21092  //
 21093  //   - name: Resource name of organization and deidentify template to be updated,
 21094  //     for example `organizations/433245324/deidentifyTemplates/432452342` or
 21095  //     projects/project-id/deidentifyTemplates/432452342.
 21096  func (r *ProjectsLocationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *ProjectsLocationsDeidentifyTemplatesPatchCall {
 21097  	c := &ProjectsLocationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21098  	c.name = name
 21099  	c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
 21100  	return c
 21101  }
 21102  
 21103  // Fields allows partial responses to be retrieved. See
 21104  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21105  // details.
 21106  func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesPatchCall {
 21107  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21108  	return c
 21109  }
 21110  
 21111  // Context sets the context to be used in this call's Do method.
 21112  func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesPatchCall {
 21113  	c.ctx_ = ctx
 21114  	return c
 21115  }
 21116  
 21117  // Header returns a http.Header that can be modified by the caller to add
 21118  // headers to the request.
 21119  func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Header() http.Header {
 21120  	if c.header_ == nil {
 21121  		c.header_ = make(http.Header)
 21122  	}
 21123  	return c.header_
 21124  }
 21125  
 21126  func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 21127  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21128  	var body io.Reader = nil
 21129  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
 21130  	if err != nil {
 21131  		return nil, err
 21132  	}
 21133  	c.urlParams_.Set("alt", alt)
 21134  	c.urlParams_.Set("prettyPrint", "false")
 21135  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 21136  	urls += "?" + c.urlParams_.Encode()
 21137  	req, err := http.NewRequest("PATCH", urls, body)
 21138  	if err != nil {
 21139  		return nil, err
 21140  	}
 21141  	req.Header = reqHeaders
 21142  	googleapi.Expand(req.URL, map[string]string{
 21143  		"name": c.name,
 21144  	})
 21145  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21146  }
 21147  
 21148  // Do executes the "dlp.projects.locations.deidentifyTemplates.patch" call.
 21149  // Any non-2xx status code is an error. Response headers are in either
 21150  // *GooglePrivacyDlpV2DeidentifyTemplate.ServerResponse.Header or (if a
 21151  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21152  // googleapi.IsNotModified to check whether the returned error was because
 21153  // http.StatusNotModified was returned.
 21154  func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
 21155  	gensupport.SetOptions(c.urlParams_, opts...)
 21156  	res, err := c.doRequest("json")
 21157  	if res != nil && res.StatusCode == http.StatusNotModified {
 21158  		if res.Body != nil {
 21159  			res.Body.Close()
 21160  		}
 21161  		return nil, gensupport.WrapError(&googleapi.Error{
 21162  			Code:   res.StatusCode,
 21163  			Header: res.Header,
 21164  		})
 21165  	}
 21166  	if err != nil {
 21167  		return nil, err
 21168  	}
 21169  	defer googleapi.CloseBody(res)
 21170  	if err := googleapi.CheckResponse(res); err != nil {
 21171  		return nil, gensupport.WrapError(err)
 21172  	}
 21173  	ret := &GooglePrivacyDlpV2DeidentifyTemplate{
 21174  		ServerResponse: googleapi.ServerResponse{
 21175  			Header:         res.Header,
 21176  			HTTPStatusCode: res.StatusCode,
 21177  		},
 21178  	}
 21179  	target := &ret
 21180  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21181  		return nil, err
 21182  	}
 21183  	return ret, nil
 21184  }
 21185  
 21186  type ProjectsLocationsDiscoveryConfigsCreateCall struct {
 21187  	s                                              *Service
 21188  	parentid                                       string
 21189  	googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest
 21190  	urlParams_                                     gensupport.URLParams
 21191  	ctx_                                           context.Context
 21192  	header_                                        http.Header
 21193  }
 21194  
 21195  // Create: Creates a config for discovery to scan and profile storage.
 21196  //
 21197  //   - parent: Parent resource name. The format of this value is as follows:
 21198  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example
 21199  //     `parent` string specifies a parent project with the identifier
 21200  //     `example-project`, and specifies the `europe-west3` location for
 21201  //     processing data: parent=projects/example-project/locations/europe-west3.
 21202  func (r *ProjectsLocationsDiscoveryConfigsService) Create(parentid string, googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest) *ProjectsLocationsDiscoveryConfigsCreateCall {
 21203  	c := &ProjectsLocationsDiscoveryConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21204  	c.parentid = parentid
 21205  	c.googleprivacydlpv2creatediscoveryconfigrequest = googleprivacydlpv2creatediscoveryconfigrequest
 21206  	return c
 21207  }
 21208  
 21209  // Fields allows partial responses to be retrieved. See
 21210  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21211  // details.
 21212  func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsCreateCall {
 21213  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21214  	return c
 21215  }
 21216  
 21217  // Context sets the context to be used in this call's Do method.
 21218  func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsCreateCall {
 21219  	c.ctx_ = ctx
 21220  	return c
 21221  }
 21222  
 21223  // Header returns a http.Header that can be modified by the caller to add
 21224  // headers to the request.
 21225  func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Header() http.Header {
 21226  	if c.header_ == nil {
 21227  		c.header_ = make(http.Header)
 21228  	}
 21229  	return c.header_
 21230  }
 21231  
 21232  func (c *ProjectsLocationsDiscoveryConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
 21233  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21234  	var body io.Reader = nil
 21235  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2creatediscoveryconfigrequest)
 21236  	if err != nil {
 21237  		return nil, err
 21238  	}
 21239  	c.urlParams_.Set("alt", alt)
 21240  	c.urlParams_.Set("prettyPrint", "false")
 21241  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
 21242  	urls += "?" + c.urlParams_.Encode()
 21243  	req, err := http.NewRequest("POST", urls, body)
 21244  	if err != nil {
 21245  		return nil, err
 21246  	}
 21247  	req.Header = reqHeaders
 21248  	googleapi.Expand(req.URL, map[string]string{
 21249  		"parent": c.parentid,
 21250  	})
 21251  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21252  }
 21253  
 21254  // Do executes the "dlp.projects.locations.discoveryConfigs.create" call.
 21255  // Any non-2xx status code is an error. Response headers are in either
 21256  // *GooglePrivacyDlpV2DiscoveryConfig.ServerResponse.Header or (if a response
 21257  // was returned at all) in error.(*googleapi.Error).Header. Use
 21258  // googleapi.IsNotModified to check whether the returned error was because
 21259  // http.StatusNotModified was returned.
 21260  func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
 21261  	gensupport.SetOptions(c.urlParams_, opts...)
 21262  	res, err := c.doRequest("json")
 21263  	if res != nil && res.StatusCode == http.StatusNotModified {
 21264  		if res.Body != nil {
 21265  			res.Body.Close()
 21266  		}
 21267  		return nil, gensupport.WrapError(&googleapi.Error{
 21268  			Code:   res.StatusCode,
 21269  			Header: res.Header,
 21270  		})
 21271  	}
 21272  	if err != nil {
 21273  		return nil, err
 21274  	}
 21275  	defer googleapi.CloseBody(res)
 21276  	if err := googleapi.CheckResponse(res); err != nil {
 21277  		return nil, gensupport.WrapError(err)
 21278  	}
 21279  	ret := &GooglePrivacyDlpV2DiscoveryConfig{
 21280  		ServerResponse: googleapi.ServerResponse{
 21281  			Header:         res.Header,
 21282  			HTTPStatusCode: res.StatusCode,
 21283  		},
 21284  	}
 21285  	target := &ret
 21286  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21287  		return nil, err
 21288  	}
 21289  	return ret, nil
 21290  }
 21291  
 21292  type ProjectsLocationsDiscoveryConfigsDeleteCall struct {
 21293  	s          *Service
 21294  	name       string
 21295  	urlParams_ gensupport.URLParams
 21296  	ctx_       context.Context
 21297  	header_    http.Header
 21298  }
 21299  
 21300  // Delete: Deletes a discovery configuration.
 21301  //
 21302  //   - name: Resource name of the project and the config, for example
 21303  //     `projects/dlp-test-project/discoveryConfigs/53234423`.
 21304  func (r *ProjectsLocationsDiscoveryConfigsService) Delete(name string) *ProjectsLocationsDiscoveryConfigsDeleteCall {
 21305  	c := &ProjectsLocationsDiscoveryConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21306  	c.name = name
 21307  	return c
 21308  }
 21309  
 21310  // Fields allows partial responses to be retrieved. See
 21311  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21312  // details.
 21313  func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsDeleteCall {
 21314  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21315  	return c
 21316  }
 21317  
 21318  // Context sets the context to be used in this call's Do method.
 21319  func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsDeleteCall {
 21320  	c.ctx_ = ctx
 21321  	return c
 21322  }
 21323  
 21324  // Header returns a http.Header that can be modified by the caller to add
 21325  // headers to the request.
 21326  func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Header() http.Header {
 21327  	if c.header_ == nil {
 21328  		c.header_ = make(http.Header)
 21329  	}
 21330  	return c.header_
 21331  }
 21332  
 21333  func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21334  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21335  	var body io.Reader = nil
 21336  	c.urlParams_.Set("alt", alt)
 21337  	c.urlParams_.Set("prettyPrint", "false")
 21338  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 21339  	urls += "?" + c.urlParams_.Encode()
 21340  	req, err := http.NewRequest("DELETE", urls, body)
 21341  	if err != nil {
 21342  		return nil, err
 21343  	}
 21344  	req.Header = reqHeaders
 21345  	googleapi.Expand(req.URL, map[string]string{
 21346  		"name": c.name,
 21347  	})
 21348  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21349  }
 21350  
 21351  // Do executes the "dlp.projects.locations.discoveryConfigs.delete" call.
 21352  // Any non-2xx status code is an error. Response headers are in either
 21353  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21354  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21355  // check whether the returned error was because http.StatusNotModified was
 21356  // returned.
 21357  func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21358  	gensupport.SetOptions(c.urlParams_, opts...)
 21359  	res, err := c.doRequest("json")
 21360  	if res != nil && res.StatusCode == http.StatusNotModified {
 21361  		if res.Body != nil {
 21362  			res.Body.Close()
 21363  		}
 21364  		return nil, gensupport.WrapError(&googleapi.Error{
 21365  			Code:   res.StatusCode,
 21366  			Header: res.Header,
 21367  		})
 21368  	}
 21369  	if err != nil {
 21370  		return nil, err
 21371  	}
 21372  	defer googleapi.CloseBody(res)
 21373  	if err := googleapi.CheckResponse(res); err != nil {
 21374  		return nil, gensupport.WrapError(err)
 21375  	}
 21376  	ret := &GoogleProtobufEmpty{
 21377  		ServerResponse: googleapi.ServerResponse{
 21378  			Header:         res.Header,
 21379  			HTTPStatusCode: res.StatusCode,
 21380  		},
 21381  	}
 21382  	target := &ret
 21383  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21384  		return nil, err
 21385  	}
 21386  	return ret, nil
 21387  }
 21388  
 21389  type ProjectsLocationsDiscoveryConfigsGetCall struct {
 21390  	s            *Service
 21391  	name         string
 21392  	urlParams_   gensupport.URLParams
 21393  	ifNoneMatch_ string
 21394  	ctx_         context.Context
 21395  	header_      http.Header
 21396  }
 21397  
 21398  // Get: Gets a discovery configuration.
 21399  //
 21400  //   - name: Resource name of the project and the configuration, for example
 21401  //     `projects/dlp-test-project/discoveryConfigs/53234423`.
 21402  func (r *ProjectsLocationsDiscoveryConfigsService) Get(name string) *ProjectsLocationsDiscoveryConfigsGetCall {
 21403  	c := &ProjectsLocationsDiscoveryConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21404  	c.name = name
 21405  	return c
 21406  }
 21407  
 21408  // Fields allows partial responses to be retrieved. See
 21409  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21410  // details.
 21411  func (c *ProjectsLocationsDiscoveryConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsGetCall {
 21412  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21413  	return c
 21414  }
 21415  
 21416  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21417  // object's ETag matches the given value. This is useful for getting updates
 21418  // only after the object has changed since the last request.
 21419  func (c *ProjectsLocationsDiscoveryConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryConfigsGetCall {
 21420  	c.ifNoneMatch_ = entityTag
 21421  	return c
 21422  }
 21423  
 21424  // Context sets the context to be used in this call's Do method.
 21425  func (c *ProjectsLocationsDiscoveryConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsGetCall {
 21426  	c.ctx_ = ctx
 21427  	return c
 21428  }
 21429  
 21430  // Header returns a http.Header that can be modified by the caller to add
 21431  // headers to the request.
 21432  func (c *ProjectsLocationsDiscoveryConfigsGetCall) Header() http.Header {
 21433  	if c.header_ == nil {
 21434  		c.header_ = make(http.Header)
 21435  	}
 21436  	return c.header_
 21437  }
 21438  
 21439  func (c *ProjectsLocationsDiscoveryConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 21440  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21441  	if c.ifNoneMatch_ != "" {
 21442  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21443  	}
 21444  	var body io.Reader = nil
 21445  	c.urlParams_.Set("alt", alt)
 21446  	c.urlParams_.Set("prettyPrint", "false")
 21447  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 21448  	urls += "?" + c.urlParams_.Encode()
 21449  	req, err := http.NewRequest("GET", urls, body)
 21450  	if err != nil {
 21451  		return nil, err
 21452  	}
 21453  	req.Header = reqHeaders
 21454  	googleapi.Expand(req.URL, map[string]string{
 21455  		"name": c.name,
 21456  	})
 21457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21458  }
 21459  
 21460  // Do executes the "dlp.projects.locations.discoveryConfigs.get" call.
 21461  // Any non-2xx status code is an error. Response headers are in either
 21462  // *GooglePrivacyDlpV2DiscoveryConfig.ServerResponse.Header or (if a response
 21463  // was returned at all) in error.(*googleapi.Error).Header. Use
 21464  // googleapi.IsNotModified to check whether the returned error was because
 21465  // http.StatusNotModified was returned.
 21466  func (c *ProjectsLocationsDiscoveryConfigsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
 21467  	gensupport.SetOptions(c.urlParams_, opts...)
 21468  	res, err := c.doRequest("json")
 21469  	if res != nil && res.StatusCode == http.StatusNotModified {
 21470  		if res.Body != nil {
 21471  			res.Body.Close()
 21472  		}
 21473  		return nil, gensupport.WrapError(&googleapi.Error{
 21474  			Code:   res.StatusCode,
 21475  			Header: res.Header,
 21476  		})
 21477  	}
 21478  	if err != nil {
 21479  		return nil, err
 21480  	}
 21481  	defer googleapi.CloseBody(res)
 21482  	if err := googleapi.CheckResponse(res); err != nil {
 21483  		return nil, gensupport.WrapError(err)
 21484  	}
 21485  	ret := &GooglePrivacyDlpV2DiscoveryConfig{
 21486  		ServerResponse: googleapi.ServerResponse{
 21487  			Header:         res.Header,
 21488  			HTTPStatusCode: res.StatusCode,
 21489  		},
 21490  	}
 21491  	target := &ret
 21492  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21493  		return nil, err
 21494  	}
 21495  	return ret, nil
 21496  }
 21497  
 21498  type ProjectsLocationsDiscoveryConfigsListCall struct {
 21499  	s            *Service
 21500  	parentid     string
 21501  	urlParams_   gensupport.URLParams
 21502  	ifNoneMatch_ string
 21503  	ctx_         context.Context
 21504  	header_      http.Header
 21505  }
 21506  
 21507  // List: Lists discovery configurations.
 21508  //
 21509  //   - parent: Parent resource name. The format of this value is as follows:
 21510  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID The following example
 21511  //     `parent` string specifies a parent project with the identifier
 21512  //     `example-project`, and specifies the `europe-west3` location for
 21513  //     processing data: parent=projects/example-project/locations/europe-west3.
 21514  func (r *ProjectsLocationsDiscoveryConfigsService) List(parentid string) *ProjectsLocationsDiscoveryConfigsListCall {
 21515  	c := &ProjectsLocationsDiscoveryConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21516  	c.parentid = parentid
 21517  	return c
 21518  }
 21519  
 21520  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 21521  // config fields to order by, followed by `asc` or `desc` postfix. This list is
 21522  // case insensitive. The default sorting order is ascending. Redundant space
 21523  // characters are insignificant. Example: `name asc,update_time, create_time
 21524  // desc` Supported fields are: - `last_run_time`: corresponds to the last time
 21525  // the DiscoveryConfig ran. - `name`: corresponds to the DiscoveryConfig's
 21526  // name. - `status`: corresponds to DiscoveryConfig's status.
 21527  func (c *ProjectsLocationsDiscoveryConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsDiscoveryConfigsListCall {
 21528  	c.urlParams_.Set("orderBy", orderBy)
 21529  	return c
 21530  }
 21531  
 21532  // PageSize sets the optional parameter "pageSize": Size of the page. This
 21533  // value can be limited by a server.
 21534  func (c *ProjectsLocationsDiscoveryConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveryConfigsListCall {
 21535  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21536  	return c
 21537  }
 21538  
 21539  // PageToken sets the optional parameter "pageToken": Page token to continue
 21540  // retrieval. Comes from the previous call to ListDiscoveryConfigs. `order_by`
 21541  // field must not change for subsequent calls.
 21542  func (c *ProjectsLocationsDiscoveryConfigsListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveryConfigsListCall {
 21543  	c.urlParams_.Set("pageToken", pageToken)
 21544  	return c
 21545  }
 21546  
 21547  // Fields allows partial responses to be retrieved. See
 21548  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21549  // details.
 21550  func (c *ProjectsLocationsDiscoveryConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsListCall {
 21551  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21552  	return c
 21553  }
 21554  
 21555  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21556  // object's ETag matches the given value. This is useful for getting updates
 21557  // only after the object has changed since the last request.
 21558  func (c *ProjectsLocationsDiscoveryConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryConfigsListCall {
 21559  	c.ifNoneMatch_ = entityTag
 21560  	return c
 21561  }
 21562  
 21563  // Context sets the context to be used in this call's Do method.
 21564  func (c *ProjectsLocationsDiscoveryConfigsListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsListCall {
 21565  	c.ctx_ = ctx
 21566  	return c
 21567  }
 21568  
 21569  // Header returns a http.Header that can be modified by the caller to add
 21570  // headers to the request.
 21571  func (c *ProjectsLocationsDiscoveryConfigsListCall) Header() http.Header {
 21572  	if c.header_ == nil {
 21573  		c.header_ = make(http.Header)
 21574  	}
 21575  	return c.header_
 21576  }
 21577  
 21578  func (c *ProjectsLocationsDiscoveryConfigsListCall) doRequest(alt string) (*http.Response, error) {
 21579  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21580  	if c.ifNoneMatch_ != "" {
 21581  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21582  	}
 21583  	var body io.Reader = nil
 21584  	c.urlParams_.Set("alt", alt)
 21585  	c.urlParams_.Set("prettyPrint", "false")
 21586  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
 21587  	urls += "?" + c.urlParams_.Encode()
 21588  	req, err := http.NewRequest("GET", urls, body)
 21589  	if err != nil {
 21590  		return nil, err
 21591  	}
 21592  	req.Header = reqHeaders
 21593  	googleapi.Expand(req.URL, map[string]string{
 21594  		"parent": c.parentid,
 21595  	})
 21596  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21597  }
 21598  
 21599  // Do executes the "dlp.projects.locations.discoveryConfigs.list" call.
 21600  // Any non-2xx status code is an error. Response headers are in either
 21601  // *GooglePrivacyDlpV2ListDiscoveryConfigsResponse.ServerResponse.Header or (if
 21602  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 21603  // googleapi.IsNotModified to check whether the returned error was because
 21604  // http.StatusNotModified was returned.
 21605  func (c *ProjectsLocationsDiscoveryConfigsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDiscoveryConfigsResponse, error) {
 21606  	gensupport.SetOptions(c.urlParams_, opts...)
 21607  	res, err := c.doRequest("json")
 21608  	if res != nil && res.StatusCode == http.StatusNotModified {
 21609  		if res.Body != nil {
 21610  			res.Body.Close()
 21611  		}
 21612  		return nil, gensupport.WrapError(&googleapi.Error{
 21613  			Code:   res.StatusCode,
 21614  			Header: res.Header,
 21615  		})
 21616  	}
 21617  	if err != nil {
 21618  		return nil, err
 21619  	}
 21620  	defer googleapi.CloseBody(res)
 21621  	if err := googleapi.CheckResponse(res); err != nil {
 21622  		return nil, gensupport.WrapError(err)
 21623  	}
 21624  	ret := &GooglePrivacyDlpV2ListDiscoveryConfigsResponse{
 21625  		ServerResponse: googleapi.ServerResponse{
 21626  			Header:         res.Header,
 21627  			HTTPStatusCode: res.StatusCode,
 21628  		},
 21629  	}
 21630  	target := &ret
 21631  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21632  		return nil, err
 21633  	}
 21634  	return ret, nil
 21635  }
 21636  
 21637  // Pages invokes f for each page of results.
 21638  // A non-nil error returned from f will halt the iteration.
 21639  // The provided context supersedes any context provided to the Context method.
 21640  func (c *ProjectsLocationsDiscoveryConfigsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDiscoveryConfigsResponse) error) error {
 21641  	c.ctx_ = ctx
 21642  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21643  	for {
 21644  		x, err := c.Do()
 21645  		if err != nil {
 21646  			return err
 21647  		}
 21648  		if err := f(x); err != nil {
 21649  			return err
 21650  		}
 21651  		if x.NextPageToken == "" {
 21652  			return nil
 21653  		}
 21654  		c.PageToken(x.NextPageToken)
 21655  	}
 21656  }
 21657  
 21658  type ProjectsLocationsDiscoveryConfigsPatchCall struct {
 21659  	s                                              *Service
 21660  	name                                           string
 21661  	googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest
 21662  	urlParams_                                     gensupport.URLParams
 21663  	ctx_                                           context.Context
 21664  	header_                                        http.Header
 21665  }
 21666  
 21667  // Patch: Updates a discovery configuration.
 21668  //
 21669  //   - name: Resource name of the project and the configuration, for example
 21670  //     `projects/dlp-test-project/discoveryConfigs/53234423`.
 21671  func (r *ProjectsLocationsDiscoveryConfigsService) Patch(name string, googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) *ProjectsLocationsDiscoveryConfigsPatchCall {
 21672  	c := &ProjectsLocationsDiscoveryConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21673  	c.name = name
 21674  	c.googleprivacydlpv2updatediscoveryconfigrequest = googleprivacydlpv2updatediscoveryconfigrequest
 21675  	return c
 21676  }
 21677  
 21678  // Fields allows partial responses to be retrieved. See
 21679  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21680  // details.
 21681  func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsPatchCall {
 21682  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21683  	return c
 21684  }
 21685  
 21686  // Context sets the context to be used in this call's Do method.
 21687  func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsPatchCall {
 21688  	c.ctx_ = ctx
 21689  	return c
 21690  }
 21691  
 21692  // Header returns a http.Header that can be modified by the caller to add
 21693  // headers to the request.
 21694  func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Header() http.Header {
 21695  	if c.header_ == nil {
 21696  		c.header_ = make(http.Header)
 21697  	}
 21698  	return c.header_
 21699  }
 21700  
 21701  func (c *ProjectsLocationsDiscoveryConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 21702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21703  	var body io.Reader = nil
 21704  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatediscoveryconfigrequest)
 21705  	if err != nil {
 21706  		return nil, err
 21707  	}
 21708  	c.urlParams_.Set("alt", alt)
 21709  	c.urlParams_.Set("prettyPrint", "false")
 21710  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 21711  	urls += "?" + c.urlParams_.Encode()
 21712  	req, err := http.NewRequest("PATCH", urls, body)
 21713  	if err != nil {
 21714  		return nil, err
 21715  	}
 21716  	req.Header = reqHeaders
 21717  	googleapi.Expand(req.URL, map[string]string{
 21718  		"name": c.name,
 21719  	})
 21720  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21721  }
 21722  
 21723  // Do executes the "dlp.projects.locations.discoveryConfigs.patch" call.
 21724  // Any non-2xx status code is an error. Response headers are in either
 21725  // *GooglePrivacyDlpV2DiscoveryConfig.ServerResponse.Header or (if a response
 21726  // was returned at all) in error.(*googleapi.Error).Header. Use
 21727  // googleapi.IsNotModified to check whether the returned error was because
 21728  // http.StatusNotModified was returned.
 21729  func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
 21730  	gensupport.SetOptions(c.urlParams_, opts...)
 21731  	res, err := c.doRequest("json")
 21732  	if res != nil && res.StatusCode == http.StatusNotModified {
 21733  		if res.Body != nil {
 21734  			res.Body.Close()
 21735  		}
 21736  		return nil, gensupport.WrapError(&googleapi.Error{
 21737  			Code:   res.StatusCode,
 21738  			Header: res.Header,
 21739  		})
 21740  	}
 21741  	if err != nil {
 21742  		return nil, err
 21743  	}
 21744  	defer googleapi.CloseBody(res)
 21745  	if err := googleapi.CheckResponse(res); err != nil {
 21746  		return nil, gensupport.WrapError(err)
 21747  	}
 21748  	ret := &GooglePrivacyDlpV2DiscoveryConfig{
 21749  		ServerResponse: googleapi.ServerResponse{
 21750  			Header:         res.Header,
 21751  			HTTPStatusCode: res.StatusCode,
 21752  		},
 21753  	}
 21754  	target := &ret
 21755  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21756  		return nil, err
 21757  	}
 21758  	return ret, nil
 21759  }
 21760  
 21761  type ProjectsLocationsDlpJobsCancelCall struct {
 21762  	s                                     *Service
 21763  	name                                  string
 21764  	googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest
 21765  	urlParams_                            gensupport.URLParams
 21766  	ctx_                                  context.Context
 21767  	header_                               http.Header
 21768  }
 21769  
 21770  // Cancel: Starts asynchronous cancellation on a long-running DlpJob. The
 21771  // server makes a best effort to cancel the DlpJob, but success is not
 21772  // guaranteed. See
 21773  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 21774  // and
 21775  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 21776  // to learn more.
 21777  //
 21778  // - name: The name of the DlpJob resource to be cancelled.
 21779  func (r *ProjectsLocationsDlpJobsService) Cancel(name string, googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest) *ProjectsLocationsDlpJobsCancelCall {
 21780  	c := &ProjectsLocationsDlpJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21781  	c.name = name
 21782  	c.googleprivacydlpv2canceldlpjobrequest = googleprivacydlpv2canceldlpjobrequest
 21783  	return c
 21784  }
 21785  
 21786  // Fields allows partial responses to be retrieved. See
 21787  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21788  // details.
 21789  func (c *ProjectsLocationsDlpJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsCancelCall {
 21790  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21791  	return c
 21792  }
 21793  
 21794  // Context sets the context to be used in this call's Do method.
 21795  func (c *ProjectsLocationsDlpJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsCancelCall {
 21796  	c.ctx_ = ctx
 21797  	return c
 21798  }
 21799  
 21800  // Header returns a http.Header that can be modified by the caller to add
 21801  // headers to the request.
 21802  func (c *ProjectsLocationsDlpJobsCancelCall) Header() http.Header {
 21803  	if c.header_ == nil {
 21804  		c.header_ = make(http.Header)
 21805  	}
 21806  	return c.header_
 21807  }
 21808  
 21809  func (c *ProjectsLocationsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) {
 21810  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21811  	var body io.Reader = nil
 21812  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2canceldlpjobrequest)
 21813  	if err != nil {
 21814  		return nil, err
 21815  	}
 21816  	c.urlParams_.Set("alt", alt)
 21817  	c.urlParams_.Set("prettyPrint", "false")
 21818  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
 21819  	urls += "?" + c.urlParams_.Encode()
 21820  	req, err := http.NewRequest("POST", urls, body)
 21821  	if err != nil {
 21822  		return nil, err
 21823  	}
 21824  	req.Header = reqHeaders
 21825  	googleapi.Expand(req.URL, map[string]string{
 21826  		"name": c.name,
 21827  	})
 21828  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21829  }
 21830  
 21831  // Do executes the "dlp.projects.locations.dlpJobs.cancel" call.
 21832  // Any non-2xx status code is an error. Response headers are in either
 21833  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21834  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21835  // check whether the returned error was because http.StatusNotModified was
 21836  // returned.
 21837  func (c *ProjectsLocationsDlpJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21838  	gensupport.SetOptions(c.urlParams_, opts...)
 21839  	res, err := c.doRequest("json")
 21840  	if res != nil && res.StatusCode == http.StatusNotModified {
 21841  		if res.Body != nil {
 21842  			res.Body.Close()
 21843  		}
 21844  		return nil, gensupport.WrapError(&googleapi.Error{
 21845  			Code:   res.StatusCode,
 21846  			Header: res.Header,
 21847  		})
 21848  	}
 21849  	if err != nil {
 21850  		return nil, err
 21851  	}
 21852  	defer googleapi.CloseBody(res)
 21853  	if err := googleapi.CheckResponse(res); err != nil {
 21854  		return nil, gensupport.WrapError(err)
 21855  	}
 21856  	ret := &GoogleProtobufEmpty{
 21857  		ServerResponse: googleapi.ServerResponse{
 21858  			Header:         res.Header,
 21859  			HTTPStatusCode: res.StatusCode,
 21860  		},
 21861  	}
 21862  	target := &ret
 21863  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21864  		return nil, err
 21865  	}
 21866  	return ret, nil
 21867  }
 21868  
 21869  type ProjectsLocationsDlpJobsCreateCall struct {
 21870  	s                                     *Service
 21871  	parentid                              string
 21872  	googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest
 21873  	urlParams_                            gensupport.URLParams
 21874  	ctx_                                  context.Context
 21875  	header_                               http.Header
 21876  }
 21877  
 21878  // Create: Creates a new job to inspect storage or calculate risk metrics. See
 21879  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 21880  // and
 21881  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 21882  // to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect
 21883  // jobs, the system will automatically choose what detectors to run. By default
 21884  // this may be all types, but may change over time as detectors are updated.
 21885  //
 21886  //   - parent: Parent resource name. The format of this value varies depending on
 21887  //     whether you have specified a processing location
 21888  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 21889  //   - Projects scope, location specified:
 21890  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 21891  //     location specified (defaults to global): `projects/`PROJECT_ID The
 21892  //     following example `parent` string specifies a parent project with the
 21893  //     identifier `example-project`, and specifies the `europe-west3` location
 21894  //     for processing data:
 21895  //     parent=projects/example-project/locations/europe-west3.
 21896  func (r *ProjectsLocationsDlpJobsService) Create(parentid string, googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest) *ProjectsLocationsDlpJobsCreateCall {
 21897  	c := &ProjectsLocationsDlpJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21898  	c.parentid = parentid
 21899  	c.googleprivacydlpv2createdlpjobrequest = googleprivacydlpv2createdlpjobrequest
 21900  	return c
 21901  }
 21902  
 21903  // Fields allows partial responses to be retrieved. See
 21904  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21905  // details.
 21906  func (c *ProjectsLocationsDlpJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsCreateCall {
 21907  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21908  	return c
 21909  }
 21910  
 21911  // Context sets the context to be used in this call's Do method.
 21912  func (c *ProjectsLocationsDlpJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsCreateCall {
 21913  	c.ctx_ = ctx
 21914  	return c
 21915  }
 21916  
 21917  // Header returns a http.Header that can be modified by the caller to add
 21918  // headers to the request.
 21919  func (c *ProjectsLocationsDlpJobsCreateCall) Header() http.Header {
 21920  	if c.header_ == nil {
 21921  		c.header_ = make(http.Header)
 21922  	}
 21923  	return c.header_
 21924  }
 21925  
 21926  func (c *ProjectsLocationsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error) {
 21927  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21928  	var body io.Reader = nil
 21929  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdlpjobrequest)
 21930  	if err != nil {
 21931  		return nil, err
 21932  	}
 21933  	c.urlParams_.Set("alt", alt)
 21934  	c.urlParams_.Set("prettyPrint", "false")
 21935  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
 21936  	urls += "?" + c.urlParams_.Encode()
 21937  	req, err := http.NewRequest("POST", urls, body)
 21938  	if err != nil {
 21939  		return nil, err
 21940  	}
 21941  	req.Header = reqHeaders
 21942  	googleapi.Expand(req.URL, map[string]string{
 21943  		"parent": c.parentid,
 21944  	})
 21945  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21946  }
 21947  
 21948  // Do executes the "dlp.projects.locations.dlpJobs.create" call.
 21949  // Any non-2xx status code is an error. Response headers are in either
 21950  // *GooglePrivacyDlpV2DlpJob.ServerResponse.Header or (if a response was
 21951  // returned at all) in error.(*googleapi.Error).Header. Use
 21952  // googleapi.IsNotModified to check whether the returned error was because
 21953  // http.StatusNotModified was returned.
 21954  func (c *ProjectsLocationsDlpJobsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
 21955  	gensupport.SetOptions(c.urlParams_, opts...)
 21956  	res, err := c.doRequest("json")
 21957  	if res != nil && res.StatusCode == http.StatusNotModified {
 21958  		if res.Body != nil {
 21959  			res.Body.Close()
 21960  		}
 21961  		return nil, gensupport.WrapError(&googleapi.Error{
 21962  			Code:   res.StatusCode,
 21963  			Header: res.Header,
 21964  		})
 21965  	}
 21966  	if err != nil {
 21967  		return nil, err
 21968  	}
 21969  	defer googleapi.CloseBody(res)
 21970  	if err := googleapi.CheckResponse(res); err != nil {
 21971  		return nil, gensupport.WrapError(err)
 21972  	}
 21973  	ret := &GooglePrivacyDlpV2DlpJob{
 21974  		ServerResponse: googleapi.ServerResponse{
 21975  			Header:         res.Header,
 21976  			HTTPStatusCode: res.StatusCode,
 21977  		},
 21978  	}
 21979  	target := &ret
 21980  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21981  		return nil, err
 21982  	}
 21983  	return ret, nil
 21984  }
 21985  
 21986  type ProjectsLocationsDlpJobsDeleteCall struct {
 21987  	s          *Service
 21988  	name       string
 21989  	urlParams_ gensupport.URLParams
 21990  	ctx_       context.Context
 21991  	header_    http.Header
 21992  }
 21993  
 21994  // Delete: Deletes a long-running DlpJob. This method indicates that the client
 21995  // is no longer interested in the DlpJob result. The job will be canceled if
 21996  // possible. See
 21997  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 21998  // and
 21999  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 22000  // to learn more.
 22001  //
 22002  // - name: The name of the DlpJob resource to be deleted.
 22003  func (r *ProjectsLocationsDlpJobsService) Delete(name string) *ProjectsLocationsDlpJobsDeleteCall {
 22004  	c := &ProjectsLocationsDlpJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22005  	c.name = name
 22006  	return c
 22007  }
 22008  
 22009  // Fields allows partial responses to be retrieved. See
 22010  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22011  // details.
 22012  func (c *ProjectsLocationsDlpJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsDeleteCall {
 22013  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22014  	return c
 22015  }
 22016  
 22017  // Context sets the context to be used in this call's Do method.
 22018  func (c *ProjectsLocationsDlpJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsDeleteCall {
 22019  	c.ctx_ = ctx
 22020  	return c
 22021  }
 22022  
 22023  // Header returns a http.Header that can be modified by the caller to add
 22024  // headers to the request.
 22025  func (c *ProjectsLocationsDlpJobsDeleteCall) Header() http.Header {
 22026  	if c.header_ == nil {
 22027  		c.header_ = make(http.Header)
 22028  	}
 22029  	return c.header_
 22030  }
 22031  
 22032  func (c *ProjectsLocationsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
 22033  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22034  	var body io.Reader = nil
 22035  	c.urlParams_.Set("alt", alt)
 22036  	c.urlParams_.Set("prettyPrint", "false")
 22037  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22038  	urls += "?" + c.urlParams_.Encode()
 22039  	req, err := http.NewRequest("DELETE", urls, body)
 22040  	if err != nil {
 22041  		return nil, err
 22042  	}
 22043  	req.Header = reqHeaders
 22044  	googleapi.Expand(req.URL, map[string]string{
 22045  		"name": c.name,
 22046  	})
 22047  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22048  }
 22049  
 22050  // Do executes the "dlp.projects.locations.dlpJobs.delete" call.
 22051  // Any non-2xx status code is an error. Response headers are in either
 22052  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22053  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22054  // check whether the returned error was because http.StatusNotModified was
 22055  // returned.
 22056  func (c *ProjectsLocationsDlpJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22057  	gensupport.SetOptions(c.urlParams_, opts...)
 22058  	res, err := c.doRequest("json")
 22059  	if res != nil && res.StatusCode == http.StatusNotModified {
 22060  		if res.Body != nil {
 22061  			res.Body.Close()
 22062  		}
 22063  		return nil, gensupport.WrapError(&googleapi.Error{
 22064  			Code:   res.StatusCode,
 22065  			Header: res.Header,
 22066  		})
 22067  	}
 22068  	if err != nil {
 22069  		return nil, err
 22070  	}
 22071  	defer googleapi.CloseBody(res)
 22072  	if err := googleapi.CheckResponse(res); err != nil {
 22073  		return nil, gensupport.WrapError(err)
 22074  	}
 22075  	ret := &GoogleProtobufEmpty{
 22076  		ServerResponse: googleapi.ServerResponse{
 22077  			Header:         res.Header,
 22078  			HTTPStatusCode: res.StatusCode,
 22079  		},
 22080  	}
 22081  	target := &ret
 22082  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22083  		return nil, err
 22084  	}
 22085  	return ret, nil
 22086  }
 22087  
 22088  type ProjectsLocationsDlpJobsFinishCall struct {
 22089  	s                                     *Service
 22090  	name                                  string
 22091  	googleprivacydlpv2finishdlpjobrequest *GooglePrivacyDlpV2FinishDlpJobRequest
 22092  	urlParams_                            gensupport.URLParams
 22093  	ctx_                                  context.Context
 22094  	header_                               http.Header
 22095  }
 22096  
 22097  // Finish: Finish a running hybrid DlpJob. Triggers the finalization steps and
 22098  // running of any enabled actions that have not yet run.
 22099  //
 22100  // - name: The name of the DlpJob resource to be finished.
 22101  func (r *ProjectsLocationsDlpJobsService) Finish(name string, googleprivacydlpv2finishdlpjobrequest *GooglePrivacyDlpV2FinishDlpJobRequest) *ProjectsLocationsDlpJobsFinishCall {
 22102  	c := &ProjectsLocationsDlpJobsFinishCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22103  	c.name = name
 22104  	c.googleprivacydlpv2finishdlpjobrequest = googleprivacydlpv2finishdlpjobrequest
 22105  	return c
 22106  }
 22107  
 22108  // Fields allows partial responses to be retrieved. See
 22109  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22110  // details.
 22111  func (c *ProjectsLocationsDlpJobsFinishCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsFinishCall {
 22112  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22113  	return c
 22114  }
 22115  
 22116  // Context sets the context to be used in this call's Do method.
 22117  func (c *ProjectsLocationsDlpJobsFinishCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsFinishCall {
 22118  	c.ctx_ = ctx
 22119  	return c
 22120  }
 22121  
 22122  // Header returns a http.Header that can be modified by the caller to add
 22123  // headers to the request.
 22124  func (c *ProjectsLocationsDlpJobsFinishCall) Header() http.Header {
 22125  	if c.header_ == nil {
 22126  		c.header_ = make(http.Header)
 22127  	}
 22128  	return c.header_
 22129  }
 22130  
 22131  func (c *ProjectsLocationsDlpJobsFinishCall) doRequest(alt string) (*http.Response, error) {
 22132  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22133  	var body io.Reader = nil
 22134  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2finishdlpjobrequest)
 22135  	if err != nil {
 22136  		return nil, err
 22137  	}
 22138  	c.urlParams_.Set("alt", alt)
 22139  	c.urlParams_.Set("prettyPrint", "false")
 22140  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:finish")
 22141  	urls += "?" + c.urlParams_.Encode()
 22142  	req, err := http.NewRequest("POST", urls, body)
 22143  	if err != nil {
 22144  		return nil, err
 22145  	}
 22146  	req.Header = reqHeaders
 22147  	googleapi.Expand(req.URL, map[string]string{
 22148  		"name": c.name,
 22149  	})
 22150  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22151  }
 22152  
 22153  // Do executes the "dlp.projects.locations.dlpJobs.finish" call.
 22154  // Any non-2xx status code is an error. Response headers are in either
 22155  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22156  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22157  // check whether the returned error was because http.StatusNotModified was
 22158  // returned.
 22159  func (c *ProjectsLocationsDlpJobsFinishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22160  	gensupport.SetOptions(c.urlParams_, opts...)
 22161  	res, err := c.doRequest("json")
 22162  	if res != nil && res.StatusCode == http.StatusNotModified {
 22163  		if res.Body != nil {
 22164  			res.Body.Close()
 22165  		}
 22166  		return nil, gensupport.WrapError(&googleapi.Error{
 22167  			Code:   res.StatusCode,
 22168  			Header: res.Header,
 22169  		})
 22170  	}
 22171  	if err != nil {
 22172  		return nil, err
 22173  	}
 22174  	defer googleapi.CloseBody(res)
 22175  	if err := googleapi.CheckResponse(res); err != nil {
 22176  		return nil, gensupport.WrapError(err)
 22177  	}
 22178  	ret := &GoogleProtobufEmpty{
 22179  		ServerResponse: googleapi.ServerResponse{
 22180  			Header:         res.Header,
 22181  			HTTPStatusCode: res.StatusCode,
 22182  		},
 22183  	}
 22184  	target := &ret
 22185  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22186  		return nil, err
 22187  	}
 22188  	return ret, nil
 22189  }
 22190  
 22191  type ProjectsLocationsDlpJobsGetCall struct {
 22192  	s            *Service
 22193  	name         string
 22194  	urlParams_   gensupport.URLParams
 22195  	ifNoneMatch_ string
 22196  	ctx_         context.Context
 22197  	header_      http.Header
 22198  }
 22199  
 22200  // Get: Gets the latest state of a long-running DlpJob. See
 22201  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 22202  // and
 22203  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 22204  // to learn more.
 22205  //
 22206  // - name: The name of the DlpJob resource.
 22207  func (r *ProjectsLocationsDlpJobsService) Get(name string) *ProjectsLocationsDlpJobsGetCall {
 22208  	c := &ProjectsLocationsDlpJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22209  	c.name = name
 22210  	return c
 22211  }
 22212  
 22213  // Fields allows partial responses to be retrieved. See
 22214  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22215  // details.
 22216  func (c *ProjectsLocationsDlpJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsGetCall {
 22217  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22218  	return c
 22219  }
 22220  
 22221  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22222  // object's ETag matches the given value. This is useful for getting updates
 22223  // only after the object has changed since the last request.
 22224  func (c *ProjectsLocationsDlpJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDlpJobsGetCall {
 22225  	c.ifNoneMatch_ = entityTag
 22226  	return c
 22227  }
 22228  
 22229  // Context sets the context to be used in this call's Do method.
 22230  func (c *ProjectsLocationsDlpJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsGetCall {
 22231  	c.ctx_ = ctx
 22232  	return c
 22233  }
 22234  
 22235  // Header returns a http.Header that can be modified by the caller to add
 22236  // headers to the request.
 22237  func (c *ProjectsLocationsDlpJobsGetCall) Header() http.Header {
 22238  	if c.header_ == nil {
 22239  		c.header_ = make(http.Header)
 22240  	}
 22241  	return c.header_
 22242  }
 22243  
 22244  func (c *ProjectsLocationsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) {
 22245  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22246  	if c.ifNoneMatch_ != "" {
 22247  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22248  	}
 22249  	var body io.Reader = nil
 22250  	c.urlParams_.Set("alt", alt)
 22251  	c.urlParams_.Set("prettyPrint", "false")
 22252  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22253  	urls += "?" + c.urlParams_.Encode()
 22254  	req, err := http.NewRequest("GET", urls, body)
 22255  	if err != nil {
 22256  		return nil, err
 22257  	}
 22258  	req.Header = reqHeaders
 22259  	googleapi.Expand(req.URL, map[string]string{
 22260  		"name": c.name,
 22261  	})
 22262  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22263  }
 22264  
 22265  // Do executes the "dlp.projects.locations.dlpJobs.get" call.
 22266  // Any non-2xx status code is an error. Response headers are in either
 22267  // *GooglePrivacyDlpV2DlpJob.ServerResponse.Header or (if a response was
 22268  // returned at all) in error.(*googleapi.Error).Header. Use
 22269  // googleapi.IsNotModified to check whether the returned error was because
 22270  // http.StatusNotModified was returned.
 22271  func (c *ProjectsLocationsDlpJobsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
 22272  	gensupport.SetOptions(c.urlParams_, opts...)
 22273  	res, err := c.doRequest("json")
 22274  	if res != nil && res.StatusCode == http.StatusNotModified {
 22275  		if res.Body != nil {
 22276  			res.Body.Close()
 22277  		}
 22278  		return nil, gensupport.WrapError(&googleapi.Error{
 22279  			Code:   res.StatusCode,
 22280  			Header: res.Header,
 22281  		})
 22282  	}
 22283  	if err != nil {
 22284  		return nil, err
 22285  	}
 22286  	defer googleapi.CloseBody(res)
 22287  	if err := googleapi.CheckResponse(res); err != nil {
 22288  		return nil, gensupport.WrapError(err)
 22289  	}
 22290  	ret := &GooglePrivacyDlpV2DlpJob{
 22291  		ServerResponse: googleapi.ServerResponse{
 22292  			Header:         res.Header,
 22293  			HTTPStatusCode: res.StatusCode,
 22294  		},
 22295  	}
 22296  	target := &ret
 22297  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22298  		return nil, err
 22299  	}
 22300  	return ret, nil
 22301  }
 22302  
 22303  type ProjectsLocationsDlpJobsHybridInspectCall struct {
 22304  	s                                            *Service
 22305  	name                                         string
 22306  	googleprivacydlpv2hybridinspectdlpjobrequest *GooglePrivacyDlpV2HybridInspectDlpJobRequest
 22307  	urlParams_                                   gensupport.URLParams
 22308  	ctx_                                         context.Context
 22309  	header_                                      http.Header
 22310  }
 22311  
 22312  // HybridInspect: Inspect hybrid content and store findings to a job. To review
 22313  // the findings, inspect the job. Inspection will occur asynchronously.
 22314  //
 22315  //   - name: Resource name of the job to execute a hybrid inspect on, for example
 22316  //     `projects/dlp-test-project/dlpJob/53234423`.
 22317  func (r *ProjectsLocationsDlpJobsService) HybridInspect(name string, googleprivacydlpv2hybridinspectdlpjobrequest *GooglePrivacyDlpV2HybridInspectDlpJobRequest) *ProjectsLocationsDlpJobsHybridInspectCall {
 22318  	c := &ProjectsLocationsDlpJobsHybridInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22319  	c.name = name
 22320  	c.googleprivacydlpv2hybridinspectdlpjobrequest = googleprivacydlpv2hybridinspectdlpjobrequest
 22321  	return c
 22322  }
 22323  
 22324  // Fields allows partial responses to be retrieved. See
 22325  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22326  // details.
 22327  func (c *ProjectsLocationsDlpJobsHybridInspectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsHybridInspectCall {
 22328  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22329  	return c
 22330  }
 22331  
 22332  // Context sets the context to be used in this call's Do method.
 22333  func (c *ProjectsLocationsDlpJobsHybridInspectCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsHybridInspectCall {
 22334  	c.ctx_ = ctx
 22335  	return c
 22336  }
 22337  
 22338  // Header returns a http.Header that can be modified by the caller to add
 22339  // headers to the request.
 22340  func (c *ProjectsLocationsDlpJobsHybridInspectCall) Header() http.Header {
 22341  	if c.header_ == nil {
 22342  		c.header_ = make(http.Header)
 22343  	}
 22344  	return c.header_
 22345  }
 22346  
 22347  func (c *ProjectsLocationsDlpJobsHybridInspectCall) doRequest(alt string) (*http.Response, error) {
 22348  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22349  	var body io.Reader = nil
 22350  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2hybridinspectdlpjobrequest)
 22351  	if err != nil {
 22352  		return nil, err
 22353  	}
 22354  	c.urlParams_.Set("alt", alt)
 22355  	c.urlParams_.Set("prettyPrint", "false")
 22356  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:hybridInspect")
 22357  	urls += "?" + c.urlParams_.Encode()
 22358  	req, err := http.NewRequest("POST", urls, body)
 22359  	if err != nil {
 22360  		return nil, err
 22361  	}
 22362  	req.Header = reqHeaders
 22363  	googleapi.Expand(req.URL, map[string]string{
 22364  		"name": c.name,
 22365  	})
 22366  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22367  }
 22368  
 22369  // Do executes the "dlp.projects.locations.dlpJobs.hybridInspect" call.
 22370  // Any non-2xx status code is an error. Response headers are in either
 22371  // *GooglePrivacyDlpV2HybridInspectResponse.ServerResponse.Header or (if a
 22372  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22373  // googleapi.IsNotModified to check whether the returned error was because
 22374  // http.StatusNotModified was returned.
 22375  func (c *ProjectsLocationsDlpJobsHybridInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2HybridInspectResponse, error) {
 22376  	gensupport.SetOptions(c.urlParams_, opts...)
 22377  	res, err := c.doRequest("json")
 22378  	if res != nil && res.StatusCode == http.StatusNotModified {
 22379  		if res.Body != nil {
 22380  			res.Body.Close()
 22381  		}
 22382  		return nil, gensupport.WrapError(&googleapi.Error{
 22383  			Code:   res.StatusCode,
 22384  			Header: res.Header,
 22385  		})
 22386  	}
 22387  	if err != nil {
 22388  		return nil, err
 22389  	}
 22390  	defer googleapi.CloseBody(res)
 22391  	if err := googleapi.CheckResponse(res); err != nil {
 22392  		return nil, gensupport.WrapError(err)
 22393  	}
 22394  	ret := &GooglePrivacyDlpV2HybridInspectResponse{
 22395  		ServerResponse: googleapi.ServerResponse{
 22396  			Header:         res.Header,
 22397  			HTTPStatusCode: res.StatusCode,
 22398  		},
 22399  	}
 22400  	target := &ret
 22401  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22402  		return nil, err
 22403  	}
 22404  	return ret, nil
 22405  }
 22406  
 22407  type ProjectsLocationsDlpJobsListCall struct {
 22408  	s            *Service
 22409  	parentid     string
 22410  	urlParams_   gensupport.URLParams
 22411  	ifNoneMatch_ string
 22412  	ctx_         context.Context
 22413  	header_      http.Header
 22414  }
 22415  
 22416  // List: Lists DlpJobs that match the specified filter in the request. See
 22417  // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
 22418  // and
 22419  // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
 22420  // to learn more.
 22421  //
 22422  //   - parent: Parent resource name. The format of this value varies depending on
 22423  //     whether you have specified a processing location
 22424  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 22425  //   - Projects scope, location specified:
 22426  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 22427  //     location specified (defaults to global): `projects/`PROJECT_ID The
 22428  //     following example `parent` string specifies a parent project with the
 22429  //     identifier `example-project`, and specifies the `europe-west3` location
 22430  //     for processing data:
 22431  //     parent=projects/example-project/locations/europe-west3.
 22432  func (r *ProjectsLocationsDlpJobsService) List(parentid string) *ProjectsLocationsDlpJobsListCall {
 22433  	c := &ProjectsLocationsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22434  	c.parentid = parentid
 22435  	return c
 22436  }
 22437  
 22438  // Filter sets the optional parameter "filter": Allows filtering. Supported
 22439  // syntax: * Filter expressions are made up of one or more restrictions. *
 22440  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 22441  // of restrictions implicitly uses `AND`. * A restriction has the form of
 22442  // `{field} {operator} {value}`. * Supported fields/values for inspect jobs: -
 22443  // `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` -
 22444  // DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The name of the trigger
 22445  // that created the job. - 'end_time` - Corresponds to the time the job
 22446  // finished. - 'start_time` - Corresponds to the time the job finished. *
 22447  // Supported fields for risk analysis jobs: - `state` -
 22448  // RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to the time the
 22449  // job finished. - 'start_time` - Corresponds to the time the job finished. *
 22450  // The operator must be `=` or `!=`. Examples: * inspected_storage =
 22451  // cloud_storage AND state = done * inspected_storage = cloud_storage OR
 22452  // inspected_storage = bigquery * inspected_storage = cloud_storage AND (state
 22453  // = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The
 22454  // length of this field should be no more than 500 characters.
 22455  func (c *ProjectsLocationsDlpJobsListCall) Filter(filter string) *ProjectsLocationsDlpJobsListCall {
 22456  	c.urlParams_.Set("filter", filter)
 22457  	return c
 22458  }
 22459  
 22460  // LocationId sets the optional parameter "locationId": Deprecated. This field
 22461  // has no effect.
 22462  func (c *ProjectsLocationsDlpJobsListCall) LocationId(locationId string) *ProjectsLocationsDlpJobsListCall {
 22463  	c.urlParams_.Set("locationId", locationId)
 22464  	return c
 22465  }
 22466  
 22467  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 22468  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 22469  // insensitive. The default sorting order is ascending. Redundant space
 22470  // characters are insignificant. Example: `name asc, end_time asc, create_time
 22471  // desc` Supported fields are: - `create_time`: corresponds to the time the job
 22472  // was created. - `end_time`: corresponds to the time the job ended. - `name`:
 22473  // corresponds to the job's name. - `state`: corresponds to `state`
 22474  func (c *ProjectsLocationsDlpJobsListCall) OrderBy(orderBy string) *ProjectsLocationsDlpJobsListCall {
 22475  	c.urlParams_.Set("orderBy", orderBy)
 22476  	return c
 22477  }
 22478  
 22479  // PageSize sets the optional parameter "pageSize": The standard list page
 22480  // size.
 22481  func (c *ProjectsLocationsDlpJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDlpJobsListCall {
 22482  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22483  	return c
 22484  }
 22485  
 22486  // PageToken sets the optional parameter "pageToken": The standard list page
 22487  // token.
 22488  func (c *ProjectsLocationsDlpJobsListCall) PageToken(pageToken string) *ProjectsLocationsDlpJobsListCall {
 22489  	c.urlParams_.Set("pageToken", pageToken)
 22490  	return c
 22491  }
 22492  
 22493  // Type sets the optional parameter "type": The type of job. Defaults to
 22494  // `DlpJobType.INSPECT`
 22495  //
 22496  // Possible values:
 22497  //
 22498  //	"DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
 22499  //	"INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
 22500  //	"RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
 22501  func (c *ProjectsLocationsDlpJobsListCall) Type(type_ string) *ProjectsLocationsDlpJobsListCall {
 22502  	c.urlParams_.Set("type", type_)
 22503  	return c
 22504  }
 22505  
 22506  // Fields allows partial responses to be retrieved. See
 22507  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22508  // details.
 22509  func (c *ProjectsLocationsDlpJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsListCall {
 22510  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22511  	return c
 22512  }
 22513  
 22514  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22515  // object's ETag matches the given value. This is useful for getting updates
 22516  // only after the object has changed since the last request.
 22517  func (c *ProjectsLocationsDlpJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDlpJobsListCall {
 22518  	c.ifNoneMatch_ = entityTag
 22519  	return c
 22520  }
 22521  
 22522  // Context sets the context to be used in this call's Do method.
 22523  func (c *ProjectsLocationsDlpJobsListCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsListCall {
 22524  	c.ctx_ = ctx
 22525  	return c
 22526  }
 22527  
 22528  // Header returns a http.Header that can be modified by the caller to add
 22529  // headers to the request.
 22530  func (c *ProjectsLocationsDlpJobsListCall) Header() http.Header {
 22531  	if c.header_ == nil {
 22532  		c.header_ = make(http.Header)
 22533  	}
 22534  	return c.header_
 22535  }
 22536  
 22537  func (c *ProjectsLocationsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
 22538  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22539  	if c.ifNoneMatch_ != "" {
 22540  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22541  	}
 22542  	var body io.Reader = nil
 22543  	c.urlParams_.Set("alt", alt)
 22544  	c.urlParams_.Set("prettyPrint", "false")
 22545  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
 22546  	urls += "?" + c.urlParams_.Encode()
 22547  	req, err := http.NewRequest("GET", urls, body)
 22548  	if err != nil {
 22549  		return nil, err
 22550  	}
 22551  	req.Header = reqHeaders
 22552  	googleapi.Expand(req.URL, map[string]string{
 22553  		"parent": c.parentid,
 22554  	})
 22555  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22556  }
 22557  
 22558  // Do executes the "dlp.projects.locations.dlpJobs.list" call.
 22559  // Any non-2xx status code is an error. Response headers are in either
 22560  // *GooglePrivacyDlpV2ListDlpJobsResponse.ServerResponse.Header or (if a
 22561  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22562  // googleapi.IsNotModified to check whether the returned error was because
 22563  // http.StatusNotModified was returned.
 22564  func (c *ProjectsLocationsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDlpJobsResponse, error) {
 22565  	gensupport.SetOptions(c.urlParams_, opts...)
 22566  	res, err := c.doRequest("json")
 22567  	if res != nil && res.StatusCode == http.StatusNotModified {
 22568  		if res.Body != nil {
 22569  			res.Body.Close()
 22570  		}
 22571  		return nil, gensupport.WrapError(&googleapi.Error{
 22572  			Code:   res.StatusCode,
 22573  			Header: res.Header,
 22574  		})
 22575  	}
 22576  	if err != nil {
 22577  		return nil, err
 22578  	}
 22579  	defer googleapi.CloseBody(res)
 22580  	if err := googleapi.CheckResponse(res); err != nil {
 22581  		return nil, gensupport.WrapError(err)
 22582  	}
 22583  	ret := &GooglePrivacyDlpV2ListDlpJobsResponse{
 22584  		ServerResponse: googleapi.ServerResponse{
 22585  			Header:         res.Header,
 22586  			HTTPStatusCode: res.StatusCode,
 22587  		},
 22588  	}
 22589  	target := &ret
 22590  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22591  		return nil, err
 22592  	}
 22593  	return ret, nil
 22594  }
 22595  
 22596  // Pages invokes f for each page of results.
 22597  // A non-nil error returned from f will halt the iteration.
 22598  // The provided context supersedes any context provided to the Context method.
 22599  func (c *ProjectsLocationsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDlpJobsResponse) error) error {
 22600  	c.ctx_ = ctx
 22601  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22602  	for {
 22603  		x, err := c.Do()
 22604  		if err != nil {
 22605  			return err
 22606  		}
 22607  		if err := f(x); err != nil {
 22608  			return err
 22609  		}
 22610  		if x.NextPageToken == "" {
 22611  			return nil
 22612  		}
 22613  		c.PageToken(x.NextPageToken)
 22614  	}
 22615  }
 22616  
 22617  type ProjectsLocationsImageRedactCall struct {
 22618  	s                                    *Service
 22619  	parentid                             string
 22620  	googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest
 22621  	urlParams_                           gensupport.URLParams
 22622  	ctx_                                 context.Context
 22623  	header_                              http.Header
 22624  }
 22625  
 22626  // Redact: Redacts potentially sensitive info from an image. This method has
 22627  // limits on input size, processing time, and output size. See
 22628  // https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
 22629  // to learn more. When no InfoTypes or CustomInfoTypes are specified in this
 22630  // request, the system will automatically choose what detectors to run. By
 22631  // default this may be all types, but may change over time as detectors are
 22632  // updated.
 22633  //
 22634  //   - parent: Parent resource name. The format of this value varies depending on
 22635  //     whether you have specified a processing location
 22636  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 22637  //   - Projects scope, location specified:
 22638  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 22639  //     location specified (defaults to global): `projects/`PROJECT_ID The
 22640  //     following example `parent` string specifies a parent project with the
 22641  //     identifier `example-project`, and specifies the `europe-west3` location
 22642  //     for processing data:
 22643  //     parent=projects/example-project/locations/europe-west3.
 22644  func (r *ProjectsLocationsImageService) Redact(parentid string, googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest) *ProjectsLocationsImageRedactCall {
 22645  	c := &ProjectsLocationsImageRedactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22646  	c.parentid = parentid
 22647  	c.googleprivacydlpv2redactimagerequest = googleprivacydlpv2redactimagerequest
 22648  	return c
 22649  }
 22650  
 22651  // Fields allows partial responses to be retrieved. See
 22652  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22653  // details.
 22654  func (c *ProjectsLocationsImageRedactCall) Fields(s ...googleapi.Field) *ProjectsLocationsImageRedactCall {
 22655  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22656  	return c
 22657  }
 22658  
 22659  // Context sets the context to be used in this call's Do method.
 22660  func (c *ProjectsLocationsImageRedactCall) Context(ctx context.Context) *ProjectsLocationsImageRedactCall {
 22661  	c.ctx_ = ctx
 22662  	return c
 22663  }
 22664  
 22665  // Header returns a http.Header that can be modified by the caller to add
 22666  // headers to the request.
 22667  func (c *ProjectsLocationsImageRedactCall) Header() http.Header {
 22668  	if c.header_ == nil {
 22669  		c.header_ = make(http.Header)
 22670  	}
 22671  	return c.header_
 22672  }
 22673  
 22674  func (c *ProjectsLocationsImageRedactCall) doRequest(alt string) (*http.Response, error) {
 22675  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22676  	var body io.Reader = nil
 22677  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2redactimagerequest)
 22678  	if err != nil {
 22679  		return nil, err
 22680  	}
 22681  	c.urlParams_.Set("alt", alt)
 22682  	c.urlParams_.Set("prettyPrint", "false")
 22683  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/image:redact")
 22684  	urls += "?" + c.urlParams_.Encode()
 22685  	req, err := http.NewRequest("POST", urls, body)
 22686  	if err != nil {
 22687  		return nil, err
 22688  	}
 22689  	req.Header = reqHeaders
 22690  	googleapi.Expand(req.URL, map[string]string{
 22691  		"parent": c.parentid,
 22692  	})
 22693  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22694  }
 22695  
 22696  // Do executes the "dlp.projects.locations.image.redact" call.
 22697  // Any non-2xx status code is an error. Response headers are in either
 22698  // *GooglePrivacyDlpV2RedactImageResponse.ServerResponse.Header or (if a
 22699  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22700  // googleapi.IsNotModified to check whether the returned error was because
 22701  // http.StatusNotModified was returned.
 22702  func (c *ProjectsLocationsImageRedactCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2RedactImageResponse, error) {
 22703  	gensupport.SetOptions(c.urlParams_, opts...)
 22704  	res, err := c.doRequest("json")
 22705  	if res != nil && res.StatusCode == http.StatusNotModified {
 22706  		if res.Body != nil {
 22707  			res.Body.Close()
 22708  		}
 22709  		return nil, gensupport.WrapError(&googleapi.Error{
 22710  			Code:   res.StatusCode,
 22711  			Header: res.Header,
 22712  		})
 22713  	}
 22714  	if err != nil {
 22715  		return nil, err
 22716  	}
 22717  	defer googleapi.CloseBody(res)
 22718  	if err := googleapi.CheckResponse(res); err != nil {
 22719  		return nil, gensupport.WrapError(err)
 22720  	}
 22721  	ret := &GooglePrivacyDlpV2RedactImageResponse{
 22722  		ServerResponse: googleapi.ServerResponse{
 22723  			Header:         res.Header,
 22724  			HTTPStatusCode: res.StatusCode,
 22725  		},
 22726  	}
 22727  	target := &ret
 22728  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22729  		return nil, err
 22730  	}
 22731  	return ret, nil
 22732  }
 22733  
 22734  type ProjectsLocationsInspectTemplatesCreateCall struct {
 22735  	s                                              *Service
 22736  	parentid                                       string
 22737  	googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
 22738  	urlParams_                                     gensupport.URLParams
 22739  	ctx_                                           context.Context
 22740  	header_                                        http.Header
 22741  }
 22742  
 22743  // Create: Creates an InspectTemplate for reusing frequently used configuration
 22744  // for inspecting content, images, and storage. See
 22745  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 22746  // to learn more.
 22747  //
 22748  //   - parent: Parent resource name. The format of this value varies depending on
 22749  //     the scope of the request (project or organization) and whether you have
 22750  //     specified a processing location
 22751  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 22752  //   - Projects scope, location specified:
 22753  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 22754  //     location specified (defaults to global): `projects/`PROJECT_ID +
 22755  //     Organizations scope, location specified:
 22756  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 22757  //     location specified (defaults to global): `organizations/`ORG_ID The
 22758  //     following example `parent` string specifies a parent project with the
 22759  //     identifier `example-project`, and specifies the `europe-west3` location
 22760  //     for processing data:
 22761  //     parent=projects/example-project/locations/europe-west3.
 22762  func (r *ProjectsLocationsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *ProjectsLocationsInspectTemplatesCreateCall {
 22763  	c := &ProjectsLocationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22764  	c.parentid = parentid
 22765  	c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
 22766  	return c
 22767  }
 22768  
 22769  // Fields allows partial responses to be retrieved. See
 22770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22771  // details.
 22772  func (c *ProjectsLocationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesCreateCall {
 22773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22774  	return c
 22775  }
 22776  
 22777  // Context sets the context to be used in this call's Do method.
 22778  func (c *ProjectsLocationsInspectTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesCreateCall {
 22779  	c.ctx_ = ctx
 22780  	return c
 22781  }
 22782  
 22783  // Header returns a http.Header that can be modified by the caller to add
 22784  // headers to the request.
 22785  func (c *ProjectsLocationsInspectTemplatesCreateCall) Header() http.Header {
 22786  	if c.header_ == nil {
 22787  		c.header_ = make(http.Header)
 22788  	}
 22789  	return c.header_
 22790  }
 22791  
 22792  func (c *ProjectsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
 22793  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22794  	var body io.Reader = nil
 22795  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
 22796  	if err != nil {
 22797  		return nil, err
 22798  	}
 22799  	c.urlParams_.Set("alt", alt)
 22800  	c.urlParams_.Set("prettyPrint", "false")
 22801  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 22802  	urls += "?" + c.urlParams_.Encode()
 22803  	req, err := http.NewRequest("POST", urls, body)
 22804  	if err != nil {
 22805  		return nil, err
 22806  	}
 22807  	req.Header = reqHeaders
 22808  	googleapi.Expand(req.URL, map[string]string{
 22809  		"parent": c.parentid,
 22810  	})
 22811  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22812  }
 22813  
 22814  // Do executes the "dlp.projects.locations.inspectTemplates.create" call.
 22815  // Any non-2xx status code is an error. Response headers are in either
 22816  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 22817  // was returned at all) in error.(*googleapi.Error).Header. Use
 22818  // googleapi.IsNotModified to check whether the returned error was because
 22819  // http.StatusNotModified was returned.
 22820  func (c *ProjectsLocationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 22821  	gensupport.SetOptions(c.urlParams_, opts...)
 22822  	res, err := c.doRequest("json")
 22823  	if res != nil && res.StatusCode == http.StatusNotModified {
 22824  		if res.Body != nil {
 22825  			res.Body.Close()
 22826  		}
 22827  		return nil, gensupport.WrapError(&googleapi.Error{
 22828  			Code:   res.StatusCode,
 22829  			Header: res.Header,
 22830  		})
 22831  	}
 22832  	if err != nil {
 22833  		return nil, err
 22834  	}
 22835  	defer googleapi.CloseBody(res)
 22836  	if err := googleapi.CheckResponse(res); err != nil {
 22837  		return nil, gensupport.WrapError(err)
 22838  	}
 22839  	ret := &GooglePrivacyDlpV2InspectTemplate{
 22840  		ServerResponse: googleapi.ServerResponse{
 22841  			Header:         res.Header,
 22842  			HTTPStatusCode: res.StatusCode,
 22843  		},
 22844  	}
 22845  	target := &ret
 22846  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22847  		return nil, err
 22848  	}
 22849  	return ret, nil
 22850  }
 22851  
 22852  type ProjectsLocationsInspectTemplatesDeleteCall struct {
 22853  	s          *Service
 22854  	name       string
 22855  	urlParams_ gensupport.URLParams
 22856  	ctx_       context.Context
 22857  	header_    http.Header
 22858  }
 22859  
 22860  // Delete: Deletes an InspectTemplate. See
 22861  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 22862  // to learn more.
 22863  //
 22864  //   - name: Resource name of the organization and inspectTemplate to be deleted,
 22865  //     for example `organizations/433245324/inspectTemplates/432452342` or
 22866  //     projects/project-id/inspectTemplates/432452342.
 22867  func (r *ProjectsLocationsInspectTemplatesService) Delete(name string) *ProjectsLocationsInspectTemplatesDeleteCall {
 22868  	c := &ProjectsLocationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22869  	c.name = name
 22870  	return c
 22871  }
 22872  
 22873  // Fields allows partial responses to be retrieved. See
 22874  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22875  // details.
 22876  func (c *ProjectsLocationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesDeleteCall {
 22877  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22878  	return c
 22879  }
 22880  
 22881  // Context sets the context to be used in this call's Do method.
 22882  func (c *ProjectsLocationsInspectTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesDeleteCall {
 22883  	c.ctx_ = ctx
 22884  	return c
 22885  }
 22886  
 22887  // Header returns a http.Header that can be modified by the caller to add
 22888  // headers to the request.
 22889  func (c *ProjectsLocationsInspectTemplatesDeleteCall) Header() http.Header {
 22890  	if c.header_ == nil {
 22891  		c.header_ = make(http.Header)
 22892  	}
 22893  	return c.header_
 22894  }
 22895  
 22896  func (c *ProjectsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
 22897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22898  	var body io.Reader = nil
 22899  	c.urlParams_.Set("alt", alt)
 22900  	c.urlParams_.Set("prettyPrint", "false")
 22901  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 22902  	urls += "?" + c.urlParams_.Encode()
 22903  	req, err := http.NewRequest("DELETE", urls, body)
 22904  	if err != nil {
 22905  		return nil, err
 22906  	}
 22907  	req.Header = reqHeaders
 22908  	googleapi.Expand(req.URL, map[string]string{
 22909  		"name": c.name,
 22910  	})
 22911  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22912  }
 22913  
 22914  // Do executes the "dlp.projects.locations.inspectTemplates.delete" call.
 22915  // Any non-2xx status code is an error. Response headers are in either
 22916  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 22917  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22918  // check whether the returned error was because http.StatusNotModified was
 22919  // returned.
 22920  func (c *ProjectsLocationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 22921  	gensupport.SetOptions(c.urlParams_, opts...)
 22922  	res, err := c.doRequest("json")
 22923  	if res != nil && res.StatusCode == http.StatusNotModified {
 22924  		if res.Body != nil {
 22925  			res.Body.Close()
 22926  		}
 22927  		return nil, gensupport.WrapError(&googleapi.Error{
 22928  			Code:   res.StatusCode,
 22929  			Header: res.Header,
 22930  		})
 22931  	}
 22932  	if err != nil {
 22933  		return nil, err
 22934  	}
 22935  	defer googleapi.CloseBody(res)
 22936  	if err := googleapi.CheckResponse(res); err != nil {
 22937  		return nil, gensupport.WrapError(err)
 22938  	}
 22939  	ret := &GoogleProtobufEmpty{
 22940  		ServerResponse: googleapi.ServerResponse{
 22941  			Header:         res.Header,
 22942  			HTTPStatusCode: res.StatusCode,
 22943  		},
 22944  	}
 22945  	target := &ret
 22946  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22947  		return nil, err
 22948  	}
 22949  	return ret, nil
 22950  }
 22951  
 22952  type ProjectsLocationsInspectTemplatesGetCall struct {
 22953  	s            *Service
 22954  	name         string
 22955  	urlParams_   gensupport.URLParams
 22956  	ifNoneMatch_ string
 22957  	ctx_         context.Context
 22958  	header_      http.Header
 22959  }
 22960  
 22961  // Get: Gets an InspectTemplate. See
 22962  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 22963  // to learn more.
 22964  //
 22965  //   - name: Resource name of the organization and inspectTemplate to be read,
 22966  //     for example `organizations/433245324/inspectTemplates/432452342` or
 22967  //     projects/project-id/inspectTemplates/432452342.
 22968  func (r *ProjectsLocationsInspectTemplatesService) Get(name string) *ProjectsLocationsInspectTemplatesGetCall {
 22969  	c := &ProjectsLocationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22970  	c.name = name
 22971  	return c
 22972  }
 22973  
 22974  // Fields allows partial responses to be retrieved. See
 22975  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22976  // details.
 22977  func (c *ProjectsLocationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesGetCall {
 22978  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22979  	return c
 22980  }
 22981  
 22982  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22983  // object's ETag matches the given value. This is useful for getting updates
 22984  // only after the object has changed since the last request.
 22985  func (c *ProjectsLocationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInspectTemplatesGetCall {
 22986  	c.ifNoneMatch_ = entityTag
 22987  	return c
 22988  }
 22989  
 22990  // Context sets the context to be used in this call's Do method.
 22991  func (c *ProjectsLocationsInspectTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesGetCall {
 22992  	c.ctx_ = ctx
 22993  	return c
 22994  }
 22995  
 22996  // Header returns a http.Header that can be modified by the caller to add
 22997  // headers to the request.
 22998  func (c *ProjectsLocationsInspectTemplatesGetCall) Header() http.Header {
 22999  	if c.header_ == nil {
 23000  		c.header_ = make(http.Header)
 23001  	}
 23002  	return c.header_
 23003  }
 23004  
 23005  func (c *ProjectsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
 23006  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23007  	if c.ifNoneMatch_ != "" {
 23008  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23009  	}
 23010  	var body io.Reader = nil
 23011  	c.urlParams_.Set("alt", alt)
 23012  	c.urlParams_.Set("prettyPrint", "false")
 23013  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23014  	urls += "?" + c.urlParams_.Encode()
 23015  	req, err := http.NewRequest("GET", urls, body)
 23016  	if err != nil {
 23017  		return nil, err
 23018  	}
 23019  	req.Header = reqHeaders
 23020  	googleapi.Expand(req.URL, map[string]string{
 23021  		"name": c.name,
 23022  	})
 23023  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23024  }
 23025  
 23026  // Do executes the "dlp.projects.locations.inspectTemplates.get" call.
 23027  // Any non-2xx status code is an error. Response headers are in either
 23028  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 23029  // was returned at all) in error.(*googleapi.Error).Header. Use
 23030  // googleapi.IsNotModified to check whether the returned error was because
 23031  // http.StatusNotModified was returned.
 23032  func (c *ProjectsLocationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 23033  	gensupport.SetOptions(c.urlParams_, opts...)
 23034  	res, err := c.doRequest("json")
 23035  	if res != nil && res.StatusCode == http.StatusNotModified {
 23036  		if res.Body != nil {
 23037  			res.Body.Close()
 23038  		}
 23039  		return nil, gensupport.WrapError(&googleapi.Error{
 23040  			Code:   res.StatusCode,
 23041  			Header: res.Header,
 23042  		})
 23043  	}
 23044  	if err != nil {
 23045  		return nil, err
 23046  	}
 23047  	defer googleapi.CloseBody(res)
 23048  	if err := googleapi.CheckResponse(res); err != nil {
 23049  		return nil, gensupport.WrapError(err)
 23050  	}
 23051  	ret := &GooglePrivacyDlpV2InspectTemplate{
 23052  		ServerResponse: googleapi.ServerResponse{
 23053  			Header:         res.Header,
 23054  			HTTPStatusCode: res.StatusCode,
 23055  		},
 23056  	}
 23057  	target := &ret
 23058  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23059  		return nil, err
 23060  	}
 23061  	return ret, nil
 23062  }
 23063  
 23064  type ProjectsLocationsInspectTemplatesListCall struct {
 23065  	s            *Service
 23066  	parentid     string
 23067  	urlParams_   gensupport.URLParams
 23068  	ifNoneMatch_ string
 23069  	ctx_         context.Context
 23070  	header_      http.Header
 23071  }
 23072  
 23073  // List: Lists InspectTemplates. See
 23074  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 23075  // to learn more.
 23076  //
 23077  //   - parent: Parent resource name. The format of this value varies depending on
 23078  //     the scope of the request (project or organization) and whether you have
 23079  //     specified a processing location
 23080  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 23081  //   - Projects scope, location specified:
 23082  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 23083  //     location specified (defaults to global): `projects/`PROJECT_ID +
 23084  //     Organizations scope, location specified:
 23085  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 23086  //     location specified (defaults to global): `organizations/`ORG_ID The
 23087  //     following example `parent` string specifies a parent project with the
 23088  //     identifier `example-project`, and specifies the `europe-west3` location
 23089  //     for processing data:
 23090  //     parent=projects/example-project/locations/europe-west3.
 23091  func (r *ProjectsLocationsInspectTemplatesService) List(parentid string) *ProjectsLocationsInspectTemplatesListCall {
 23092  	c := &ProjectsLocationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23093  	c.parentid = parentid
 23094  	return c
 23095  }
 23096  
 23097  // LocationId sets the optional parameter "locationId": Deprecated. This field
 23098  // has no effect.
 23099  func (c *ProjectsLocationsInspectTemplatesListCall) LocationId(locationId string) *ProjectsLocationsInspectTemplatesListCall {
 23100  	c.urlParams_.Set("locationId", locationId)
 23101  	return c
 23102  }
 23103  
 23104  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 23105  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 23106  // insensitive. The default sorting order is ascending. Redundant space
 23107  // characters are insignificant. Example: `name asc,update_time, create_time
 23108  // desc` Supported fields are: - `create_time`: corresponds to the time the
 23109  // template was created. - `update_time`: corresponds to the time the template
 23110  // was last updated. - `name`: corresponds to the template's name. -
 23111  // `display_name`: corresponds to the template's display name.
 23112  func (c *ProjectsLocationsInspectTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsInspectTemplatesListCall {
 23113  	c.urlParams_.Set("orderBy", orderBy)
 23114  	return c
 23115  }
 23116  
 23117  // PageSize sets the optional parameter "pageSize": Size of the page. This
 23118  // value can be limited by the server. If zero server returns a page of max
 23119  // size 100.
 23120  func (c *ProjectsLocationsInspectTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsInspectTemplatesListCall {
 23121  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23122  	return c
 23123  }
 23124  
 23125  // PageToken sets the optional parameter "pageToken": Page token to continue
 23126  // retrieval. Comes from the previous call to `ListInspectTemplates`.
 23127  func (c *ProjectsLocationsInspectTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsInspectTemplatesListCall {
 23128  	c.urlParams_.Set("pageToken", pageToken)
 23129  	return c
 23130  }
 23131  
 23132  // Fields allows partial responses to be retrieved. See
 23133  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23134  // details.
 23135  func (c *ProjectsLocationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesListCall {
 23136  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23137  	return c
 23138  }
 23139  
 23140  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23141  // object's ETag matches the given value. This is useful for getting updates
 23142  // only after the object has changed since the last request.
 23143  func (c *ProjectsLocationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInspectTemplatesListCall {
 23144  	c.ifNoneMatch_ = entityTag
 23145  	return c
 23146  }
 23147  
 23148  // Context sets the context to be used in this call's Do method.
 23149  func (c *ProjectsLocationsInspectTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesListCall {
 23150  	c.ctx_ = ctx
 23151  	return c
 23152  }
 23153  
 23154  // Header returns a http.Header that can be modified by the caller to add
 23155  // headers to the request.
 23156  func (c *ProjectsLocationsInspectTemplatesListCall) Header() http.Header {
 23157  	if c.header_ == nil {
 23158  		c.header_ = make(http.Header)
 23159  	}
 23160  	return c.header_
 23161  }
 23162  
 23163  func (c *ProjectsLocationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
 23164  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23165  	if c.ifNoneMatch_ != "" {
 23166  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23167  	}
 23168  	var body io.Reader = nil
 23169  	c.urlParams_.Set("alt", alt)
 23170  	c.urlParams_.Set("prettyPrint", "false")
 23171  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
 23172  	urls += "?" + c.urlParams_.Encode()
 23173  	req, err := http.NewRequest("GET", urls, body)
 23174  	if err != nil {
 23175  		return nil, err
 23176  	}
 23177  	req.Header = reqHeaders
 23178  	googleapi.Expand(req.URL, map[string]string{
 23179  		"parent": c.parentid,
 23180  	})
 23181  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23182  }
 23183  
 23184  // Do executes the "dlp.projects.locations.inspectTemplates.list" call.
 23185  // Any non-2xx status code is an error. Response headers are in either
 23186  // *GooglePrivacyDlpV2ListInspectTemplatesResponse.ServerResponse.Header or (if
 23187  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23188  // googleapi.IsNotModified to check whether the returned error was because
 23189  // http.StatusNotModified was returned.
 23190  func (c *ProjectsLocationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
 23191  	gensupport.SetOptions(c.urlParams_, opts...)
 23192  	res, err := c.doRequest("json")
 23193  	if res != nil && res.StatusCode == http.StatusNotModified {
 23194  		if res.Body != nil {
 23195  			res.Body.Close()
 23196  		}
 23197  		return nil, gensupport.WrapError(&googleapi.Error{
 23198  			Code:   res.StatusCode,
 23199  			Header: res.Header,
 23200  		})
 23201  	}
 23202  	if err != nil {
 23203  		return nil, err
 23204  	}
 23205  	defer googleapi.CloseBody(res)
 23206  	if err := googleapi.CheckResponse(res); err != nil {
 23207  		return nil, gensupport.WrapError(err)
 23208  	}
 23209  	ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
 23210  		ServerResponse: googleapi.ServerResponse{
 23211  			Header:         res.Header,
 23212  			HTTPStatusCode: res.StatusCode,
 23213  		},
 23214  	}
 23215  	target := &ret
 23216  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23217  		return nil, err
 23218  	}
 23219  	return ret, nil
 23220  }
 23221  
 23222  // Pages invokes f for each page of results.
 23223  // A non-nil error returned from f will halt the iteration.
 23224  // The provided context supersedes any context provided to the Context method.
 23225  func (c *ProjectsLocationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
 23226  	c.ctx_ = ctx
 23227  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23228  	for {
 23229  		x, err := c.Do()
 23230  		if err != nil {
 23231  			return err
 23232  		}
 23233  		if err := f(x); err != nil {
 23234  			return err
 23235  		}
 23236  		if x.NextPageToken == "" {
 23237  			return nil
 23238  		}
 23239  		c.PageToken(x.NextPageToken)
 23240  	}
 23241  }
 23242  
 23243  type ProjectsLocationsInspectTemplatesPatchCall struct {
 23244  	s                                              *Service
 23245  	name                                           string
 23246  	googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
 23247  	urlParams_                                     gensupport.URLParams
 23248  	ctx_                                           context.Context
 23249  	header_                                        http.Header
 23250  }
 23251  
 23252  // Patch: Updates the InspectTemplate. See
 23253  // https://cloud.google.com/sensitive-data-protection/docs/creating-templates
 23254  // to learn more.
 23255  //
 23256  //   - name: Resource name of organization and inspectTemplate to be updated, for
 23257  //     example `organizations/433245324/inspectTemplates/432452342` or
 23258  //     projects/project-id/inspectTemplates/432452342.
 23259  func (r *ProjectsLocationsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *ProjectsLocationsInspectTemplatesPatchCall {
 23260  	c := &ProjectsLocationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23261  	c.name = name
 23262  	c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
 23263  	return c
 23264  }
 23265  
 23266  // Fields allows partial responses to be retrieved. See
 23267  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23268  // details.
 23269  func (c *ProjectsLocationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesPatchCall {
 23270  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23271  	return c
 23272  }
 23273  
 23274  // Context sets the context to be used in this call's Do method.
 23275  func (c *ProjectsLocationsInspectTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesPatchCall {
 23276  	c.ctx_ = ctx
 23277  	return c
 23278  }
 23279  
 23280  // Header returns a http.Header that can be modified by the caller to add
 23281  // headers to the request.
 23282  func (c *ProjectsLocationsInspectTemplatesPatchCall) Header() http.Header {
 23283  	if c.header_ == nil {
 23284  		c.header_ = make(http.Header)
 23285  	}
 23286  	return c.header_
 23287  }
 23288  
 23289  func (c *ProjectsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
 23290  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23291  	var body io.Reader = nil
 23292  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
 23293  	if err != nil {
 23294  		return nil, err
 23295  	}
 23296  	c.urlParams_.Set("alt", alt)
 23297  	c.urlParams_.Set("prettyPrint", "false")
 23298  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23299  	urls += "?" + c.urlParams_.Encode()
 23300  	req, err := http.NewRequest("PATCH", urls, body)
 23301  	if err != nil {
 23302  		return nil, err
 23303  	}
 23304  	req.Header = reqHeaders
 23305  	googleapi.Expand(req.URL, map[string]string{
 23306  		"name": c.name,
 23307  	})
 23308  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23309  }
 23310  
 23311  // Do executes the "dlp.projects.locations.inspectTemplates.patch" call.
 23312  // Any non-2xx status code is an error. Response headers are in either
 23313  // *GooglePrivacyDlpV2InspectTemplate.ServerResponse.Header or (if a response
 23314  // was returned at all) in error.(*googleapi.Error).Header. Use
 23315  // googleapi.IsNotModified to check whether the returned error was because
 23316  // http.StatusNotModified was returned.
 23317  func (c *ProjectsLocationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
 23318  	gensupport.SetOptions(c.urlParams_, opts...)
 23319  	res, err := c.doRequest("json")
 23320  	if res != nil && res.StatusCode == http.StatusNotModified {
 23321  		if res.Body != nil {
 23322  			res.Body.Close()
 23323  		}
 23324  		return nil, gensupport.WrapError(&googleapi.Error{
 23325  			Code:   res.StatusCode,
 23326  			Header: res.Header,
 23327  		})
 23328  	}
 23329  	if err != nil {
 23330  		return nil, err
 23331  	}
 23332  	defer googleapi.CloseBody(res)
 23333  	if err := googleapi.CheckResponse(res); err != nil {
 23334  		return nil, gensupport.WrapError(err)
 23335  	}
 23336  	ret := &GooglePrivacyDlpV2InspectTemplate{
 23337  		ServerResponse: googleapi.ServerResponse{
 23338  			Header:         res.Header,
 23339  			HTTPStatusCode: res.StatusCode,
 23340  		},
 23341  	}
 23342  	target := &ret
 23343  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23344  		return nil, err
 23345  	}
 23346  	return ret, nil
 23347  }
 23348  
 23349  type ProjectsLocationsJobTriggersActivateCall struct {
 23350  	s                                           *Service
 23351  	name                                        string
 23352  	googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest
 23353  	urlParams_                                  gensupport.URLParams
 23354  	ctx_                                        context.Context
 23355  	header_                                     http.Header
 23356  }
 23357  
 23358  // Activate: Activate a job trigger. Causes the immediate execute of a trigger
 23359  // instead of waiting on the trigger event to occur.
 23360  //
 23361  //   - name: Resource name of the trigger to activate, for example
 23362  //     `projects/dlp-test-project/jobTriggers/53234423`.
 23363  func (r *ProjectsLocationsJobTriggersService) Activate(name string, googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest) *ProjectsLocationsJobTriggersActivateCall {
 23364  	c := &ProjectsLocationsJobTriggersActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23365  	c.name = name
 23366  	c.googleprivacydlpv2activatejobtriggerrequest = googleprivacydlpv2activatejobtriggerrequest
 23367  	return c
 23368  }
 23369  
 23370  // Fields allows partial responses to be retrieved. See
 23371  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23372  // details.
 23373  func (c *ProjectsLocationsJobTriggersActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersActivateCall {
 23374  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23375  	return c
 23376  }
 23377  
 23378  // Context sets the context to be used in this call's Do method.
 23379  func (c *ProjectsLocationsJobTriggersActivateCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersActivateCall {
 23380  	c.ctx_ = ctx
 23381  	return c
 23382  }
 23383  
 23384  // Header returns a http.Header that can be modified by the caller to add
 23385  // headers to the request.
 23386  func (c *ProjectsLocationsJobTriggersActivateCall) Header() http.Header {
 23387  	if c.header_ == nil {
 23388  		c.header_ = make(http.Header)
 23389  	}
 23390  	return c.header_
 23391  }
 23392  
 23393  func (c *ProjectsLocationsJobTriggersActivateCall) doRequest(alt string) (*http.Response, error) {
 23394  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23395  	var body io.Reader = nil
 23396  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2activatejobtriggerrequest)
 23397  	if err != nil {
 23398  		return nil, err
 23399  	}
 23400  	c.urlParams_.Set("alt", alt)
 23401  	c.urlParams_.Set("prettyPrint", "false")
 23402  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:activate")
 23403  	urls += "?" + c.urlParams_.Encode()
 23404  	req, err := http.NewRequest("POST", urls, body)
 23405  	if err != nil {
 23406  		return nil, err
 23407  	}
 23408  	req.Header = reqHeaders
 23409  	googleapi.Expand(req.URL, map[string]string{
 23410  		"name": c.name,
 23411  	})
 23412  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23413  }
 23414  
 23415  // Do executes the "dlp.projects.locations.jobTriggers.activate" call.
 23416  // Any non-2xx status code is an error. Response headers are in either
 23417  // *GooglePrivacyDlpV2DlpJob.ServerResponse.Header or (if a response was
 23418  // returned at all) in error.(*googleapi.Error).Header. Use
 23419  // googleapi.IsNotModified to check whether the returned error was because
 23420  // http.StatusNotModified was returned.
 23421  func (c *ProjectsLocationsJobTriggersActivateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
 23422  	gensupport.SetOptions(c.urlParams_, opts...)
 23423  	res, err := c.doRequest("json")
 23424  	if res != nil && res.StatusCode == http.StatusNotModified {
 23425  		if res.Body != nil {
 23426  			res.Body.Close()
 23427  		}
 23428  		return nil, gensupport.WrapError(&googleapi.Error{
 23429  			Code:   res.StatusCode,
 23430  			Header: res.Header,
 23431  		})
 23432  	}
 23433  	if err != nil {
 23434  		return nil, err
 23435  	}
 23436  	defer googleapi.CloseBody(res)
 23437  	if err := googleapi.CheckResponse(res); err != nil {
 23438  		return nil, gensupport.WrapError(err)
 23439  	}
 23440  	ret := &GooglePrivacyDlpV2DlpJob{
 23441  		ServerResponse: googleapi.ServerResponse{
 23442  			Header:         res.Header,
 23443  			HTTPStatusCode: res.StatusCode,
 23444  		},
 23445  	}
 23446  	target := &ret
 23447  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23448  		return nil, err
 23449  	}
 23450  	return ret, nil
 23451  }
 23452  
 23453  type ProjectsLocationsJobTriggersCreateCall struct {
 23454  	s                                         *Service
 23455  	parentid                                  string
 23456  	googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest
 23457  	urlParams_                                gensupport.URLParams
 23458  	ctx_                                      context.Context
 23459  	header_                                   http.Header
 23460  }
 23461  
 23462  // Create: Creates a job trigger to run DLP actions such as scanning storage
 23463  // for sensitive information on a set schedule. See
 23464  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 23465  // to learn more.
 23466  //
 23467  //   - parent: Parent resource name. The format of this value varies depending on
 23468  //     whether you have specified a processing location
 23469  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 23470  //   - Projects scope, location specified:
 23471  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 23472  //     location specified (defaults to global): `projects/`PROJECT_ID The
 23473  //     following example `parent` string specifies a parent project with the
 23474  //     identifier `example-project`, and specifies the `europe-west3` location
 23475  //     for processing data:
 23476  //     parent=projects/example-project/locations/europe-west3.
 23477  func (r *ProjectsLocationsJobTriggersService) Create(parentid string, googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest) *ProjectsLocationsJobTriggersCreateCall {
 23478  	c := &ProjectsLocationsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23479  	c.parentid = parentid
 23480  	c.googleprivacydlpv2createjobtriggerrequest = googleprivacydlpv2createjobtriggerrequest
 23481  	return c
 23482  }
 23483  
 23484  // Fields allows partial responses to be retrieved. See
 23485  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23486  // details.
 23487  func (c *ProjectsLocationsJobTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersCreateCall {
 23488  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23489  	return c
 23490  }
 23491  
 23492  // Context sets the context to be used in this call's Do method.
 23493  func (c *ProjectsLocationsJobTriggersCreateCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersCreateCall {
 23494  	c.ctx_ = ctx
 23495  	return c
 23496  }
 23497  
 23498  // Header returns a http.Header that can be modified by the caller to add
 23499  // headers to the request.
 23500  func (c *ProjectsLocationsJobTriggersCreateCall) Header() http.Header {
 23501  	if c.header_ == nil {
 23502  		c.header_ = make(http.Header)
 23503  	}
 23504  	return c.header_
 23505  }
 23506  
 23507  func (c *ProjectsLocationsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
 23508  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23509  	var body io.Reader = nil
 23510  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createjobtriggerrequest)
 23511  	if err != nil {
 23512  		return nil, err
 23513  	}
 23514  	c.urlParams_.Set("alt", alt)
 23515  	c.urlParams_.Set("prettyPrint", "false")
 23516  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
 23517  	urls += "?" + c.urlParams_.Encode()
 23518  	req, err := http.NewRequest("POST", urls, body)
 23519  	if err != nil {
 23520  		return nil, err
 23521  	}
 23522  	req.Header = reqHeaders
 23523  	googleapi.Expand(req.URL, map[string]string{
 23524  		"parent": c.parentid,
 23525  	})
 23526  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23527  }
 23528  
 23529  // Do executes the "dlp.projects.locations.jobTriggers.create" call.
 23530  // Any non-2xx status code is an error. Response headers are in either
 23531  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 23532  // returned at all) in error.(*googleapi.Error).Header. Use
 23533  // googleapi.IsNotModified to check whether the returned error was because
 23534  // http.StatusNotModified was returned.
 23535  func (c *ProjectsLocationsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 23536  	gensupport.SetOptions(c.urlParams_, opts...)
 23537  	res, err := c.doRequest("json")
 23538  	if res != nil && res.StatusCode == http.StatusNotModified {
 23539  		if res.Body != nil {
 23540  			res.Body.Close()
 23541  		}
 23542  		return nil, gensupport.WrapError(&googleapi.Error{
 23543  			Code:   res.StatusCode,
 23544  			Header: res.Header,
 23545  		})
 23546  	}
 23547  	if err != nil {
 23548  		return nil, err
 23549  	}
 23550  	defer googleapi.CloseBody(res)
 23551  	if err := googleapi.CheckResponse(res); err != nil {
 23552  		return nil, gensupport.WrapError(err)
 23553  	}
 23554  	ret := &GooglePrivacyDlpV2JobTrigger{
 23555  		ServerResponse: googleapi.ServerResponse{
 23556  			Header:         res.Header,
 23557  			HTTPStatusCode: res.StatusCode,
 23558  		},
 23559  	}
 23560  	target := &ret
 23561  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23562  		return nil, err
 23563  	}
 23564  	return ret, nil
 23565  }
 23566  
 23567  type ProjectsLocationsJobTriggersDeleteCall struct {
 23568  	s          *Service
 23569  	name       string
 23570  	urlParams_ gensupport.URLParams
 23571  	ctx_       context.Context
 23572  	header_    http.Header
 23573  }
 23574  
 23575  // Delete: Deletes a job trigger. See
 23576  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 23577  // to learn more.
 23578  //
 23579  //   - name: Resource name of the project and the triggeredJob, for example
 23580  //     `projects/dlp-test-project/jobTriggers/53234423`.
 23581  func (r *ProjectsLocationsJobTriggersService) Delete(name string) *ProjectsLocationsJobTriggersDeleteCall {
 23582  	c := &ProjectsLocationsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23583  	c.name = name
 23584  	return c
 23585  }
 23586  
 23587  // Fields allows partial responses to be retrieved. See
 23588  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23589  // details.
 23590  func (c *ProjectsLocationsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersDeleteCall {
 23591  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23592  	return c
 23593  }
 23594  
 23595  // Context sets the context to be used in this call's Do method.
 23596  func (c *ProjectsLocationsJobTriggersDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersDeleteCall {
 23597  	c.ctx_ = ctx
 23598  	return c
 23599  }
 23600  
 23601  // Header returns a http.Header that can be modified by the caller to add
 23602  // headers to the request.
 23603  func (c *ProjectsLocationsJobTriggersDeleteCall) Header() http.Header {
 23604  	if c.header_ == nil {
 23605  		c.header_ = make(http.Header)
 23606  	}
 23607  	return c.header_
 23608  }
 23609  
 23610  func (c *ProjectsLocationsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
 23611  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23612  	var body io.Reader = nil
 23613  	c.urlParams_.Set("alt", alt)
 23614  	c.urlParams_.Set("prettyPrint", "false")
 23615  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23616  	urls += "?" + c.urlParams_.Encode()
 23617  	req, err := http.NewRequest("DELETE", urls, body)
 23618  	if err != nil {
 23619  		return nil, err
 23620  	}
 23621  	req.Header = reqHeaders
 23622  	googleapi.Expand(req.URL, map[string]string{
 23623  		"name": c.name,
 23624  	})
 23625  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23626  }
 23627  
 23628  // Do executes the "dlp.projects.locations.jobTriggers.delete" call.
 23629  // Any non-2xx status code is an error. Response headers are in either
 23630  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23631  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23632  // check whether the returned error was because http.StatusNotModified was
 23633  // returned.
 23634  func (c *ProjectsLocationsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23635  	gensupport.SetOptions(c.urlParams_, opts...)
 23636  	res, err := c.doRequest("json")
 23637  	if res != nil && res.StatusCode == http.StatusNotModified {
 23638  		if res.Body != nil {
 23639  			res.Body.Close()
 23640  		}
 23641  		return nil, gensupport.WrapError(&googleapi.Error{
 23642  			Code:   res.StatusCode,
 23643  			Header: res.Header,
 23644  		})
 23645  	}
 23646  	if err != nil {
 23647  		return nil, err
 23648  	}
 23649  	defer googleapi.CloseBody(res)
 23650  	if err := googleapi.CheckResponse(res); err != nil {
 23651  		return nil, gensupport.WrapError(err)
 23652  	}
 23653  	ret := &GoogleProtobufEmpty{
 23654  		ServerResponse: googleapi.ServerResponse{
 23655  			Header:         res.Header,
 23656  			HTTPStatusCode: res.StatusCode,
 23657  		},
 23658  	}
 23659  	target := &ret
 23660  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23661  		return nil, err
 23662  	}
 23663  	return ret, nil
 23664  }
 23665  
 23666  type ProjectsLocationsJobTriggersGetCall struct {
 23667  	s            *Service
 23668  	name         string
 23669  	urlParams_   gensupport.URLParams
 23670  	ifNoneMatch_ string
 23671  	ctx_         context.Context
 23672  	header_      http.Header
 23673  }
 23674  
 23675  // Get: Gets a job trigger. See
 23676  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 23677  // to learn more.
 23678  //
 23679  //   - name: Resource name of the project and the triggeredJob, for example
 23680  //     `projects/dlp-test-project/jobTriggers/53234423`.
 23681  func (r *ProjectsLocationsJobTriggersService) Get(name string) *ProjectsLocationsJobTriggersGetCall {
 23682  	c := &ProjectsLocationsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23683  	c.name = name
 23684  	return c
 23685  }
 23686  
 23687  // Fields allows partial responses to be retrieved. See
 23688  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23689  // details.
 23690  func (c *ProjectsLocationsJobTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersGetCall {
 23691  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23692  	return c
 23693  }
 23694  
 23695  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23696  // object's ETag matches the given value. This is useful for getting updates
 23697  // only after the object has changed since the last request.
 23698  func (c *ProjectsLocationsJobTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTriggersGetCall {
 23699  	c.ifNoneMatch_ = entityTag
 23700  	return c
 23701  }
 23702  
 23703  // Context sets the context to be used in this call's Do method.
 23704  func (c *ProjectsLocationsJobTriggersGetCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersGetCall {
 23705  	c.ctx_ = ctx
 23706  	return c
 23707  }
 23708  
 23709  // Header returns a http.Header that can be modified by the caller to add
 23710  // headers to the request.
 23711  func (c *ProjectsLocationsJobTriggersGetCall) Header() http.Header {
 23712  	if c.header_ == nil {
 23713  		c.header_ = make(http.Header)
 23714  	}
 23715  	return c.header_
 23716  }
 23717  
 23718  func (c *ProjectsLocationsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
 23719  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23720  	if c.ifNoneMatch_ != "" {
 23721  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23722  	}
 23723  	var body io.Reader = nil
 23724  	c.urlParams_.Set("alt", alt)
 23725  	c.urlParams_.Set("prettyPrint", "false")
 23726  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 23727  	urls += "?" + c.urlParams_.Encode()
 23728  	req, err := http.NewRequest("GET", urls, body)
 23729  	if err != nil {
 23730  		return nil, err
 23731  	}
 23732  	req.Header = reqHeaders
 23733  	googleapi.Expand(req.URL, map[string]string{
 23734  		"name": c.name,
 23735  	})
 23736  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23737  }
 23738  
 23739  // Do executes the "dlp.projects.locations.jobTriggers.get" call.
 23740  // Any non-2xx status code is an error. Response headers are in either
 23741  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 23742  // returned at all) in error.(*googleapi.Error).Header. Use
 23743  // googleapi.IsNotModified to check whether the returned error was because
 23744  // http.StatusNotModified was returned.
 23745  func (c *ProjectsLocationsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 23746  	gensupport.SetOptions(c.urlParams_, opts...)
 23747  	res, err := c.doRequest("json")
 23748  	if res != nil && res.StatusCode == http.StatusNotModified {
 23749  		if res.Body != nil {
 23750  			res.Body.Close()
 23751  		}
 23752  		return nil, gensupport.WrapError(&googleapi.Error{
 23753  			Code:   res.StatusCode,
 23754  			Header: res.Header,
 23755  		})
 23756  	}
 23757  	if err != nil {
 23758  		return nil, err
 23759  	}
 23760  	defer googleapi.CloseBody(res)
 23761  	if err := googleapi.CheckResponse(res); err != nil {
 23762  		return nil, gensupport.WrapError(err)
 23763  	}
 23764  	ret := &GooglePrivacyDlpV2JobTrigger{
 23765  		ServerResponse: googleapi.ServerResponse{
 23766  			Header:         res.Header,
 23767  			HTTPStatusCode: res.StatusCode,
 23768  		},
 23769  	}
 23770  	target := &ret
 23771  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23772  		return nil, err
 23773  	}
 23774  	return ret, nil
 23775  }
 23776  
 23777  type ProjectsLocationsJobTriggersHybridInspectCall struct {
 23778  	s                                                *Service
 23779  	name                                             string
 23780  	googleprivacydlpv2hybridinspectjobtriggerrequest *GooglePrivacyDlpV2HybridInspectJobTriggerRequest
 23781  	urlParams_                                       gensupport.URLParams
 23782  	ctx_                                             context.Context
 23783  	header_                                          http.Header
 23784  }
 23785  
 23786  // HybridInspect: Inspect hybrid content and store findings to a trigger. The
 23787  // inspection will be processed asynchronously. To review the findings monitor
 23788  // the jobs within the trigger.
 23789  //
 23790  //   - name: Resource name of the trigger to execute a hybrid inspect on, for
 23791  //     example `projects/dlp-test-project/jobTriggers/53234423`.
 23792  func (r *ProjectsLocationsJobTriggersService) HybridInspect(name string, googleprivacydlpv2hybridinspectjobtriggerrequest *GooglePrivacyDlpV2HybridInspectJobTriggerRequest) *ProjectsLocationsJobTriggersHybridInspectCall {
 23793  	c := &ProjectsLocationsJobTriggersHybridInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23794  	c.name = name
 23795  	c.googleprivacydlpv2hybridinspectjobtriggerrequest = googleprivacydlpv2hybridinspectjobtriggerrequest
 23796  	return c
 23797  }
 23798  
 23799  // Fields allows partial responses to be retrieved. See
 23800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23801  // details.
 23802  func (c *ProjectsLocationsJobTriggersHybridInspectCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersHybridInspectCall {
 23803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23804  	return c
 23805  }
 23806  
 23807  // Context sets the context to be used in this call's Do method.
 23808  func (c *ProjectsLocationsJobTriggersHybridInspectCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersHybridInspectCall {
 23809  	c.ctx_ = ctx
 23810  	return c
 23811  }
 23812  
 23813  // Header returns a http.Header that can be modified by the caller to add
 23814  // headers to the request.
 23815  func (c *ProjectsLocationsJobTriggersHybridInspectCall) Header() http.Header {
 23816  	if c.header_ == nil {
 23817  		c.header_ = make(http.Header)
 23818  	}
 23819  	return c.header_
 23820  }
 23821  
 23822  func (c *ProjectsLocationsJobTriggersHybridInspectCall) doRequest(alt string) (*http.Response, error) {
 23823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23824  	var body io.Reader = nil
 23825  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2hybridinspectjobtriggerrequest)
 23826  	if err != nil {
 23827  		return nil, err
 23828  	}
 23829  	c.urlParams_.Set("alt", alt)
 23830  	c.urlParams_.Set("prettyPrint", "false")
 23831  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:hybridInspect")
 23832  	urls += "?" + c.urlParams_.Encode()
 23833  	req, err := http.NewRequest("POST", urls, body)
 23834  	if err != nil {
 23835  		return nil, err
 23836  	}
 23837  	req.Header = reqHeaders
 23838  	googleapi.Expand(req.URL, map[string]string{
 23839  		"name": c.name,
 23840  	})
 23841  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23842  }
 23843  
 23844  // Do executes the "dlp.projects.locations.jobTriggers.hybridInspect" call.
 23845  // Any non-2xx status code is an error. Response headers are in either
 23846  // *GooglePrivacyDlpV2HybridInspectResponse.ServerResponse.Header or (if a
 23847  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23848  // googleapi.IsNotModified to check whether the returned error was because
 23849  // http.StatusNotModified was returned.
 23850  func (c *ProjectsLocationsJobTriggersHybridInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2HybridInspectResponse, error) {
 23851  	gensupport.SetOptions(c.urlParams_, opts...)
 23852  	res, err := c.doRequest("json")
 23853  	if res != nil && res.StatusCode == http.StatusNotModified {
 23854  		if res.Body != nil {
 23855  			res.Body.Close()
 23856  		}
 23857  		return nil, gensupport.WrapError(&googleapi.Error{
 23858  			Code:   res.StatusCode,
 23859  			Header: res.Header,
 23860  		})
 23861  	}
 23862  	if err != nil {
 23863  		return nil, err
 23864  	}
 23865  	defer googleapi.CloseBody(res)
 23866  	if err := googleapi.CheckResponse(res); err != nil {
 23867  		return nil, gensupport.WrapError(err)
 23868  	}
 23869  	ret := &GooglePrivacyDlpV2HybridInspectResponse{
 23870  		ServerResponse: googleapi.ServerResponse{
 23871  			Header:         res.Header,
 23872  			HTTPStatusCode: res.StatusCode,
 23873  		},
 23874  	}
 23875  	target := &ret
 23876  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23877  		return nil, err
 23878  	}
 23879  	return ret, nil
 23880  }
 23881  
 23882  type ProjectsLocationsJobTriggersListCall struct {
 23883  	s            *Service
 23884  	parentid     string
 23885  	urlParams_   gensupport.URLParams
 23886  	ifNoneMatch_ string
 23887  	ctx_         context.Context
 23888  	header_      http.Header
 23889  }
 23890  
 23891  // List: Lists job triggers. See
 23892  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 23893  // to learn more.
 23894  //
 23895  //   - parent: Parent resource name. The format of this value varies depending on
 23896  //     whether you have specified a processing location
 23897  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 23898  //   - Projects scope, location specified:
 23899  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 23900  //     location specified (defaults to global): `projects/`PROJECT_ID The
 23901  //     following example `parent` string specifies a parent project with the
 23902  //     identifier `example-project`, and specifies the `europe-west3` location
 23903  //     for processing data:
 23904  //     parent=projects/example-project/locations/europe-west3.
 23905  func (r *ProjectsLocationsJobTriggersService) List(parentid string) *ProjectsLocationsJobTriggersListCall {
 23906  	c := &ProjectsLocationsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23907  	c.parentid = parentid
 23908  	return c
 23909  }
 23910  
 23911  // Filter sets the optional parameter "filter": Allows filtering. Supported
 23912  // syntax: * Filter expressions are made up of one or more restrictions. *
 23913  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 23914  // of restrictions implicitly uses `AND`. * A restriction has the form of
 23915  // `{field} {operator} {value}`. * Supported fields/values for inspect
 23916  // triggers: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` -
 23917  // DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted
 23918  // timestamp, surrounded by quotation marks. Nanoseconds are ignored. -
 23919  // 'error_count' - Number of errors that have occurred while running. * The
 23920  // operator must be `=` or `!=` for status and inspected_storage. Examples: *
 23921  // inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage =
 23922  // cloud_storage OR inspected_storage = bigquery * inspected_storage =
 23923  // cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time >
 23924  // \"2017-12-12T00:00:00+00:00\" The length of this field should be no more
 23925  // than 500 characters.
 23926  func (c *ProjectsLocationsJobTriggersListCall) Filter(filter string) *ProjectsLocationsJobTriggersListCall {
 23927  	c.urlParams_.Set("filter", filter)
 23928  	return c
 23929  }
 23930  
 23931  // LocationId sets the optional parameter "locationId": Deprecated. This field
 23932  // has no effect.
 23933  func (c *ProjectsLocationsJobTriggersListCall) LocationId(locationId string) *ProjectsLocationsJobTriggersListCall {
 23934  	c.urlParams_.Set("locationId", locationId)
 23935  	return c
 23936  }
 23937  
 23938  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 23939  // triggeredJob fields to order by, followed by `asc` or `desc` postfix. This
 23940  // list is case insensitive. The default sorting order is ascending. Redundant
 23941  // space characters are insignificant. Example: `name asc,update_time,
 23942  // create_time desc` Supported fields are: - `create_time`: corresponds to the
 23943  // time the JobTrigger was created. - `update_time`: corresponds to the time
 23944  // the JobTrigger was last updated. - `last_run_time`: corresponds to the last
 23945  // time the JobTrigger ran. - `name`: corresponds to the JobTrigger's name. -
 23946  // `display_name`: corresponds to the JobTrigger's display name. - `status`:
 23947  // corresponds to JobTrigger's status.
 23948  func (c *ProjectsLocationsJobTriggersListCall) OrderBy(orderBy string) *ProjectsLocationsJobTriggersListCall {
 23949  	c.urlParams_.Set("orderBy", orderBy)
 23950  	return c
 23951  }
 23952  
 23953  // PageSize sets the optional parameter "pageSize": Size of the page. This
 23954  // value can be limited by a server.
 23955  func (c *ProjectsLocationsJobTriggersListCall) PageSize(pageSize int64) *ProjectsLocationsJobTriggersListCall {
 23956  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23957  	return c
 23958  }
 23959  
 23960  // PageToken sets the optional parameter "pageToken": Page token to continue
 23961  // retrieval. Comes from the previous call to ListJobTriggers. `order_by` field
 23962  // must not change for subsequent calls.
 23963  func (c *ProjectsLocationsJobTriggersListCall) PageToken(pageToken string) *ProjectsLocationsJobTriggersListCall {
 23964  	c.urlParams_.Set("pageToken", pageToken)
 23965  	return c
 23966  }
 23967  
 23968  // Type sets the optional parameter "type": The type of jobs. Will use
 23969  // `DlpJobType.INSPECT` if not set.
 23970  //
 23971  // Possible values:
 23972  //
 23973  //	"DLP_JOB_TYPE_UNSPECIFIED" - Defaults to INSPECT_JOB.
 23974  //	"INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
 23975  //	"RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
 23976  func (c *ProjectsLocationsJobTriggersListCall) Type(type_ string) *ProjectsLocationsJobTriggersListCall {
 23977  	c.urlParams_.Set("type", type_)
 23978  	return c
 23979  }
 23980  
 23981  // Fields allows partial responses to be retrieved. See
 23982  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23983  // details.
 23984  func (c *ProjectsLocationsJobTriggersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersListCall {
 23985  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23986  	return c
 23987  }
 23988  
 23989  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23990  // object's ETag matches the given value. This is useful for getting updates
 23991  // only after the object has changed since the last request.
 23992  func (c *ProjectsLocationsJobTriggersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTriggersListCall {
 23993  	c.ifNoneMatch_ = entityTag
 23994  	return c
 23995  }
 23996  
 23997  // Context sets the context to be used in this call's Do method.
 23998  func (c *ProjectsLocationsJobTriggersListCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersListCall {
 23999  	c.ctx_ = ctx
 24000  	return c
 24001  }
 24002  
 24003  // Header returns a http.Header that can be modified by the caller to add
 24004  // headers to the request.
 24005  func (c *ProjectsLocationsJobTriggersListCall) Header() http.Header {
 24006  	if c.header_ == nil {
 24007  		c.header_ = make(http.Header)
 24008  	}
 24009  	return c.header_
 24010  }
 24011  
 24012  func (c *ProjectsLocationsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
 24013  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24014  	if c.ifNoneMatch_ != "" {
 24015  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24016  	}
 24017  	var body io.Reader = nil
 24018  	c.urlParams_.Set("alt", alt)
 24019  	c.urlParams_.Set("prettyPrint", "false")
 24020  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
 24021  	urls += "?" + c.urlParams_.Encode()
 24022  	req, err := http.NewRequest("GET", urls, body)
 24023  	if err != nil {
 24024  		return nil, err
 24025  	}
 24026  	req.Header = reqHeaders
 24027  	googleapi.Expand(req.URL, map[string]string{
 24028  		"parent": c.parentid,
 24029  	})
 24030  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24031  }
 24032  
 24033  // Do executes the "dlp.projects.locations.jobTriggers.list" call.
 24034  // Any non-2xx status code is an error. Response headers are in either
 24035  // *GooglePrivacyDlpV2ListJobTriggersResponse.ServerResponse.Header or (if a
 24036  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24037  // googleapi.IsNotModified to check whether the returned error was because
 24038  // http.StatusNotModified was returned.
 24039  func (c *ProjectsLocationsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListJobTriggersResponse, error) {
 24040  	gensupport.SetOptions(c.urlParams_, opts...)
 24041  	res, err := c.doRequest("json")
 24042  	if res != nil && res.StatusCode == http.StatusNotModified {
 24043  		if res.Body != nil {
 24044  			res.Body.Close()
 24045  		}
 24046  		return nil, gensupport.WrapError(&googleapi.Error{
 24047  			Code:   res.StatusCode,
 24048  			Header: res.Header,
 24049  		})
 24050  	}
 24051  	if err != nil {
 24052  		return nil, err
 24053  	}
 24054  	defer googleapi.CloseBody(res)
 24055  	if err := googleapi.CheckResponse(res); err != nil {
 24056  		return nil, gensupport.WrapError(err)
 24057  	}
 24058  	ret := &GooglePrivacyDlpV2ListJobTriggersResponse{
 24059  		ServerResponse: googleapi.ServerResponse{
 24060  			Header:         res.Header,
 24061  			HTTPStatusCode: res.StatusCode,
 24062  		},
 24063  	}
 24064  	target := &ret
 24065  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24066  		return nil, err
 24067  	}
 24068  	return ret, nil
 24069  }
 24070  
 24071  // Pages invokes f for each page of results.
 24072  // A non-nil error returned from f will halt the iteration.
 24073  // The provided context supersedes any context provided to the Context method.
 24074  func (c *ProjectsLocationsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListJobTriggersResponse) error) error {
 24075  	c.ctx_ = ctx
 24076  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24077  	for {
 24078  		x, err := c.Do()
 24079  		if err != nil {
 24080  			return err
 24081  		}
 24082  		if err := f(x); err != nil {
 24083  			return err
 24084  		}
 24085  		if x.NextPageToken == "" {
 24086  			return nil
 24087  		}
 24088  		c.PageToken(x.NextPageToken)
 24089  	}
 24090  }
 24091  
 24092  type ProjectsLocationsJobTriggersPatchCall struct {
 24093  	s                                         *Service
 24094  	name                                      string
 24095  	googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest
 24096  	urlParams_                                gensupport.URLParams
 24097  	ctx_                                      context.Context
 24098  	header_                                   http.Header
 24099  }
 24100  
 24101  // Patch: Updates a job trigger. See
 24102  // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
 24103  // to learn more.
 24104  //
 24105  //   - name: Resource name of the project and the triggeredJob, for example
 24106  //     `projects/dlp-test-project/jobTriggers/53234423`.
 24107  func (r *ProjectsLocationsJobTriggersService) Patch(name string, googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest) *ProjectsLocationsJobTriggersPatchCall {
 24108  	c := &ProjectsLocationsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24109  	c.name = name
 24110  	c.googleprivacydlpv2updatejobtriggerrequest = googleprivacydlpv2updatejobtriggerrequest
 24111  	return c
 24112  }
 24113  
 24114  // Fields allows partial responses to be retrieved. See
 24115  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24116  // details.
 24117  func (c *ProjectsLocationsJobTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersPatchCall {
 24118  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24119  	return c
 24120  }
 24121  
 24122  // Context sets the context to be used in this call's Do method.
 24123  func (c *ProjectsLocationsJobTriggersPatchCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersPatchCall {
 24124  	c.ctx_ = ctx
 24125  	return c
 24126  }
 24127  
 24128  // Header returns a http.Header that can be modified by the caller to add
 24129  // headers to the request.
 24130  func (c *ProjectsLocationsJobTriggersPatchCall) Header() http.Header {
 24131  	if c.header_ == nil {
 24132  		c.header_ = make(http.Header)
 24133  	}
 24134  	return c.header_
 24135  }
 24136  
 24137  func (c *ProjectsLocationsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
 24138  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24139  	var body io.Reader = nil
 24140  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatejobtriggerrequest)
 24141  	if err != nil {
 24142  		return nil, err
 24143  	}
 24144  	c.urlParams_.Set("alt", alt)
 24145  	c.urlParams_.Set("prettyPrint", "false")
 24146  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24147  	urls += "?" + c.urlParams_.Encode()
 24148  	req, err := http.NewRequest("PATCH", urls, body)
 24149  	if err != nil {
 24150  		return nil, err
 24151  	}
 24152  	req.Header = reqHeaders
 24153  	googleapi.Expand(req.URL, map[string]string{
 24154  		"name": c.name,
 24155  	})
 24156  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24157  }
 24158  
 24159  // Do executes the "dlp.projects.locations.jobTriggers.patch" call.
 24160  // Any non-2xx status code is an error. Response headers are in either
 24161  // *GooglePrivacyDlpV2JobTrigger.ServerResponse.Header or (if a response was
 24162  // returned at all) in error.(*googleapi.Error).Header. Use
 24163  // googleapi.IsNotModified to check whether the returned error was because
 24164  // http.StatusNotModified was returned.
 24165  func (c *ProjectsLocationsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
 24166  	gensupport.SetOptions(c.urlParams_, opts...)
 24167  	res, err := c.doRequest("json")
 24168  	if res != nil && res.StatusCode == http.StatusNotModified {
 24169  		if res.Body != nil {
 24170  			res.Body.Close()
 24171  		}
 24172  		return nil, gensupport.WrapError(&googleapi.Error{
 24173  			Code:   res.StatusCode,
 24174  			Header: res.Header,
 24175  		})
 24176  	}
 24177  	if err != nil {
 24178  		return nil, err
 24179  	}
 24180  	defer googleapi.CloseBody(res)
 24181  	if err := googleapi.CheckResponse(res); err != nil {
 24182  		return nil, gensupport.WrapError(err)
 24183  	}
 24184  	ret := &GooglePrivacyDlpV2JobTrigger{
 24185  		ServerResponse: googleapi.ServerResponse{
 24186  			Header:         res.Header,
 24187  			HTTPStatusCode: res.StatusCode,
 24188  		},
 24189  	}
 24190  	target := &ret
 24191  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24192  		return nil, err
 24193  	}
 24194  	return ret, nil
 24195  }
 24196  
 24197  type ProjectsLocationsProjectDataProfilesGetCall struct {
 24198  	s            *Service
 24199  	name         string
 24200  	urlParams_   gensupport.URLParams
 24201  	ifNoneMatch_ string
 24202  	ctx_         context.Context
 24203  	header_      http.Header
 24204  }
 24205  
 24206  // Get: Gets a project data profile.
 24207  //
 24208  //   - name: Resource name, for example
 24209  //     `organizations/12345/locations/us/projectDataProfiles/53234423`.
 24210  func (r *ProjectsLocationsProjectDataProfilesService) Get(name string) *ProjectsLocationsProjectDataProfilesGetCall {
 24211  	c := &ProjectsLocationsProjectDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24212  	c.name = name
 24213  	return c
 24214  }
 24215  
 24216  // Fields allows partial responses to be retrieved. See
 24217  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24218  // details.
 24219  func (c *ProjectsLocationsProjectDataProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProjectDataProfilesGetCall {
 24220  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24221  	return c
 24222  }
 24223  
 24224  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24225  // object's ETag matches the given value. This is useful for getting updates
 24226  // only after the object has changed since the last request.
 24227  func (c *ProjectsLocationsProjectDataProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProjectDataProfilesGetCall {
 24228  	c.ifNoneMatch_ = entityTag
 24229  	return c
 24230  }
 24231  
 24232  // Context sets the context to be used in this call's Do method.
 24233  func (c *ProjectsLocationsProjectDataProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsProjectDataProfilesGetCall {
 24234  	c.ctx_ = ctx
 24235  	return c
 24236  }
 24237  
 24238  // Header returns a http.Header that can be modified by the caller to add
 24239  // headers to the request.
 24240  func (c *ProjectsLocationsProjectDataProfilesGetCall) Header() http.Header {
 24241  	if c.header_ == nil {
 24242  		c.header_ = make(http.Header)
 24243  	}
 24244  	return c.header_
 24245  }
 24246  
 24247  func (c *ProjectsLocationsProjectDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 24248  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24249  	if c.ifNoneMatch_ != "" {
 24250  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24251  	}
 24252  	var body io.Reader = nil
 24253  	c.urlParams_.Set("alt", alt)
 24254  	c.urlParams_.Set("prettyPrint", "false")
 24255  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24256  	urls += "?" + c.urlParams_.Encode()
 24257  	req, err := http.NewRequest("GET", urls, body)
 24258  	if err != nil {
 24259  		return nil, err
 24260  	}
 24261  	req.Header = reqHeaders
 24262  	googleapi.Expand(req.URL, map[string]string{
 24263  		"name": c.name,
 24264  	})
 24265  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24266  }
 24267  
 24268  // Do executes the "dlp.projects.locations.projectDataProfiles.get" call.
 24269  // Any non-2xx status code is an error. Response headers are in either
 24270  // *GooglePrivacyDlpV2ProjectDataProfile.ServerResponse.Header or (if a
 24271  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24272  // googleapi.IsNotModified to check whether the returned error was because
 24273  // http.StatusNotModified was returned.
 24274  func (c *ProjectsLocationsProjectDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ProjectDataProfile, error) {
 24275  	gensupport.SetOptions(c.urlParams_, opts...)
 24276  	res, err := c.doRequest("json")
 24277  	if res != nil && res.StatusCode == http.StatusNotModified {
 24278  		if res.Body != nil {
 24279  			res.Body.Close()
 24280  		}
 24281  		return nil, gensupport.WrapError(&googleapi.Error{
 24282  			Code:   res.StatusCode,
 24283  			Header: res.Header,
 24284  		})
 24285  	}
 24286  	if err != nil {
 24287  		return nil, err
 24288  	}
 24289  	defer googleapi.CloseBody(res)
 24290  	if err := googleapi.CheckResponse(res); err != nil {
 24291  		return nil, gensupport.WrapError(err)
 24292  	}
 24293  	ret := &GooglePrivacyDlpV2ProjectDataProfile{
 24294  		ServerResponse: googleapi.ServerResponse{
 24295  			Header:         res.Header,
 24296  			HTTPStatusCode: res.StatusCode,
 24297  		},
 24298  	}
 24299  	target := &ret
 24300  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24301  		return nil, err
 24302  	}
 24303  	return ret, nil
 24304  }
 24305  
 24306  type ProjectsLocationsProjectDataProfilesListCall struct {
 24307  	s            *Service
 24308  	parent       string
 24309  	urlParams_   gensupport.URLParams
 24310  	ifNoneMatch_ string
 24311  	ctx_         context.Context
 24312  	header_      http.Header
 24313  }
 24314  
 24315  // List: Lists project data profiles for an organization.
 24316  //
 24317  // - parent: organizations/{org_id}/locations/{loc_id}.
 24318  func (r *ProjectsLocationsProjectDataProfilesService) List(parent string) *ProjectsLocationsProjectDataProfilesListCall {
 24319  	c := &ProjectsLocationsProjectDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24320  	c.parent = parent
 24321  	return c
 24322  }
 24323  
 24324  // Filter sets the optional parameter "filter": Allows filtering. Supported
 24325  // syntax: * Filter expressions are made up of one or more restrictions. *
 24326  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 24327  // of restrictions implicitly uses `AND`. * A restriction has the form of
 24328  // `{field} {operator} {value}`. * Supported fields/values: -
 24329  // `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` -
 24330  // HIGH|MODERATE|LOW - `status_code` - an RPC status code as defined in
 24331  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
 24332  // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND
 24333  // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` The
 24334  // length of this field should be no more than 500 characters.
 24335  func (c *ProjectsLocationsProjectDataProfilesListCall) Filter(filter string) *ProjectsLocationsProjectDataProfilesListCall {
 24336  	c.urlParams_.Set("filter", filter)
 24337  	return c
 24338  }
 24339  
 24340  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 24341  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 24342  // insensitive. The default sorting order is ascending. Redundant space
 24343  // characters are insignificant. Only one order field at a time is allowed.
 24344  // Examples: * `project_id` * `sensitivity_level desc` Supported fields are: -
 24345  // `project_id`: Google Cloud project ID - `sensitivity_level`: How sensitive
 24346  // the data in a project is, at most. - `data_risk_level`: How much risk is
 24347  // associated with this data. - `profile_last_generated`: When the profile was
 24348  // last updated in epoch seconds.
 24349  func (c *ProjectsLocationsProjectDataProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsProjectDataProfilesListCall {
 24350  	c.urlParams_.Set("orderBy", orderBy)
 24351  	return c
 24352  }
 24353  
 24354  // PageSize sets the optional parameter "pageSize": Size of the page. This
 24355  // value can be limited by the server. If zero, server returns a page of max
 24356  // size 100.
 24357  func (c *ProjectsLocationsProjectDataProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsProjectDataProfilesListCall {
 24358  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24359  	return c
 24360  }
 24361  
 24362  // PageToken sets the optional parameter "pageToken": Page token to continue
 24363  // retrieval.
 24364  func (c *ProjectsLocationsProjectDataProfilesListCall) PageToken(pageToken string) *ProjectsLocationsProjectDataProfilesListCall {
 24365  	c.urlParams_.Set("pageToken", pageToken)
 24366  	return c
 24367  }
 24368  
 24369  // Fields allows partial responses to be retrieved. See
 24370  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24371  // details.
 24372  func (c *ProjectsLocationsProjectDataProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProjectDataProfilesListCall {
 24373  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24374  	return c
 24375  }
 24376  
 24377  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24378  // object's ETag matches the given value. This is useful for getting updates
 24379  // only after the object has changed since the last request.
 24380  func (c *ProjectsLocationsProjectDataProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProjectDataProfilesListCall {
 24381  	c.ifNoneMatch_ = entityTag
 24382  	return c
 24383  }
 24384  
 24385  // Context sets the context to be used in this call's Do method.
 24386  func (c *ProjectsLocationsProjectDataProfilesListCall) Context(ctx context.Context) *ProjectsLocationsProjectDataProfilesListCall {
 24387  	c.ctx_ = ctx
 24388  	return c
 24389  }
 24390  
 24391  // Header returns a http.Header that can be modified by the caller to add
 24392  // headers to the request.
 24393  func (c *ProjectsLocationsProjectDataProfilesListCall) Header() http.Header {
 24394  	if c.header_ == nil {
 24395  		c.header_ = make(http.Header)
 24396  	}
 24397  	return c.header_
 24398  }
 24399  
 24400  func (c *ProjectsLocationsProjectDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
 24401  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24402  	if c.ifNoneMatch_ != "" {
 24403  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24404  	}
 24405  	var body io.Reader = nil
 24406  	c.urlParams_.Set("alt", alt)
 24407  	c.urlParams_.Set("prettyPrint", "false")
 24408  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/projectDataProfiles")
 24409  	urls += "?" + c.urlParams_.Encode()
 24410  	req, err := http.NewRequest("GET", urls, body)
 24411  	if err != nil {
 24412  		return nil, err
 24413  	}
 24414  	req.Header = reqHeaders
 24415  	googleapi.Expand(req.URL, map[string]string{
 24416  		"parent": c.parent,
 24417  	})
 24418  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24419  }
 24420  
 24421  // Do executes the "dlp.projects.locations.projectDataProfiles.list" call.
 24422  // Any non-2xx status code is an error. Response headers are in either
 24423  // *GooglePrivacyDlpV2ListProjectDataProfilesResponse.ServerResponse.Header or
 24424  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24425  // googleapi.IsNotModified to check whether the returned error was because
 24426  // http.StatusNotModified was returned.
 24427  func (c *ProjectsLocationsProjectDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListProjectDataProfilesResponse, error) {
 24428  	gensupport.SetOptions(c.urlParams_, opts...)
 24429  	res, err := c.doRequest("json")
 24430  	if res != nil && res.StatusCode == http.StatusNotModified {
 24431  		if res.Body != nil {
 24432  			res.Body.Close()
 24433  		}
 24434  		return nil, gensupport.WrapError(&googleapi.Error{
 24435  			Code:   res.StatusCode,
 24436  			Header: res.Header,
 24437  		})
 24438  	}
 24439  	if err != nil {
 24440  		return nil, err
 24441  	}
 24442  	defer googleapi.CloseBody(res)
 24443  	if err := googleapi.CheckResponse(res); err != nil {
 24444  		return nil, gensupport.WrapError(err)
 24445  	}
 24446  	ret := &GooglePrivacyDlpV2ListProjectDataProfilesResponse{
 24447  		ServerResponse: googleapi.ServerResponse{
 24448  			Header:         res.Header,
 24449  			HTTPStatusCode: res.StatusCode,
 24450  		},
 24451  	}
 24452  	target := &ret
 24453  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24454  		return nil, err
 24455  	}
 24456  	return ret, nil
 24457  }
 24458  
 24459  // Pages invokes f for each page of results.
 24460  // A non-nil error returned from f will halt the iteration.
 24461  // The provided context supersedes any context provided to the Context method.
 24462  func (c *ProjectsLocationsProjectDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListProjectDataProfilesResponse) error) error {
 24463  	c.ctx_ = ctx
 24464  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24465  	for {
 24466  		x, err := c.Do()
 24467  		if err != nil {
 24468  			return err
 24469  		}
 24470  		if err := f(x); err != nil {
 24471  			return err
 24472  		}
 24473  		if x.NextPageToken == "" {
 24474  			return nil
 24475  		}
 24476  		c.PageToken(x.NextPageToken)
 24477  	}
 24478  }
 24479  
 24480  type ProjectsLocationsStoredInfoTypesCreateCall struct {
 24481  	s                                             *Service
 24482  	parentid                                      string
 24483  	googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
 24484  	urlParams_                                    gensupport.URLParams
 24485  	ctx_                                          context.Context
 24486  	header_                                       http.Header
 24487  }
 24488  
 24489  // Create: Creates a pre-built stored infoType to be used for inspection. See
 24490  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 24491  // to learn more.
 24492  //
 24493  //   - parent: Parent resource name. The format of this value varies depending on
 24494  //     the scope of the request (project or organization) and whether you have
 24495  //     specified a processing location
 24496  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 24497  //   - Projects scope, location specified:
 24498  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 24499  //     location specified (defaults to global): `projects/`PROJECT_ID +
 24500  //     Organizations scope, location specified:
 24501  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 24502  //     location specified (defaults to global): `organizations/`ORG_ID The
 24503  //     following example `parent` string specifies a parent project with the
 24504  //     identifier `example-project`, and specifies the `europe-west3` location
 24505  //     for processing data:
 24506  //     parent=projects/example-project/locations/europe-west3.
 24507  func (r *ProjectsLocationsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *ProjectsLocationsStoredInfoTypesCreateCall {
 24508  	c := &ProjectsLocationsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24509  	c.parentid = parentid
 24510  	c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
 24511  	return c
 24512  }
 24513  
 24514  // Fields allows partial responses to be retrieved. See
 24515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24516  // details.
 24517  func (c *ProjectsLocationsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesCreateCall {
 24518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24519  	return c
 24520  }
 24521  
 24522  // Context sets the context to be used in this call's Do method.
 24523  func (c *ProjectsLocationsStoredInfoTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesCreateCall {
 24524  	c.ctx_ = ctx
 24525  	return c
 24526  }
 24527  
 24528  // Header returns a http.Header that can be modified by the caller to add
 24529  // headers to the request.
 24530  func (c *ProjectsLocationsStoredInfoTypesCreateCall) Header() http.Header {
 24531  	if c.header_ == nil {
 24532  		c.header_ = make(http.Header)
 24533  	}
 24534  	return c.header_
 24535  }
 24536  
 24537  func (c *ProjectsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 24538  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24539  	var body io.Reader = nil
 24540  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
 24541  	if err != nil {
 24542  		return nil, err
 24543  	}
 24544  	c.urlParams_.Set("alt", alt)
 24545  	c.urlParams_.Set("prettyPrint", "false")
 24546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 24547  	urls += "?" + c.urlParams_.Encode()
 24548  	req, err := http.NewRequest("POST", urls, body)
 24549  	if err != nil {
 24550  		return nil, err
 24551  	}
 24552  	req.Header = reqHeaders
 24553  	googleapi.Expand(req.URL, map[string]string{
 24554  		"parent": c.parentid,
 24555  	})
 24556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24557  }
 24558  
 24559  // Do executes the "dlp.projects.locations.storedInfoTypes.create" call.
 24560  // Any non-2xx status code is an error. Response headers are in either
 24561  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 24562  // was returned at all) in error.(*googleapi.Error).Header. Use
 24563  // googleapi.IsNotModified to check whether the returned error was because
 24564  // http.StatusNotModified was returned.
 24565  func (c *ProjectsLocationsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 24566  	gensupport.SetOptions(c.urlParams_, opts...)
 24567  	res, err := c.doRequest("json")
 24568  	if res != nil && res.StatusCode == http.StatusNotModified {
 24569  		if res.Body != nil {
 24570  			res.Body.Close()
 24571  		}
 24572  		return nil, gensupport.WrapError(&googleapi.Error{
 24573  			Code:   res.StatusCode,
 24574  			Header: res.Header,
 24575  		})
 24576  	}
 24577  	if err != nil {
 24578  		return nil, err
 24579  	}
 24580  	defer googleapi.CloseBody(res)
 24581  	if err := googleapi.CheckResponse(res); err != nil {
 24582  		return nil, gensupport.WrapError(err)
 24583  	}
 24584  	ret := &GooglePrivacyDlpV2StoredInfoType{
 24585  		ServerResponse: googleapi.ServerResponse{
 24586  			Header:         res.Header,
 24587  			HTTPStatusCode: res.StatusCode,
 24588  		},
 24589  	}
 24590  	target := &ret
 24591  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24592  		return nil, err
 24593  	}
 24594  	return ret, nil
 24595  }
 24596  
 24597  type ProjectsLocationsStoredInfoTypesDeleteCall struct {
 24598  	s          *Service
 24599  	name       string
 24600  	urlParams_ gensupport.URLParams
 24601  	ctx_       context.Context
 24602  	header_    http.Header
 24603  }
 24604  
 24605  // Delete: Deletes a stored infoType. See
 24606  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 24607  // to learn more.
 24608  //
 24609  //   - name: Resource name of the organization and storedInfoType to be deleted,
 24610  //     for example `organizations/433245324/storedInfoTypes/432452342` or
 24611  //     projects/project-id/storedInfoTypes/432452342.
 24612  func (r *ProjectsLocationsStoredInfoTypesService) Delete(name string) *ProjectsLocationsStoredInfoTypesDeleteCall {
 24613  	c := &ProjectsLocationsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24614  	c.name = name
 24615  	return c
 24616  }
 24617  
 24618  // Fields allows partial responses to be retrieved. See
 24619  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24620  // details.
 24621  func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesDeleteCall {
 24622  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24623  	return c
 24624  }
 24625  
 24626  // Context sets the context to be used in this call's Do method.
 24627  func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesDeleteCall {
 24628  	c.ctx_ = ctx
 24629  	return c
 24630  }
 24631  
 24632  // Header returns a http.Header that can be modified by the caller to add
 24633  // headers to the request.
 24634  func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Header() http.Header {
 24635  	if c.header_ == nil {
 24636  		c.header_ = make(http.Header)
 24637  	}
 24638  	return c.header_
 24639  }
 24640  
 24641  func (c *ProjectsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 24642  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24643  	var body io.Reader = nil
 24644  	c.urlParams_.Set("alt", alt)
 24645  	c.urlParams_.Set("prettyPrint", "false")
 24646  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24647  	urls += "?" + c.urlParams_.Encode()
 24648  	req, err := http.NewRequest("DELETE", urls, body)
 24649  	if err != nil {
 24650  		return nil, err
 24651  	}
 24652  	req.Header = reqHeaders
 24653  	googleapi.Expand(req.URL, map[string]string{
 24654  		"name": c.name,
 24655  	})
 24656  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24657  }
 24658  
 24659  // Do executes the "dlp.projects.locations.storedInfoTypes.delete" call.
 24660  // Any non-2xx status code is an error. Response headers are in either
 24661  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24662  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24663  // check whether the returned error was because http.StatusNotModified was
 24664  // returned.
 24665  func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24666  	gensupport.SetOptions(c.urlParams_, opts...)
 24667  	res, err := c.doRequest("json")
 24668  	if res != nil && res.StatusCode == http.StatusNotModified {
 24669  		if res.Body != nil {
 24670  			res.Body.Close()
 24671  		}
 24672  		return nil, gensupport.WrapError(&googleapi.Error{
 24673  			Code:   res.StatusCode,
 24674  			Header: res.Header,
 24675  		})
 24676  	}
 24677  	if err != nil {
 24678  		return nil, err
 24679  	}
 24680  	defer googleapi.CloseBody(res)
 24681  	if err := googleapi.CheckResponse(res); err != nil {
 24682  		return nil, gensupport.WrapError(err)
 24683  	}
 24684  	ret := &GoogleProtobufEmpty{
 24685  		ServerResponse: googleapi.ServerResponse{
 24686  			Header:         res.Header,
 24687  			HTTPStatusCode: res.StatusCode,
 24688  		},
 24689  	}
 24690  	target := &ret
 24691  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24692  		return nil, err
 24693  	}
 24694  	return ret, nil
 24695  }
 24696  
 24697  type ProjectsLocationsStoredInfoTypesGetCall struct {
 24698  	s            *Service
 24699  	name         string
 24700  	urlParams_   gensupport.URLParams
 24701  	ifNoneMatch_ string
 24702  	ctx_         context.Context
 24703  	header_      http.Header
 24704  }
 24705  
 24706  // Get: Gets a stored infoType. See
 24707  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 24708  // to learn more.
 24709  //
 24710  //   - name: Resource name of the organization and storedInfoType to be read, for
 24711  //     example `organizations/433245324/storedInfoTypes/432452342` or
 24712  //     projects/project-id/storedInfoTypes/432452342.
 24713  func (r *ProjectsLocationsStoredInfoTypesService) Get(name string) *ProjectsLocationsStoredInfoTypesGetCall {
 24714  	c := &ProjectsLocationsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24715  	c.name = name
 24716  	return c
 24717  }
 24718  
 24719  // Fields allows partial responses to be retrieved. See
 24720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24721  // details.
 24722  func (c *ProjectsLocationsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesGetCall {
 24723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24724  	return c
 24725  }
 24726  
 24727  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24728  // object's ETag matches the given value. This is useful for getting updates
 24729  // only after the object has changed since the last request.
 24730  func (c *ProjectsLocationsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsStoredInfoTypesGetCall {
 24731  	c.ifNoneMatch_ = entityTag
 24732  	return c
 24733  }
 24734  
 24735  // Context sets the context to be used in this call's Do method.
 24736  func (c *ProjectsLocationsStoredInfoTypesGetCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesGetCall {
 24737  	c.ctx_ = ctx
 24738  	return c
 24739  }
 24740  
 24741  // Header returns a http.Header that can be modified by the caller to add
 24742  // headers to the request.
 24743  func (c *ProjectsLocationsStoredInfoTypesGetCall) Header() http.Header {
 24744  	if c.header_ == nil {
 24745  		c.header_ = make(http.Header)
 24746  	}
 24747  	return c.header_
 24748  }
 24749  
 24750  func (c *ProjectsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
 24751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24752  	if c.ifNoneMatch_ != "" {
 24753  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24754  	}
 24755  	var body io.Reader = nil
 24756  	c.urlParams_.Set("alt", alt)
 24757  	c.urlParams_.Set("prettyPrint", "false")
 24758  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 24759  	urls += "?" + c.urlParams_.Encode()
 24760  	req, err := http.NewRequest("GET", urls, body)
 24761  	if err != nil {
 24762  		return nil, err
 24763  	}
 24764  	req.Header = reqHeaders
 24765  	googleapi.Expand(req.URL, map[string]string{
 24766  		"name": c.name,
 24767  	})
 24768  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24769  }
 24770  
 24771  // Do executes the "dlp.projects.locations.storedInfoTypes.get" call.
 24772  // Any non-2xx status code is an error. Response headers are in either
 24773  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 24774  // was returned at all) in error.(*googleapi.Error).Header. Use
 24775  // googleapi.IsNotModified to check whether the returned error was because
 24776  // http.StatusNotModified was returned.
 24777  func (c *ProjectsLocationsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 24778  	gensupport.SetOptions(c.urlParams_, opts...)
 24779  	res, err := c.doRequest("json")
 24780  	if res != nil && res.StatusCode == http.StatusNotModified {
 24781  		if res.Body != nil {
 24782  			res.Body.Close()
 24783  		}
 24784  		return nil, gensupport.WrapError(&googleapi.Error{
 24785  			Code:   res.StatusCode,
 24786  			Header: res.Header,
 24787  		})
 24788  	}
 24789  	if err != nil {
 24790  		return nil, err
 24791  	}
 24792  	defer googleapi.CloseBody(res)
 24793  	if err := googleapi.CheckResponse(res); err != nil {
 24794  		return nil, gensupport.WrapError(err)
 24795  	}
 24796  	ret := &GooglePrivacyDlpV2StoredInfoType{
 24797  		ServerResponse: googleapi.ServerResponse{
 24798  			Header:         res.Header,
 24799  			HTTPStatusCode: res.StatusCode,
 24800  		},
 24801  	}
 24802  	target := &ret
 24803  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24804  		return nil, err
 24805  	}
 24806  	return ret, nil
 24807  }
 24808  
 24809  type ProjectsLocationsStoredInfoTypesListCall struct {
 24810  	s            *Service
 24811  	parentid     string
 24812  	urlParams_   gensupport.URLParams
 24813  	ifNoneMatch_ string
 24814  	ctx_         context.Context
 24815  	header_      http.Header
 24816  }
 24817  
 24818  // List: Lists stored infoTypes. See
 24819  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 24820  // to learn more.
 24821  //
 24822  //   - parent: Parent resource name. The format of this value varies depending on
 24823  //     the scope of the request (project or organization) and whether you have
 24824  //     specified a processing location
 24825  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 24826  //   - Projects scope, location specified:
 24827  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 24828  //     location specified (defaults to global): `projects/`PROJECT_ID The
 24829  //     following example `parent` string specifies a parent project with the
 24830  //     identifier `example-project`, and specifies the `europe-west3` location
 24831  //     for processing data:
 24832  //     parent=projects/example-project/locations/europe-west3.
 24833  func (r *ProjectsLocationsStoredInfoTypesService) List(parentid string) *ProjectsLocationsStoredInfoTypesListCall {
 24834  	c := &ProjectsLocationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24835  	c.parentid = parentid
 24836  	return c
 24837  }
 24838  
 24839  // LocationId sets the optional parameter "locationId": Deprecated. This field
 24840  // has no effect.
 24841  func (c *ProjectsLocationsStoredInfoTypesListCall) LocationId(locationId string) *ProjectsLocationsStoredInfoTypesListCall {
 24842  	c.urlParams_.Set("locationId", locationId)
 24843  	return c
 24844  }
 24845  
 24846  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 24847  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 24848  // insensitive. The default sorting order is ascending. Redundant space
 24849  // characters are insignificant. Example: `name asc, display_name, create_time
 24850  // desc` Supported fields are: - `create_time`: corresponds to the time the
 24851  // most recent version of the resource was created. - `state`: corresponds to
 24852  // the state of the resource. - `name`: corresponds to resource name. -
 24853  // `display_name`: corresponds to info type's display name.
 24854  func (c *ProjectsLocationsStoredInfoTypesListCall) OrderBy(orderBy string) *ProjectsLocationsStoredInfoTypesListCall {
 24855  	c.urlParams_.Set("orderBy", orderBy)
 24856  	return c
 24857  }
 24858  
 24859  // PageSize sets the optional parameter "pageSize": Size of the page. This
 24860  // value can be limited by the server. If zero server returns a page of max
 24861  // size 100.
 24862  func (c *ProjectsLocationsStoredInfoTypesListCall) PageSize(pageSize int64) *ProjectsLocationsStoredInfoTypesListCall {
 24863  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24864  	return c
 24865  }
 24866  
 24867  // PageToken sets the optional parameter "pageToken": Page token to continue
 24868  // retrieval. Comes from the previous call to `ListStoredInfoTypes`.
 24869  func (c *ProjectsLocationsStoredInfoTypesListCall) PageToken(pageToken string) *ProjectsLocationsStoredInfoTypesListCall {
 24870  	c.urlParams_.Set("pageToken", pageToken)
 24871  	return c
 24872  }
 24873  
 24874  // Fields allows partial responses to be retrieved. See
 24875  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24876  // details.
 24877  func (c *ProjectsLocationsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesListCall {
 24878  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24879  	return c
 24880  }
 24881  
 24882  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24883  // object's ETag matches the given value. This is useful for getting updates
 24884  // only after the object has changed since the last request.
 24885  func (c *ProjectsLocationsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsStoredInfoTypesListCall {
 24886  	c.ifNoneMatch_ = entityTag
 24887  	return c
 24888  }
 24889  
 24890  // Context sets the context to be used in this call's Do method.
 24891  func (c *ProjectsLocationsStoredInfoTypesListCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesListCall {
 24892  	c.ctx_ = ctx
 24893  	return c
 24894  }
 24895  
 24896  // Header returns a http.Header that can be modified by the caller to add
 24897  // headers to the request.
 24898  func (c *ProjectsLocationsStoredInfoTypesListCall) Header() http.Header {
 24899  	if c.header_ == nil {
 24900  		c.header_ = make(http.Header)
 24901  	}
 24902  	return c.header_
 24903  }
 24904  
 24905  func (c *ProjectsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
 24906  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24907  	if c.ifNoneMatch_ != "" {
 24908  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24909  	}
 24910  	var body io.Reader = nil
 24911  	c.urlParams_.Set("alt", alt)
 24912  	c.urlParams_.Set("prettyPrint", "false")
 24913  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 24914  	urls += "?" + c.urlParams_.Encode()
 24915  	req, err := http.NewRequest("GET", urls, body)
 24916  	if err != nil {
 24917  		return nil, err
 24918  	}
 24919  	req.Header = reqHeaders
 24920  	googleapi.Expand(req.URL, map[string]string{
 24921  		"parent": c.parentid,
 24922  	})
 24923  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24924  }
 24925  
 24926  // Do executes the "dlp.projects.locations.storedInfoTypes.list" call.
 24927  // Any non-2xx status code is an error. Response headers are in either
 24928  // *GooglePrivacyDlpV2ListStoredInfoTypesResponse.ServerResponse.Header or (if
 24929  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 24930  // googleapi.IsNotModified to check whether the returned error was because
 24931  // http.StatusNotModified was returned.
 24932  func (c *ProjectsLocationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
 24933  	gensupport.SetOptions(c.urlParams_, opts...)
 24934  	res, err := c.doRequest("json")
 24935  	if res != nil && res.StatusCode == http.StatusNotModified {
 24936  		if res.Body != nil {
 24937  			res.Body.Close()
 24938  		}
 24939  		return nil, gensupport.WrapError(&googleapi.Error{
 24940  			Code:   res.StatusCode,
 24941  			Header: res.Header,
 24942  		})
 24943  	}
 24944  	if err != nil {
 24945  		return nil, err
 24946  	}
 24947  	defer googleapi.CloseBody(res)
 24948  	if err := googleapi.CheckResponse(res); err != nil {
 24949  		return nil, gensupport.WrapError(err)
 24950  	}
 24951  	ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
 24952  		ServerResponse: googleapi.ServerResponse{
 24953  			Header:         res.Header,
 24954  			HTTPStatusCode: res.StatusCode,
 24955  		},
 24956  	}
 24957  	target := &ret
 24958  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24959  		return nil, err
 24960  	}
 24961  	return ret, nil
 24962  }
 24963  
 24964  // Pages invokes f for each page of results.
 24965  // A non-nil error returned from f will halt the iteration.
 24966  // The provided context supersedes any context provided to the Context method.
 24967  func (c *ProjectsLocationsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
 24968  	c.ctx_ = ctx
 24969  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24970  	for {
 24971  		x, err := c.Do()
 24972  		if err != nil {
 24973  			return err
 24974  		}
 24975  		if err := f(x); err != nil {
 24976  			return err
 24977  		}
 24978  		if x.NextPageToken == "" {
 24979  			return nil
 24980  		}
 24981  		c.PageToken(x.NextPageToken)
 24982  	}
 24983  }
 24984  
 24985  type ProjectsLocationsStoredInfoTypesPatchCall struct {
 24986  	s                                             *Service
 24987  	name                                          string
 24988  	googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
 24989  	urlParams_                                    gensupport.URLParams
 24990  	ctx_                                          context.Context
 24991  	header_                                       http.Header
 24992  }
 24993  
 24994  // Patch: Updates the stored infoType by creating a new version. The existing
 24995  // version will continue to be used until the new version is ready. See
 24996  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 24997  // to learn more.
 24998  //
 24999  //   - name: Resource name of organization and storedInfoType to be updated, for
 25000  //     example `organizations/433245324/storedInfoTypes/432452342` or
 25001  //     projects/project-id/storedInfoTypes/432452342.
 25002  func (r *ProjectsLocationsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *ProjectsLocationsStoredInfoTypesPatchCall {
 25003  	c := &ProjectsLocationsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25004  	c.name = name
 25005  	c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
 25006  	return c
 25007  }
 25008  
 25009  // Fields allows partial responses to be retrieved. See
 25010  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25011  // details.
 25012  func (c *ProjectsLocationsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesPatchCall {
 25013  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25014  	return c
 25015  }
 25016  
 25017  // Context sets the context to be used in this call's Do method.
 25018  func (c *ProjectsLocationsStoredInfoTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesPatchCall {
 25019  	c.ctx_ = ctx
 25020  	return c
 25021  }
 25022  
 25023  // Header returns a http.Header that can be modified by the caller to add
 25024  // headers to the request.
 25025  func (c *ProjectsLocationsStoredInfoTypesPatchCall) Header() http.Header {
 25026  	if c.header_ == nil {
 25027  		c.header_ = make(http.Header)
 25028  	}
 25029  	return c.header_
 25030  }
 25031  
 25032  func (c *ProjectsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 25033  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25034  	var body io.Reader = nil
 25035  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
 25036  	if err != nil {
 25037  		return nil, err
 25038  	}
 25039  	c.urlParams_.Set("alt", alt)
 25040  	c.urlParams_.Set("prettyPrint", "false")
 25041  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25042  	urls += "?" + c.urlParams_.Encode()
 25043  	req, err := http.NewRequest("PATCH", urls, body)
 25044  	if err != nil {
 25045  		return nil, err
 25046  	}
 25047  	req.Header = reqHeaders
 25048  	googleapi.Expand(req.URL, map[string]string{
 25049  		"name": c.name,
 25050  	})
 25051  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25052  }
 25053  
 25054  // Do executes the "dlp.projects.locations.storedInfoTypes.patch" call.
 25055  // Any non-2xx status code is an error. Response headers are in either
 25056  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 25057  // was returned at all) in error.(*googleapi.Error).Header. Use
 25058  // googleapi.IsNotModified to check whether the returned error was because
 25059  // http.StatusNotModified was returned.
 25060  func (c *ProjectsLocationsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 25061  	gensupport.SetOptions(c.urlParams_, opts...)
 25062  	res, err := c.doRequest("json")
 25063  	if res != nil && res.StatusCode == http.StatusNotModified {
 25064  		if res.Body != nil {
 25065  			res.Body.Close()
 25066  		}
 25067  		return nil, gensupport.WrapError(&googleapi.Error{
 25068  			Code:   res.StatusCode,
 25069  			Header: res.Header,
 25070  		})
 25071  	}
 25072  	if err != nil {
 25073  		return nil, err
 25074  	}
 25075  	defer googleapi.CloseBody(res)
 25076  	if err := googleapi.CheckResponse(res); err != nil {
 25077  		return nil, gensupport.WrapError(err)
 25078  	}
 25079  	ret := &GooglePrivacyDlpV2StoredInfoType{
 25080  		ServerResponse: googleapi.ServerResponse{
 25081  			Header:         res.Header,
 25082  			HTTPStatusCode: res.StatusCode,
 25083  		},
 25084  	}
 25085  	target := &ret
 25086  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25087  		return nil, err
 25088  	}
 25089  	return ret, nil
 25090  }
 25091  
 25092  type ProjectsLocationsTableDataProfilesDeleteCall struct {
 25093  	s          *Service
 25094  	name       string
 25095  	urlParams_ gensupport.URLParams
 25096  	ctx_       context.Context
 25097  	header_    http.Header
 25098  }
 25099  
 25100  // Delete: Delete a TableDataProfile. Will not prevent the profile from being
 25101  // regenerated if the table is still included in a discovery configuration.
 25102  //
 25103  // - name: Resource name of the table data profile.
 25104  func (r *ProjectsLocationsTableDataProfilesService) Delete(name string) *ProjectsLocationsTableDataProfilesDeleteCall {
 25105  	c := &ProjectsLocationsTableDataProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25106  	c.name = name
 25107  	return c
 25108  }
 25109  
 25110  // Fields allows partial responses to be retrieved. See
 25111  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25112  // details.
 25113  func (c *ProjectsLocationsTableDataProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTableDataProfilesDeleteCall {
 25114  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25115  	return c
 25116  }
 25117  
 25118  // Context sets the context to be used in this call's Do method.
 25119  func (c *ProjectsLocationsTableDataProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTableDataProfilesDeleteCall {
 25120  	c.ctx_ = ctx
 25121  	return c
 25122  }
 25123  
 25124  // Header returns a http.Header that can be modified by the caller to add
 25125  // headers to the request.
 25126  func (c *ProjectsLocationsTableDataProfilesDeleteCall) Header() http.Header {
 25127  	if c.header_ == nil {
 25128  		c.header_ = make(http.Header)
 25129  	}
 25130  	return c.header_
 25131  }
 25132  
 25133  func (c *ProjectsLocationsTableDataProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 25134  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25135  	var body io.Reader = nil
 25136  	c.urlParams_.Set("alt", alt)
 25137  	c.urlParams_.Set("prettyPrint", "false")
 25138  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25139  	urls += "?" + c.urlParams_.Encode()
 25140  	req, err := http.NewRequest("DELETE", urls, body)
 25141  	if err != nil {
 25142  		return nil, err
 25143  	}
 25144  	req.Header = reqHeaders
 25145  	googleapi.Expand(req.URL, map[string]string{
 25146  		"name": c.name,
 25147  	})
 25148  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25149  }
 25150  
 25151  // Do executes the "dlp.projects.locations.tableDataProfiles.delete" call.
 25152  // Any non-2xx status code is an error. Response headers are in either
 25153  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 25154  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25155  // check whether the returned error was because http.StatusNotModified was
 25156  // returned.
 25157  func (c *ProjectsLocationsTableDataProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 25158  	gensupport.SetOptions(c.urlParams_, opts...)
 25159  	res, err := c.doRequest("json")
 25160  	if res != nil && res.StatusCode == http.StatusNotModified {
 25161  		if res.Body != nil {
 25162  			res.Body.Close()
 25163  		}
 25164  		return nil, gensupport.WrapError(&googleapi.Error{
 25165  			Code:   res.StatusCode,
 25166  			Header: res.Header,
 25167  		})
 25168  	}
 25169  	if err != nil {
 25170  		return nil, err
 25171  	}
 25172  	defer googleapi.CloseBody(res)
 25173  	if err := googleapi.CheckResponse(res); err != nil {
 25174  		return nil, gensupport.WrapError(err)
 25175  	}
 25176  	ret := &GoogleProtobufEmpty{
 25177  		ServerResponse: googleapi.ServerResponse{
 25178  			Header:         res.Header,
 25179  			HTTPStatusCode: res.StatusCode,
 25180  		},
 25181  	}
 25182  	target := &ret
 25183  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25184  		return nil, err
 25185  	}
 25186  	return ret, nil
 25187  }
 25188  
 25189  type ProjectsLocationsTableDataProfilesGetCall struct {
 25190  	s            *Service
 25191  	name         string
 25192  	urlParams_   gensupport.URLParams
 25193  	ifNoneMatch_ string
 25194  	ctx_         context.Context
 25195  	header_      http.Header
 25196  }
 25197  
 25198  // Get: Gets a table data profile.
 25199  //
 25200  //   - name: Resource name, for example
 25201  //     `organizations/12345/locations/us/tableDataProfiles/53234423`.
 25202  func (r *ProjectsLocationsTableDataProfilesService) Get(name string) *ProjectsLocationsTableDataProfilesGetCall {
 25203  	c := &ProjectsLocationsTableDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25204  	c.name = name
 25205  	return c
 25206  }
 25207  
 25208  // Fields allows partial responses to be retrieved. See
 25209  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25210  // details.
 25211  func (c *ProjectsLocationsTableDataProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTableDataProfilesGetCall {
 25212  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25213  	return c
 25214  }
 25215  
 25216  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25217  // object's ETag matches the given value. This is useful for getting updates
 25218  // only after the object has changed since the last request.
 25219  func (c *ProjectsLocationsTableDataProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTableDataProfilesGetCall {
 25220  	c.ifNoneMatch_ = entityTag
 25221  	return c
 25222  }
 25223  
 25224  // Context sets the context to be used in this call's Do method.
 25225  func (c *ProjectsLocationsTableDataProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsTableDataProfilesGetCall {
 25226  	c.ctx_ = ctx
 25227  	return c
 25228  }
 25229  
 25230  // Header returns a http.Header that can be modified by the caller to add
 25231  // headers to the request.
 25232  func (c *ProjectsLocationsTableDataProfilesGetCall) Header() http.Header {
 25233  	if c.header_ == nil {
 25234  		c.header_ = make(http.Header)
 25235  	}
 25236  	return c.header_
 25237  }
 25238  
 25239  func (c *ProjectsLocationsTableDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
 25240  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25241  	if c.ifNoneMatch_ != "" {
 25242  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25243  	}
 25244  	var body io.Reader = nil
 25245  	c.urlParams_.Set("alt", alt)
 25246  	c.urlParams_.Set("prettyPrint", "false")
 25247  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25248  	urls += "?" + c.urlParams_.Encode()
 25249  	req, err := http.NewRequest("GET", urls, body)
 25250  	if err != nil {
 25251  		return nil, err
 25252  	}
 25253  	req.Header = reqHeaders
 25254  	googleapi.Expand(req.URL, map[string]string{
 25255  		"name": c.name,
 25256  	})
 25257  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25258  }
 25259  
 25260  // Do executes the "dlp.projects.locations.tableDataProfiles.get" call.
 25261  // Any non-2xx status code is an error. Response headers are in either
 25262  // *GooglePrivacyDlpV2TableDataProfile.ServerResponse.Header or (if a response
 25263  // was returned at all) in error.(*googleapi.Error).Header. Use
 25264  // googleapi.IsNotModified to check whether the returned error was because
 25265  // http.StatusNotModified was returned.
 25266  func (c *ProjectsLocationsTableDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2TableDataProfile, error) {
 25267  	gensupport.SetOptions(c.urlParams_, opts...)
 25268  	res, err := c.doRequest("json")
 25269  	if res != nil && res.StatusCode == http.StatusNotModified {
 25270  		if res.Body != nil {
 25271  			res.Body.Close()
 25272  		}
 25273  		return nil, gensupport.WrapError(&googleapi.Error{
 25274  			Code:   res.StatusCode,
 25275  			Header: res.Header,
 25276  		})
 25277  	}
 25278  	if err != nil {
 25279  		return nil, err
 25280  	}
 25281  	defer googleapi.CloseBody(res)
 25282  	if err := googleapi.CheckResponse(res); err != nil {
 25283  		return nil, gensupport.WrapError(err)
 25284  	}
 25285  	ret := &GooglePrivacyDlpV2TableDataProfile{
 25286  		ServerResponse: googleapi.ServerResponse{
 25287  			Header:         res.Header,
 25288  			HTTPStatusCode: res.StatusCode,
 25289  		},
 25290  	}
 25291  	target := &ret
 25292  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25293  		return nil, err
 25294  	}
 25295  	return ret, nil
 25296  }
 25297  
 25298  type ProjectsLocationsTableDataProfilesListCall struct {
 25299  	s            *Service
 25300  	parent       string
 25301  	urlParams_   gensupport.URLParams
 25302  	ifNoneMatch_ string
 25303  	ctx_         context.Context
 25304  	header_      http.Header
 25305  }
 25306  
 25307  // List: Lists table data profiles for an organization.
 25308  //
 25309  //   - parent: Resource name of the organization or project, for example
 25310  //     `organizations/433245324/locations/europe` or
 25311  //     `projects/project-id/locations/asia`.
 25312  func (r *ProjectsLocationsTableDataProfilesService) List(parent string) *ProjectsLocationsTableDataProfilesListCall {
 25313  	c := &ProjectsLocationsTableDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25314  	c.parent = parent
 25315  	return c
 25316  }
 25317  
 25318  // Filter sets the optional parameter "filter": Allows filtering. Supported
 25319  // syntax: * Filter expressions are made up of one or more restrictions. *
 25320  // Restrictions can be combined by `AND` or `OR` logical operators. A sequence
 25321  // of restrictions implicitly uses `AND`. * A restriction has the form of
 25322  // `{field} {operator} {value}`. * Supported fields/values: - `project_id` -
 25323  // The Google Cloud project ID. - `dataset_id` - The BigQuery dataset ID. -
 25324  // `table_id` - The ID of the BigQuery table. - `sensitivity_level` -
 25325  // HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW -
 25326  // `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status
 25327  // code as defined in
 25328  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto *
 25329  // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND
 25330  // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` *
 25331  // `project_id = 12345 AND resource_visibility = PUBLIC` The length of this
 25332  // field should be no more than 500 characters.
 25333  func (c *ProjectsLocationsTableDataProfilesListCall) Filter(filter string) *ProjectsLocationsTableDataProfilesListCall {
 25334  	c.urlParams_.Set("filter", filter)
 25335  	return c
 25336  }
 25337  
 25338  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 25339  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 25340  // insensitive. The default sorting order is ascending. Redundant space
 25341  // characters are insignificant. Only one order field at a time is allowed.
 25342  // Examples: * `project_id asc` * `table_id` * `sensitivity_level desc`
 25343  // Supported fields are: - `project_id`: The Google Cloud project ID. -
 25344  // `dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a
 25345  // BigQuery table. - `sensitivity_level`: How sensitive the data in a table is,
 25346  // at most. - `data_risk_level`: How much risk is associated with this data. -
 25347  // `profile_last_generated`: When the profile was last updated in epoch
 25348  // seconds. - `last_modified`: The last time the resource was modified. -
 25349  // `resource_visibility`: Visibility restriction for this resource. -
 25350  // `row_count`: Number of rows in this resource.
 25351  func (c *ProjectsLocationsTableDataProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsTableDataProfilesListCall {
 25352  	c.urlParams_.Set("orderBy", orderBy)
 25353  	return c
 25354  }
 25355  
 25356  // PageSize sets the optional parameter "pageSize": Size of the page. This
 25357  // value can be limited by the server. If zero, server returns a page of max
 25358  // size 100.
 25359  func (c *ProjectsLocationsTableDataProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsTableDataProfilesListCall {
 25360  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25361  	return c
 25362  }
 25363  
 25364  // PageToken sets the optional parameter "pageToken": Page token to continue
 25365  // retrieval.
 25366  func (c *ProjectsLocationsTableDataProfilesListCall) PageToken(pageToken string) *ProjectsLocationsTableDataProfilesListCall {
 25367  	c.urlParams_.Set("pageToken", pageToken)
 25368  	return c
 25369  }
 25370  
 25371  // Fields allows partial responses to be retrieved. See
 25372  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25373  // details.
 25374  func (c *ProjectsLocationsTableDataProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTableDataProfilesListCall {
 25375  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25376  	return c
 25377  }
 25378  
 25379  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25380  // object's ETag matches the given value. This is useful for getting updates
 25381  // only after the object has changed since the last request.
 25382  func (c *ProjectsLocationsTableDataProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTableDataProfilesListCall {
 25383  	c.ifNoneMatch_ = entityTag
 25384  	return c
 25385  }
 25386  
 25387  // Context sets the context to be used in this call's Do method.
 25388  func (c *ProjectsLocationsTableDataProfilesListCall) Context(ctx context.Context) *ProjectsLocationsTableDataProfilesListCall {
 25389  	c.ctx_ = ctx
 25390  	return c
 25391  }
 25392  
 25393  // Header returns a http.Header that can be modified by the caller to add
 25394  // headers to the request.
 25395  func (c *ProjectsLocationsTableDataProfilesListCall) Header() http.Header {
 25396  	if c.header_ == nil {
 25397  		c.header_ = make(http.Header)
 25398  	}
 25399  	return c.header_
 25400  }
 25401  
 25402  func (c *ProjectsLocationsTableDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
 25403  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25404  	if c.ifNoneMatch_ != "" {
 25405  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25406  	}
 25407  	var body io.Reader = nil
 25408  	c.urlParams_.Set("alt", alt)
 25409  	c.urlParams_.Set("prettyPrint", "false")
 25410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tableDataProfiles")
 25411  	urls += "?" + c.urlParams_.Encode()
 25412  	req, err := http.NewRequest("GET", urls, body)
 25413  	if err != nil {
 25414  		return nil, err
 25415  	}
 25416  	req.Header = reqHeaders
 25417  	googleapi.Expand(req.URL, map[string]string{
 25418  		"parent": c.parent,
 25419  	})
 25420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25421  }
 25422  
 25423  // Do executes the "dlp.projects.locations.tableDataProfiles.list" call.
 25424  // Any non-2xx status code is an error. Response headers are in either
 25425  // *GooglePrivacyDlpV2ListTableDataProfilesResponse.ServerResponse.Header or
 25426  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25427  // googleapi.IsNotModified to check whether the returned error was because
 25428  // http.StatusNotModified was returned.
 25429  func (c *ProjectsLocationsTableDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListTableDataProfilesResponse, error) {
 25430  	gensupport.SetOptions(c.urlParams_, opts...)
 25431  	res, err := c.doRequest("json")
 25432  	if res != nil && res.StatusCode == http.StatusNotModified {
 25433  		if res.Body != nil {
 25434  			res.Body.Close()
 25435  		}
 25436  		return nil, gensupport.WrapError(&googleapi.Error{
 25437  			Code:   res.StatusCode,
 25438  			Header: res.Header,
 25439  		})
 25440  	}
 25441  	if err != nil {
 25442  		return nil, err
 25443  	}
 25444  	defer googleapi.CloseBody(res)
 25445  	if err := googleapi.CheckResponse(res); err != nil {
 25446  		return nil, gensupport.WrapError(err)
 25447  	}
 25448  	ret := &GooglePrivacyDlpV2ListTableDataProfilesResponse{
 25449  		ServerResponse: googleapi.ServerResponse{
 25450  			Header:         res.Header,
 25451  			HTTPStatusCode: res.StatusCode,
 25452  		},
 25453  	}
 25454  	target := &ret
 25455  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25456  		return nil, err
 25457  	}
 25458  	return ret, nil
 25459  }
 25460  
 25461  // Pages invokes f for each page of results.
 25462  // A non-nil error returned from f will halt the iteration.
 25463  // The provided context supersedes any context provided to the Context method.
 25464  func (c *ProjectsLocationsTableDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListTableDataProfilesResponse) error) error {
 25465  	c.ctx_ = ctx
 25466  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25467  	for {
 25468  		x, err := c.Do()
 25469  		if err != nil {
 25470  			return err
 25471  		}
 25472  		if err := f(x); err != nil {
 25473  			return err
 25474  		}
 25475  		if x.NextPageToken == "" {
 25476  			return nil
 25477  		}
 25478  		c.PageToken(x.NextPageToken)
 25479  	}
 25480  }
 25481  
 25482  type ProjectsStoredInfoTypesCreateCall struct {
 25483  	s                                             *Service
 25484  	parentid                                      string
 25485  	googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
 25486  	urlParams_                                    gensupport.URLParams
 25487  	ctx_                                          context.Context
 25488  	header_                                       http.Header
 25489  }
 25490  
 25491  // Create: Creates a pre-built stored infoType to be used for inspection. See
 25492  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 25493  // to learn more.
 25494  //
 25495  //   - parent: Parent resource name. The format of this value varies depending on
 25496  //     the scope of the request (project or organization) and whether you have
 25497  //     specified a processing location
 25498  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 25499  //   - Projects scope, location specified:
 25500  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 25501  //     location specified (defaults to global): `projects/`PROJECT_ID +
 25502  //     Organizations scope, location specified:
 25503  //     `organizations/`ORG_ID`/locations/`LOCATION_ID + Organizations scope, no
 25504  //     location specified (defaults to global): `organizations/`ORG_ID The
 25505  //     following example `parent` string specifies a parent project with the
 25506  //     identifier `example-project`, and specifies the `europe-west3` location
 25507  //     for processing data:
 25508  //     parent=projects/example-project/locations/europe-west3.
 25509  func (r *ProjectsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *ProjectsStoredInfoTypesCreateCall {
 25510  	c := &ProjectsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25511  	c.parentid = parentid
 25512  	c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
 25513  	return c
 25514  }
 25515  
 25516  // Fields allows partial responses to be retrieved. See
 25517  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25518  // details.
 25519  func (c *ProjectsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesCreateCall {
 25520  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25521  	return c
 25522  }
 25523  
 25524  // Context sets the context to be used in this call's Do method.
 25525  func (c *ProjectsStoredInfoTypesCreateCall) Context(ctx context.Context) *ProjectsStoredInfoTypesCreateCall {
 25526  	c.ctx_ = ctx
 25527  	return c
 25528  }
 25529  
 25530  // Header returns a http.Header that can be modified by the caller to add
 25531  // headers to the request.
 25532  func (c *ProjectsStoredInfoTypesCreateCall) Header() http.Header {
 25533  	if c.header_ == nil {
 25534  		c.header_ = make(http.Header)
 25535  	}
 25536  	return c.header_
 25537  }
 25538  
 25539  func (c *ProjectsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 25540  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25541  	var body io.Reader = nil
 25542  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
 25543  	if err != nil {
 25544  		return nil, err
 25545  	}
 25546  	c.urlParams_.Set("alt", alt)
 25547  	c.urlParams_.Set("prettyPrint", "false")
 25548  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 25549  	urls += "?" + c.urlParams_.Encode()
 25550  	req, err := http.NewRequest("POST", urls, body)
 25551  	if err != nil {
 25552  		return nil, err
 25553  	}
 25554  	req.Header = reqHeaders
 25555  	googleapi.Expand(req.URL, map[string]string{
 25556  		"parent": c.parentid,
 25557  	})
 25558  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25559  }
 25560  
 25561  // Do executes the "dlp.projects.storedInfoTypes.create" call.
 25562  // Any non-2xx status code is an error. Response headers are in either
 25563  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 25564  // was returned at all) in error.(*googleapi.Error).Header. Use
 25565  // googleapi.IsNotModified to check whether the returned error was because
 25566  // http.StatusNotModified was returned.
 25567  func (c *ProjectsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 25568  	gensupport.SetOptions(c.urlParams_, opts...)
 25569  	res, err := c.doRequest("json")
 25570  	if res != nil && res.StatusCode == http.StatusNotModified {
 25571  		if res.Body != nil {
 25572  			res.Body.Close()
 25573  		}
 25574  		return nil, gensupport.WrapError(&googleapi.Error{
 25575  			Code:   res.StatusCode,
 25576  			Header: res.Header,
 25577  		})
 25578  	}
 25579  	if err != nil {
 25580  		return nil, err
 25581  	}
 25582  	defer googleapi.CloseBody(res)
 25583  	if err := googleapi.CheckResponse(res); err != nil {
 25584  		return nil, gensupport.WrapError(err)
 25585  	}
 25586  	ret := &GooglePrivacyDlpV2StoredInfoType{
 25587  		ServerResponse: googleapi.ServerResponse{
 25588  			Header:         res.Header,
 25589  			HTTPStatusCode: res.StatusCode,
 25590  		},
 25591  	}
 25592  	target := &ret
 25593  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25594  		return nil, err
 25595  	}
 25596  	return ret, nil
 25597  }
 25598  
 25599  type ProjectsStoredInfoTypesDeleteCall struct {
 25600  	s          *Service
 25601  	name       string
 25602  	urlParams_ gensupport.URLParams
 25603  	ctx_       context.Context
 25604  	header_    http.Header
 25605  }
 25606  
 25607  // Delete: Deletes a stored infoType. See
 25608  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 25609  // to learn more.
 25610  //
 25611  //   - name: Resource name of the organization and storedInfoType to be deleted,
 25612  //     for example `organizations/433245324/storedInfoTypes/432452342` or
 25613  //     projects/project-id/storedInfoTypes/432452342.
 25614  func (r *ProjectsStoredInfoTypesService) Delete(name string) *ProjectsStoredInfoTypesDeleteCall {
 25615  	c := &ProjectsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25616  	c.name = name
 25617  	return c
 25618  }
 25619  
 25620  // Fields allows partial responses to be retrieved. See
 25621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25622  // details.
 25623  func (c *ProjectsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesDeleteCall {
 25624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25625  	return c
 25626  }
 25627  
 25628  // Context sets the context to be used in this call's Do method.
 25629  func (c *ProjectsStoredInfoTypesDeleteCall) Context(ctx context.Context) *ProjectsStoredInfoTypesDeleteCall {
 25630  	c.ctx_ = ctx
 25631  	return c
 25632  }
 25633  
 25634  // Header returns a http.Header that can be modified by the caller to add
 25635  // headers to the request.
 25636  func (c *ProjectsStoredInfoTypesDeleteCall) Header() http.Header {
 25637  	if c.header_ == nil {
 25638  		c.header_ = make(http.Header)
 25639  	}
 25640  	return c.header_
 25641  }
 25642  
 25643  func (c *ProjectsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 25644  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25645  	var body io.Reader = nil
 25646  	c.urlParams_.Set("alt", alt)
 25647  	c.urlParams_.Set("prettyPrint", "false")
 25648  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25649  	urls += "?" + c.urlParams_.Encode()
 25650  	req, err := http.NewRequest("DELETE", urls, body)
 25651  	if err != nil {
 25652  		return nil, err
 25653  	}
 25654  	req.Header = reqHeaders
 25655  	googleapi.Expand(req.URL, map[string]string{
 25656  		"name": c.name,
 25657  	})
 25658  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25659  }
 25660  
 25661  // Do executes the "dlp.projects.storedInfoTypes.delete" call.
 25662  // Any non-2xx status code is an error. Response headers are in either
 25663  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 25664  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25665  // check whether the returned error was because http.StatusNotModified was
 25666  // returned.
 25667  func (c *ProjectsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 25668  	gensupport.SetOptions(c.urlParams_, opts...)
 25669  	res, err := c.doRequest("json")
 25670  	if res != nil && res.StatusCode == http.StatusNotModified {
 25671  		if res.Body != nil {
 25672  			res.Body.Close()
 25673  		}
 25674  		return nil, gensupport.WrapError(&googleapi.Error{
 25675  			Code:   res.StatusCode,
 25676  			Header: res.Header,
 25677  		})
 25678  	}
 25679  	if err != nil {
 25680  		return nil, err
 25681  	}
 25682  	defer googleapi.CloseBody(res)
 25683  	if err := googleapi.CheckResponse(res); err != nil {
 25684  		return nil, gensupport.WrapError(err)
 25685  	}
 25686  	ret := &GoogleProtobufEmpty{
 25687  		ServerResponse: googleapi.ServerResponse{
 25688  			Header:         res.Header,
 25689  			HTTPStatusCode: res.StatusCode,
 25690  		},
 25691  	}
 25692  	target := &ret
 25693  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25694  		return nil, err
 25695  	}
 25696  	return ret, nil
 25697  }
 25698  
 25699  type ProjectsStoredInfoTypesGetCall struct {
 25700  	s            *Service
 25701  	name         string
 25702  	urlParams_   gensupport.URLParams
 25703  	ifNoneMatch_ string
 25704  	ctx_         context.Context
 25705  	header_      http.Header
 25706  }
 25707  
 25708  // Get: Gets a stored infoType. See
 25709  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 25710  // to learn more.
 25711  //
 25712  //   - name: Resource name of the organization and storedInfoType to be read, for
 25713  //     example `organizations/433245324/storedInfoTypes/432452342` or
 25714  //     projects/project-id/storedInfoTypes/432452342.
 25715  func (r *ProjectsStoredInfoTypesService) Get(name string) *ProjectsStoredInfoTypesGetCall {
 25716  	c := &ProjectsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25717  	c.name = name
 25718  	return c
 25719  }
 25720  
 25721  // Fields allows partial responses to be retrieved. See
 25722  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25723  // details.
 25724  func (c *ProjectsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesGetCall {
 25725  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25726  	return c
 25727  }
 25728  
 25729  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25730  // object's ETag matches the given value. This is useful for getting updates
 25731  // only after the object has changed since the last request.
 25732  func (c *ProjectsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *ProjectsStoredInfoTypesGetCall {
 25733  	c.ifNoneMatch_ = entityTag
 25734  	return c
 25735  }
 25736  
 25737  // Context sets the context to be used in this call's Do method.
 25738  func (c *ProjectsStoredInfoTypesGetCall) Context(ctx context.Context) *ProjectsStoredInfoTypesGetCall {
 25739  	c.ctx_ = ctx
 25740  	return c
 25741  }
 25742  
 25743  // Header returns a http.Header that can be modified by the caller to add
 25744  // headers to the request.
 25745  func (c *ProjectsStoredInfoTypesGetCall) Header() http.Header {
 25746  	if c.header_ == nil {
 25747  		c.header_ = make(http.Header)
 25748  	}
 25749  	return c.header_
 25750  }
 25751  
 25752  func (c *ProjectsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
 25753  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25754  	if c.ifNoneMatch_ != "" {
 25755  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25756  	}
 25757  	var body io.Reader = nil
 25758  	c.urlParams_.Set("alt", alt)
 25759  	c.urlParams_.Set("prettyPrint", "false")
 25760  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 25761  	urls += "?" + c.urlParams_.Encode()
 25762  	req, err := http.NewRequest("GET", urls, body)
 25763  	if err != nil {
 25764  		return nil, err
 25765  	}
 25766  	req.Header = reqHeaders
 25767  	googleapi.Expand(req.URL, map[string]string{
 25768  		"name": c.name,
 25769  	})
 25770  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25771  }
 25772  
 25773  // Do executes the "dlp.projects.storedInfoTypes.get" call.
 25774  // Any non-2xx status code is an error. Response headers are in either
 25775  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 25776  // was returned at all) in error.(*googleapi.Error).Header. Use
 25777  // googleapi.IsNotModified to check whether the returned error was because
 25778  // http.StatusNotModified was returned.
 25779  func (c *ProjectsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 25780  	gensupport.SetOptions(c.urlParams_, opts...)
 25781  	res, err := c.doRequest("json")
 25782  	if res != nil && res.StatusCode == http.StatusNotModified {
 25783  		if res.Body != nil {
 25784  			res.Body.Close()
 25785  		}
 25786  		return nil, gensupport.WrapError(&googleapi.Error{
 25787  			Code:   res.StatusCode,
 25788  			Header: res.Header,
 25789  		})
 25790  	}
 25791  	if err != nil {
 25792  		return nil, err
 25793  	}
 25794  	defer googleapi.CloseBody(res)
 25795  	if err := googleapi.CheckResponse(res); err != nil {
 25796  		return nil, gensupport.WrapError(err)
 25797  	}
 25798  	ret := &GooglePrivacyDlpV2StoredInfoType{
 25799  		ServerResponse: googleapi.ServerResponse{
 25800  			Header:         res.Header,
 25801  			HTTPStatusCode: res.StatusCode,
 25802  		},
 25803  	}
 25804  	target := &ret
 25805  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25806  		return nil, err
 25807  	}
 25808  	return ret, nil
 25809  }
 25810  
 25811  type ProjectsStoredInfoTypesListCall struct {
 25812  	s            *Service
 25813  	parentid     string
 25814  	urlParams_   gensupport.URLParams
 25815  	ifNoneMatch_ string
 25816  	ctx_         context.Context
 25817  	header_      http.Header
 25818  }
 25819  
 25820  // List: Lists stored infoTypes. See
 25821  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 25822  // to learn more.
 25823  //
 25824  //   - parent: Parent resource name. The format of this value varies depending on
 25825  //     the scope of the request (project or organization) and whether you have
 25826  //     specified a processing location
 25827  //     (https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
 25828  //   - Projects scope, location specified:
 25829  //     `projects/`PROJECT_ID`/locations/`LOCATION_ID + Projects scope, no
 25830  //     location specified (defaults to global): `projects/`PROJECT_ID The
 25831  //     following example `parent` string specifies a parent project with the
 25832  //     identifier `example-project`, and specifies the `europe-west3` location
 25833  //     for processing data:
 25834  //     parent=projects/example-project/locations/europe-west3.
 25835  func (r *ProjectsStoredInfoTypesService) List(parentid string) *ProjectsStoredInfoTypesListCall {
 25836  	c := &ProjectsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25837  	c.parentid = parentid
 25838  	return c
 25839  }
 25840  
 25841  // LocationId sets the optional parameter "locationId": Deprecated. This field
 25842  // has no effect.
 25843  func (c *ProjectsStoredInfoTypesListCall) LocationId(locationId string) *ProjectsStoredInfoTypesListCall {
 25844  	c.urlParams_.Set("locationId", locationId)
 25845  	return c
 25846  }
 25847  
 25848  // OrderBy sets the optional parameter "orderBy": Comma separated list of
 25849  // fields to order by, followed by `asc` or `desc` postfix. This list is case
 25850  // insensitive. The default sorting order is ascending. Redundant space
 25851  // characters are insignificant. Example: `name asc, display_name, create_time
 25852  // desc` Supported fields are: - `create_time`: corresponds to the time the
 25853  // most recent version of the resource was created. - `state`: corresponds to
 25854  // the state of the resource. - `name`: corresponds to resource name. -
 25855  // `display_name`: corresponds to info type's display name.
 25856  func (c *ProjectsStoredInfoTypesListCall) OrderBy(orderBy string) *ProjectsStoredInfoTypesListCall {
 25857  	c.urlParams_.Set("orderBy", orderBy)
 25858  	return c
 25859  }
 25860  
 25861  // PageSize sets the optional parameter "pageSize": Size of the page. This
 25862  // value can be limited by the server. If zero server returns a page of max
 25863  // size 100.
 25864  func (c *ProjectsStoredInfoTypesListCall) PageSize(pageSize int64) *ProjectsStoredInfoTypesListCall {
 25865  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25866  	return c
 25867  }
 25868  
 25869  // PageToken sets the optional parameter "pageToken": Page token to continue
 25870  // retrieval. Comes from the previous call to `ListStoredInfoTypes`.
 25871  func (c *ProjectsStoredInfoTypesListCall) PageToken(pageToken string) *ProjectsStoredInfoTypesListCall {
 25872  	c.urlParams_.Set("pageToken", pageToken)
 25873  	return c
 25874  }
 25875  
 25876  // Fields allows partial responses to be retrieved. See
 25877  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25878  // details.
 25879  func (c *ProjectsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesListCall {
 25880  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25881  	return c
 25882  }
 25883  
 25884  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25885  // object's ETag matches the given value. This is useful for getting updates
 25886  // only after the object has changed since the last request.
 25887  func (c *ProjectsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *ProjectsStoredInfoTypesListCall {
 25888  	c.ifNoneMatch_ = entityTag
 25889  	return c
 25890  }
 25891  
 25892  // Context sets the context to be used in this call's Do method.
 25893  func (c *ProjectsStoredInfoTypesListCall) Context(ctx context.Context) *ProjectsStoredInfoTypesListCall {
 25894  	c.ctx_ = ctx
 25895  	return c
 25896  }
 25897  
 25898  // Header returns a http.Header that can be modified by the caller to add
 25899  // headers to the request.
 25900  func (c *ProjectsStoredInfoTypesListCall) Header() http.Header {
 25901  	if c.header_ == nil {
 25902  		c.header_ = make(http.Header)
 25903  	}
 25904  	return c.header_
 25905  }
 25906  
 25907  func (c *ProjectsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
 25908  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25909  	if c.ifNoneMatch_ != "" {
 25910  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25911  	}
 25912  	var body io.Reader = nil
 25913  	c.urlParams_.Set("alt", alt)
 25914  	c.urlParams_.Set("prettyPrint", "false")
 25915  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
 25916  	urls += "?" + c.urlParams_.Encode()
 25917  	req, err := http.NewRequest("GET", urls, body)
 25918  	if err != nil {
 25919  		return nil, err
 25920  	}
 25921  	req.Header = reqHeaders
 25922  	googleapi.Expand(req.URL, map[string]string{
 25923  		"parent": c.parentid,
 25924  	})
 25925  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25926  }
 25927  
 25928  // Do executes the "dlp.projects.storedInfoTypes.list" call.
 25929  // Any non-2xx status code is an error. Response headers are in either
 25930  // *GooglePrivacyDlpV2ListStoredInfoTypesResponse.ServerResponse.Header or (if
 25931  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 25932  // googleapi.IsNotModified to check whether the returned error was because
 25933  // http.StatusNotModified was returned.
 25934  func (c *ProjectsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
 25935  	gensupport.SetOptions(c.urlParams_, opts...)
 25936  	res, err := c.doRequest("json")
 25937  	if res != nil && res.StatusCode == http.StatusNotModified {
 25938  		if res.Body != nil {
 25939  			res.Body.Close()
 25940  		}
 25941  		return nil, gensupport.WrapError(&googleapi.Error{
 25942  			Code:   res.StatusCode,
 25943  			Header: res.Header,
 25944  		})
 25945  	}
 25946  	if err != nil {
 25947  		return nil, err
 25948  	}
 25949  	defer googleapi.CloseBody(res)
 25950  	if err := googleapi.CheckResponse(res); err != nil {
 25951  		return nil, gensupport.WrapError(err)
 25952  	}
 25953  	ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
 25954  		ServerResponse: googleapi.ServerResponse{
 25955  			Header:         res.Header,
 25956  			HTTPStatusCode: res.StatusCode,
 25957  		},
 25958  	}
 25959  	target := &ret
 25960  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25961  		return nil, err
 25962  	}
 25963  	return ret, nil
 25964  }
 25965  
 25966  // Pages invokes f for each page of results.
 25967  // A non-nil error returned from f will halt the iteration.
 25968  // The provided context supersedes any context provided to the Context method.
 25969  func (c *ProjectsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
 25970  	c.ctx_ = ctx
 25971  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25972  	for {
 25973  		x, err := c.Do()
 25974  		if err != nil {
 25975  			return err
 25976  		}
 25977  		if err := f(x); err != nil {
 25978  			return err
 25979  		}
 25980  		if x.NextPageToken == "" {
 25981  			return nil
 25982  		}
 25983  		c.PageToken(x.NextPageToken)
 25984  	}
 25985  }
 25986  
 25987  type ProjectsStoredInfoTypesPatchCall struct {
 25988  	s                                             *Service
 25989  	name                                          string
 25990  	googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
 25991  	urlParams_                                    gensupport.URLParams
 25992  	ctx_                                          context.Context
 25993  	header_                                       http.Header
 25994  }
 25995  
 25996  // Patch: Updates the stored infoType by creating a new version. The existing
 25997  // version will continue to be used until the new version is ready. See
 25998  // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
 25999  // to learn more.
 26000  //
 26001  //   - name: Resource name of organization and storedInfoType to be updated, for
 26002  //     example `organizations/433245324/storedInfoTypes/432452342` or
 26003  //     projects/project-id/storedInfoTypes/432452342.
 26004  func (r *ProjectsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *ProjectsStoredInfoTypesPatchCall {
 26005  	c := &ProjectsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26006  	c.name = name
 26007  	c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
 26008  	return c
 26009  }
 26010  
 26011  // Fields allows partial responses to be retrieved. See
 26012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26013  // details.
 26014  func (c *ProjectsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesPatchCall {
 26015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26016  	return c
 26017  }
 26018  
 26019  // Context sets the context to be used in this call's Do method.
 26020  func (c *ProjectsStoredInfoTypesPatchCall) Context(ctx context.Context) *ProjectsStoredInfoTypesPatchCall {
 26021  	c.ctx_ = ctx
 26022  	return c
 26023  }
 26024  
 26025  // Header returns a http.Header that can be modified by the caller to add
 26026  // headers to the request.
 26027  func (c *ProjectsStoredInfoTypesPatchCall) Header() http.Header {
 26028  	if c.header_ == nil {
 26029  		c.header_ = make(http.Header)
 26030  	}
 26031  	return c.header_
 26032  }
 26033  
 26034  func (c *ProjectsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 26035  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26036  	var body io.Reader = nil
 26037  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
 26038  	if err != nil {
 26039  		return nil, err
 26040  	}
 26041  	c.urlParams_.Set("alt", alt)
 26042  	c.urlParams_.Set("prettyPrint", "false")
 26043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
 26044  	urls += "?" + c.urlParams_.Encode()
 26045  	req, err := http.NewRequest("PATCH", urls, body)
 26046  	if err != nil {
 26047  		return nil, err
 26048  	}
 26049  	req.Header = reqHeaders
 26050  	googleapi.Expand(req.URL, map[string]string{
 26051  		"name": c.name,
 26052  	})
 26053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26054  }
 26055  
 26056  // Do executes the "dlp.projects.storedInfoTypes.patch" call.
 26057  // Any non-2xx status code is an error. Response headers are in either
 26058  // *GooglePrivacyDlpV2StoredInfoType.ServerResponse.Header or (if a response
 26059  // was returned at all) in error.(*googleapi.Error).Header. Use
 26060  // googleapi.IsNotModified to check whether the returned error was because
 26061  // http.StatusNotModified was returned.
 26062  func (c *ProjectsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
 26063  	gensupport.SetOptions(c.urlParams_, opts...)
 26064  	res, err := c.doRequest("json")
 26065  	if res != nil && res.StatusCode == http.StatusNotModified {
 26066  		if res.Body != nil {
 26067  			res.Body.Close()
 26068  		}
 26069  		return nil, gensupport.WrapError(&googleapi.Error{
 26070  			Code:   res.StatusCode,
 26071  			Header: res.Header,
 26072  		})
 26073  	}
 26074  	if err != nil {
 26075  		return nil, err
 26076  	}
 26077  	defer googleapi.CloseBody(res)
 26078  	if err := googleapi.CheckResponse(res); err != nil {
 26079  		return nil, gensupport.WrapError(err)
 26080  	}
 26081  	ret := &GooglePrivacyDlpV2StoredInfoType{
 26082  		ServerResponse: googleapi.ServerResponse{
 26083  			Header:         res.Header,
 26084  			HTTPStatusCode: res.StatusCode,
 26085  		},
 26086  	}
 26087  	target := &ret
 26088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26089  		return nil, err
 26090  	}
 26091  	return ret, nil
 26092  }
 26093  

View as plain text