...

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

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

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package datacatalog provides access to the Google Cloud Data Catalog API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/data-catalog/docs/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/datacatalog/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	datacatalogService, err := datacatalog.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	datacatalogService, err := datacatalog.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	datacatalogService, err := datacatalog.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package datacatalog // import "google.golang.org/api/datacatalog/v1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "datacatalog:v1"
    90  const apiName = "datacatalog"
    91  const apiVersion = "v1"
    92  const basePath = "https://datacatalog.googleapis.com/"
    93  const basePathTemplate = "https://datacatalog.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://datacatalog.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Catalog = NewCatalogService(s)
   139  	s.Entries = NewEntriesService(s)
   140  	s.Projects = NewProjectsService(s)
   141  	return s, nil
   142  }
   143  
   144  type Service struct {
   145  	client    *http.Client
   146  	BasePath  string // API endpoint base URL
   147  	UserAgent string // optional additional User-Agent fragment
   148  
   149  	Catalog *CatalogService
   150  
   151  	Entries *EntriesService
   152  
   153  	Projects *ProjectsService
   154  }
   155  
   156  func (s *Service) userAgent() string {
   157  	if s.UserAgent == "" {
   158  		return googleapi.UserAgent
   159  	}
   160  	return googleapi.UserAgent + " " + s.UserAgent
   161  }
   162  
   163  func NewCatalogService(s *Service) *CatalogService {
   164  	rs := &CatalogService{s: s}
   165  	return rs
   166  }
   167  
   168  type CatalogService struct {
   169  	s *Service
   170  }
   171  
   172  func NewEntriesService(s *Service) *EntriesService {
   173  	rs := &EntriesService{s: s}
   174  	return rs
   175  }
   176  
   177  type EntriesService struct {
   178  	s *Service
   179  }
   180  
   181  func NewProjectsService(s *Service) *ProjectsService {
   182  	rs := &ProjectsService{s: s}
   183  	rs.Locations = NewProjectsLocationsService(s)
   184  	return rs
   185  }
   186  
   187  type ProjectsService struct {
   188  	s *Service
   189  
   190  	Locations *ProjectsLocationsService
   191  }
   192  
   193  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   194  	rs := &ProjectsLocationsService{s: s}
   195  	rs.EntryGroups = NewProjectsLocationsEntryGroupsService(s)
   196  	rs.Operations = NewProjectsLocationsOperationsService(s)
   197  	rs.TagTemplates = NewProjectsLocationsTagTemplatesService(s)
   198  	rs.Taxonomies = NewProjectsLocationsTaxonomiesService(s)
   199  	return rs
   200  }
   201  
   202  type ProjectsLocationsService struct {
   203  	s *Service
   204  
   205  	EntryGroups *ProjectsLocationsEntryGroupsService
   206  
   207  	Operations *ProjectsLocationsOperationsService
   208  
   209  	TagTemplates *ProjectsLocationsTagTemplatesService
   210  
   211  	Taxonomies *ProjectsLocationsTaxonomiesService
   212  }
   213  
   214  func NewProjectsLocationsEntryGroupsService(s *Service) *ProjectsLocationsEntryGroupsService {
   215  	rs := &ProjectsLocationsEntryGroupsService{s: s}
   216  	rs.Entries = NewProjectsLocationsEntryGroupsEntriesService(s)
   217  	rs.Tags = NewProjectsLocationsEntryGroupsTagsService(s)
   218  	return rs
   219  }
   220  
   221  type ProjectsLocationsEntryGroupsService struct {
   222  	s *Service
   223  
   224  	Entries *ProjectsLocationsEntryGroupsEntriesService
   225  
   226  	Tags *ProjectsLocationsEntryGroupsTagsService
   227  }
   228  
   229  func NewProjectsLocationsEntryGroupsEntriesService(s *Service) *ProjectsLocationsEntryGroupsEntriesService {
   230  	rs := &ProjectsLocationsEntryGroupsEntriesService{s: s}
   231  	rs.Tags = NewProjectsLocationsEntryGroupsEntriesTagsService(s)
   232  	return rs
   233  }
   234  
   235  type ProjectsLocationsEntryGroupsEntriesService struct {
   236  	s *Service
   237  
   238  	Tags *ProjectsLocationsEntryGroupsEntriesTagsService
   239  }
   240  
   241  func NewProjectsLocationsEntryGroupsEntriesTagsService(s *Service) *ProjectsLocationsEntryGroupsEntriesTagsService {
   242  	rs := &ProjectsLocationsEntryGroupsEntriesTagsService{s: s}
   243  	return rs
   244  }
   245  
   246  type ProjectsLocationsEntryGroupsEntriesTagsService struct {
   247  	s *Service
   248  }
   249  
   250  func NewProjectsLocationsEntryGroupsTagsService(s *Service) *ProjectsLocationsEntryGroupsTagsService {
   251  	rs := &ProjectsLocationsEntryGroupsTagsService{s: s}
   252  	return rs
   253  }
   254  
   255  type ProjectsLocationsEntryGroupsTagsService struct {
   256  	s *Service
   257  }
   258  
   259  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   260  	rs := &ProjectsLocationsOperationsService{s: s}
   261  	return rs
   262  }
   263  
   264  type ProjectsLocationsOperationsService struct {
   265  	s *Service
   266  }
   267  
   268  func NewProjectsLocationsTagTemplatesService(s *Service) *ProjectsLocationsTagTemplatesService {
   269  	rs := &ProjectsLocationsTagTemplatesService{s: s}
   270  	rs.Fields = NewProjectsLocationsTagTemplatesFieldsService(s)
   271  	return rs
   272  }
   273  
   274  type ProjectsLocationsTagTemplatesService struct {
   275  	s *Service
   276  
   277  	Fields *ProjectsLocationsTagTemplatesFieldsService
   278  }
   279  
   280  func NewProjectsLocationsTagTemplatesFieldsService(s *Service) *ProjectsLocationsTagTemplatesFieldsService {
   281  	rs := &ProjectsLocationsTagTemplatesFieldsService{s: s}
   282  	rs.EnumValues = NewProjectsLocationsTagTemplatesFieldsEnumValuesService(s)
   283  	return rs
   284  }
   285  
   286  type ProjectsLocationsTagTemplatesFieldsService struct {
   287  	s *Service
   288  
   289  	EnumValues *ProjectsLocationsTagTemplatesFieldsEnumValuesService
   290  }
   291  
   292  func NewProjectsLocationsTagTemplatesFieldsEnumValuesService(s *Service) *ProjectsLocationsTagTemplatesFieldsEnumValuesService {
   293  	rs := &ProjectsLocationsTagTemplatesFieldsEnumValuesService{s: s}
   294  	return rs
   295  }
   296  
   297  type ProjectsLocationsTagTemplatesFieldsEnumValuesService struct {
   298  	s *Service
   299  }
   300  
   301  func NewProjectsLocationsTaxonomiesService(s *Service) *ProjectsLocationsTaxonomiesService {
   302  	rs := &ProjectsLocationsTaxonomiesService{s: s}
   303  	rs.PolicyTags = NewProjectsLocationsTaxonomiesPolicyTagsService(s)
   304  	return rs
   305  }
   306  
   307  type ProjectsLocationsTaxonomiesService struct {
   308  	s *Service
   309  
   310  	PolicyTags *ProjectsLocationsTaxonomiesPolicyTagsService
   311  }
   312  
   313  func NewProjectsLocationsTaxonomiesPolicyTagsService(s *Service) *ProjectsLocationsTaxonomiesPolicyTagsService {
   314  	rs := &ProjectsLocationsTaxonomiesPolicyTagsService{s: s}
   315  	return rs
   316  }
   317  
   318  type ProjectsLocationsTaxonomiesPolicyTagsService struct {
   319  	s *Service
   320  }
   321  
   322  // Binding: Associates `members`, or principals, with a `role`.
   323  type Binding struct {
   324  	// Condition: The condition that is associated with this binding. If the
   325  	// condition evaluates to `true`, then this binding applies to the current
   326  	// request. If the condition evaluates to `false`, then this binding does not
   327  	// apply to the current request. However, a different role binding might grant
   328  	// the same role to one or more of the principals in this binding. To learn
   329  	// which resources support conditions in their IAM policies, see the IAM
   330  	// documentation
   331  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
   332  	Condition *Expr `json:"condition,omitempty"`
   333  	// Members: Specifies the principals requesting access for a Google Cloud
   334  	// resource. `members` can have the following values: * `allUsers`: A special
   335  	// identifier that represents anyone who is on the internet; with or without a
   336  	// Google account. * `allAuthenticatedUsers`: A special identifier that
   337  	// represents anyone who is authenticated with a Google account or a service
   338  	// account. Does not include identities that come from external identity
   339  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
   340  	// address that represents a specific Google account. For example,
   341  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
   342  	// represents a Google service account. For example,
   343  	// `my-other-app@appspot.gserviceaccount.com`. *
   344  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
   345  	// identifier for a Kubernetes service account
   346  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
   347  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
   348  	// `group:{emailid}`: An email address that represents a Google group. For
   349  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
   350  	// (primary) that represents all the users of that domain. For example,
   351  	// `google.com` or `example.com`. *
   352  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
   353  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
   354  	// pool. *
   355  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   356  	// group/{group_id}`: All workforce identities in a group. *
   357  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   358  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
   359  	// a specific attribute value. *
   360  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
   361  	// *`: All identities in a workforce identity pool. *
   362  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
   363  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
   364  	// identity in a workload identity pool. *
   365  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   366  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
   367  	// group. *
   368  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   369  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
   370  	// `: All identities in a workload identity pool with a certain attribute. *
   371  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
   372  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
   373  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
   374  	// unique identifier) representing a user that has been recently deleted. For
   375  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
   376  	// recovered, this value reverts to `user:{emailid}` and the recovered user
   377  	// retains the role in the binding. *
   378  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
   379  	// unique identifier) representing a service account that has been recently
   380  	// deleted. For example,
   381  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
   382  	// service account is undeleted, this value reverts to
   383  	// `serviceAccount:{emailid}` and the undeleted service account retains the
   384  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
   385  	// address (plus unique identifier) representing a Google group that has been
   386  	// recently deleted. For example,
   387  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
   388  	// this value reverts to `group:{emailid}` and the recovered group retains the
   389  	// role in the binding. *
   390  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
   391  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
   392  	// workforce identity pool. For example,
   393  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
   394  	// ol-id/subject/my-subject-attribute-value`.
   395  	Members []string `json:"members,omitempty"`
   396  	// Role: Role that is assigned to the list of `members`, or principals. For
   397  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
   398  	// of the IAM roles and permissions, see the IAM documentation
   399  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
   400  	// available pre-defined roles, see here
   401  	// (https://cloud.google.com/iam/docs/understanding-roles).
   402  	Role string `json:"role,omitempty"`
   403  	// ForceSendFields is a list of field names (e.g. "Condition") to
   404  	// unconditionally include in API requests. By default, fields with empty or
   405  	// default values are omitted from API requests. See
   406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   407  	// details.
   408  	ForceSendFields []string `json:"-"`
   409  	// NullFields is a list of field names (e.g. "Condition") to include in API
   410  	// requests with the JSON null value. By default, fields with empty values are
   411  	// omitted from API requests. See
   412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   413  	NullFields []string `json:"-"`
   414  }
   415  
   416  func (s *Binding) MarshalJSON() ([]byte, error) {
   417  	type NoMethod Binding
   418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   419  }
   420  
   421  // Empty: A generic empty message that you can re-use to avoid defining
   422  // duplicated empty messages in your APIs. A typical example is to use it as
   423  // the request or the response type of an API method. For instance: service Foo
   424  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   425  type Empty struct {
   426  	// ServerResponse contains the HTTP response code and headers from the server.
   427  	googleapi.ServerResponse `json:"-"`
   428  }
   429  
   430  // Expr: Represents a textual expression in the Common Expression Language
   431  // (CEL) syntax. CEL is a C-like expression language. The syntax and semantics
   432  // of CEL are documented at https://github.com/google/cel-spec. Example
   433  // (Comparison): title: "Summary size limit" description: "Determines if a
   434  // summary is less than 100 chars" expression: "document.summary.size() < 100"
   435  // Example (Equality): title: "Requestor is owner" description: "Determines if
   436  // requestor is the document owner" expression: "document.owner ==
   437  // request.auth.claims.email" Example (Logic): title: "Public documents"
   438  // description: "Determine whether the document should be publicly visible"
   439  // expression: "document.type != 'private' && document.type != 'internal'"
   440  // Example (Data Manipulation): title: "Notification string" description:
   441  // "Create a notification string with a timestamp." expression: "'New message
   442  // received at ' + string(document.create_time)" The exact variables and
   443  // functions that may be referenced within an expression are determined by the
   444  // service that evaluates it. See the service documentation for additional
   445  // information.
   446  type Expr struct {
   447  	// Description: Optional. Description of the expression. This is a longer text
   448  	// which describes the expression, e.g. when hovered over it in a UI.
   449  	Description string `json:"description,omitempty"`
   450  	// Expression: Textual representation of an expression in Common Expression
   451  	// Language syntax.
   452  	Expression string `json:"expression,omitempty"`
   453  	// Location: Optional. String indicating the location of the expression for
   454  	// error reporting, e.g. a file name and a position in the file.
   455  	Location string `json:"location,omitempty"`
   456  	// Title: Optional. Title for the expression, i.e. a short string describing
   457  	// its purpose. This can be used e.g. in UIs which allow to enter the
   458  	// expression.
   459  	Title string `json:"title,omitempty"`
   460  	// ForceSendFields is a list of field names (e.g. "Description") to
   461  	// unconditionally include in API requests. By default, fields with empty or
   462  	// default values are omitted from API requests. See
   463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   464  	// details.
   465  	ForceSendFields []string `json:"-"`
   466  	// NullFields is a list of field names (e.g. "Description") to include in API
   467  	// requests with the JSON null value. By default, fields with empty values are
   468  	// omitted from API requests. See
   469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   470  	NullFields []string `json:"-"`
   471  }
   472  
   473  func (s *Expr) MarshalJSON() ([]byte, error) {
   474  	type NoMethod Expr
   475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   476  }
   477  
   478  // GetIamPolicyRequest: Request message for `GetIamPolicy` method.
   479  type GetIamPolicyRequest struct {
   480  	// Options: OPTIONAL: A `GetPolicyOptions` object for specifying options to
   481  	// `GetIamPolicy`.
   482  	Options *GetPolicyOptions `json:"options,omitempty"`
   483  	// ForceSendFields is a list of field names (e.g. "Options") to unconditionally
   484  	// include in API requests. By default, fields with empty or default values are
   485  	// omitted from API requests. See
   486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   487  	// details.
   488  	ForceSendFields []string `json:"-"`
   489  	// NullFields is a list of field names (e.g. "Options") to include in API
   490  	// requests with the JSON null value. By default, fields with empty values are
   491  	// omitted from API requests. See
   492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   493  	NullFields []string `json:"-"`
   494  }
   495  
   496  func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
   497  	type NoMethod GetIamPolicyRequest
   498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   499  }
   500  
   501  // GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
   502  type GetPolicyOptions struct {
   503  	// RequestedPolicyVersion: Optional. The maximum policy version that will be
   504  	// used to format the policy. Valid values are 0, 1, and 3. Requests specifying
   505  	// an invalid value will be rejected. Requests for policies with any
   506  	// conditional role bindings must specify version 3. Policies with no
   507  	// conditional role bindings may specify any valid value or leave the field
   508  	// unset. The policy in the response might use the policy version that you
   509  	// specified, or it might use a lower policy version. For example, if you
   510  	// specify version 3, but the policy has no conditional role bindings, the
   511  	// response uses version 1. To learn which resources support conditions in
   512  	// their IAM policies, see the IAM documentation
   513  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
   514  	RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
   515  	// ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to
   516  	// unconditionally include in API requests. By default, fields with empty or
   517  	// default values are omitted from API requests. See
   518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   519  	// details.
   520  	ForceSendFields []string `json:"-"`
   521  	// NullFields is a list of field names (e.g. "RequestedPolicyVersion") to
   522  	// include in API requests with the JSON null value. By default, fields with
   523  	// empty values are omitted from API requests. See
   524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   525  	NullFields []string `json:"-"`
   526  }
   527  
   528  func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) {
   529  	type NoMethod GetPolicyOptions
   530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   531  }
   532  
   533  // GoogleCloudDatacatalogV1BigQueryConnectionSpec: Specification for the
   534  // BigQuery connection.
   535  type GoogleCloudDatacatalogV1BigQueryConnectionSpec struct {
   536  	// CloudSql: Specification for the BigQuery connection to a Cloud SQL instance.
   537  	CloudSql *GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec `json:"cloudSql,omitempty"`
   538  	// ConnectionType: The type of the BigQuery connection.
   539  	//
   540  	// Possible values:
   541  	//   "CONNECTION_TYPE_UNSPECIFIED" - Unspecified type.
   542  	//   "CLOUD_SQL" - Cloud SQL connection.
   543  	ConnectionType string `json:"connectionType,omitempty"`
   544  	// HasCredential: True if there are credentials attached to the BigQuery
   545  	// connection; false otherwise.
   546  	HasCredential bool `json:"hasCredential,omitempty"`
   547  	// ForceSendFields is a list of field names (e.g. "CloudSql") to
   548  	// unconditionally include in API requests. By default, fields with empty or
   549  	// default values are omitted from API requests. See
   550  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   551  	// details.
   552  	ForceSendFields []string `json:"-"`
   553  	// NullFields is a list of field names (e.g. "CloudSql") to include in API
   554  	// requests with the JSON null value. By default, fields with empty values are
   555  	// omitted from API requests. See
   556  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   557  	NullFields []string `json:"-"`
   558  }
   559  
   560  func (s *GoogleCloudDatacatalogV1BigQueryConnectionSpec) MarshalJSON() ([]byte, error) {
   561  	type NoMethod GoogleCloudDatacatalogV1BigQueryConnectionSpec
   562  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   563  }
   564  
   565  // GoogleCloudDatacatalogV1BigQueryDateShardedSpec: Specification for a group
   566  // of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more
   567  // information, see [Introduction to partitioned tables]
   568  // (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
   569  type GoogleCloudDatacatalogV1BigQueryDateShardedSpec struct {
   570  	// Dataset: Output only. The Data Catalog resource name of the dataset entry
   571  	// the current table belongs to. For example:
   572  	// `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entr
   573  	// ies/{ENTRY_ID}`.
   574  	Dataset string `json:"dataset,omitempty"`
   575  	// LatestShardResource: Output only. BigQuery resource name of the latest
   576  	// shard.
   577  	LatestShardResource string `json:"latestShardResource,omitempty"`
   578  	// ShardCount: Output only. Total number of shards.
   579  	ShardCount int64 `json:"shardCount,omitempty,string"`
   580  	// TablePrefix: Output only. The table name prefix of the shards. The name of
   581  	// any given shard is `[table_prefix]YYYYMMDD`. For example, for the
   582  	// `MyTable20180101` shard, the `table_prefix` is `MyTable`.
   583  	TablePrefix string `json:"tablePrefix,omitempty"`
   584  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
   585  	// include in API requests. By default, fields with empty or default values are
   586  	// omitted from API requests. See
   587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   588  	// details.
   589  	ForceSendFields []string `json:"-"`
   590  	// NullFields is a list of field names (e.g. "Dataset") to include in API
   591  	// requests with the JSON null value. By default, fields with empty values are
   592  	// omitted from API requests. See
   593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   594  	NullFields []string `json:"-"`
   595  }
   596  
   597  func (s *GoogleCloudDatacatalogV1BigQueryDateShardedSpec) MarshalJSON() ([]byte, error) {
   598  	type NoMethod GoogleCloudDatacatalogV1BigQueryDateShardedSpec
   599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   600  }
   601  
   602  // GoogleCloudDatacatalogV1BigQueryRoutineSpec: Fields specific for BigQuery
   603  // routines.
   604  type GoogleCloudDatacatalogV1BigQueryRoutineSpec struct {
   605  	// ImportedLibraries: Paths of the imported libraries.
   606  	ImportedLibraries []string `json:"importedLibraries,omitempty"`
   607  	// ForceSendFields is a list of field names (e.g. "ImportedLibraries") to
   608  	// unconditionally include in API requests. By default, fields with empty or
   609  	// default values are omitted from API requests. See
   610  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   611  	// details.
   612  	ForceSendFields []string `json:"-"`
   613  	// NullFields is a list of field names (e.g. "ImportedLibraries") to include in
   614  	// API requests with the JSON null value. By default, fields with empty values
   615  	// are omitted from API requests. See
   616  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   617  	NullFields []string `json:"-"`
   618  }
   619  
   620  func (s *GoogleCloudDatacatalogV1BigQueryRoutineSpec) MarshalJSON() ([]byte, error) {
   621  	type NoMethod GoogleCloudDatacatalogV1BigQueryRoutineSpec
   622  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   623  }
   624  
   625  // GoogleCloudDatacatalogV1BigQueryTableSpec: Describes a BigQuery table.
   626  type GoogleCloudDatacatalogV1BigQueryTableSpec struct {
   627  	// TableSourceType: Output only. The table source type.
   628  	//
   629  	// Possible values:
   630  	//   "TABLE_SOURCE_TYPE_UNSPECIFIED" - Default unknown type.
   631  	//   "BIGQUERY_VIEW" - Table view.
   632  	//   "BIGQUERY_TABLE" - BigQuery native table.
   633  	//   "BIGQUERY_MATERIALIZED_VIEW" - BigQuery materialized view.
   634  	TableSourceType string `json:"tableSourceType,omitempty"`
   635  	// TableSpec: Specification of a BigQuery table. Populated only if the
   636  	// `table_source_type` is `BIGQUERY_TABLE`.
   637  	TableSpec *GoogleCloudDatacatalogV1TableSpec `json:"tableSpec,omitempty"`
   638  	// ViewSpec: Table view specification. Populated only if the
   639  	// `table_source_type` is `BIGQUERY_VIEW`.
   640  	ViewSpec *GoogleCloudDatacatalogV1ViewSpec `json:"viewSpec,omitempty"`
   641  	// ForceSendFields is a list of field names (e.g. "TableSourceType") to
   642  	// unconditionally include in API requests. By default, fields with empty or
   643  	// default values are omitted from API requests. See
   644  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   645  	// details.
   646  	ForceSendFields []string `json:"-"`
   647  	// NullFields is a list of field names (e.g. "TableSourceType") to include in
   648  	// API requests with the JSON null value. By default, fields with empty values
   649  	// are omitted from API requests. See
   650  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   651  	NullFields []string `json:"-"`
   652  }
   653  
   654  func (s *GoogleCloudDatacatalogV1BigQueryTableSpec) MarshalJSON() ([]byte, error) {
   655  	type NoMethod GoogleCloudDatacatalogV1BigQueryTableSpec
   656  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   657  }
   658  
   659  // GoogleCloudDatacatalogV1BusinessContext: Business Context of the entry.
   660  type GoogleCloudDatacatalogV1BusinessContext struct {
   661  	// Contacts: Contact people for the entry.
   662  	Contacts *GoogleCloudDatacatalogV1Contacts `json:"contacts,omitempty"`
   663  	// EntryOverview: Entry overview fields for rich text descriptions of entries.
   664  	EntryOverview *GoogleCloudDatacatalogV1EntryOverview `json:"entryOverview,omitempty"`
   665  	// ForceSendFields is a list of field names (e.g. "Contacts") to
   666  	// unconditionally include in API requests. By default, fields with empty or
   667  	// default values are omitted from API requests. See
   668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   669  	// details.
   670  	ForceSendFields []string `json:"-"`
   671  	// NullFields is a list of field names (e.g. "Contacts") to include in API
   672  	// requests with the JSON null value. By default, fields with empty values are
   673  	// omitted from API requests. See
   674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   675  	NullFields []string `json:"-"`
   676  }
   677  
   678  func (s *GoogleCloudDatacatalogV1BusinessContext) MarshalJSON() ([]byte, error) {
   679  	type NoMethod GoogleCloudDatacatalogV1BusinessContext
   680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   681  }
   682  
   683  // GoogleCloudDatacatalogV1CloudBigtableInstanceSpec: Specification that
   684  // applies to Instance entries that are part of `CLOUD_BIGTABLE` system.
   685  // (user_specified_type)
   686  type GoogleCloudDatacatalogV1CloudBigtableInstanceSpec struct {
   687  	// CloudBigtableClusterSpecs: The list of clusters for the Instance.
   688  	CloudBigtableClusterSpecs []*GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec `json:"cloudBigtableClusterSpecs,omitempty"`
   689  	// ForceSendFields is a list of field names (e.g. "CloudBigtableClusterSpecs")
   690  	// to unconditionally include in API requests. By default, fields with empty or
   691  	// default values are omitted from API requests. See
   692  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   693  	// details.
   694  	ForceSendFields []string `json:"-"`
   695  	// NullFields is a list of field names (e.g. "CloudBigtableClusterSpecs") to
   696  	// include in API requests with the JSON null value. By default, fields with
   697  	// empty values are omitted from API requests. See
   698  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   699  	NullFields []string `json:"-"`
   700  }
   701  
   702  func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec) MarshalJSON() ([]byte, error) {
   703  	type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpec
   704  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   705  }
   706  
   707  // GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec:
   708  // Spec that applies to clusters of an Instance of Cloud Bigtable.
   709  type GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec struct {
   710  	// DisplayName: Name of the cluster.
   711  	DisplayName string `json:"displayName,omitempty"`
   712  	// LinkedResource: A link back to the parent resource, in this case Instance.
   713  	LinkedResource string `json:"linkedResource,omitempty"`
   714  	// Location: Location of the cluster, typically a Cloud zone.
   715  	Location string `json:"location,omitempty"`
   716  	// Type: Type of the resource. For a cluster this would be "CLUSTER".
   717  	Type string `json:"type,omitempty"`
   718  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
   719  	// unconditionally include in API requests. By default, fields with empty or
   720  	// default values are omitted from API requests. See
   721  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   722  	// details.
   723  	ForceSendFields []string `json:"-"`
   724  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
   725  	// requests with the JSON null value. By default, fields with empty values are
   726  	// omitted from API requests. See
   727  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   728  	NullFields []string `json:"-"`
   729  }
   730  
   731  func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec) MarshalJSON() ([]byte, error) {
   732  	type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec
   733  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   734  }
   735  
   736  // GoogleCloudDatacatalogV1CloudBigtableSystemSpec: Specification that applies
   737  // to all entries that are part of `CLOUD_BIGTABLE` system
   738  // (user_specified_type)
   739  type GoogleCloudDatacatalogV1CloudBigtableSystemSpec struct {
   740  	// InstanceDisplayName: Display name of the Instance. This is user specified
   741  	// and different from the resource name.
   742  	InstanceDisplayName string `json:"instanceDisplayName,omitempty"`
   743  	// ForceSendFields is a list of field names (e.g. "InstanceDisplayName") to
   744  	// unconditionally include in API requests. By default, fields with empty or
   745  	// default values are omitted from API requests. See
   746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   747  	// details.
   748  	ForceSendFields []string `json:"-"`
   749  	// NullFields is a list of field names (e.g. "InstanceDisplayName") to include
   750  	// in API requests with the JSON null value. By default, fields with empty
   751  	// values are omitted from API requests. See
   752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   753  	NullFields []string `json:"-"`
   754  }
   755  
   756  func (s *GoogleCloudDatacatalogV1CloudBigtableSystemSpec) MarshalJSON() ([]byte, error) {
   757  	type NoMethod GoogleCloudDatacatalogV1CloudBigtableSystemSpec
   758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   759  }
   760  
   761  // GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec: Specification for
   762  // the BigQuery connection to a Cloud SQL instance.
   763  type GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec struct {
   764  	// Database: Database name.
   765  	Database string `json:"database,omitempty"`
   766  	// InstanceId: Cloud SQL instance ID in the format of
   767  	// `project:location:instance`.
   768  	InstanceId string `json:"instanceId,omitempty"`
   769  	// Type: Type of the Cloud SQL database.
   770  	//
   771  	// Possible values:
   772  	//   "DATABASE_TYPE_UNSPECIFIED" - Unspecified database type.
   773  	//   "POSTGRES" - Cloud SQL for PostgreSQL.
   774  	//   "MYSQL" - Cloud SQL for MySQL.
   775  	Type string `json:"type,omitempty"`
   776  	// ForceSendFields is a list of field names (e.g. "Database") to
   777  	// unconditionally include in API requests. By default, fields with empty or
   778  	// default values are omitted from API requests. See
   779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   780  	// details.
   781  	ForceSendFields []string `json:"-"`
   782  	// NullFields is a list of field names (e.g. "Database") to include in API
   783  	// requests with the JSON null value. By default, fields with empty values are
   784  	// omitted from API requests. See
   785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   786  	NullFields []string `json:"-"`
   787  }
   788  
   789  func (s *GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec) MarshalJSON() ([]byte, error) {
   790  	type NoMethod GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec
   791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   792  }
   793  
   794  // GoogleCloudDatacatalogV1ColumnSchema: A column within a schema. Columns can
   795  // be nested inside other columns.
   796  type GoogleCloudDatacatalogV1ColumnSchema struct {
   797  	// Column: Required. Name of the column. Must be a UTF-8 string without dots
   798  	// (.). The maximum size is 64 bytes.
   799  	Column string `json:"column,omitempty"`
   800  	// DefaultValue: Optional. Default value for the column.
   801  	DefaultValue string `json:"defaultValue,omitempty"`
   802  	// Description: Optional. Description of the column. Default value is an empty
   803  	// string. The description must be a UTF-8 string with the maximum size of 2000
   804  	// bytes.
   805  	Description string `json:"description,omitempty"`
   806  	// GcRule: Optional. Garbage collection policy for the column or column family.
   807  	// Applies to systems like Cloud Bigtable.
   808  	GcRule string `json:"gcRule,omitempty"`
   809  	// HighestIndexingType: Optional. Most important inclusion of this column.
   810  	//
   811  	// Possible values:
   812  	//   "INDEXING_TYPE_UNSPECIFIED" - Unspecified.
   813  	//   "INDEXING_TYPE_NONE" - Column not a part of an index.
   814  	//   "INDEXING_TYPE_NON_UNIQUE" - Column Part of non unique index.
   815  	//   "INDEXING_TYPE_UNIQUE" - Column part of unique index.
   816  	//   "INDEXING_TYPE_PRIMARY_KEY" - Column part of the primary key.
   817  	HighestIndexingType string `json:"highestIndexingType,omitempty"`
   818  	// LookerColumnSpec: Looker specific column info of this column.
   819  	LookerColumnSpec *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec `json:"lookerColumnSpec,omitempty"`
   820  	// Mode: Optional. A column's mode indicates whether values in this column are
   821  	// required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED`
   822  	// values are supported. Default mode is `NULLABLE`.
   823  	Mode string `json:"mode,omitempty"`
   824  	// OrdinalPosition: Optional. Ordinal position
   825  	OrdinalPosition int64 `json:"ordinalPosition,omitempty"`
   826  	// RangeElementType: Optional. The subtype of the RANGE, if the type of this
   827  	// field is RANGE. If the type is RANGE, this field is required. Possible
   828  	// values for the field element type of a RANGE include: * DATE * DATETIME *
   829  	// TIMESTAMP
   830  	RangeElementType *GoogleCloudDatacatalogV1ColumnSchemaFieldElementType `json:"rangeElementType,omitempty"`
   831  	// Subcolumns: Optional. Schema of sub-columns. A column can have zero or more
   832  	// sub-columns.
   833  	Subcolumns []*GoogleCloudDatacatalogV1ColumnSchema `json:"subcolumns,omitempty"`
   834  	// Type: Required. Type of the column. Must be a UTF-8 string with the maximum
   835  	// size of 128 bytes.
   836  	Type string `json:"type,omitempty"`
   837  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
   838  	// include in API requests. By default, fields with empty or default values are
   839  	// omitted from API requests. See
   840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   841  	// details.
   842  	ForceSendFields []string `json:"-"`
   843  	// NullFields is a list of field names (e.g. "Column") to include in API
   844  	// requests with the JSON null value. By default, fields with empty values are
   845  	// omitted from API requests. See
   846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   847  	NullFields []string `json:"-"`
   848  }
   849  
   850  func (s *GoogleCloudDatacatalogV1ColumnSchema) MarshalJSON() ([]byte, error) {
   851  	type NoMethod GoogleCloudDatacatalogV1ColumnSchema
   852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   853  }
   854  
   855  // GoogleCloudDatacatalogV1ColumnSchemaFieldElementType: Represents the type of
   856  // a field element.
   857  type GoogleCloudDatacatalogV1ColumnSchemaFieldElementType struct {
   858  	// Type: Required. The type of a field element. See ColumnSchema.type.
   859  	Type string `json:"type,omitempty"`
   860  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
   861  	// include in API requests. By default, fields with empty or default values are
   862  	// omitted from API requests. See
   863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   864  	// details.
   865  	ForceSendFields []string `json:"-"`
   866  	// NullFields is a list of field names (e.g. "Type") to include in API requests
   867  	// with the JSON null value. By default, fields with empty values are omitted
   868  	// from API requests. See
   869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   870  	NullFields []string `json:"-"`
   871  }
   872  
   873  func (s *GoogleCloudDatacatalogV1ColumnSchemaFieldElementType) MarshalJSON() ([]byte, error) {
   874  	type NoMethod GoogleCloudDatacatalogV1ColumnSchemaFieldElementType
   875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   876  }
   877  
   878  // GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec: Column info specific
   879  // to Looker System.
   880  type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct {
   881  	// Type: Looker specific column type of this column.
   882  	//
   883  	// Possible values:
   884  	//   "LOOKER_COLUMN_TYPE_UNSPECIFIED" - Unspecified.
   885  	//   "DIMENSION" - Dimension.
   886  	//   "DIMENSION_GROUP" - Dimension group - parent for Dimension.
   887  	//   "FILTER" - Filter.
   888  	//   "MEASURE" - Measure.
   889  	//   "PARAMETER" - Parameter.
   890  	Type string `json:"type,omitempty"`
   891  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
   892  	// include in API requests. By default, fields with empty or default values are
   893  	// omitted from API requests. See
   894  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   895  	// details.
   896  	ForceSendFields []string `json:"-"`
   897  	// NullFields is a list of field names (e.g. "Type") to include in API requests
   898  	// with the JSON null value. By default, fields with empty values are omitted
   899  	// from API requests. See
   900  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   901  	NullFields []string `json:"-"`
   902  }
   903  
   904  func (s *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec) MarshalJSON() ([]byte, error) {
   905  	type NoMethod GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec
   906  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   907  }
   908  
   909  // GoogleCloudDatacatalogV1CommonUsageStats: Common statistics on the entry's
   910  // usage. They can be set on any system.
   911  type GoogleCloudDatacatalogV1CommonUsageStats struct {
   912  	// ViewCount: View count in source system.
   913  	ViewCount int64 `json:"viewCount,omitempty,string"`
   914  	// ForceSendFields is a list of field names (e.g. "ViewCount") 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. "ViewCount") to include in API
   921  	// requests with the JSON null value. By default, fields with empty values are
   922  	// 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 *GoogleCloudDatacatalogV1CommonUsageStats) MarshalJSON() ([]byte, error) {
   928  	type NoMethod GoogleCloudDatacatalogV1CommonUsageStats
   929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   930  }
   931  
   932  // GoogleCloudDatacatalogV1Contacts: Contact people for the entry.
   933  type GoogleCloudDatacatalogV1Contacts struct {
   934  	// People: The list of contact people for the entry.
   935  	People []*GoogleCloudDatacatalogV1ContactsPerson `json:"people,omitempty"`
   936  
   937  	// ServerResponse contains the HTTP response code and headers from the server.
   938  	googleapi.ServerResponse `json:"-"`
   939  	// ForceSendFields is a list of field names (e.g. "People") to unconditionally
   940  	// include in API requests. By default, fields with empty or default values are
   941  	// omitted from API requests. See
   942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   943  	// details.
   944  	ForceSendFields []string `json:"-"`
   945  	// NullFields is a list of field names (e.g. "People") to include in API
   946  	// requests with the JSON null value. By default, fields with empty values are
   947  	// omitted from API requests. See
   948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   949  	NullFields []string `json:"-"`
   950  }
   951  
   952  func (s *GoogleCloudDatacatalogV1Contacts) MarshalJSON() ([]byte, error) {
   953  	type NoMethod GoogleCloudDatacatalogV1Contacts
   954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   955  }
   956  
   957  // GoogleCloudDatacatalogV1ContactsPerson: A contact person for the entry.
   958  type GoogleCloudDatacatalogV1ContactsPerson struct {
   959  	// Designation: Designation of the person, for example, Data Steward.
   960  	Designation string `json:"designation,omitempty"`
   961  	// Email: Email of the person in the format of `john.doe@xyz`, ``, or `John
   962  	// Doe`.
   963  	Email string `json:"email,omitempty"`
   964  	// ForceSendFields is a list of field names (e.g. "Designation") to
   965  	// unconditionally include in API requests. By default, fields with empty or
   966  	// default values are omitted from API requests. See
   967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   968  	// details.
   969  	ForceSendFields []string `json:"-"`
   970  	// NullFields is a list of field names (e.g. "Designation") to include in API
   971  	// requests with the JSON null value. By default, fields with empty values are
   972  	// omitted from API requests. See
   973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   974  	NullFields []string `json:"-"`
   975  }
   976  
   977  func (s *GoogleCloudDatacatalogV1ContactsPerson) MarshalJSON() ([]byte, error) {
   978  	type NoMethod GoogleCloudDatacatalogV1ContactsPerson
   979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   980  }
   981  
   982  // GoogleCloudDatacatalogV1CrossRegionalSource: Cross-regional source used to
   983  // import an existing taxonomy into a different region.
   984  type GoogleCloudDatacatalogV1CrossRegionalSource struct {
   985  	// Taxonomy: Required. The resource name of the source taxonomy to import.
   986  	Taxonomy string `json:"taxonomy,omitempty"`
   987  	// ForceSendFields is a list of field names (e.g. "Taxonomy") to
   988  	// unconditionally include in API requests. By default, fields with empty or
   989  	// default values are omitted from API requests. See
   990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   991  	// details.
   992  	ForceSendFields []string `json:"-"`
   993  	// NullFields is a list of field names (e.g. "Taxonomy") to include in API
   994  	// requests with the JSON null value. By default, fields with empty values are
   995  	// omitted from API requests. See
   996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   997  	NullFields []string `json:"-"`
   998  }
   999  
  1000  func (s *GoogleCloudDatacatalogV1CrossRegionalSource) MarshalJSON() ([]byte, error) {
  1001  	type NoMethod GoogleCloudDatacatalogV1CrossRegionalSource
  1002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1003  }
  1004  
  1005  // GoogleCloudDatacatalogV1DataSource: Physical location of an entry.
  1006  type GoogleCloudDatacatalogV1DataSource struct {
  1007  	// Resource: Full name of a resource as defined by the service. For example:
  1008  	// `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/dataset
  1009  	// s/{DATASET_ID}/tables/{TABLE_ID}`
  1010  	Resource string `json:"resource,omitempty"`
  1011  	// Service: Service that physically stores the data.
  1012  	//
  1013  	// Possible values:
  1014  	//   "SERVICE_UNSPECIFIED" - Default unknown service.
  1015  	//   "CLOUD_STORAGE" - Google Cloud Storage service.
  1016  	//   "BIGQUERY" - BigQuery service.
  1017  	Service string `json:"service,omitempty"`
  1018  	// SourceEntry: Output only. Data Catalog entry name, if applicable.
  1019  	SourceEntry string `json:"sourceEntry,omitempty"`
  1020  	// StorageProperties: Detailed properties of the underlying storage.
  1021  	StorageProperties *GoogleCloudDatacatalogV1StorageProperties `json:"storageProperties,omitempty"`
  1022  	// ForceSendFields is a list of field names (e.g. "Resource") to
  1023  	// unconditionally include in API requests. By default, fields with empty or
  1024  	// default values are omitted from API requests. See
  1025  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1026  	// details.
  1027  	ForceSendFields []string `json:"-"`
  1028  	// NullFields is a list of field names (e.g. "Resource") to include in API
  1029  	// requests with the JSON null value. By default, fields with empty values are
  1030  	// omitted from API requests. See
  1031  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1032  	NullFields []string `json:"-"`
  1033  }
  1034  
  1035  func (s *GoogleCloudDatacatalogV1DataSource) MarshalJSON() ([]byte, error) {
  1036  	type NoMethod GoogleCloudDatacatalogV1DataSource
  1037  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1038  }
  1039  
  1040  // GoogleCloudDatacatalogV1DataSourceConnectionSpec: Specification that applies
  1041  // to a data source connection. Valid only for entries with the
  1042  // `DATA_SOURCE_CONNECTION` type. Only one of internal specs can be set at the
  1043  // time, and cannot be changed later.
  1044  type GoogleCloudDatacatalogV1DataSourceConnectionSpec struct {
  1045  	// BigqueryConnectionSpec: Output only. Fields specific to BigQuery
  1046  	// connections.
  1047  	BigqueryConnectionSpec *GoogleCloudDatacatalogV1BigQueryConnectionSpec `json:"bigqueryConnectionSpec,omitempty"`
  1048  	// ForceSendFields is a list of field names (e.g. "BigqueryConnectionSpec") to
  1049  	// unconditionally include in API requests. By default, fields with empty or
  1050  	// default values are omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1052  	// details.
  1053  	ForceSendFields []string `json:"-"`
  1054  	// NullFields is a list of field names (e.g. "BigqueryConnectionSpec") to
  1055  	// include in API requests with the JSON null value. By default, fields with
  1056  	// empty values are omitted from API requests. See
  1057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1058  	NullFields []string `json:"-"`
  1059  }
  1060  
  1061  func (s *GoogleCloudDatacatalogV1DataSourceConnectionSpec) MarshalJSON() ([]byte, error) {
  1062  	type NoMethod GoogleCloudDatacatalogV1DataSourceConnectionSpec
  1063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1064  }
  1065  
  1066  // GoogleCloudDatacatalogV1DatabaseTableSpec: Specification that applies to a
  1067  // table resource. Valid only for entries with the `TABLE` type.
  1068  type GoogleCloudDatacatalogV1DatabaseTableSpec struct {
  1069  	// DatabaseViewSpec: Spec what aplies to tables that are actually views. Not
  1070  	// set for "real" tables.
  1071  	DatabaseViewSpec *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec `json:"databaseViewSpec,omitempty"`
  1072  	// DataplexTable: Output only. Fields specific to a Dataplex table and present
  1073  	// only in the Dataplex table entries.
  1074  	DataplexTable *GoogleCloudDatacatalogV1DataplexTableSpec `json:"dataplexTable,omitempty"`
  1075  	// Type: Type of this table.
  1076  	//
  1077  	// Possible values:
  1078  	//   "TABLE_TYPE_UNSPECIFIED" - Default unknown table type.
  1079  	//   "NATIVE" - Native table.
  1080  	//   "EXTERNAL" - External table.
  1081  	Type string `json:"type,omitempty"`
  1082  	// ForceSendFields is a list of field names (e.g. "DatabaseViewSpec") to
  1083  	// unconditionally include in API requests. By default, fields with empty or
  1084  	// default values are omitted from API requests. See
  1085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1086  	// details.
  1087  	ForceSendFields []string `json:"-"`
  1088  	// NullFields is a list of field names (e.g. "DatabaseViewSpec") to include in
  1089  	// API requests with the JSON null value. By default, fields with empty values
  1090  	// are omitted from API requests. See
  1091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1092  	NullFields []string `json:"-"`
  1093  }
  1094  
  1095  func (s *GoogleCloudDatacatalogV1DatabaseTableSpec) MarshalJSON() ([]byte, error) {
  1096  	type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpec
  1097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1098  }
  1099  
  1100  // GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec: Specification
  1101  // that applies to database view.
  1102  type GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec struct {
  1103  	// BaseTable: Name of a singular table this view reflects one to one.
  1104  	BaseTable string `json:"baseTable,omitempty"`
  1105  	// SqlQuery: SQL query used to generate this view.
  1106  	SqlQuery string `json:"sqlQuery,omitempty"`
  1107  	// ViewType: Type of this view.
  1108  	//
  1109  	// Possible values:
  1110  	//   "VIEW_TYPE_UNSPECIFIED" - Default unknown view type.
  1111  	//   "STANDARD_VIEW" - Standard view.
  1112  	//   "MATERIALIZED_VIEW" - Materialized view.
  1113  	ViewType string `json:"viewType,omitempty"`
  1114  	// ForceSendFields is a list of field names (e.g. "BaseTable") to
  1115  	// unconditionally include in API requests. By default, fields with empty or
  1116  	// default values are omitted from API requests. See
  1117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1118  	// details.
  1119  	ForceSendFields []string `json:"-"`
  1120  	// NullFields is a list of field names (e.g. "BaseTable") to include in API
  1121  	// requests with the JSON null value. By default, fields with empty values are
  1122  	// omitted from API requests. See
  1123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1124  	NullFields []string `json:"-"`
  1125  }
  1126  
  1127  func (s *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec) MarshalJSON() ([]byte, error) {
  1128  	type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec
  1129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1130  }
  1131  
  1132  // GoogleCloudDatacatalogV1DataplexExternalTable: External table registered by
  1133  // Dataplex. Dataplex publishes data discovered from an asset into multiple
  1134  // other systems (BigQuery, DPMS) in form of tables. We call them "external
  1135  // tables". External tables are also synced into the Data Catalog. This message
  1136  // contains pointers to those external tables (fully qualified name, resource
  1137  // name et cetera) within the Data Catalog.
  1138  type GoogleCloudDatacatalogV1DataplexExternalTable struct {
  1139  	// DataCatalogEntry: Name of the Data Catalog entry representing the external
  1140  	// table.
  1141  	DataCatalogEntry string `json:"dataCatalogEntry,omitempty"`
  1142  	// FullyQualifiedName: Fully qualified name (FQN) of the external table.
  1143  	FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
  1144  	// GoogleCloudResource: Google Cloud resource name of the external table.
  1145  	GoogleCloudResource string `json:"googleCloudResource,omitempty"`
  1146  	// System: Service in which the external table is registered.
  1147  	//
  1148  	// Possible values:
  1149  	//   "INTEGRATED_SYSTEM_UNSPECIFIED" - Default unknown system.
  1150  	//   "BIGQUERY" - BigQuery.
  1151  	//   "CLOUD_PUBSUB" - Cloud Pub/Sub.
  1152  	//   "DATAPROC_METASTORE" - Dataproc Metastore.
  1153  	//   "DATAPLEX" - Dataplex.
  1154  	//   "CLOUD_SPANNER" - Cloud Spanner
  1155  	//   "CLOUD_BIGTABLE" - Cloud Bigtable
  1156  	//   "CLOUD_SQL" - Cloud Sql
  1157  	//   "LOOKER" - Looker
  1158  	//   "VERTEX_AI" - Vertex AI
  1159  	System string `json:"system,omitempty"`
  1160  	// ForceSendFields is a list of field names (e.g. "DataCatalogEntry") to
  1161  	// unconditionally include in API requests. By default, fields with empty or
  1162  	// default values are omitted from API requests. See
  1163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1164  	// details.
  1165  	ForceSendFields []string `json:"-"`
  1166  	// NullFields is a list of field names (e.g. "DataCatalogEntry") to include in
  1167  	// API requests with the JSON null value. By default, fields with empty values
  1168  	// are omitted from API requests. See
  1169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1170  	NullFields []string `json:"-"`
  1171  }
  1172  
  1173  func (s *GoogleCloudDatacatalogV1DataplexExternalTable) MarshalJSON() ([]byte, error) {
  1174  	type NoMethod GoogleCloudDatacatalogV1DataplexExternalTable
  1175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1176  }
  1177  
  1178  // GoogleCloudDatacatalogV1DataplexFilesetSpec: Entry specyfication for a
  1179  // Dataplex fileset.
  1180  type GoogleCloudDatacatalogV1DataplexFilesetSpec struct {
  1181  	// DataplexSpec: Common Dataplex fields.
  1182  	DataplexSpec *GoogleCloudDatacatalogV1DataplexSpec `json:"dataplexSpec,omitempty"`
  1183  	// ForceSendFields is a list of field names (e.g. "DataplexSpec") to
  1184  	// unconditionally include in API requests. By default, fields with empty or
  1185  	// default values are omitted from API requests. See
  1186  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1187  	// details.
  1188  	ForceSendFields []string `json:"-"`
  1189  	// NullFields is a list of field names (e.g. "DataplexSpec") to include in API
  1190  	// requests with the JSON null value. By default, fields with empty values are
  1191  	// omitted from API requests. See
  1192  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1193  	NullFields []string `json:"-"`
  1194  }
  1195  
  1196  func (s *GoogleCloudDatacatalogV1DataplexFilesetSpec) MarshalJSON() ([]byte, error) {
  1197  	type NoMethod GoogleCloudDatacatalogV1DataplexFilesetSpec
  1198  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1199  }
  1200  
  1201  // GoogleCloudDatacatalogV1DataplexSpec: Common Dataplex fields.
  1202  type GoogleCloudDatacatalogV1DataplexSpec struct {
  1203  	// Asset: Fully qualified resource name of an asset in Dataplex, to which the
  1204  	// underlying data source (Cloud Storage bucket or BigQuery dataset) of the
  1205  	// entity is attached.
  1206  	Asset string `json:"asset,omitempty"`
  1207  	// CompressionFormat: Compression format of the data, e.g., zip, gzip etc.
  1208  	CompressionFormat string `json:"compressionFormat,omitempty"`
  1209  	// DataFormat: Format of the data.
  1210  	DataFormat *GoogleCloudDatacatalogV1PhysicalSchema `json:"dataFormat,omitempty"`
  1211  	// ProjectId: Project ID of the underlying Cloud Storage or BigQuery data. Note
  1212  	// that this may not be the same project as the correspondingly Dataplex lake /
  1213  	// zone / asset.
  1214  	ProjectId string `json:"projectId,omitempty"`
  1215  	// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally
  1216  	// include in API requests. By default, fields with empty or default values are
  1217  	// omitted from API requests. See
  1218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1219  	// details.
  1220  	ForceSendFields []string `json:"-"`
  1221  	// NullFields is a list of field names (e.g. "Asset") to include in API
  1222  	// requests with the JSON null value. By default, fields with empty values are
  1223  	// omitted from API requests. See
  1224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1225  	NullFields []string `json:"-"`
  1226  }
  1227  
  1228  func (s *GoogleCloudDatacatalogV1DataplexSpec) MarshalJSON() ([]byte, error) {
  1229  	type NoMethod GoogleCloudDatacatalogV1DataplexSpec
  1230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1231  }
  1232  
  1233  // GoogleCloudDatacatalogV1DataplexTableSpec: Entry specification for a
  1234  // Dataplex table.
  1235  type GoogleCloudDatacatalogV1DataplexTableSpec struct {
  1236  	// DataplexSpec: Common Dataplex fields.
  1237  	DataplexSpec *GoogleCloudDatacatalogV1DataplexSpec `json:"dataplexSpec,omitempty"`
  1238  	// ExternalTables: List of external tables registered by Dataplex in other
  1239  	// systems based on the same underlying data. External tables allow to query
  1240  	// this data in those systems.
  1241  	ExternalTables []*GoogleCloudDatacatalogV1DataplexExternalTable `json:"externalTables,omitempty"`
  1242  	// UserManaged: Indicates if the table schema is managed by the user or not.
  1243  	UserManaged bool `json:"userManaged,omitempty"`
  1244  	// ForceSendFields is a list of field names (e.g. "DataplexSpec") to
  1245  	// unconditionally include in API requests. By default, fields with empty or
  1246  	// default values are omitted from API requests. See
  1247  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1248  	// details.
  1249  	ForceSendFields []string `json:"-"`
  1250  	// NullFields is a list of field names (e.g. "DataplexSpec") to include in API
  1251  	// requests with the JSON null value. By default, fields with empty values are
  1252  	// omitted from API requests. See
  1253  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1254  	NullFields []string `json:"-"`
  1255  }
  1256  
  1257  func (s *GoogleCloudDatacatalogV1DataplexTableSpec) MarshalJSON() ([]byte, error) {
  1258  	type NoMethod GoogleCloudDatacatalogV1DataplexTableSpec
  1259  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1260  }
  1261  
  1262  // GoogleCloudDatacatalogV1DatasetSpec: Specification that applies to a
  1263  // dataset. Valid only for entries with the `DATASET` type.
  1264  type GoogleCloudDatacatalogV1DatasetSpec struct {
  1265  	// VertexDatasetSpec: Vertex AI Dataset specific fields
  1266  	VertexDatasetSpec *GoogleCloudDatacatalogV1VertexDatasetSpec `json:"vertexDatasetSpec,omitempty"`
  1267  	// ForceSendFields is a list of field names (e.g. "VertexDatasetSpec") to
  1268  	// unconditionally include in API requests. By default, fields with empty or
  1269  	// default values are omitted from API requests. See
  1270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1271  	// details.
  1272  	ForceSendFields []string `json:"-"`
  1273  	// NullFields is a list of field names (e.g. "VertexDatasetSpec") to include in
  1274  	// API requests with the JSON null value. By default, fields with empty values
  1275  	// are omitted from API requests. See
  1276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1277  	NullFields []string `json:"-"`
  1278  }
  1279  
  1280  func (s *GoogleCloudDatacatalogV1DatasetSpec) MarshalJSON() ([]byte, error) {
  1281  	type NoMethod GoogleCloudDatacatalogV1DatasetSpec
  1282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1283  }
  1284  
  1285  // GoogleCloudDatacatalogV1DumpItem: Wrapper for any item that can be contained
  1286  // in the dump.
  1287  type GoogleCloudDatacatalogV1DumpItem struct {
  1288  	// TaggedEntry: Entry and its tags.
  1289  	TaggedEntry *GoogleCloudDatacatalogV1TaggedEntry `json:"taggedEntry,omitempty"`
  1290  	// ForceSendFields is a list of field names (e.g. "TaggedEntry") to
  1291  	// unconditionally include in API requests. By default, fields with empty or
  1292  	// default values are omitted from API requests. See
  1293  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1294  	// details.
  1295  	ForceSendFields []string `json:"-"`
  1296  	// NullFields is a list of field names (e.g. "TaggedEntry") to include in API
  1297  	// requests with the JSON null value. By default, fields with empty values are
  1298  	// omitted from API requests. See
  1299  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1300  	NullFields []string `json:"-"`
  1301  }
  1302  
  1303  func (s *GoogleCloudDatacatalogV1DumpItem) MarshalJSON() ([]byte, error) {
  1304  	type NoMethod GoogleCloudDatacatalogV1DumpItem
  1305  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1306  }
  1307  
  1308  // GoogleCloudDatacatalogV1Entry: Entry metadata. A Data Catalog entry
  1309  // represents another resource in Google Cloud Platform (such as a BigQuery
  1310  // dataset or a Pub/Sub topic) or outside of it. You can use the
  1311  // `linked_resource` field in the entry resource to refer to the original
  1312  // resource ID of the source system. An entry resource contains resource
  1313  // details, for example, its schema. Additionally, you can attach flexible
  1314  // metadata to an entry in the form of a Tag.
  1315  type GoogleCloudDatacatalogV1Entry struct {
  1316  	// BigqueryDateShardedSpec: Output only. Specification for a group of BigQuery
  1317  	// tables with the `[prefix]YYYYMMDD` name pattern. For more information, see
  1318  	// [Introduction to partitioned tables]
  1319  	// (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
  1320  	BigqueryDateShardedSpec *GoogleCloudDatacatalogV1BigQueryDateShardedSpec `json:"bigqueryDateShardedSpec,omitempty"`
  1321  	// BigqueryTableSpec: Output only. Specification that applies to a BigQuery
  1322  	// table. Valid only for entries with the `TABLE` type.
  1323  	BigqueryTableSpec *GoogleCloudDatacatalogV1BigQueryTableSpec `json:"bigqueryTableSpec,omitempty"`
  1324  	// BusinessContext: Business Context of the entry. Not supported for BigQuery
  1325  	// datasets
  1326  	BusinessContext *GoogleCloudDatacatalogV1BusinessContext `json:"businessContext,omitempty"`
  1327  	// CloudBigtableSystemSpec: Specification that applies to Cloud Bigtable
  1328  	// system. Only settable when `integrated_system` is equal to `CLOUD_BIGTABLE`
  1329  	CloudBigtableSystemSpec *GoogleCloudDatacatalogV1CloudBigtableSystemSpec `json:"cloudBigtableSystemSpec,omitempty"`
  1330  	// DataSource: Output only. Physical location of the entry.
  1331  	DataSource *GoogleCloudDatacatalogV1DataSource `json:"dataSource,omitempty"`
  1332  	// DataSourceConnectionSpec: Specification that applies to a data source
  1333  	// connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type.
  1334  	DataSourceConnectionSpec *GoogleCloudDatacatalogV1DataSourceConnectionSpec `json:"dataSourceConnectionSpec,omitempty"`
  1335  	// DatabaseTableSpec: Specification that applies to a table resource. Valid
  1336  	// only for entries with the `TABLE` or `EXPLORE` type.
  1337  	DatabaseTableSpec *GoogleCloudDatacatalogV1DatabaseTableSpec `json:"databaseTableSpec,omitempty"`
  1338  	// DatasetSpec: Specification that applies to a dataset.
  1339  	DatasetSpec *GoogleCloudDatacatalogV1DatasetSpec `json:"datasetSpec,omitempty"`
  1340  	// Description: Entry description that can consist of several sentences or
  1341  	// paragraphs that describe entry contents. The description must not contain
  1342  	// Unicode non-characters as well as C0 and C1 control codes except tabs (HT),
  1343  	// new lines (LF), carriage returns (CR), and page breaks (FF). The maximum
  1344  	// size is 2000 bytes when encoded in UTF-8. Default value is an empty string.
  1345  	Description string `json:"description,omitempty"`
  1346  	// DisplayName: Display name of an entry. The maximum size is 500 bytes when
  1347  	// encoded in UTF-8. Default value is an empty string.
  1348  	DisplayName string `json:"displayName,omitempty"`
  1349  	// FeatureOnlineStoreSpec: FeatureonlineStore spec for Vertex AI Feature Store.
  1350  	FeatureOnlineStoreSpec *GoogleCloudDatacatalogV1FeatureOnlineStoreSpec `json:"featureOnlineStoreSpec,omitempty"`
  1351  	// FilesetSpec: Specification that applies to a fileset resource. Valid only
  1352  	// for entries with the `FILESET` type.
  1353  	FilesetSpec *GoogleCloudDatacatalogV1FilesetSpec `json:"filesetSpec,omitempty"`
  1354  	// FullyQualifiedName: Fully Qualified Name (FQN)
  1355  	// (https://cloud.google.com//data-catalog/docs/fully-qualified-names) of the
  1356  	// resource. Set automatically for entries representing resources from synced
  1357  	// systems. Settable only during creation, and read-only later. Can be used for
  1358  	// search and lookup of the entries.
  1359  	FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
  1360  	// GcsFilesetSpec: Specification that applies to a Cloud Storage fileset. Valid
  1361  	// only for entries with the `FILESET` type.
  1362  	GcsFilesetSpec *GoogleCloudDatacatalogV1GcsFilesetSpec `json:"gcsFilesetSpec,omitempty"`
  1363  	// IntegratedSystem: Output only. Indicates the entry's source system that Data
  1364  	// Catalog integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
  1365  	//
  1366  	// Possible values:
  1367  	//   "INTEGRATED_SYSTEM_UNSPECIFIED" - Default unknown system.
  1368  	//   "BIGQUERY" - BigQuery.
  1369  	//   "CLOUD_PUBSUB" - Cloud Pub/Sub.
  1370  	//   "DATAPROC_METASTORE" - Dataproc Metastore.
  1371  	//   "DATAPLEX" - Dataplex.
  1372  	//   "CLOUD_SPANNER" - Cloud Spanner
  1373  	//   "CLOUD_BIGTABLE" - Cloud Bigtable
  1374  	//   "CLOUD_SQL" - Cloud Sql
  1375  	//   "LOOKER" - Looker
  1376  	//   "VERTEX_AI" - Vertex AI
  1377  	IntegratedSystem string `json:"integratedSystem,omitempty"`
  1378  	// Labels: Cloud labels attached to the entry. In Data Catalog, you can create
  1379  	// and modify labels attached only to custom entries. Synced entries have
  1380  	// unmodifiable labels that come from the source system.
  1381  	Labels map[string]string `json:"labels,omitempty"`
  1382  	// LinkedResource: The resource this metadata entry refers to. For Google Cloud
  1383  	// Platform resources, `linked_resource` is the [Full Resource Name]
  1384  	// (https://cloud.google.com/apis/design/resource_names#full_resource_name).
  1385  	// For example, the `linked_resource` for a table resource from BigQuery is:
  1386  	// `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables
  1387  	// /{TABLE_ID}` Output only when the entry is one of the types in the
  1388  	// `EntryType` enum. For entries with a `user_specified_type`, this field is
  1389  	// optional and defaults to an empty string. The resource string must contain
  1390  	// only letters (a-z, A-Z), numbers (0-9), underscores (_), periods (.), colons
  1391  	// (:), slashes (/), dashes (-), and hashes (#). The maximum size is 200 bytes
  1392  	// when encoded in UTF-8.
  1393  	LinkedResource string `json:"linkedResource,omitempty"`
  1394  	// LookerSystemSpec: Specification that applies to Looker sysstem. Only
  1395  	// settable when `user_specified_system` is equal to `LOOKER`
  1396  	LookerSystemSpec *GoogleCloudDatacatalogV1LookerSystemSpec `json:"lookerSystemSpec,omitempty"`
  1397  	// ModelSpec: Model specification.
  1398  	ModelSpec *GoogleCloudDatacatalogV1ModelSpec `json:"modelSpec,omitempty"`
  1399  	// Name: Output only. Identifier. The resource name of an entry in URL format.
  1400  	// Note: The entry itself and its child resources might not be stored in the
  1401  	// location specified in its name.
  1402  	Name string `json:"name,omitempty"`
  1403  	// PersonalDetails: Output only. Additional information related to the entry.
  1404  	// Private to the current user.
  1405  	PersonalDetails *GoogleCloudDatacatalogV1PersonalDetails `json:"personalDetails,omitempty"`
  1406  	// RoutineSpec: Specification that applies to a user-defined function or
  1407  	// procedure. Valid only for entries with the `ROUTINE` type.
  1408  	RoutineSpec *GoogleCloudDatacatalogV1RoutineSpec `json:"routineSpec,omitempty"`
  1409  	// Schema: Schema of the entry. An entry might not have any schema attached to
  1410  	// it.
  1411  	Schema *GoogleCloudDatacatalogV1Schema `json:"schema,omitempty"`
  1412  	// ServiceSpec: Specification that applies to a Service resource.
  1413  	ServiceSpec *GoogleCloudDatacatalogV1ServiceSpec `json:"serviceSpec,omitempty"`
  1414  	// SourceSystemTimestamps: Timestamps from the underlying resource, not from
  1415  	// the Data Catalog entry. Output only when the entry has a system listed in
  1416  	// the `IntegratedSystem` enum. For entries with `user_specified_system`, this
  1417  	// field is optional and defaults to an empty timestamp.
  1418  	SourceSystemTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"sourceSystemTimestamps,omitempty"`
  1419  	// SqlDatabaseSystemSpec: Specification that applies to a relational database
  1420  	// system. Only settable when `user_specified_system` is equal to
  1421  	// `SQL_DATABASE`
  1422  	SqlDatabaseSystemSpec *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec `json:"sqlDatabaseSystemSpec,omitempty"`
  1423  	// Type: The type of the entry. For details, see `EntryType` (#entrytype).
  1424  	//
  1425  	// Possible values:
  1426  	//   "ENTRY_TYPE_UNSPECIFIED" - Default unknown type.
  1427  	//   "TABLE" - The entry type that has a GoogleSQL schema, including logical
  1428  	// views.
  1429  	//   "MODEL" - The type of models. For more information, see [Supported models
  1430  	// in BigQuery ML](/bigquery/docs/bqml-introduction#supported_models).
  1431  	//   "DATA_STREAM" - An entry type for streaming entries. For example, a
  1432  	// Pub/Sub topic.
  1433  	//   "FILESET" - An entry type for a set of files or objects. For example, a
  1434  	// Cloud Storage fileset.
  1435  	//   "CLUSTER" - A group of servers that work together. For example, a Kafka
  1436  	// cluster.
  1437  	//   "DATABASE" - A database.
  1438  	//   "DATA_SOURCE_CONNECTION" - Connection to a data source. For example, a
  1439  	// BigQuery connection.
  1440  	//   "ROUTINE" - Routine, for example, a BigQuery routine.
  1441  	//   "LAKE" - A Dataplex lake.
  1442  	//   "ZONE" - A Dataplex zone.
  1443  	//   "SERVICE" - A service, for example, a Dataproc Metastore service.
  1444  	//   "DATABASE_SCHEMA" - Schema within a relational database.
  1445  	//   "DASHBOARD" - A Dashboard, for example from Looker.
  1446  	//   "EXPLORE" - A Looker Explore. For more information, see [Looker Explore
  1447  	// API]
  1448  	// (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore).
  1449  	//   "LOOK" - A Looker Look. For more information, see [Looker Look API]
  1450  	// (https://developers.looker.com/api/explorer/4.0/methods/Look).
  1451  	//   "FEATURE_ONLINE_STORE" - Feature Online Store resource in Vertex AI
  1452  	// Feature Store.
  1453  	//   "FEATURE_VIEW" - Feature View resource in Vertex AI Feature Store.
  1454  	//   "FEATURE_GROUP" - Feature Group resource in Vertex AI Feature Store.
  1455  	Type string `json:"type,omitempty"`
  1456  	// UsageSignal: Resource usage statistics.
  1457  	UsageSignal *GoogleCloudDatacatalogV1UsageSignal `json:"usageSignal,omitempty"`
  1458  	// UserSpecifiedSystem: Indicates the entry's source system that Data Catalog
  1459  	// doesn't automatically integrate with. The `user_specified_system` string has
  1460  	// the following limitations: * Is case insensitive. * Must begin with a letter
  1461  	// or underscore. * Can only contain letters, numbers, and underscores. * Must
  1462  	// be at least 1 character and at most 64 characters long.
  1463  	UserSpecifiedSystem string `json:"userSpecifiedSystem,omitempty"`
  1464  	// UserSpecifiedType: Custom entry type that doesn't match any of the values
  1465  	// allowed for input and listed in the `EntryType` enum. When creating an
  1466  	// entry, first check the type values in the enum. If there are no appropriate
  1467  	// types for the new entry, provide a custom value, for example,
  1468  	// `my_special_type`. The `user_specified_type` string has the following
  1469  	// limitations: * Is case insensitive. * Must begin with a letter or
  1470  	// underscore. * Can only contain letters, numbers, and underscores. * Must be
  1471  	// at least 1 character and at most 64 characters long.
  1472  	UserSpecifiedType string `json:"userSpecifiedType,omitempty"`
  1473  
  1474  	// ServerResponse contains the HTTP response code and headers from the server.
  1475  	googleapi.ServerResponse `json:"-"`
  1476  	// ForceSendFields is a list of field names (e.g. "BigqueryDateShardedSpec") to
  1477  	// unconditionally include in API requests. By default, fields with empty or
  1478  	// default values are omitted from API requests. See
  1479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1480  	// details.
  1481  	ForceSendFields []string `json:"-"`
  1482  	// NullFields is a list of field names (e.g. "BigqueryDateShardedSpec") to
  1483  	// include in API requests with the JSON null value. By default, fields with
  1484  	// empty values are omitted from API requests. See
  1485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1486  	NullFields []string `json:"-"`
  1487  }
  1488  
  1489  func (s *GoogleCloudDatacatalogV1Entry) MarshalJSON() ([]byte, error) {
  1490  	type NoMethod GoogleCloudDatacatalogV1Entry
  1491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1492  }
  1493  
  1494  // GoogleCloudDatacatalogV1EntryGroup: Entry group metadata. An `EntryGroup`
  1495  // resource represents a logical grouping of zero or more Data Catalog Entry
  1496  // resources.
  1497  type GoogleCloudDatacatalogV1EntryGroup struct {
  1498  	// DataCatalogTimestamps: Output only. Timestamps of the entry group. Default
  1499  	// value is empty.
  1500  	DataCatalogTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"dataCatalogTimestamps,omitempty"`
  1501  	// Description: Entry group description. Can consist of several sentences or
  1502  	// paragraphs that describe the entry group contents. Default value is an empty
  1503  	// string.
  1504  	Description string `json:"description,omitempty"`
  1505  	// DisplayName: A short name to identify the entry group, for example,
  1506  	// "analytics data - jan 2011". Default value is an empty string.
  1507  	DisplayName string `json:"displayName,omitempty"`
  1508  	// Name: Identifier. The resource name of the entry group in URL format. Note:
  1509  	// The entry group itself and its child resources might not be stored in the
  1510  	// location specified in its name.
  1511  	Name string `json:"name,omitempty"`
  1512  
  1513  	// ServerResponse contains the HTTP response code and headers from the server.
  1514  	googleapi.ServerResponse `json:"-"`
  1515  	// ForceSendFields is a list of field names (e.g. "DataCatalogTimestamps") to
  1516  	// unconditionally include in API requests. By default, fields with empty or
  1517  	// default values are omitted from API requests. See
  1518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1519  	// details.
  1520  	ForceSendFields []string `json:"-"`
  1521  	// NullFields is a list of field names (e.g. "DataCatalogTimestamps") to
  1522  	// include in API requests with the JSON null value. By default, fields with
  1523  	// empty values are omitted from API requests. See
  1524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1525  	NullFields []string `json:"-"`
  1526  }
  1527  
  1528  func (s *GoogleCloudDatacatalogV1EntryGroup) MarshalJSON() ([]byte, error) {
  1529  	type NoMethod GoogleCloudDatacatalogV1EntryGroup
  1530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1531  }
  1532  
  1533  // GoogleCloudDatacatalogV1EntryOverview: Entry overview fields for rich text
  1534  // descriptions of entries.
  1535  type GoogleCloudDatacatalogV1EntryOverview struct {
  1536  	// Overview: Entry overview with support for rich text. The overview must only
  1537  	// contain Unicode characters, and should be formatted using HTML. The maximum
  1538  	// length is 10 MiB as this value holds HTML descriptions including encoded
  1539  	// images. The maximum length of the text without images is 100 KiB.
  1540  	Overview string `json:"overview,omitempty"`
  1541  
  1542  	// ServerResponse contains the HTTP response code and headers from the server.
  1543  	googleapi.ServerResponse `json:"-"`
  1544  	// ForceSendFields is a list of field names (e.g. "Overview") to
  1545  	// unconditionally include in API requests. By default, fields with empty or
  1546  	// default values are omitted from API requests. See
  1547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1548  	// details.
  1549  	ForceSendFields []string `json:"-"`
  1550  	// NullFields is a list of field names (e.g. "Overview") to include in API
  1551  	// requests with the JSON null value. By default, fields with empty values are
  1552  	// omitted from API requests. See
  1553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1554  	NullFields []string `json:"-"`
  1555  }
  1556  
  1557  func (s *GoogleCloudDatacatalogV1EntryOverview) MarshalJSON() ([]byte, error) {
  1558  	type NoMethod GoogleCloudDatacatalogV1EntryOverview
  1559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1560  }
  1561  
  1562  // GoogleCloudDatacatalogV1ExportTaxonomiesResponse: Response message for
  1563  // ExportTaxonomies.
  1564  type GoogleCloudDatacatalogV1ExportTaxonomiesResponse struct {
  1565  	// Taxonomies: List of taxonomies and policy tags as nested protocol buffers.
  1566  	Taxonomies []*GoogleCloudDatacatalogV1SerializedTaxonomy `json:"taxonomies,omitempty"`
  1567  
  1568  	// ServerResponse contains the HTTP response code and headers from the server.
  1569  	googleapi.ServerResponse `json:"-"`
  1570  	// ForceSendFields is a list of field names (e.g. "Taxonomies") to
  1571  	// unconditionally include in API requests. By default, fields with empty or
  1572  	// default values are omitted from API requests. See
  1573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1574  	// details.
  1575  	ForceSendFields []string `json:"-"`
  1576  	// NullFields is a list of field names (e.g. "Taxonomies") to include in API
  1577  	// requests with the JSON null value. By default, fields with empty values are
  1578  	// omitted from API requests. See
  1579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1580  	NullFields []string `json:"-"`
  1581  }
  1582  
  1583  func (s *GoogleCloudDatacatalogV1ExportTaxonomiesResponse) MarshalJSON() ([]byte, error) {
  1584  	type NoMethod GoogleCloudDatacatalogV1ExportTaxonomiesResponse
  1585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1586  }
  1587  
  1588  // GoogleCloudDatacatalogV1FeatureOnlineStoreSpec: Detail description of the
  1589  // source information of a Vertex Feature Online Store.
  1590  type GoogleCloudDatacatalogV1FeatureOnlineStoreSpec struct {
  1591  	// StorageType: Output only. Type of underelaying storage for the
  1592  	// FeatureOnlineStore.
  1593  	//
  1594  	// Possible values:
  1595  	//   "STORAGE_TYPE_UNSPECIFIED" - Should not be used.
  1596  	//   "BIGTABLE" - Underlsying storgae is Bigtable.
  1597  	//   "OPTIMIZED" - Underlaying is optimized online server (Lightning).
  1598  	StorageType string `json:"storageType,omitempty"`
  1599  	// ForceSendFields is a list of field names (e.g. "StorageType") to
  1600  	// unconditionally include in API requests. By default, fields with empty or
  1601  	// default values are omitted from API requests. See
  1602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1603  	// details.
  1604  	ForceSendFields []string `json:"-"`
  1605  	// NullFields is a list of field names (e.g. "StorageType") to include in API
  1606  	// requests with the JSON null value. By default, fields with empty values are
  1607  	// omitted from API requests. See
  1608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1609  	NullFields []string `json:"-"`
  1610  }
  1611  
  1612  func (s *GoogleCloudDatacatalogV1FeatureOnlineStoreSpec) MarshalJSON() ([]byte, error) {
  1613  	type NoMethod GoogleCloudDatacatalogV1FeatureOnlineStoreSpec
  1614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1615  }
  1616  
  1617  type GoogleCloudDatacatalogV1FieldType struct {
  1618  	// EnumType: An enum type.
  1619  	EnumType *GoogleCloudDatacatalogV1FieldTypeEnumType `json:"enumType,omitempty"`
  1620  	// PrimitiveType: Primitive types, such as string, boolean, etc.
  1621  	//
  1622  	// Possible values:
  1623  	//   "PRIMITIVE_TYPE_UNSPECIFIED" - The default invalid value for a type.
  1624  	//   "DOUBLE" - A double precision number.
  1625  	//   "STRING" - An UTF-8 string.
  1626  	//   "BOOL" - A boolean value.
  1627  	//   "TIMESTAMP" - A timestamp.
  1628  	//   "RICHTEXT" - A Richtext description.
  1629  	PrimitiveType string `json:"primitiveType,omitempty"`
  1630  	// ForceSendFields is a list of field names (e.g. "EnumType") to
  1631  	// unconditionally include in API requests. By default, fields with empty or
  1632  	// default values are omitted from API requests. See
  1633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1634  	// details.
  1635  	ForceSendFields []string `json:"-"`
  1636  	// NullFields is a list of field names (e.g. "EnumType") to include in API
  1637  	// requests with the JSON null value. By default, fields with empty values are
  1638  	// omitted from API requests. See
  1639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1640  	NullFields []string `json:"-"`
  1641  }
  1642  
  1643  func (s *GoogleCloudDatacatalogV1FieldType) MarshalJSON() ([]byte, error) {
  1644  	type NoMethod GoogleCloudDatacatalogV1FieldType
  1645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1646  }
  1647  
  1648  type GoogleCloudDatacatalogV1FieldTypeEnumType struct {
  1649  	// AllowedValues: The set of allowed values for this enum. This set must not be
  1650  	// empty and can include up to 100 allowed values. The display names of the
  1651  	// values in this set must not be empty and must be case-insensitively unique
  1652  	// within this set. The order of items in this set is preserved. This field can
  1653  	// be used to create, remove, and reorder enum values. To rename enum values,
  1654  	// use the `RenameTagTemplateFieldEnumValue` method.
  1655  	AllowedValues []*GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue `json:"allowedValues,omitempty"`
  1656  	// ForceSendFields is a list of field names (e.g. "AllowedValues") to
  1657  	// unconditionally include in API requests. By default, fields with empty or
  1658  	// default values are omitted from API requests. See
  1659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1660  	// details.
  1661  	ForceSendFields []string `json:"-"`
  1662  	// NullFields is a list of field names (e.g. "AllowedValues") to include in API
  1663  	// requests with the JSON null value. By default, fields with empty values are
  1664  	// omitted from API requests. See
  1665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1666  	NullFields []string `json:"-"`
  1667  }
  1668  
  1669  func (s *GoogleCloudDatacatalogV1FieldTypeEnumType) MarshalJSON() ([]byte, error) {
  1670  	type NoMethod GoogleCloudDatacatalogV1FieldTypeEnumType
  1671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1672  }
  1673  
  1674  type GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue struct {
  1675  	// DisplayName: Required. The display name of the enum value. Must not be an
  1676  	// empty string. The name must contain only Unicode letters, numbers (0-9),
  1677  	// underscores (_), dashes (-), spaces ( ), and can't start or end with spaces.
  1678  	// The maximum length is 200 characters.
  1679  	DisplayName string `json:"displayName,omitempty"`
  1680  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  1681  	// unconditionally include in API requests. By default, fields with empty or
  1682  	// default values are omitted from API requests. See
  1683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1684  	// details.
  1685  	ForceSendFields []string `json:"-"`
  1686  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  1687  	// requests with the JSON null value. By default, fields with empty values are
  1688  	// omitted from API requests. See
  1689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1690  	NullFields []string `json:"-"`
  1691  }
  1692  
  1693  func (s *GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue) MarshalJSON() ([]byte, error) {
  1694  	type NoMethod GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue
  1695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1696  }
  1697  
  1698  // GoogleCloudDatacatalogV1FilesetSpec: Specification that applies to a
  1699  // fileset. Valid only for entries with the 'FILESET' type.
  1700  type GoogleCloudDatacatalogV1FilesetSpec struct {
  1701  	// DataplexFileset: Fields specific to a Dataplex fileset and present only in
  1702  	// the Dataplex fileset entries.
  1703  	DataplexFileset *GoogleCloudDatacatalogV1DataplexFilesetSpec `json:"dataplexFileset,omitempty"`
  1704  	// ForceSendFields is a list of field names (e.g. "DataplexFileset") to
  1705  	// unconditionally include in API requests. By default, fields with empty or
  1706  	// default values are omitted from API requests. See
  1707  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1708  	// details.
  1709  	ForceSendFields []string `json:"-"`
  1710  	// NullFields is a list of field names (e.g. "DataplexFileset") to include in
  1711  	// API requests with the JSON null value. By default, fields with empty values
  1712  	// are omitted from API requests. See
  1713  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1714  	NullFields []string `json:"-"`
  1715  }
  1716  
  1717  func (s *GoogleCloudDatacatalogV1FilesetSpec) MarshalJSON() ([]byte, error) {
  1718  	type NoMethod GoogleCloudDatacatalogV1FilesetSpec
  1719  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1720  }
  1721  
  1722  // GoogleCloudDatacatalogV1GcsFileSpec: Specification of a single file in Cloud
  1723  // Storage.
  1724  type GoogleCloudDatacatalogV1GcsFileSpec struct {
  1725  	// FilePath: Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
  1726  	FilePath string `json:"filePath,omitempty"`
  1727  	// GcsTimestamps: Output only. Creation, modification, and expiration
  1728  	// timestamps of a Cloud Storage file.
  1729  	GcsTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"gcsTimestamps,omitempty"`
  1730  	// SizeBytes: Output only. File size in bytes.
  1731  	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
  1732  	// ForceSendFields is a list of field names (e.g. "FilePath") to
  1733  	// unconditionally include in API requests. By default, fields with empty or
  1734  	// default values are omitted from API requests. See
  1735  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1736  	// details.
  1737  	ForceSendFields []string `json:"-"`
  1738  	// NullFields is a list of field names (e.g. "FilePath") to include in API
  1739  	// requests with the JSON null value. By default, fields with empty values are
  1740  	// omitted from API requests. See
  1741  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1742  	NullFields []string `json:"-"`
  1743  }
  1744  
  1745  func (s *GoogleCloudDatacatalogV1GcsFileSpec) MarshalJSON() ([]byte, error) {
  1746  	type NoMethod GoogleCloudDatacatalogV1GcsFileSpec
  1747  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1748  }
  1749  
  1750  // GoogleCloudDatacatalogV1GcsFilesetSpec: Describes a Cloud Storage fileset
  1751  // entry.
  1752  type GoogleCloudDatacatalogV1GcsFilesetSpec struct {
  1753  	// FilePatterns: Required. Patterns to identify a set of files in Google Cloud
  1754  	// Storage. For more information, see [Wildcard Names]
  1755  	// (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). Note:
  1756  	// Currently, bucket wildcards are not supported. Examples of valid
  1757  	// `file_patterns`: * `gs://bucket_name/dir/*`: matches all files in
  1758  	// `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all files
  1759  	// in `bucket_name/dir` and all subdirectories * `gs://bucket_name/file*`:
  1760  	// matches files prefixed by `file` in `bucket_name` *
  1761  	// `gs://bucket_name/??.txt`: matches files with two characters followed by
  1762  	// `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that
  1763  	// contain a single vowel character followed by `.txt` in `bucket_name` *
  1764  	// `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or
  1765  	// `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches
  1766  	// all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`,
  1767  	// `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
  1768  	// You can combine wildcards to match complex sets of files, for example:
  1769  	// `gs://bucket_name/[a-m]??.j*g`
  1770  	FilePatterns []string `json:"filePatterns,omitempty"`
  1771  	// SampleGcsFileSpecs: Output only. Sample files contained in this fileset, not
  1772  	// all files contained in this fileset are represented here.
  1773  	SampleGcsFileSpecs []*GoogleCloudDatacatalogV1GcsFileSpec `json:"sampleGcsFileSpecs,omitempty"`
  1774  	// ForceSendFields is a list of field names (e.g. "FilePatterns") to
  1775  	// unconditionally include in API requests. By default, fields with empty or
  1776  	// default values are omitted from API requests. See
  1777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1778  	// details.
  1779  	ForceSendFields []string `json:"-"`
  1780  	// NullFields is a list of field names (e.g. "FilePatterns") to include in API
  1781  	// requests with the JSON null value. By default, fields with empty values are
  1782  	// omitted from API requests. See
  1783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1784  	NullFields []string `json:"-"`
  1785  }
  1786  
  1787  func (s *GoogleCloudDatacatalogV1GcsFilesetSpec) MarshalJSON() ([]byte, error) {
  1788  	type NoMethod GoogleCloudDatacatalogV1GcsFilesetSpec
  1789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1790  }
  1791  
  1792  // GoogleCloudDatacatalogV1ImportEntriesMetadata: Metadata message for
  1793  // long-running operation returned by the ImportEntries.
  1794  type GoogleCloudDatacatalogV1ImportEntriesMetadata struct {
  1795  	// Errors: Partial errors that are encountered during the ImportEntries
  1796  	// operation. There is no guarantee that all the encountered errors are
  1797  	// reported. However, if no errors are reported, it means that no errors were
  1798  	// encountered.
  1799  	Errors []*Status `json:"errors,omitempty"`
  1800  	// State: State of the import operation.
  1801  	//
  1802  	// Possible values:
  1803  	//   "IMPORT_STATE_UNSPECIFIED" - Default value. This value is unused.
  1804  	//   "IMPORT_QUEUED" - The dump with entries has been queued for import.
  1805  	//   "IMPORT_IN_PROGRESS" - The import of entries is in progress.
  1806  	//   "IMPORT_DONE" - The import of entries has been finished.
  1807  	//   "IMPORT_OBSOLETE" - The import of entries has been abandoned in favor of a
  1808  	// newer request.
  1809  	State string `json:"state,omitempty"`
  1810  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  1811  	// include in API requests. By default, fields with empty or default values are
  1812  	// omitted from API requests. See
  1813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1814  	// details.
  1815  	ForceSendFields []string `json:"-"`
  1816  	// NullFields is a list of field names (e.g. "Errors") to include in API
  1817  	// requests with the JSON null value. By default, fields with empty values are
  1818  	// omitted from API requests. See
  1819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1820  	NullFields []string `json:"-"`
  1821  }
  1822  
  1823  func (s *GoogleCloudDatacatalogV1ImportEntriesMetadata) MarshalJSON() ([]byte, error) {
  1824  	type NoMethod GoogleCloudDatacatalogV1ImportEntriesMetadata
  1825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1826  }
  1827  
  1828  // GoogleCloudDatacatalogV1ImportEntriesRequest: Request message for
  1829  // ImportEntries method.
  1830  type GoogleCloudDatacatalogV1ImportEntriesRequest struct {
  1831  	// GcsBucketPath: Path to a Cloud Storage bucket that contains a dump ready for
  1832  	// ingestion.
  1833  	GcsBucketPath string `json:"gcsBucketPath,omitempty"`
  1834  	// JobId: Optional. (Optional) Dataplex task job id, if specified will be used
  1835  	// as part of ImportEntries LRO ID
  1836  	JobId string `json:"jobId,omitempty"`
  1837  	// ForceSendFields is a list of field names (e.g. "GcsBucketPath") to
  1838  	// unconditionally include in API requests. By default, fields with empty or
  1839  	// default values are omitted from API requests. See
  1840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1841  	// details.
  1842  	ForceSendFields []string `json:"-"`
  1843  	// NullFields is a list of field names (e.g. "GcsBucketPath") to include in API
  1844  	// requests with the JSON null value. By default, fields with empty values are
  1845  	// omitted from API requests. See
  1846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1847  	NullFields []string `json:"-"`
  1848  }
  1849  
  1850  func (s *GoogleCloudDatacatalogV1ImportEntriesRequest) MarshalJSON() ([]byte, error) {
  1851  	type NoMethod GoogleCloudDatacatalogV1ImportEntriesRequest
  1852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1853  }
  1854  
  1855  // GoogleCloudDatacatalogV1ImportEntriesResponse: Response message for
  1856  // long-running operation returned by the ImportEntries.
  1857  type GoogleCloudDatacatalogV1ImportEntriesResponse struct {
  1858  	// DeletedEntriesCount: Number of entries deleted as a result of import
  1859  	// operation.
  1860  	DeletedEntriesCount int64 `json:"deletedEntriesCount,omitempty,string"`
  1861  	// UpsertedEntriesCount: Cumulative number of entries created and entries
  1862  	// updated as a result of import operation.
  1863  	UpsertedEntriesCount int64 `json:"upsertedEntriesCount,omitempty,string"`
  1864  	// ForceSendFields is a list of field names (e.g. "DeletedEntriesCount") to
  1865  	// unconditionally include in API requests. By default, fields with empty or
  1866  	// default values are omitted from API requests. See
  1867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1868  	// details.
  1869  	ForceSendFields []string `json:"-"`
  1870  	// NullFields is a list of field names (e.g. "DeletedEntriesCount") to include
  1871  	// in API requests with the JSON null value. By default, fields with empty
  1872  	// values are omitted from API requests. See
  1873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1874  	NullFields []string `json:"-"`
  1875  }
  1876  
  1877  func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, error) {
  1878  	type NoMethod GoogleCloudDatacatalogV1ImportEntriesResponse
  1879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1880  }
  1881  
  1882  // GoogleCloudDatacatalogV1ImportTaxonomiesRequest: Request message for
  1883  // ImportTaxonomies.
  1884  type GoogleCloudDatacatalogV1ImportTaxonomiesRequest struct {
  1885  	// CrossRegionalSource: Cross-regional source taxonomy to import.
  1886  	CrossRegionalSource *GoogleCloudDatacatalogV1CrossRegionalSource `json:"crossRegionalSource,omitempty"`
  1887  	// InlineSource: Inline source taxonomy to import.
  1888  	InlineSource *GoogleCloudDatacatalogV1InlineSource `json:"inlineSource,omitempty"`
  1889  	// ForceSendFields is a list of field names (e.g. "CrossRegionalSource") to
  1890  	// unconditionally include in API requests. By default, fields with empty or
  1891  	// default values are omitted from API requests. See
  1892  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1893  	// details.
  1894  	ForceSendFields []string `json:"-"`
  1895  	// NullFields is a list of field names (e.g. "CrossRegionalSource") to include
  1896  	// in API requests with the JSON null value. By default, fields with empty
  1897  	// values are omitted from API requests. See
  1898  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1899  	NullFields []string `json:"-"`
  1900  }
  1901  
  1902  func (s *GoogleCloudDatacatalogV1ImportTaxonomiesRequest) MarshalJSON() ([]byte, error) {
  1903  	type NoMethod GoogleCloudDatacatalogV1ImportTaxonomiesRequest
  1904  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1905  }
  1906  
  1907  // GoogleCloudDatacatalogV1ImportTaxonomiesResponse: Response message for
  1908  // ImportTaxonomies.
  1909  type GoogleCloudDatacatalogV1ImportTaxonomiesResponse struct {
  1910  	// Taxonomies: Imported taxonomies.
  1911  	Taxonomies []*GoogleCloudDatacatalogV1Taxonomy `json:"taxonomies,omitempty"`
  1912  
  1913  	// ServerResponse contains the HTTP response code and headers from the server.
  1914  	googleapi.ServerResponse `json:"-"`
  1915  	// ForceSendFields is a list of field names (e.g. "Taxonomies") to
  1916  	// unconditionally include in API requests. By default, fields with empty or
  1917  	// default values are omitted from API requests. See
  1918  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1919  	// details.
  1920  	ForceSendFields []string `json:"-"`
  1921  	// NullFields is a list of field names (e.g. "Taxonomies") to include in API
  1922  	// requests with the JSON null value. By default, fields with empty values are
  1923  	// omitted from API requests. See
  1924  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1925  	NullFields []string `json:"-"`
  1926  }
  1927  
  1928  func (s *GoogleCloudDatacatalogV1ImportTaxonomiesResponse) MarshalJSON() ([]byte, error) {
  1929  	type NoMethod GoogleCloudDatacatalogV1ImportTaxonomiesResponse
  1930  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1931  }
  1932  
  1933  // GoogleCloudDatacatalogV1InlineSource: Inline source containing taxonomies to
  1934  // import.
  1935  type GoogleCloudDatacatalogV1InlineSource struct {
  1936  	// Taxonomies: Required. Taxonomies to import.
  1937  	Taxonomies []*GoogleCloudDatacatalogV1SerializedTaxonomy `json:"taxonomies,omitempty"`
  1938  	// ForceSendFields is a list of field names (e.g. "Taxonomies") to
  1939  	// unconditionally include in API requests. By default, fields with empty or
  1940  	// default values are omitted from API requests. See
  1941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1942  	// details.
  1943  	ForceSendFields []string `json:"-"`
  1944  	// NullFields is a list of field names (e.g. "Taxonomies") to include in API
  1945  	// requests with the JSON null value. By default, fields with empty values are
  1946  	// omitted from API requests. See
  1947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1948  	NullFields []string `json:"-"`
  1949  }
  1950  
  1951  func (s *GoogleCloudDatacatalogV1InlineSource) MarshalJSON() ([]byte, error) {
  1952  	type NoMethod GoogleCloudDatacatalogV1InlineSource
  1953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1954  }
  1955  
  1956  // GoogleCloudDatacatalogV1ListEntriesResponse: Response message for
  1957  // ListEntries.
  1958  type GoogleCloudDatacatalogV1ListEntriesResponse struct {
  1959  	// Entries: Entry details.
  1960  	Entries []*GoogleCloudDatacatalogV1Entry `json:"entries,omitempty"`
  1961  	// NextPageToken: Pagination token of the next results page. Empty if there are
  1962  	// no more items in results.
  1963  	NextPageToken string `json:"nextPageToken,omitempty"`
  1964  
  1965  	// ServerResponse contains the HTTP response code and headers from the server.
  1966  	googleapi.ServerResponse `json:"-"`
  1967  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1968  	// include in API requests. By default, fields with empty or default values are
  1969  	// omitted from API requests. See
  1970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1971  	// details.
  1972  	ForceSendFields []string `json:"-"`
  1973  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1974  	// requests with the JSON null value. By default, fields with empty values are
  1975  	// omitted from API requests. See
  1976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1977  	NullFields []string `json:"-"`
  1978  }
  1979  
  1980  func (s *GoogleCloudDatacatalogV1ListEntriesResponse) MarshalJSON() ([]byte, error) {
  1981  	type NoMethod GoogleCloudDatacatalogV1ListEntriesResponse
  1982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1983  }
  1984  
  1985  // GoogleCloudDatacatalogV1ListEntryGroupsResponse: Response message for
  1986  // ListEntryGroups.
  1987  type GoogleCloudDatacatalogV1ListEntryGroupsResponse struct {
  1988  	// EntryGroups: Entry group details.
  1989  	EntryGroups []*GoogleCloudDatacatalogV1EntryGroup `json:"entryGroups,omitempty"`
  1990  	// NextPageToken: Pagination token to specify in the next call to retrieve the
  1991  	// next page of results. Empty if there are no more items.
  1992  	NextPageToken string `json:"nextPageToken,omitempty"`
  1993  
  1994  	// ServerResponse contains the HTTP response code and headers from the server.
  1995  	googleapi.ServerResponse `json:"-"`
  1996  	// ForceSendFields is a list of field names (e.g. "EntryGroups") to
  1997  	// unconditionally include in API requests. By default, fields with empty or
  1998  	// default values are omitted from API requests. See
  1999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2000  	// details.
  2001  	ForceSendFields []string `json:"-"`
  2002  	// NullFields is a list of field names (e.g. "EntryGroups") to include in API
  2003  	// requests with the JSON null value. By default, fields with empty values are
  2004  	// omitted from API requests. See
  2005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2006  	NullFields []string `json:"-"`
  2007  }
  2008  
  2009  func (s *GoogleCloudDatacatalogV1ListEntryGroupsResponse) MarshalJSON() ([]byte, error) {
  2010  	type NoMethod GoogleCloudDatacatalogV1ListEntryGroupsResponse
  2011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2012  }
  2013  
  2014  // GoogleCloudDatacatalogV1ListPolicyTagsResponse: Response message for
  2015  // ListPolicyTags.
  2016  type GoogleCloudDatacatalogV1ListPolicyTagsResponse struct {
  2017  	// NextPageToken: Pagination token of the next results page. Empty if there are
  2018  	// no more results in the list.
  2019  	NextPageToken string `json:"nextPageToken,omitempty"`
  2020  	// PolicyTags: The policy tags that belong to the taxonomy.
  2021  	PolicyTags []*GoogleCloudDatacatalogV1PolicyTag `json:"policyTags,omitempty"`
  2022  
  2023  	// ServerResponse contains the HTTP response code and headers from the server.
  2024  	googleapi.ServerResponse `json:"-"`
  2025  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2026  	// unconditionally include in API requests. By default, fields with empty or
  2027  	// default values are omitted from API requests. See
  2028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2029  	// details.
  2030  	ForceSendFields []string `json:"-"`
  2031  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2032  	// requests with the JSON null value. By default, fields with empty values are
  2033  	// omitted from API requests. See
  2034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2035  	NullFields []string `json:"-"`
  2036  }
  2037  
  2038  func (s *GoogleCloudDatacatalogV1ListPolicyTagsResponse) MarshalJSON() ([]byte, error) {
  2039  	type NoMethod GoogleCloudDatacatalogV1ListPolicyTagsResponse
  2040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2041  }
  2042  
  2043  // GoogleCloudDatacatalogV1ListTagsResponse: Response message for ListTags.
  2044  type GoogleCloudDatacatalogV1ListTagsResponse struct {
  2045  	// NextPageToken: Pagination token of the next results page. Empty if there are
  2046  	// no more items in results.
  2047  	NextPageToken string `json:"nextPageToken,omitempty"`
  2048  	// Tags: Tag details.
  2049  	Tags []*GoogleCloudDatacatalogV1Tag `json:"tags,omitempty"`
  2050  
  2051  	// ServerResponse contains the HTTP response code and headers from the server.
  2052  	googleapi.ServerResponse `json:"-"`
  2053  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2054  	// unconditionally include in API requests. By default, fields with empty or
  2055  	// default values are omitted from API requests. See
  2056  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2057  	// details.
  2058  	ForceSendFields []string `json:"-"`
  2059  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2060  	// requests with the JSON null value. By default, fields with empty values are
  2061  	// omitted from API requests. See
  2062  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2063  	NullFields []string `json:"-"`
  2064  }
  2065  
  2066  func (s *GoogleCloudDatacatalogV1ListTagsResponse) MarshalJSON() ([]byte, error) {
  2067  	type NoMethod GoogleCloudDatacatalogV1ListTagsResponse
  2068  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2069  }
  2070  
  2071  // GoogleCloudDatacatalogV1ListTaxonomiesResponse: Response message for
  2072  // ListTaxonomies.
  2073  type GoogleCloudDatacatalogV1ListTaxonomiesResponse struct {
  2074  	// NextPageToken: Pagination token of the next results page. Empty if there are
  2075  	// no more results in the list.
  2076  	NextPageToken string `json:"nextPageToken,omitempty"`
  2077  	// Taxonomies: Taxonomies that the project contains.
  2078  	Taxonomies []*GoogleCloudDatacatalogV1Taxonomy `json:"taxonomies,omitempty"`
  2079  
  2080  	// ServerResponse contains the HTTP response code and headers from the server.
  2081  	googleapi.ServerResponse `json:"-"`
  2082  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2083  	// unconditionally include in API requests. By default, fields with empty or
  2084  	// default values are omitted from API requests. See
  2085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2086  	// details.
  2087  	ForceSendFields []string `json:"-"`
  2088  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2089  	// requests with the JSON null value. By default, fields with empty values are
  2090  	// omitted from API requests. See
  2091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2092  	NullFields []string `json:"-"`
  2093  }
  2094  
  2095  func (s *GoogleCloudDatacatalogV1ListTaxonomiesResponse) MarshalJSON() ([]byte, error) {
  2096  	type NoMethod GoogleCloudDatacatalogV1ListTaxonomiesResponse
  2097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2098  }
  2099  
  2100  // GoogleCloudDatacatalogV1LookerSystemSpec: Specification that applies to
  2101  // entries that are part `LOOKER` system (user_specified_type)
  2102  type GoogleCloudDatacatalogV1LookerSystemSpec struct {
  2103  	// ParentInstanceDisplayName: Name of the parent Looker Instance. Empty if it
  2104  	// does not exist.
  2105  	ParentInstanceDisplayName string `json:"parentInstanceDisplayName,omitempty"`
  2106  	// ParentInstanceId: ID of the parent Looker Instance. Empty if it does not
  2107  	// exist. Example value: `someinstance.looker.com`
  2108  	ParentInstanceId string `json:"parentInstanceId,omitempty"`
  2109  	// ParentModelDisplayName: Name of the parent Model. Empty if it does not
  2110  	// exist.
  2111  	ParentModelDisplayName string `json:"parentModelDisplayName,omitempty"`
  2112  	// ParentModelId: ID of the parent Model. Empty if it does not exist.
  2113  	ParentModelId string `json:"parentModelId,omitempty"`
  2114  	// ParentViewDisplayName: Name of the parent View. Empty if it does not exist.
  2115  	ParentViewDisplayName string `json:"parentViewDisplayName,omitempty"`
  2116  	// ParentViewId: ID of the parent View. Empty if it does not exist.
  2117  	ParentViewId string `json:"parentViewId,omitempty"`
  2118  	// ForceSendFields is a list of field names (e.g. "ParentInstanceDisplayName")
  2119  	// to unconditionally include in API requests. By default, fields with empty or
  2120  	// default values are omitted from API requests. See
  2121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2122  	// details.
  2123  	ForceSendFields []string `json:"-"`
  2124  	// NullFields is a list of field names (e.g. "ParentInstanceDisplayName") to
  2125  	// include in API requests with the JSON null value. By default, fields with
  2126  	// empty values are omitted from API requests. See
  2127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2128  	NullFields []string `json:"-"`
  2129  }
  2130  
  2131  func (s *GoogleCloudDatacatalogV1LookerSystemSpec) MarshalJSON() ([]byte, error) {
  2132  	type NoMethod GoogleCloudDatacatalogV1LookerSystemSpec
  2133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2134  }
  2135  
  2136  // GoogleCloudDatacatalogV1ModelSpec: Specification that applies to a model.
  2137  // Valid only for entries with the `MODEL` type.
  2138  type GoogleCloudDatacatalogV1ModelSpec struct {
  2139  	// VertexModelSpec: Specification for vertex model resources.
  2140  	VertexModelSpec *GoogleCloudDatacatalogV1VertexModelSpec `json:"vertexModelSpec,omitempty"`
  2141  	// ForceSendFields is a list of field names (e.g. "VertexModelSpec") to
  2142  	// unconditionally include in API requests. By default, fields with empty or
  2143  	// default values are omitted from API requests. See
  2144  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2145  	// details.
  2146  	ForceSendFields []string `json:"-"`
  2147  	// NullFields is a list of field names (e.g. "VertexModelSpec") to include in
  2148  	// API requests with the JSON null value. By default, fields with empty values
  2149  	// are omitted from API requests. See
  2150  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2151  	NullFields []string `json:"-"`
  2152  }
  2153  
  2154  func (s *GoogleCloudDatacatalogV1ModelSpec) MarshalJSON() ([]byte, error) {
  2155  	type NoMethod GoogleCloudDatacatalogV1ModelSpec
  2156  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2157  }
  2158  
  2159  // GoogleCloudDatacatalogV1ModifyEntryContactsRequest: Request message for
  2160  // ModifyEntryContacts.
  2161  type GoogleCloudDatacatalogV1ModifyEntryContactsRequest struct {
  2162  	// Contacts: Required. The new value for the Contacts.
  2163  	Contacts *GoogleCloudDatacatalogV1Contacts `json:"contacts,omitempty"`
  2164  	// ForceSendFields is a list of field names (e.g. "Contacts") to
  2165  	// unconditionally include in API requests. By default, fields with empty or
  2166  	// default values are omitted from API requests. See
  2167  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2168  	// details.
  2169  	ForceSendFields []string `json:"-"`
  2170  	// NullFields is a list of field names (e.g. "Contacts") to include in API
  2171  	// requests with the JSON null value. By default, fields with empty values are
  2172  	// omitted from API requests. See
  2173  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2174  	NullFields []string `json:"-"`
  2175  }
  2176  
  2177  func (s *GoogleCloudDatacatalogV1ModifyEntryContactsRequest) MarshalJSON() ([]byte, error) {
  2178  	type NoMethod GoogleCloudDatacatalogV1ModifyEntryContactsRequest
  2179  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2180  }
  2181  
  2182  // GoogleCloudDatacatalogV1ModifyEntryOverviewRequest: Request message for
  2183  // ModifyEntryOverview.
  2184  type GoogleCloudDatacatalogV1ModifyEntryOverviewRequest struct {
  2185  	// EntryOverview: Required. The new value for the Entry Overview.
  2186  	EntryOverview *GoogleCloudDatacatalogV1EntryOverview `json:"entryOverview,omitempty"`
  2187  	// ForceSendFields is a list of field names (e.g. "EntryOverview") to
  2188  	// unconditionally include in API requests. By default, fields with empty or
  2189  	// default values are omitted from API requests. See
  2190  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2191  	// details.
  2192  	ForceSendFields []string `json:"-"`
  2193  	// NullFields is a list of field names (e.g. "EntryOverview") to include in API
  2194  	// requests with the JSON null value. By default, fields with empty values are
  2195  	// omitted from API requests. See
  2196  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2197  	NullFields []string `json:"-"`
  2198  }
  2199  
  2200  func (s *GoogleCloudDatacatalogV1ModifyEntryOverviewRequest) MarshalJSON() ([]byte, error) {
  2201  	type NoMethod GoogleCloudDatacatalogV1ModifyEntryOverviewRequest
  2202  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2203  }
  2204  
  2205  // GoogleCloudDatacatalogV1PersonalDetails: Entry metadata relevant only to the
  2206  // user and private to them.
  2207  type GoogleCloudDatacatalogV1PersonalDetails struct {
  2208  	// StarTime: Set if the entry is starred; unset otherwise.
  2209  	StarTime string `json:"starTime,omitempty"`
  2210  	// Starred: True if the entry is starred by the user; false otherwise.
  2211  	Starred bool `json:"starred,omitempty"`
  2212  	// ForceSendFields is a list of field names (e.g. "StarTime") to
  2213  	// unconditionally include in API requests. By default, fields with empty or
  2214  	// default values are omitted from API requests. See
  2215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2216  	// details.
  2217  	ForceSendFields []string `json:"-"`
  2218  	// NullFields is a list of field names (e.g. "StarTime") to include in API
  2219  	// requests with the JSON null value. By default, fields with empty values are
  2220  	// omitted from API requests. See
  2221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2222  	NullFields []string `json:"-"`
  2223  }
  2224  
  2225  func (s *GoogleCloudDatacatalogV1PersonalDetails) MarshalJSON() ([]byte, error) {
  2226  	type NoMethod GoogleCloudDatacatalogV1PersonalDetails
  2227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2228  }
  2229  
  2230  // GoogleCloudDatacatalogV1PhysicalSchema: Native schema used by a resource
  2231  // represented as an entry. Used by query engines for deserializing and parsing
  2232  // source data.
  2233  type GoogleCloudDatacatalogV1PhysicalSchema struct {
  2234  	// Avro: Schema in Avro JSON format.
  2235  	Avro *GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema `json:"avro,omitempty"`
  2236  	// Csv: Marks a CSV-encoded data source.
  2237  	Csv *GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema `json:"csv,omitempty"`
  2238  	// Orc: Marks an ORC-encoded data source.
  2239  	Orc *GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema `json:"orc,omitempty"`
  2240  	// Parquet: Marks a Parquet-encoded data source.
  2241  	Parquet *GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema `json:"parquet,omitempty"`
  2242  	// Protobuf: Schema in protocol buffer format.
  2243  	Protobuf *GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema `json:"protobuf,omitempty"`
  2244  	// Thrift: Schema in Thrift format.
  2245  	Thrift *GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema `json:"thrift,omitempty"`
  2246  	// ForceSendFields is a list of field names (e.g. "Avro") to unconditionally
  2247  	// include in API requests. By default, fields with empty or default values are
  2248  	// omitted from API requests. See
  2249  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2250  	// details.
  2251  	ForceSendFields []string `json:"-"`
  2252  	// NullFields is a list of field names (e.g. "Avro") to include in API requests
  2253  	// with the JSON null value. By default, fields with empty values are omitted
  2254  	// from API requests. See
  2255  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2256  	NullFields []string `json:"-"`
  2257  }
  2258  
  2259  func (s *GoogleCloudDatacatalogV1PhysicalSchema) MarshalJSON() ([]byte, error) {
  2260  	type NoMethod GoogleCloudDatacatalogV1PhysicalSchema
  2261  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2262  }
  2263  
  2264  // GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema: Schema in Avro JSON
  2265  // format.
  2266  type GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema struct {
  2267  	// Text: JSON source of the Avro schema.
  2268  	Text string `json:"text,omitempty"`
  2269  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  2270  	// include in API requests. By default, fields with empty or default values are
  2271  	// omitted from API requests. See
  2272  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2273  	// details.
  2274  	ForceSendFields []string `json:"-"`
  2275  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  2276  	// with the JSON null value. By default, fields with empty values are omitted
  2277  	// from API requests. See
  2278  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2279  	NullFields []string `json:"-"`
  2280  }
  2281  
  2282  func (s *GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema) MarshalJSON() ([]byte, error) {
  2283  	type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema
  2284  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2285  }
  2286  
  2287  // GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema: Marks a CSV-encoded data
  2288  // source.
  2289  type GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema struct {
  2290  }
  2291  
  2292  // GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema: Marks an ORC-encoded data
  2293  // source.
  2294  type GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema struct {
  2295  }
  2296  
  2297  // GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema: Marks a Parquet-encoded
  2298  // data source.
  2299  type GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema struct {
  2300  }
  2301  
  2302  // GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema: Schema in protocol
  2303  // buffer format.
  2304  type GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema struct {
  2305  	// Text: Protocol buffer source of the schema.
  2306  	Text string `json:"text,omitempty"`
  2307  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  2308  	// include in API requests. By default, fields with empty or default values are
  2309  	// omitted from API requests. See
  2310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2311  	// details.
  2312  	ForceSendFields []string `json:"-"`
  2313  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  2314  	// with the JSON null value. By default, fields with empty values are omitted
  2315  	// from API requests. See
  2316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2317  	NullFields []string `json:"-"`
  2318  }
  2319  
  2320  func (s *GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema) MarshalJSON() ([]byte, error) {
  2321  	type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema
  2322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2323  }
  2324  
  2325  // GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema: Schema in Thrift format.
  2326  type GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema struct {
  2327  	// Text: Thrift IDL source of the schema.
  2328  	Text string `json:"text,omitempty"`
  2329  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
  2330  	// include in API requests. By default, fields with empty or default values are
  2331  	// omitted from API requests. See
  2332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2333  	// details.
  2334  	ForceSendFields []string `json:"-"`
  2335  	// NullFields is a list of field names (e.g. "Text") to include in API requests
  2336  	// with the JSON null value. By default, fields with empty values are omitted
  2337  	// from API requests. See
  2338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2339  	NullFields []string `json:"-"`
  2340  }
  2341  
  2342  func (s *GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema) MarshalJSON() ([]byte, error) {
  2343  	type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema
  2344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2345  }
  2346  
  2347  // GoogleCloudDatacatalogV1PolicyTag: Denotes one policy tag in a taxonomy, for
  2348  // example, SSN. Policy tags can be defined in a hierarchy. For example: ``` +
  2349  // Geolocation + LatLong + City + ZipCode ``` Where the "Geolocation" policy
  2350  // tag contains three children.
  2351  type GoogleCloudDatacatalogV1PolicyTag struct {
  2352  	// ChildPolicyTags: Output only. Resource names of child policy tags of this
  2353  	// policy tag.
  2354  	ChildPolicyTags []string `json:"childPolicyTags,omitempty"`
  2355  	// Description: Description of this policy tag. If not set, defaults to empty.
  2356  	// The description must contain only Unicode characters, tabs, newlines,
  2357  	// carriage returns and page breaks, and be at most 2000 bytes long when
  2358  	// encoded in UTF-8.
  2359  	Description string `json:"description,omitempty"`
  2360  	// DisplayName: Required. User-defined name of this policy tag. The name can't
  2361  	// start or end with spaces and must be unique within the parent taxonomy,
  2362  	// contain only Unicode letters, numbers, underscores, dashes and spaces, and
  2363  	// be at most 200 bytes long when encoded in UTF-8.
  2364  	DisplayName string `json:"displayName,omitempty"`
  2365  	// Name: Identifier. Resource name of this policy tag in the URL format. The
  2366  	// policy tag manager generates unique taxonomy IDs and policy tag IDs.
  2367  	Name string `json:"name,omitempty"`
  2368  	// ParentPolicyTag: Resource name of this policy tag's parent policy tag. If
  2369  	// empty, this is a top level tag. If not set, defaults to an empty string. For
  2370  	// example, for the "LatLong" policy tag in the example above, this field
  2371  	// contains the resource name of the "Geolocation" policy tag, and, for
  2372  	// "Geolocation", this field is empty.
  2373  	ParentPolicyTag string `json:"parentPolicyTag,omitempty"`
  2374  
  2375  	// ServerResponse contains the HTTP response code and headers from the server.
  2376  	googleapi.ServerResponse `json:"-"`
  2377  	// ForceSendFields is a list of field names (e.g. "ChildPolicyTags") to
  2378  	// unconditionally include in API requests. By default, fields with empty or
  2379  	// default values are omitted from API requests. See
  2380  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2381  	// details.
  2382  	ForceSendFields []string `json:"-"`
  2383  	// NullFields is a list of field names (e.g. "ChildPolicyTags") to include in
  2384  	// API requests with the JSON null value. By default, fields with empty values
  2385  	// are omitted from API requests. See
  2386  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2387  	NullFields []string `json:"-"`
  2388  }
  2389  
  2390  func (s *GoogleCloudDatacatalogV1PolicyTag) MarshalJSON() ([]byte, error) {
  2391  	type NoMethod GoogleCloudDatacatalogV1PolicyTag
  2392  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2393  }
  2394  
  2395  // GoogleCloudDatacatalogV1ReconcileTagsMetadata: Long-running operation
  2396  // metadata message returned by the ReconcileTags.
  2397  type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct {
  2398  	// Errors: Maps the name of each tagged column (or empty string for a sole
  2399  	// entry) to tagging operation status.
  2400  	Errors map[string]Status `json:"errors,omitempty"`
  2401  	// State: State of the reconciliation operation.
  2402  	//
  2403  	// Possible values:
  2404  	//   "RECONCILIATION_STATE_UNSPECIFIED" - Default value. This value is unused.
  2405  	//   "RECONCILIATION_QUEUED" - The reconciliation has been queued and awaits
  2406  	// for execution.
  2407  	//   "RECONCILIATION_IN_PROGRESS" - The reconciliation is in progress.
  2408  	//   "RECONCILIATION_DONE" - The reconciliation has been finished.
  2409  	State string `json:"state,omitempty"`
  2410  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  2411  	// include in API requests. By default, fields with empty or default values are
  2412  	// omitted from API requests. See
  2413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2414  	// details.
  2415  	ForceSendFields []string `json:"-"`
  2416  	// NullFields is a list of field names (e.g. "Errors") to include in API
  2417  	// requests with the JSON null value. By default, fields with empty values are
  2418  	// omitted from API requests. See
  2419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2420  	NullFields []string `json:"-"`
  2421  }
  2422  
  2423  func (s *GoogleCloudDatacatalogV1ReconcileTagsMetadata) MarshalJSON() ([]byte, error) {
  2424  	type NoMethod GoogleCloudDatacatalogV1ReconcileTagsMetadata
  2425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2426  }
  2427  
  2428  // GoogleCloudDatacatalogV1ReconcileTagsRequest: Request message for
  2429  // ReconcileTags.
  2430  type GoogleCloudDatacatalogV1ReconcileTagsRequest struct {
  2431  	// ForceDeleteMissing: If set to `true`, deletes entry tags related to a tag
  2432  	// template not listed in the tags source from an entry. If set to `false`,
  2433  	// unlisted tags are retained.
  2434  	ForceDeleteMissing bool `json:"forceDeleteMissing,omitempty"`
  2435  	// TagTemplate: Required. The name of the tag template, which is used for
  2436  	// reconciliation.
  2437  	TagTemplate string `json:"tagTemplate,omitempty"`
  2438  	// Tags: A list of tags to apply to an entry. A tag can specify a tag template,
  2439  	// which must be the template specified in the `ReconcileTagsRequest`. The sole
  2440  	// entry and each of its columns must be mentioned at most once.
  2441  	Tags []*GoogleCloudDatacatalogV1Tag `json:"tags,omitempty"`
  2442  	// ForceSendFields is a list of field names (e.g. "ForceDeleteMissing") to
  2443  	// unconditionally include in API requests. By default, fields with empty or
  2444  	// default values are omitted from API requests. See
  2445  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2446  	// details.
  2447  	ForceSendFields []string `json:"-"`
  2448  	// NullFields is a list of field names (e.g. "ForceDeleteMissing") to include
  2449  	// in API requests with the JSON null value. By default, fields with empty
  2450  	// values are omitted from API requests. See
  2451  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2452  	NullFields []string `json:"-"`
  2453  }
  2454  
  2455  func (s *GoogleCloudDatacatalogV1ReconcileTagsRequest) MarshalJSON() ([]byte, error) {
  2456  	type NoMethod GoogleCloudDatacatalogV1ReconcileTagsRequest
  2457  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2458  }
  2459  
  2460  // GoogleCloudDatacatalogV1ReconcileTagsResponse: Long-running operation
  2461  // response message returned by ReconcileTags.
  2462  type GoogleCloudDatacatalogV1ReconcileTagsResponse struct {
  2463  	// CreatedTagsCount: Number of tags created in the request.
  2464  	CreatedTagsCount int64 `json:"createdTagsCount,omitempty,string"`
  2465  	// DeletedTagsCount: Number of tags deleted in the request.
  2466  	DeletedTagsCount int64 `json:"deletedTagsCount,omitempty,string"`
  2467  	// UpdatedTagsCount: Number of tags updated in the request.
  2468  	UpdatedTagsCount int64 `json:"updatedTagsCount,omitempty,string"`
  2469  	// ForceSendFields is a list of field names (e.g. "CreatedTagsCount") to
  2470  	// unconditionally include in API requests. By default, fields with empty or
  2471  	// default values are omitted from API requests. See
  2472  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2473  	// details.
  2474  	ForceSendFields []string `json:"-"`
  2475  	// NullFields is a list of field names (e.g. "CreatedTagsCount") to include in
  2476  	// API requests with the JSON null value. By default, fields with empty values
  2477  	// are omitted from API requests. See
  2478  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2479  	NullFields []string `json:"-"`
  2480  }
  2481  
  2482  func (s *GoogleCloudDatacatalogV1ReconcileTagsResponse) MarshalJSON() ([]byte, error) {
  2483  	type NoMethod GoogleCloudDatacatalogV1ReconcileTagsResponse
  2484  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2485  }
  2486  
  2487  // GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest: Request
  2488  // message for RenameTagTemplateFieldEnumValue.
  2489  type GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest struct {
  2490  	// NewEnumValueDisplayName: Required. The new display name of the enum value.
  2491  	// For example, `my_new_enum_value`.
  2492  	NewEnumValueDisplayName string `json:"newEnumValueDisplayName,omitempty"`
  2493  	// ForceSendFields is a list of field names (e.g. "NewEnumValueDisplayName") to
  2494  	// unconditionally include in API requests. By default, fields with empty or
  2495  	// default values are omitted from API requests. See
  2496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2497  	// details.
  2498  	ForceSendFields []string `json:"-"`
  2499  	// NullFields is a list of field names (e.g. "NewEnumValueDisplayName") to
  2500  	// include in API requests with the JSON null value. By default, fields with
  2501  	// empty values are omitted from API requests. See
  2502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2503  	NullFields []string `json:"-"`
  2504  }
  2505  
  2506  func (s *GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest) MarshalJSON() ([]byte, error) {
  2507  	type NoMethod GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
  2508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2509  }
  2510  
  2511  // GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest: Request message for
  2512  // RenameTagTemplateField.
  2513  type GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest struct {
  2514  	// NewTagTemplateFieldId: Required. The new ID of this tag template field. For
  2515  	// example, `my_new_field`.
  2516  	NewTagTemplateFieldId string `json:"newTagTemplateFieldId,omitempty"`
  2517  	// ForceSendFields is a list of field names (e.g. "NewTagTemplateFieldId") to
  2518  	// unconditionally include in API requests. By default, fields with empty or
  2519  	// default values are omitted from API requests. See
  2520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2521  	// details.
  2522  	ForceSendFields []string `json:"-"`
  2523  	// NullFields is a list of field names (e.g. "NewTagTemplateFieldId") to
  2524  	// include in API requests with the JSON null value. By default, fields with
  2525  	// empty values are omitted from API requests. See
  2526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2527  	NullFields []string `json:"-"`
  2528  }
  2529  
  2530  func (s *GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest) MarshalJSON() ([]byte, error) {
  2531  	type NoMethod GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest
  2532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2533  }
  2534  
  2535  // GoogleCloudDatacatalogV1ReplaceTaxonomyRequest: Request message for
  2536  // ReplaceTaxonomy.
  2537  type GoogleCloudDatacatalogV1ReplaceTaxonomyRequest struct {
  2538  	// SerializedTaxonomy: Required. Taxonomy to update along with its child policy
  2539  	// tags.
  2540  	SerializedTaxonomy *GoogleCloudDatacatalogV1SerializedTaxonomy `json:"serializedTaxonomy,omitempty"`
  2541  	// ForceSendFields is a list of field names (e.g. "SerializedTaxonomy") to
  2542  	// unconditionally include in API requests. By default, fields with empty or
  2543  	// default values are omitted from API requests. See
  2544  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2545  	// details.
  2546  	ForceSendFields []string `json:"-"`
  2547  	// NullFields is a list of field names (e.g. "SerializedTaxonomy") to include
  2548  	// in API requests with the JSON null value. By default, fields with empty
  2549  	// values are omitted from API requests. See
  2550  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2551  	NullFields []string `json:"-"`
  2552  }
  2553  
  2554  func (s *GoogleCloudDatacatalogV1ReplaceTaxonomyRequest) MarshalJSON() ([]byte, error) {
  2555  	type NoMethod GoogleCloudDatacatalogV1ReplaceTaxonomyRequest
  2556  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2557  }
  2558  
  2559  // GoogleCloudDatacatalogV1RoutineSpec: Specification that applies to a
  2560  // routine. Valid only for entries with the `ROUTINE` type.
  2561  type GoogleCloudDatacatalogV1RoutineSpec struct {
  2562  	// BigqueryRoutineSpec: Fields specific for BigQuery routines.
  2563  	BigqueryRoutineSpec *GoogleCloudDatacatalogV1BigQueryRoutineSpec `json:"bigqueryRoutineSpec,omitempty"`
  2564  	// DefinitionBody: The body of the routine.
  2565  	DefinitionBody string `json:"definitionBody,omitempty"`
  2566  	// Language: The language the routine is written in. The exact value depends on
  2567  	// the source system. For BigQuery routines, possible values are: * `SQL` *
  2568  	// `JAVASCRIPT`
  2569  	Language string `json:"language,omitempty"`
  2570  	// ReturnType: Return type of the argument. The exact value depends on the
  2571  	// source system and the language.
  2572  	ReturnType string `json:"returnType,omitempty"`
  2573  	// RoutineArguments: Arguments of the routine.
  2574  	RoutineArguments []*GoogleCloudDatacatalogV1RoutineSpecArgument `json:"routineArguments,omitempty"`
  2575  	// RoutineType: The type of the routine.
  2576  	//
  2577  	// Possible values:
  2578  	//   "ROUTINE_TYPE_UNSPECIFIED" - Unspecified type.
  2579  	//   "SCALAR_FUNCTION" - Non-builtin permanent scalar function.
  2580  	//   "PROCEDURE" - Stored procedure.
  2581  	RoutineType string `json:"routineType,omitempty"`
  2582  	// ForceSendFields is a list of field names (e.g. "BigqueryRoutineSpec") to
  2583  	// unconditionally include in API requests. By default, fields with empty or
  2584  	// default values are omitted from API requests. See
  2585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2586  	// details.
  2587  	ForceSendFields []string `json:"-"`
  2588  	// NullFields is a list of field names (e.g. "BigqueryRoutineSpec") to include
  2589  	// in API requests with the JSON null value. By default, fields with empty
  2590  	// values are omitted from API requests. See
  2591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2592  	NullFields []string `json:"-"`
  2593  }
  2594  
  2595  func (s *GoogleCloudDatacatalogV1RoutineSpec) MarshalJSON() ([]byte, error) {
  2596  	type NoMethod GoogleCloudDatacatalogV1RoutineSpec
  2597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2598  }
  2599  
  2600  // GoogleCloudDatacatalogV1RoutineSpecArgument: Input or output argument of a
  2601  // function or stored procedure.
  2602  type GoogleCloudDatacatalogV1RoutineSpecArgument struct {
  2603  	// Mode: Specifies whether the argument is input or output.
  2604  	//
  2605  	// Possible values:
  2606  	//   "MODE_UNSPECIFIED" - Unspecified mode.
  2607  	//   "IN" - The argument is input-only.
  2608  	//   "OUT" - The argument is output-only.
  2609  	//   "INOUT" - The argument is both an input and an output.
  2610  	Mode string `json:"mode,omitempty"`
  2611  	// Name: The name of the argument. A return argument of a function might not
  2612  	// have a name.
  2613  	Name string `json:"name,omitempty"`
  2614  	// Type: Type of the argument. The exact value depends on the source system and
  2615  	// the language.
  2616  	Type string `json:"type,omitempty"`
  2617  	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
  2618  	// include in API requests. By default, fields with empty or default values are
  2619  	// omitted from API requests. See
  2620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2621  	// details.
  2622  	ForceSendFields []string `json:"-"`
  2623  	// NullFields is a list of field names (e.g. "Mode") to include in API requests
  2624  	// with the JSON null value. By default, fields with empty values are omitted
  2625  	// from API requests. See
  2626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2627  	NullFields []string `json:"-"`
  2628  }
  2629  
  2630  func (s *GoogleCloudDatacatalogV1RoutineSpecArgument) MarshalJSON() ([]byte, error) {
  2631  	type NoMethod GoogleCloudDatacatalogV1RoutineSpecArgument
  2632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2633  }
  2634  
  2635  // GoogleCloudDatacatalogV1Schema: Represents a schema, for example, a
  2636  // BigQuery, GoogleSQL, or Avro schema.
  2637  type GoogleCloudDatacatalogV1Schema struct {
  2638  	// Columns: The unified GoogleSQL-like schema of columns. The overall maximum
  2639  	// number of columns and nested columns is 10,000. The maximum nested depth is
  2640  	// 15 levels.
  2641  	Columns []*GoogleCloudDatacatalogV1ColumnSchema `json:"columns,omitempty"`
  2642  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  2643  	// include in API requests. By default, fields with empty or default values are
  2644  	// omitted from API requests. See
  2645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2646  	// details.
  2647  	ForceSendFields []string `json:"-"`
  2648  	// NullFields is a list of field names (e.g. "Columns") to include in API
  2649  	// requests with the JSON null value. By default, fields with empty values are
  2650  	// omitted from API requests. See
  2651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2652  	NullFields []string `json:"-"`
  2653  }
  2654  
  2655  func (s *GoogleCloudDatacatalogV1Schema) MarshalJSON() ([]byte, error) {
  2656  	type NoMethod GoogleCloudDatacatalogV1Schema
  2657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2658  }
  2659  
  2660  // GoogleCloudDatacatalogV1SearchCatalogRequest: Request message for
  2661  // SearchCatalog.
  2662  type GoogleCloudDatacatalogV1SearchCatalogRequest struct {
  2663  	// AdminSearch: Optional. If set, use searchAll permission granted on
  2664  	// organizations from `include_org_ids` and projects from `include_project_ids`
  2665  	// instead of the fine grained per resource permissions when filtering the
  2666  	// search results. The only allowed `order_by` criteria for admin_search mode
  2667  	// is `default`. Using this flags guarantees a full recall of the search
  2668  	// results.
  2669  	AdminSearch bool `json:"adminSearch,omitempty"`
  2670  	// OrderBy: Specifies the order of results. Currently supported case-sensitive
  2671  	// values are: * `relevance` that can only be descending *
  2672  	// `last_modified_timestamp [asc|desc]` with descending (`desc`) as default *
  2673  	// `default` that can only be descending Search queries don't guarantee full
  2674  	// recall. Results that match your query might not be returned, even in
  2675  	// subsequent result pages. Additionally, returned (and not returned) results
  2676  	// can vary if you repeat search queries. If you are experiencing recall issues
  2677  	// and you don't have to fetch the results in any specific order, consider
  2678  	// setting this parameter to `default`. If this parameter is omitted, it
  2679  	// defaults to the descending `relevance`.
  2680  	OrderBy string `json:"orderBy,omitempty"`
  2681  	// PageSize: Upper bound on the number of results you can get in a single
  2682  	// response. Can't be negative or 0, defaults to 10 in this case. The maximum
  2683  	// number is 1000. If exceeded, throws an "invalid argument" exception.
  2684  	PageSize int64 `json:"pageSize,omitempty"`
  2685  	// PageToken: Optional. Pagination token that, if specified, returns the next
  2686  	// page of search results. If empty, returns the first page. This token is
  2687  	// returned in the SearchCatalogResponse.next_page_token field of the response
  2688  	// to a previous SearchCatalogRequest call.
  2689  	PageToken string `json:"pageToken,omitempty"`
  2690  	// Query: Optional. The query string with a minimum of 3 characters and
  2691  	// specific syntax. For more information, see Data Catalog search syntax
  2692  	// (https://cloud.google.com/data-catalog/docs/how-to/search-reference). An
  2693  	// empty query string returns all data assets (in the specified scope) that you
  2694  	// have access to. A query string can be a simple `xyz` or qualified by
  2695  	// predicates: * `name:x` * `column:y` * `description:z`
  2696  	Query string `json:"query,omitempty"`
  2697  	// Scope: Required. The scope of this search request. The `scope` is invalid if
  2698  	// `include_org_ids`, `include_project_ids` are empty AND
  2699  	// `include_gcp_public_datasets` is set to `false`. In this case, the request
  2700  	// returns an error.
  2701  	Scope *GoogleCloudDatacatalogV1SearchCatalogRequestScope `json:"scope,omitempty"`
  2702  	// ForceSendFields is a list of field names (e.g. "AdminSearch") to
  2703  	// unconditionally include in API requests. By default, fields with empty or
  2704  	// default values are omitted from API requests. See
  2705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2706  	// details.
  2707  	ForceSendFields []string `json:"-"`
  2708  	// NullFields is a list of field names (e.g. "AdminSearch") to include in API
  2709  	// requests with the JSON null value. By default, fields with empty values are
  2710  	// omitted from API requests. See
  2711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2712  	NullFields []string `json:"-"`
  2713  }
  2714  
  2715  func (s *GoogleCloudDatacatalogV1SearchCatalogRequest) MarshalJSON() ([]byte, error) {
  2716  	type NoMethod GoogleCloudDatacatalogV1SearchCatalogRequest
  2717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2718  }
  2719  
  2720  // GoogleCloudDatacatalogV1SearchCatalogRequestScope: The criteria that select
  2721  // the subspace used for query matching.
  2722  type GoogleCloudDatacatalogV1SearchCatalogRequestScope struct {
  2723  	// IncludeGcpPublicDatasets: If `true`, include Google Cloud public datasets in
  2724  	// search results. By default, they are excluded. See Google Cloud Public
  2725  	// Datasets (/public-datasets) for more information.
  2726  	IncludeGcpPublicDatasets bool `json:"includeGcpPublicDatasets,omitempty"`
  2727  	// IncludeOrgIds: The list of organization IDs to search within. To find your
  2728  	// organization ID, follow the steps from [Creating and managing organizations]
  2729  	// (/resource-manager/docs/creating-managing-organization).
  2730  	IncludeOrgIds []string `json:"includeOrgIds,omitempty"`
  2731  	// IncludeProjectIds: The list of project IDs to search within. For more
  2732  	// information on the distinction between project names, IDs, and numbers, see
  2733  	// Projects (/docs/overview/#projects).
  2734  	IncludeProjectIds []string `json:"includeProjectIds,omitempty"`
  2735  	// IncludePublicTagTemplates: Optional. This field is deprecated. The search
  2736  	// mechanism for public and private tag templates is the same.
  2737  	IncludePublicTagTemplates bool `json:"includePublicTagTemplates,omitempty"`
  2738  	// RestrictedLocations: Optional. The list of locations to search within. If
  2739  	// empty, all locations are searched. Returns an error if any location in the
  2740  	// list isn't one of the Supported regions
  2741  	// (https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
  2742  	// If a location is unreachable, its name is returned in the
  2743  	// `SearchCatalogResponse.unreachable` field. To get additional information on
  2744  	// the error, repeat the search request and set the location name as the value
  2745  	// of this parameter.
  2746  	RestrictedLocations []string `json:"restrictedLocations,omitempty"`
  2747  	// StarredOnly: Optional. If `true`, search only among starred entries. By
  2748  	// default, all results are returned, starred or not.
  2749  	StarredOnly bool `json:"starredOnly,omitempty"`
  2750  	// ForceSendFields is a list of field names (e.g. "IncludeGcpPublicDatasets")
  2751  	// to unconditionally include in API requests. By default, fields with empty or
  2752  	// default values are omitted from API requests. See
  2753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2754  	// details.
  2755  	ForceSendFields []string `json:"-"`
  2756  	// NullFields is a list of field names (e.g. "IncludeGcpPublicDatasets") to
  2757  	// include in API requests with the JSON null value. By default, fields with
  2758  	// empty values are omitted from API requests. See
  2759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2760  	NullFields []string `json:"-"`
  2761  }
  2762  
  2763  func (s *GoogleCloudDatacatalogV1SearchCatalogRequestScope) MarshalJSON() ([]byte, error) {
  2764  	type NoMethod GoogleCloudDatacatalogV1SearchCatalogRequestScope
  2765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2766  }
  2767  
  2768  // GoogleCloudDatacatalogV1SearchCatalogResponse: Response message for
  2769  // SearchCatalog.
  2770  type GoogleCloudDatacatalogV1SearchCatalogResponse struct {
  2771  	// NextPageToken: Pagination token that can be used in subsequent calls to
  2772  	// retrieve the next page of results.
  2773  	NextPageToken string `json:"nextPageToken,omitempty"`
  2774  	// Results: Search results.
  2775  	Results []*GoogleCloudDatacatalogV1SearchCatalogResult `json:"results,omitempty"`
  2776  	// TotalSize: The approximate total number of entries matched by the query.
  2777  	TotalSize int64 `json:"totalSize,omitempty"`
  2778  	// Unreachable: Unreachable locations. Search results don't include data from
  2779  	// those locations. To get additional information on an error, repeat the
  2780  	// search request and restrict it to specific locations by setting the
  2781  	// `SearchCatalogRequest.scope.restricted_locations` parameter.
  2782  	Unreachable []string `json:"unreachable,omitempty"`
  2783  
  2784  	// ServerResponse contains the HTTP response code and headers from the server.
  2785  	googleapi.ServerResponse `json:"-"`
  2786  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2787  	// unconditionally include in API requests. By default, fields with empty or
  2788  	// default values are omitted from API requests. See
  2789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2790  	// details.
  2791  	ForceSendFields []string `json:"-"`
  2792  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2793  	// requests with the JSON null value. By default, fields with empty values are
  2794  	// omitted from API requests. See
  2795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2796  	NullFields []string `json:"-"`
  2797  }
  2798  
  2799  func (s *GoogleCloudDatacatalogV1SearchCatalogResponse) MarshalJSON() ([]byte, error) {
  2800  	type NoMethod GoogleCloudDatacatalogV1SearchCatalogResponse
  2801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2802  }
  2803  
  2804  // GoogleCloudDatacatalogV1SearchCatalogResult: Result in the response to a
  2805  // search request. Each result captures details of one entry that matches the
  2806  // search.
  2807  type GoogleCloudDatacatalogV1SearchCatalogResult struct {
  2808  	// Description: Entry description that can consist of several sentences or
  2809  	// paragraphs that describe entry contents.
  2810  	Description string `json:"description,omitempty"`
  2811  	// DisplayName: The display name of the result.
  2812  	DisplayName string `json:"displayName,omitempty"`
  2813  	// FullyQualifiedName: Fully qualified name (FQN) of the resource. FQNs take
  2814  	// two forms: * For non-regionalized resources:
  2815  	// `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For
  2816  	// regionalized resources:
  2817  	// `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
  2818  	// Example for a DPMS table:
  2819  	// `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
  2820  	FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
  2821  	// IntegratedSystem: Output only. The source system that Data Catalog
  2822  	// automatically integrates with, such as BigQuery, Cloud Pub/Sub, or Dataproc
  2823  	// Metastore.
  2824  	//
  2825  	// Possible values:
  2826  	//   "INTEGRATED_SYSTEM_UNSPECIFIED" - Default unknown system.
  2827  	//   "BIGQUERY" - BigQuery.
  2828  	//   "CLOUD_PUBSUB" - Cloud Pub/Sub.
  2829  	//   "DATAPROC_METASTORE" - Dataproc Metastore.
  2830  	//   "DATAPLEX" - Dataplex.
  2831  	//   "CLOUD_SPANNER" - Cloud Spanner
  2832  	//   "CLOUD_BIGTABLE" - Cloud Bigtable
  2833  	//   "CLOUD_SQL" - Cloud Sql
  2834  	//   "LOOKER" - Looker
  2835  	//   "VERTEX_AI" - Vertex AI
  2836  	IntegratedSystem string `json:"integratedSystem,omitempty"`
  2837  	// LinkedResource: The full name of the Google Cloud resource the entry belongs
  2838  	// to. For more information, see [Full Resource Name]
  2839  	// (/apis/design/resource_names#full_resource_name). Example:
  2840  	// `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TAB
  2841  	// LE_ID`
  2842  	LinkedResource string `json:"linkedResource,omitempty"`
  2843  	// ModifyTime: The last modification timestamp of the entry in the source
  2844  	// system.
  2845  	ModifyTime string `json:"modifyTime,omitempty"`
  2846  	// RelativeResourceName: The relative name of the resource in URL format.
  2847  	// Examples: *
  2848  	// `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/e
  2849  	// ntries/{ENTRY_ID}` * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
  2850  	RelativeResourceName string `json:"relativeResourceName,omitempty"`
  2851  	// SearchResultSubtype: Sub-type of the search result. A dot-delimited full
  2852  	// type of the resource. The same type you specify in the `type` search
  2853  	// predicate. Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
  2854  	SearchResultSubtype string `json:"searchResultSubtype,omitempty"`
  2855  	// SearchResultType: Type of the search result. You can use this field to
  2856  	// determine which get method to call to fetch the full resource.
  2857  	//
  2858  	// Possible values:
  2859  	//   "SEARCH_RESULT_TYPE_UNSPECIFIED" - Default unknown type.
  2860  	//   "ENTRY" - An Entry.
  2861  	//   "TAG_TEMPLATE" - A TagTemplate.
  2862  	//   "ENTRY_GROUP" - An EntryGroup.
  2863  	SearchResultType string `json:"searchResultType,omitempty"`
  2864  	// UserSpecifiedSystem: Custom source system that you can manually integrate
  2865  	// Data Catalog with.
  2866  	UserSpecifiedSystem string `json:"userSpecifiedSystem,omitempty"`
  2867  	// ForceSendFields is a list of field names (e.g. "Description") to
  2868  	// unconditionally include in API requests. By default, fields with empty or
  2869  	// default values are omitted from API requests. See
  2870  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2871  	// details.
  2872  	ForceSendFields []string `json:"-"`
  2873  	// NullFields is a list of field names (e.g. "Description") to include in API
  2874  	// requests with the JSON null value. By default, fields with empty values are
  2875  	// omitted from API requests. See
  2876  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2877  	NullFields []string `json:"-"`
  2878  }
  2879  
  2880  func (s *GoogleCloudDatacatalogV1SearchCatalogResult) MarshalJSON() ([]byte, error) {
  2881  	type NoMethod GoogleCloudDatacatalogV1SearchCatalogResult
  2882  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2883  }
  2884  
  2885  // GoogleCloudDatacatalogV1SerializedPolicyTag: A nested protocol buffer that
  2886  // represents a policy tag and all its descendants.
  2887  type GoogleCloudDatacatalogV1SerializedPolicyTag struct {
  2888  	// ChildPolicyTags: Children of the policy tag, if any.
  2889  	ChildPolicyTags []*GoogleCloudDatacatalogV1SerializedPolicyTag `json:"childPolicyTags,omitempty"`
  2890  	// Description: Description of the serialized policy tag. At most 2000 bytes
  2891  	// when encoded in UTF-8. If not set, defaults to an empty description.
  2892  	Description string `json:"description,omitempty"`
  2893  	// DisplayName: Required. Display name of the policy tag. At most 200 bytes
  2894  	// when encoded in UTF-8.
  2895  	DisplayName string `json:"displayName,omitempty"`
  2896  	// PolicyTag: Resource name of the policy tag. This field is ignored when
  2897  	// calling `ImportTaxonomies`.
  2898  	PolicyTag string `json:"policyTag,omitempty"`
  2899  	// ForceSendFields is a list of field names (e.g. "ChildPolicyTags") to
  2900  	// unconditionally include in API requests. By default, fields with empty or
  2901  	// default values are omitted from API requests. See
  2902  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2903  	// details.
  2904  	ForceSendFields []string `json:"-"`
  2905  	// NullFields is a list of field names (e.g. "ChildPolicyTags") to include in
  2906  	// API requests with the JSON null value. By default, fields with empty values
  2907  	// are omitted from API requests. See
  2908  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2909  	NullFields []string `json:"-"`
  2910  }
  2911  
  2912  func (s *GoogleCloudDatacatalogV1SerializedPolicyTag) MarshalJSON() ([]byte, error) {
  2913  	type NoMethod GoogleCloudDatacatalogV1SerializedPolicyTag
  2914  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2915  }
  2916  
  2917  // GoogleCloudDatacatalogV1SerializedTaxonomy: A nested protocol buffer that
  2918  // represents a taxonomy and the hierarchy of its policy tags. Used for
  2919  // taxonomy replacement, import, and export.
  2920  type GoogleCloudDatacatalogV1SerializedTaxonomy struct {
  2921  	// ActivatedPolicyTypes: A list of policy types that are activated per
  2922  	// taxonomy.
  2923  	//
  2924  	// Possible values:
  2925  	//   "POLICY_TYPE_UNSPECIFIED" - Unspecified policy type.
  2926  	//   "FINE_GRAINED_ACCESS_CONTROL" - Fine-grained access control policy that
  2927  	// enables access control on tagged sub-resources.
  2928  	ActivatedPolicyTypes []string `json:"activatedPolicyTypes,omitempty"`
  2929  	// Description: Description of the serialized taxonomy. At most 2000 bytes when
  2930  	// encoded in UTF-8. If not set, defaults to an empty description.
  2931  	Description string `json:"description,omitempty"`
  2932  	// DisplayName: Required. Display name of the taxonomy. At most 200 bytes when
  2933  	// encoded in UTF-8.
  2934  	DisplayName string `json:"displayName,omitempty"`
  2935  	// PolicyTags: Top level policy tags associated with the taxonomy, if any.
  2936  	PolicyTags []*GoogleCloudDatacatalogV1SerializedPolicyTag `json:"policyTags,omitempty"`
  2937  	// ForceSendFields is a list of field names (e.g. "ActivatedPolicyTypes") to
  2938  	// unconditionally include in API requests. By default, fields with empty or
  2939  	// default values are omitted from API requests. See
  2940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2941  	// details.
  2942  	ForceSendFields []string `json:"-"`
  2943  	// NullFields is a list of field names (e.g. "ActivatedPolicyTypes") to include
  2944  	// in API requests with the JSON null value. By default, fields with empty
  2945  	// values are omitted from API requests. See
  2946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2947  	NullFields []string `json:"-"`
  2948  }
  2949  
  2950  func (s *GoogleCloudDatacatalogV1SerializedTaxonomy) MarshalJSON() ([]byte, error) {
  2951  	type NoMethod GoogleCloudDatacatalogV1SerializedTaxonomy
  2952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2953  }
  2954  
  2955  // GoogleCloudDatacatalogV1ServiceSpec: Specification that applies to a Service
  2956  // resource. Valid only for entries with the `SERVICE` type.
  2957  type GoogleCloudDatacatalogV1ServiceSpec struct {
  2958  	// CloudBigtableInstanceSpec: Specification that applies to Instance entries of
  2959  	// `CLOUD_BIGTABLE` system.
  2960  	CloudBigtableInstanceSpec *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec `json:"cloudBigtableInstanceSpec,omitempty"`
  2961  	// ForceSendFields is a list of field names (e.g. "CloudBigtableInstanceSpec")
  2962  	// to unconditionally include in API requests. By default, fields with empty or
  2963  	// default values are omitted from API requests. See
  2964  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2965  	// details.
  2966  	ForceSendFields []string `json:"-"`
  2967  	// NullFields is a list of field names (e.g. "CloudBigtableInstanceSpec") to
  2968  	// include in API requests with the JSON null value. By default, fields with
  2969  	// empty values are omitted from API requests. See
  2970  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2971  	NullFields []string `json:"-"`
  2972  }
  2973  
  2974  func (s *GoogleCloudDatacatalogV1ServiceSpec) MarshalJSON() ([]byte, error) {
  2975  	type NoMethod GoogleCloudDatacatalogV1ServiceSpec
  2976  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2977  }
  2978  
  2979  // GoogleCloudDatacatalogV1SqlDatabaseSystemSpec: Specification that applies to
  2980  // entries that are part `SQL_DATABASE` system (user_specified_type)
  2981  type GoogleCloudDatacatalogV1SqlDatabaseSystemSpec struct {
  2982  	// DatabaseVersion: Version of the database engine.
  2983  	DatabaseVersion string `json:"databaseVersion,omitempty"`
  2984  	// InstanceHost: Host of the SQL database enum InstanceHost { UNDEFINED = 0;
  2985  	// SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } Host of the
  2986  	// enclousing database instance.
  2987  	InstanceHost string `json:"instanceHost,omitempty"`
  2988  	// SqlEngine: SQL Database Engine. enum SqlEngine { UNDEFINED = 0; MY_SQL = 1;
  2989  	// POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the enclosing database
  2990  	// instance.
  2991  	SqlEngine string `json:"sqlEngine,omitempty"`
  2992  	// ForceSendFields is a list of field names (e.g. "DatabaseVersion") to
  2993  	// unconditionally include in API requests. By default, fields with empty or
  2994  	// default values are omitted from API requests. See
  2995  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2996  	// details.
  2997  	ForceSendFields []string `json:"-"`
  2998  	// NullFields is a list of field names (e.g. "DatabaseVersion") to include in
  2999  	// API requests with the JSON null value. By default, fields with empty values
  3000  	// are omitted from API requests. See
  3001  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3002  	NullFields []string `json:"-"`
  3003  }
  3004  
  3005  func (s *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec) MarshalJSON() ([]byte, error) {
  3006  	type NoMethod GoogleCloudDatacatalogV1SqlDatabaseSystemSpec
  3007  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3008  }
  3009  
  3010  // GoogleCloudDatacatalogV1StarEntryRequest: Request message for StarEntry.
  3011  type GoogleCloudDatacatalogV1StarEntryRequest struct {
  3012  }
  3013  
  3014  // GoogleCloudDatacatalogV1StarEntryResponse: Response message for StarEntry.
  3015  // Empty for now
  3016  type GoogleCloudDatacatalogV1StarEntryResponse struct {
  3017  	// ServerResponse contains the HTTP response code and headers from the server.
  3018  	googleapi.ServerResponse `json:"-"`
  3019  }
  3020  
  3021  // GoogleCloudDatacatalogV1StorageProperties: Details the properties of the
  3022  // underlying storage.
  3023  type GoogleCloudDatacatalogV1StorageProperties struct {
  3024  	// FilePattern: Patterns to identify a set of files for this fileset. Examples
  3025  	// of a valid `file_pattern`: * `gs://bucket_name/dir/*`: matches all files in
  3026  	// the `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all
  3027  	// files in the `bucket_name/dir` and all subdirectories recursively *
  3028  	// `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name`
  3029  	// * `gs://bucket_name/??.txt`: matches files with two characters followed by
  3030  	// `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that
  3031  	// contain a single vowel character followed by `.txt` in `bucket_name` *
  3032  	// `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or
  3033  	// `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches
  3034  	// all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`,
  3035  	// `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
  3036  	FilePattern []string `json:"filePattern,omitempty"`
  3037  	// FileType: File type in MIME format, for example, `text/plain`.
  3038  	FileType string `json:"fileType,omitempty"`
  3039  	// ForceSendFields is a list of field names (e.g. "FilePattern") to
  3040  	// unconditionally include in API requests. By default, fields with empty or
  3041  	// default values are omitted from API requests. See
  3042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3043  	// details.
  3044  	ForceSendFields []string `json:"-"`
  3045  	// NullFields is a list of field names (e.g. "FilePattern") to include in API
  3046  	// requests with the JSON null value. By default, fields with empty values are
  3047  	// omitted from API requests. See
  3048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3049  	NullFields []string `json:"-"`
  3050  }
  3051  
  3052  func (s *GoogleCloudDatacatalogV1StorageProperties) MarshalJSON() ([]byte, error) {
  3053  	type NoMethod GoogleCloudDatacatalogV1StorageProperties
  3054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3055  }
  3056  
  3057  // GoogleCloudDatacatalogV1SystemTimestamps: Timestamps associated with this
  3058  // resource in a particular system.
  3059  type GoogleCloudDatacatalogV1SystemTimestamps struct {
  3060  	// CreateTime: Creation timestamp of the resource within the given system.
  3061  	CreateTime string `json:"createTime,omitempty"`
  3062  	// ExpireTime: Output only. Expiration timestamp of the resource within the
  3063  	// given system. Currently only applicable to BigQuery resources.
  3064  	ExpireTime string `json:"expireTime,omitempty"`
  3065  	// UpdateTime: Timestamp of the last modification of the resource or its
  3066  	// metadata within a given system. Note: Depending on the source system, not
  3067  	// every modification updates this timestamp. For example, BigQuery timestamps
  3068  	// every metadata modification but not data or permission changes.
  3069  	UpdateTime string `json:"updateTime,omitempty"`
  3070  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3071  	// unconditionally include in API requests. By default, fields with empty or
  3072  	// default values are omitted from API requests. See
  3073  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3074  	// details.
  3075  	ForceSendFields []string `json:"-"`
  3076  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3077  	// requests with the JSON null value. By default, fields with empty values are
  3078  	// omitted from API requests. See
  3079  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3080  	NullFields []string `json:"-"`
  3081  }
  3082  
  3083  func (s *GoogleCloudDatacatalogV1SystemTimestamps) MarshalJSON() ([]byte, error) {
  3084  	type NoMethod GoogleCloudDatacatalogV1SystemTimestamps
  3085  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3086  }
  3087  
  3088  // GoogleCloudDatacatalogV1TableSpec: Normal BigQuery table specification.
  3089  type GoogleCloudDatacatalogV1TableSpec struct {
  3090  	// GroupedEntry: Output only. If the table is date-sharded, that is, it matches
  3091  	// the `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
  3092  	// name of the date-sharded grouped entry. For example:
  3093  	// `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entr
  3094  	// ies/{ENTRY_ID}`. Otherwise, `grouped_entry` is empty.
  3095  	GroupedEntry string `json:"groupedEntry,omitempty"`
  3096  	// ForceSendFields is a list of field names (e.g. "GroupedEntry") to
  3097  	// unconditionally include in API requests. By default, fields with empty or
  3098  	// default values are omitted from API requests. See
  3099  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3100  	// details.
  3101  	ForceSendFields []string `json:"-"`
  3102  	// NullFields is a list of field names (e.g. "GroupedEntry") to include in API
  3103  	// requests with the JSON null value. By default, fields with empty values are
  3104  	// omitted from API requests. See
  3105  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3106  	NullFields []string `json:"-"`
  3107  }
  3108  
  3109  func (s *GoogleCloudDatacatalogV1TableSpec) MarshalJSON() ([]byte, error) {
  3110  	type NoMethod GoogleCloudDatacatalogV1TableSpec
  3111  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3112  }
  3113  
  3114  // GoogleCloudDatacatalogV1Tag: Tags contain custom metadata and are attached
  3115  // to Data Catalog resources. Tags conform with the specification of their tag
  3116  // template. See Data Catalog IAM
  3117  // (https://cloud.google.com/data-catalog/docs/concepts/iam) for information on
  3118  // the permissions needed to create or view tags.
  3119  type GoogleCloudDatacatalogV1Tag struct {
  3120  	// Column: Resources like entry can have schemas associated with them. This
  3121  	// scope allows you to attach tags to an individual column based on that
  3122  	// schema. To attach a tag to a nested column, separate column names with a dot
  3123  	// (`.`). Example: `column.nested_column`.
  3124  	Column string `json:"column,omitempty"`
  3125  	// Fields: Required. Maps the ID of a tag field to its value and additional
  3126  	// information about that field. Tag template defines valid field IDs. A tag
  3127  	// must have at least 1 field and at most 500 fields.
  3128  	Fields map[string]GoogleCloudDatacatalogV1TagField `json:"fields,omitempty"`
  3129  	// Name: Identifier. The resource name of the tag in URL format where tag ID is
  3130  	// a system-generated identifier. Note: The tag itself might not be stored in
  3131  	// the location specified in its name.
  3132  	Name string `json:"name,omitempty"`
  3133  	// Template: Required. The resource name of the tag template this tag uses.
  3134  	// Example:
  3135  	// `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
  3136  	// This field cannot be modified after creation.
  3137  	Template string `json:"template,omitempty"`
  3138  	// TemplateDisplayName: Output only. The display name of the tag template.
  3139  	TemplateDisplayName string `json:"templateDisplayName,omitempty"`
  3140  
  3141  	// ServerResponse contains the HTTP response code and headers from the server.
  3142  	googleapi.ServerResponse `json:"-"`
  3143  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  3144  	// include in API requests. By default, fields with empty or default values are
  3145  	// omitted from API requests. See
  3146  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3147  	// details.
  3148  	ForceSendFields []string `json:"-"`
  3149  	// NullFields is a list of field names (e.g. "Column") to include in API
  3150  	// requests with the JSON null value. By default, fields with empty values are
  3151  	// omitted from API requests. See
  3152  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3153  	NullFields []string `json:"-"`
  3154  }
  3155  
  3156  func (s *GoogleCloudDatacatalogV1Tag) MarshalJSON() ([]byte, error) {
  3157  	type NoMethod GoogleCloudDatacatalogV1Tag
  3158  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3159  }
  3160  
  3161  // GoogleCloudDatacatalogV1TagField: Contains the value and additional
  3162  // information on a field within a Tag.
  3163  type GoogleCloudDatacatalogV1TagField struct {
  3164  	// BoolValue: The value of a tag field with a boolean type.
  3165  	BoolValue bool `json:"boolValue,omitempty"`
  3166  	// DisplayName: Output only. The display name of this field.
  3167  	DisplayName string `json:"displayName,omitempty"`
  3168  	// DoubleValue: The value of a tag field with a double type.
  3169  	DoubleValue float64 `json:"doubleValue,omitempty"`
  3170  	// EnumValue: The value of a tag field with an enum type. This value must be
  3171  	// one of the allowed values listed in this enum.
  3172  	EnumValue *GoogleCloudDatacatalogV1TagFieldEnumValue `json:"enumValue,omitempty"`
  3173  	// Order: Output only. The order of this field with respect to other fields in
  3174  	// this tag. Can be set by Tag. For example, a higher value can indicate a more
  3175  	// important field. The value can be negative. Multiple fields can have the
  3176  	// same order, and field orders within a tag don't have to be sequential.
  3177  	Order int64 `json:"order,omitempty"`
  3178  	// RichtextValue: The value of a tag field with a rich text type. The maximum
  3179  	// length is 10 MiB as this value holds HTML descriptions including encoded
  3180  	// images. The maximum length of the text without images is 100 KiB.
  3181  	RichtextValue string `json:"richtextValue,omitempty"`
  3182  	// StringValue: The value of a tag field with a string type. The maximum length
  3183  	// is 2000 UTF-8 characters.
  3184  	StringValue string `json:"stringValue,omitempty"`
  3185  	// TimestampValue: The value of a tag field with a timestamp type.
  3186  	TimestampValue string `json:"timestampValue,omitempty"`
  3187  	// ForceSendFields is a list of field names (e.g. "BoolValue") 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. "BoolValue") to include in API
  3194  	// requests with the JSON null value. By default, fields with empty values are
  3195  	// 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 *GoogleCloudDatacatalogV1TagField) MarshalJSON() ([]byte, error) {
  3201  	type NoMethod GoogleCloudDatacatalogV1TagField
  3202  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3203  }
  3204  
  3205  func (s *GoogleCloudDatacatalogV1TagField) UnmarshalJSON(data []byte) error {
  3206  	type NoMethod GoogleCloudDatacatalogV1TagField
  3207  	var s1 struct {
  3208  		DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
  3209  		*NoMethod
  3210  	}
  3211  	s1.NoMethod = (*NoMethod)(s)
  3212  	if err := json.Unmarshal(data, &s1); err != nil {
  3213  		return err
  3214  	}
  3215  	s.DoubleValue = float64(s1.DoubleValue)
  3216  	return nil
  3217  }
  3218  
  3219  // GoogleCloudDatacatalogV1TagFieldEnumValue: An enum value.
  3220  type GoogleCloudDatacatalogV1TagFieldEnumValue struct {
  3221  	// DisplayName: The display name of the enum value.
  3222  	DisplayName string `json:"displayName,omitempty"`
  3223  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3224  	// unconditionally include in API requests. By default, fields with empty or
  3225  	// default values are omitted from API requests. See
  3226  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3227  	// details.
  3228  	ForceSendFields []string `json:"-"`
  3229  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  3230  	// requests with the JSON null value. By default, fields with empty values are
  3231  	// omitted from API requests. See
  3232  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3233  	NullFields []string `json:"-"`
  3234  }
  3235  
  3236  func (s *GoogleCloudDatacatalogV1TagFieldEnumValue) MarshalJSON() ([]byte, error) {
  3237  	type NoMethod GoogleCloudDatacatalogV1TagFieldEnumValue
  3238  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3239  }
  3240  
  3241  // GoogleCloudDatacatalogV1TagTemplate: A tag template defines a tag that can
  3242  // have one or more typed fields. The template is used to create tags that are
  3243  // attached to Google Cloud resources. [Tag template roles]
  3244  // (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles)
  3245  // provide permissions to create, edit, and use the template. For example, see
  3246  // the [TagTemplate User]
  3247  // (https://cloud.google.com/data-catalog/docs/how-to/template-user) role that
  3248  // includes a permission to use the tag template to tag resources.
  3249  type GoogleCloudDatacatalogV1TagTemplate struct {
  3250  	// DataplexTransferStatus: Optional. Transfer status of the TagTemplate
  3251  	//
  3252  	// Possible values:
  3253  	//   "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED" - Default value. TagTemplate and
  3254  	// its tags are only visible and editable in DataCatalog.
  3255  	//   "MIGRATED" - TagTemplate and its tags are auto-copied to Dataplex service.
  3256  	// Visible in both services. Editable in DataCatalog, read-only in Dataplex.
  3257  	DataplexTransferStatus string `json:"dataplexTransferStatus,omitempty"`
  3258  	// DisplayName: Display name for this template. Defaults to an empty string.
  3259  	// The name must contain only Unicode letters, numbers (0-9), underscores (_),
  3260  	// dashes (-), spaces ( ), and can't start or end with spaces. The maximum
  3261  	// length is 200 characters.
  3262  	DisplayName string `json:"displayName,omitempty"`
  3263  	// Fields: Required. Map of tag template field IDs to the settings for the
  3264  	// field. This map is an exhaustive list of the allowed fields. The map must
  3265  	// contain at least one field and at most 500 fields. The keys to this map are
  3266  	// tag template field IDs. The IDs have the following limitations: * Can
  3267  	// contain uppercase and lowercase letters, numbers (0-9) and underscores (_).
  3268  	// * Must be at least 1 character and at most 64 characters long. * Must start
  3269  	// with a letter or underscore.
  3270  	Fields map[string]GoogleCloudDatacatalogV1TagTemplateField `json:"fields,omitempty"`
  3271  	// IsPubliclyReadable: Indicates whether tags created with this template are
  3272  	// public. Public tags do not require tag template access to appear in ListTags
  3273  	// API response. Additionally, you can search for a public tag by value with a
  3274  	// simple search query in addition to using a ``tag:`` predicate.
  3275  	IsPubliclyReadable bool `json:"isPubliclyReadable,omitempty"`
  3276  	// Name: Identifier. The resource name of the tag template in URL format. Note:
  3277  	// The tag template itself and its child resources might not be stored in the
  3278  	// location specified in its name.
  3279  	Name string `json:"name,omitempty"`
  3280  
  3281  	// ServerResponse contains the HTTP response code and headers from the server.
  3282  	googleapi.ServerResponse `json:"-"`
  3283  	// ForceSendFields is a list of field names (e.g. "DataplexTransferStatus") to
  3284  	// unconditionally include in API requests. By default, fields with empty or
  3285  	// default values are omitted from API requests. See
  3286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3287  	// details.
  3288  	ForceSendFields []string `json:"-"`
  3289  	// NullFields is a list of field names (e.g. "DataplexTransferStatus") to
  3290  	// include in API requests with the JSON null value. By default, fields with
  3291  	// empty values are omitted from API requests. See
  3292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3293  	NullFields []string `json:"-"`
  3294  }
  3295  
  3296  func (s *GoogleCloudDatacatalogV1TagTemplate) MarshalJSON() ([]byte, error) {
  3297  	type NoMethod GoogleCloudDatacatalogV1TagTemplate
  3298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3299  }
  3300  
  3301  // GoogleCloudDatacatalogV1TagTemplateField: The template for an individual
  3302  // field within a tag template.
  3303  type GoogleCloudDatacatalogV1TagTemplateField struct {
  3304  	// Description: The description for this field. Defaults to an empty string.
  3305  	Description string `json:"description,omitempty"`
  3306  	// DisplayName: The display name for this field. Defaults to an empty string.
  3307  	// The name must contain only Unicode letters, numbers (0-9), underscores (_),
  3308  	// dashes (-), spaces ( ), and can't start or end with spaces. The maximum
  3309  	// length is 200 characters.
  3310  	DisplayName string `json:"displayName,omitempty"`
  3311  	// IsRequired: If true, this field is required. Defaults to false.
  3312  	IsRequired bool `json:"isRequired,omitempty"`
  3313  	// Name: Identifier. The resource name of the tag template field in URL format.
  3314  	// Example:
  3315  	// `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/field
  3316  	// s/{FIELD}` Note: The tag template field itself might not be stored in the
  3317  	// location specified in its name. The name must contain only letters (a-z,
  3318  	// A-Z), numbers (0-9), or underscores (_), and must start with a letter or
  3319  	// underscore. The maximum length is 64 characters.
  3320  	Name string `json:"name,omitempty"`
  3321  	// Order: The order of this field with respect to other fields in this tag
  3322  	// template. For example, a higher value can indicate a more important field.
  3323  	// The value can be negative. Multiple fields can have the same order and field
  3324  	// orders within a tag don't have to be sequential.
  3325  	Order int64 `json:"order,omitempty"`
  3326  	// Type: Required. The type of value this tag field can contain.
  3327  	Type *GoogleCloudDatacatalogV1FieldType `json:"type,omitempty"`
  3328  
  3329  	// ServerResponse contains the HTTP response code and headers from the server.
  3330  	googleapi.ServerResponse `json:"-"`
  3331  	// ForceSendFields is a list of field names (e.g. "Description") to
  3332  	// unconditionally include in API requests. By default, fields with empty or
  3333  	// default values are omitted from API requests. See
  3334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3335  	// details.
  3336  	ForceSendFields []string `json:"-"`
  3337  	// NullFields is a list of field names (e.g. "Description") to include in API
  3338  	// requests with the JSON null value. By default, fields with empty values are
  3339  	// omitted from API requests. See
  3340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3341  	NullFields []string `json:"-"`
  3342  }
  3343  
  3344  func (s *GoogleCloudDatacatalogV1TagTemplateField) MarshalJSON() ([]byte, error) {
  3345  	type NoMethod GoogleCloudDatacatalogV1TagTemplateField
  3346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3347  }
  3348  
  3349  // GoogleCloudDatacatalogV1TaggedEntry: Wrapper containing Entry and
  3350  // information about Tags that should and should not be attached to it.
  3351  type GoogleCloudDatacatalogV1TaggedEntry struct {
  3352  	// AbsentTags: Optional. Tags that should be deleted from the Data Catalog.
  3353  	// Caller should populate template name and column only.
  3354  	AbsentTags []*GoogleCloudDatacatalogV1Tag `json:"absentTags,omitempty"`
  3355  	// PresentTags: Optional. Tags that should be ingested into the Data Catalog.
  3356  	// Caller should populate template name, column and fields.
  3357  	PresentTags []*GoogleCloudDatacatalogV1Tag `json:"presentTags,omitempty"`
  3358  	// V1Entry: Non-encrypted Data Catalog v1 Entry.
  3359  	V1Entry *GoogleCloudDatacatalogV1Entry `json:"v1Entry,omitempty"`
  3360  	// ForceSendFields is a list of field names (e.g. "AbsentTags") to
  3361  	// unconditionally include in API requests. By default, fields with empty or
  3362  	// default values are omitted from API requests. See
  3363  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3364  	// details.
  3365  	ForceSendFields []string `json:"-"`
  3366  	// NullFields is a list of field names (e.g. "AbsentTags") to include in API
  3367  	// requests with the JSON null value. By default, fields with empty values are
  3368  	// omitted from API requests. See
  3369  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3370  	NullFields []string `json:"-"`
  3371  }
  3372  
  3373  func (s *GoogleCloudDatacatalogV1TaggedEntry) MarshalJSON() ([]byte, error) {
  3374  	type NoMethod GoogleCloudDatacatalogV1TaggedEntry
  3375  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3376  }
  3377  
  3378  // GoogleCloudDatacatalogV1Taxonomy: A taxonomy is a collection of hierarchical
  3379  // policy tags that classify data along a common axis. For example, a "data
  3380  // sensitivity" taxonomy might contain the following policy tags: ``` + PII +
  3381  // Account number + Age + SSN + Zipcode + Financials + Revenue ``` A "data
  3382  // origin" taxonomy might contain the following policy tags: ``` + User data +
  3383  // Employee data + Partner data + Public data ```
  3384  type GoogleCloudDatacatalogV1Taxonomy struct {
  3385  	// ActivatedPolicyTypes: Optional. A list of policy types that are activated
  3386  	// for this taxonomy. If not set, defaults to an empty list.
  3387  	//
  3388  	// Possible values:
  3389  	//   "POLICY_TYPE_UNSPECIFIED" - Unspecified policy type.
  3390  	//   "FINE_GRAINED_ACCESS_CONTROL" - Fine-grained access control policy that
  3391  	// enables access control on tagged sub-resources.
  3392  	ActivatedPolicyTypes []string `json:"activatedPolicyTypes,omitempty"`
  3393  	// Description: Optional. Description of this taxonomy. If not set, defaults to
  3394  	// empty. The description must contain only Unicode characters, tabs, newlines,
  3395  	// carriage returns, and page breaks, and be at most 2000 bytes long when
  3396  	// encoded in UTF-8.
  3397  	Description string `json:"description,omitempty"`
  3398  	// DisplayName: Required. User-defined name of this taxonomy. The name can't
  3399  	// start or end with spaces, must contain only Unicode letters, numbers,
  3400  	// underscores, dashes, and spaces, and be at most 200 bytes long when encoded
  3401  	// in UTF-8. The taxonomy display name must be unique within an organization.
  3402  	DisplayName string `json:"displayName,omitempty"`
  3403  	// Name: Identifier. Resource name of this taxonomy in URL format. Note: Policy
  3404  	// tag manager generates unique taxonomy IDs.
  3405  	Name string `json:"name,omitempty"`
  3406  	// PolicyTagCount: Output only. Number of policy tags in this taxonomy.
  3407  	PolicyTagCount int64 `json:"policyTagCount,omitempty"`
  3408  	// Service: Output only. Identity of the service which owns the Taxonomy. This
  3409  	// field is only populated when the taxonomy is created by a Google Cloud
  3410  	// service. Currently only 'DATAPLEX' is supported.
  3411  	Service *GoogleCloudDatacatalogV1TaxonomyService `json:"service,omitempty"`
  3412  	// TaxonomyTimestamps: Output only. Creation and modification timestamps of
  3413  	// this taxonomy.
  3414  	TaxonomyTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"taxonomyTimestamps,omitempty"`
  3415  
  3416  	// ServerResponse contains the HTTP response code and headers from the server.
  3417  	googleapi.ServerResponse `json:"-"`
  3418  	// ForceSendFields is a list of field names (e.g. "ActivatedPolicyTypes") to
  3419  	// unconditionally include in API requests. By default, fields with empty or
  3420  	// default values are omitted from API requests. See
  3421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3422  	// details.
  3423  	ForceSendFields []string `json:"-"`
  3424  	// NullFields is a list of field names (e.g. "ActivatedPolicyTypes") to include
  3425  	// in API requests with the JSON null value. By default, fields with empty
  3426  	// values are omitted from API requests. See
  3427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3428  	NullFields []string `json:"-"`
  3429  }
  3430  
  3431  func (s *GoogleCloudDatacatalogV1Taxonomy) MarshalJSON() ([]byte, error) {
  3432  	type NoMethod GoogleCloudDatacatalogV1Taxonomy
  3433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3434  }
  3435  
  3436  // GoogleCloudDatacatalogV1TaxonomyService: The source system of the Taxonomy.
  3437  type GoogleCloudDatacatalogV1TaxonomyService struct {
  3438  	// Identity: The service agent for the service.
  3439  	Identity string `json:"identity,omitempty"`
  3440  	// Name: The Google Cloud service name.
  3441  	//
  3442  	// Possible values:
  3443  	//   "MANAGING_SYSTEM_UNSPECIFIED" - Default value
  3444  	//   "MANAGING_SYSTEM_DATAPLEX" - Dataplex.
  3445  	//   "MANAGING_SYSTEM_OTHER" - Other
  3446  	Name string `json:"name,omitempty"`
  3447  	// ForceSendFields is a list of field names (e.g. "Identity") to
  3448  	// unconditionally include in API requests. By default, fields with empty or
  3449  	// default values are omitted from API requests. See
  3450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3451  	// details.
  3452  	ForceSendFields []string `json:"-"`
  3453  	// NullFields is a list of field names (e.g. "Identity") to include in API
  3454  	// requests with the JSON null value. By default, fields with empty values are
  3455  	// omitted from API requests. See
  3456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3457  	NullFields []string `json:"-"`
  3458  }
  3459  
  3460  func (s *GoogleCloudDatacatalogV1TaxonomyService) MarshalJSON() ([]byte, error) {
  3461  	type NoMethod GoogleCloudDatacatalogV1TaxonomyService
  3462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3463  }
  3464  
  3465  // GoogleCloudDatacatalogV1UnstarEntryRequest: Request message for UnstarEntry.
  3466  type GoogleCloudDatacatalogV1UnstarEntryRequest struct {
  3467  }
  3468  
  3469  // GoogleCloudDatacatalogV1UnstarEntryResponse: Response message for
  3470  // UnstarEntry. Empty for now
  3471  type GoogleCloudDatacatalogV1UnstarEntryResponse struct {
  3472  	// ServerResponse contains the HTTP response code and headers from the server.
  3473  	googleapi.ServerResponse `json:"-"`
  3474  }
  3475  
  3476  // GoogleCloudDatacatalogV1UsageSignal: The set of all usage signals that Data
  3477  // Catalog stores. Note: Usually, these signals are updated daily. In rare
  3478  // cases, an update may fail but will be performed again on the next day.
  3479  type GoogleCloudDatacatalogV1UsageSignal struct {
  3480  	// CommonUsageWithinTimeRange: Common usage statistics over each of the
  3481  	// predefined time ranges. Supported time ranges are `{"24H", "7D", "30D",
  3482  	// "Lifetime"}`.
  3483  	CommonUsageWithinTimeRange map[string]GoogleCloudDatacatalogV1CommonUsageStats `json:"commonUsageWithinTimeRange,omitempty"`
  3484  	// FavoriteCount: Favorite count in the source system.
  3485  	FavoriteCount int64 `json:"favoriteCount,omitempty,string"`
  3486  	// UpdateTime: The end timestamp of the duration of usage statistics.
  3487  	UpdateTime string `json:"updateTime,omitempty"`
  3488  	// UsageWithinTimeRange: Output only. BigQuery usage statistics over each of
  3489  	// the predefined time ranges. Supported time ranges are `{"24H", "7D",
  3490  	// "30D"}`.
  3491  	UsageWithinTimeRange map[string]GoogleCloudDatacatalogV1UsageStats `json:"usageWithinTimeRange,omitempty"`
  3492  	// ForceSendFields is a list of field names (e.g. "CommonUsageWithinTimeRange")
  3493  	// to unconditionally include in API requests. By default, fields with empty or
  3494  	// default values are omitted from API requests. See
  3495  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3496  	// details.
  3497  	ForceSendFields []string `json:"-"`
  3498  	// NullFields is a list of field names (e.g. "CommonUsageWithinTimeRange") to
  3499  	// include in API requests with the JSON null value. By default, fields with
  3500  	// empty values are omitted from API requests. See
  3501  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3502  	NullFields []string `json:"-"`
  3503  }
  3504  
  3505  func (s *GoogleCloudDatacatalogV1UsageSignal) MarshalJSON() ([]byte, error) {
  3506  	type NoMethod GoogleCloudDatacatalogV1UsageSignal
  3507  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3508  }
  3509  
  3510  // GoogleCloudDatacatalogV1UsageStats: Detailed statistics on the entry's
  3511  // usage. Usage statistics have the following limitations: - Only BigQuery
  3512  // tables have them. - They only include BigQuery query jobs. - They might be
  3513  // underestimated because wildcard table references are not yet counted. For
  3514  // more information, see [Querying multiple tables using a wildcard table]
  3515  // (https://cloud.google.com/bigquery/docs/querying-wildcard-tables)
  3516  type GoogleCloudDatacatalogV1UsageStats struct {
  3517  	// TotalCancellations: The number of cancelled attempts to use the underlying
  3518  	// entry.
  3519  	TotalCancellations float64 `json:"totalCancellations,omitempty"`
  3520  	// TotalCompletions: The number of successful uses of the underlying entry.
  3521  	TotalCompletions float64 `json:"totalCompletions,omitempty"`
  3522  	// TotalExecutionTimeForCompletionsMillis: Total time spent only on successful
  3523  	// uses, in milliseconds.
  3524  	TotalExecutionTimeForCompletionsMillis float64 `json:"totalExecutionTimeForCompletionsMillis,omitempty"`
  3525  	// TotalFailures: The number of failed attempts to use the underlying entry.
  3526  	TotalFailures float64 `json:"totalFailures,omitempty"`
  3527  	// ForceSendFields is a list of field names (e.g. "TotalCancellations") to
  3528  	// unconditionally include in API requests. By default, fields with empty or
  3529  	// default values are omitted from API requests. See
  3530  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3531  	// details.
  3532  	ForceSendFields []string `json:"-"`
  3533  	// NullFields is a list of field names (e.g. "TotalCancellations") to include
  3534  	// in API requests with the JSON null value. By default, fields with empty
  3535  	// values are omitted from API requests. See
  3536  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3537  	NullFields []string `json:"-"`
  3538  }
  3539  
  3540  func (s *GoogleCloudDatacatalogV1UsageStats) MarshalJSON() ([]byte, error) {
  3541  	type NoMethod GoogleCloudDatacatalogV1UsageStats
  3542  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3543  }
  3544  
  3545  func (s *GoogleCloudDatacatalogV1UsageStats) UnmarshalJSON(data []byte) error {
  3546  	type NoMethod GoogleCloudDatacatalogV1UsageStats
  3547  	var s1 struct {
  3548  		TotalCancellations                     gensupport.JSONFloat64 `json:"totalCancellations"`
  3549  		TotalCompletions                       gensupport.JSONFloat64 `json:"totalCompletions"`
  3550  		TotalExecutionTimeForCompletionsMillis gensupport.JSONFloat64 `json:"totalExecutionTimeForCompletionsMillis"`
  3551  		TotalFailures                          gensupport.JSONFloat64 `json:"totalFailures"`
  3552  		*NoMethod
  3553  	}
  3554  	s1.NoMethod = (*NoMethod)(s)
  3555  	if err := json.Unmarshal(data, &s1); err != nil {
  3556  		return err
  3557  	}
  3558  	s.TotalCancellations = float64(s1.TotalCancellations)
  3559  	s.TotalCompletions = float64(s1.TotalCompletions)
  3560  	s.TotalExecutionTimeForCompletionsMillis = float64(s1.TotalExecutionTimeForCompletionsMillis)
  3561  	s.TotalFailures = float64(s1.TotalFailures)
  3562  	return nil
  3563  }
  3564  
  3565  // GoogleCloudDatacatalogV1VertexDatasetSpec: Specification for vertex dataset
  3566  // resources.
  3567  type GoogleCloudDatacatalogV1VertexDatasetSpec struct {
  3568  	// DataItemCount: The number of DataItems in this Dataset. Only apply for
  3569  	// non-structured Dataset.
  3570  	DataItemCount int64 `json:"dataItemCount,omitempty,string"`
  3571  	// DataType: Type of the dataset.
  3572  	//
  3573  	// Possible values:
  3574  	//   "DATA_TYPE_UNSPECIFIED" - Should not be used.
  3575  	//   "TABLE" - Structured data dataset.
  3576  	//   "IMAGE" - Image dataset which supports ImageClassification,
  3577  	// ImageObjectDetection and ImageSegmentation problems.
  3578  	//   "TEXT" - Document dataset which supports TextClassification,
  3579  	// TextExtraction and TextSentiment problems.
  3580  	//   "VIDEO" - Video dataset which supports VideoClassification,
  3581  	// VideoObjectTracking and VideoActionRecognition problems.
  3582  	//   "CONVERSATION" - Conversation dataset which supports conversation
  3583  	// problems.
  3584  	//   "TIME_SERIES" - TimeSeries dataset.
  3585  	//   "DOCUMENT" - Document dataset which supports DocumentAnnotation problems.
  3586  	//   "TEXT_TO_SPEECH" - TextToSpeech dataset which supports TextToSpeech
  3587  	// problems.
  3588  	//   "TRANSLATION" - Translation dataset which supports Translation problems.
  3589  	//   "STORE_VISION" - Store Vision dataset which is used for HITL integration.
  3590  	//   "ENTERPRISE_KNOWLEDGE_GRAPH" - Enterprise Knowledge Graph dataset which is
  3591  	// used for HITL labeling integration.
  3592  	//   "TEXT_PROMPT" - Text prompt dataset which supports Large Language Models.
  3593  	DataType string `json:"dataType,omitempty"`
  3594  	// ForceSendFields is a list of field names (e.g. "DataItemCount") to
  3595  	// unconditionally include in API requests. By default, fields with empty or
  3596  	// default values are omitted from API requests. See
  3597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3598  	// details.
  3599  	ForceSendFields []string `json:"-"`
  3600  	// NullFields is a list of field names (e.g. "DataItemCount") to include in API
  3601  	// requests with the JSON null value. By default, fields with empty values are
  3602  	// omitted from API requests. See
  3603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3604  	NullFields []string `json:"-"`
  3605  }
  3606  
  3607  func (s *GoogleCloudDatacatalogV1VertexDatasetSpec) MarshalJSON() ([]byte, error) {
  3608  	type NoMethod GoogleCloudDatacatalogV1VertexDatasetSpec
  3609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3610  }
  3611  
  3612  // GoogleCloudDatacatalogV1VertexModelSourceInfo: Detail description of the
  3613  // source information of a Vertex model.
  3614  type GoogleCloudDatacatalogV1VertexModelSourceInfo struct {
  3615  	// Copy: If this Model is copy of another Model. If true then source_type
  3616  	// pertains to the original.
  3617  	Copy bool `json:"copy,omitempty"`
  3618  	// SourceType: Type of the model source.
  3619  	//
  3620  	// Possible values:
  3621  	//   "MODEL_SOURCE_TYPE_UNSPECIFIED" - Should not be used.
  3622  	//   "AUTOML" - The Model is uploaded by automl training pipeline.
  3623  	//   "CUSTOM" - The Model is uploaded by user or custom training pipeline.
  3624  	//   "BQML" - The Model is registered and sync'ed from BigQuery ML.
  3625  	//   "MODEL_GARDEN" - The Model is saved or tuned from Model Garden.
  3626  	SourceType string `json:"sourceType,omitempty"`
  3627  	// ForceSendFields is a list of field names (e.g. "Copy") to unconditionally
  3628  	// include in API requests. By default, fields with empty or default values are
  3629  	// omitted from API requests. See
  3630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3631  	// details.
  3632  	ForceSendFields []string `json:"-"`
  3633  	// NullFields is a list of field names (e.g. "Copy") to include in API requests
  3634  	// with the JSON null value. By default, fields with empty values are omitted
  3635  	// from API requests. See
  3636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3637  	NullFields []string `json:"-"`
  3638  }
  3639  
  3640  func (s *GoogleCloudDatacatalogV1VertexModelSourceInfo) MarshalJSON() ([]byte, error) {
  3641  	type NoMethod GoogleCloudDatacatalogV1VertexModelSourceInfo
  3642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3643  }
  3644  
  3645  // GoogleCloudDatacatalogV1VertexModelSpec: Specification for vertex model
  3646  // resources.
  3647  type GoogleCloudDatacatalogV1VertexModelSpec struct {
  3648  	// ContainerImageUri: URI of the Docker image to be used as the custom
  3649  	// container for serving predictions.
  3650  	ContainerImageUri string `json:"containerImageUri,omitempty"`
  3651  	// VersionAliases: User provided version aliases so that a model version can be
  3652  	// referenced via alias
  3653  	VersionAliases []string `json:"versionAliases,omitempty"`
  3654  	// VersionDescription: The description of this version.
  3655  	VersionDescription string `json:"versionDescription,omitempty"`
  3656  	// VersionId: The version ID of the model.
  3657  	VersionId string `json:"versionId,omitempty"`
  3658  	// VertexModelSourceInfo: Source of a Vertex model.
  3659  	VertexModelSourceInfo *GoogleCloudDatacatalogV1VertexModelSourceInfo `json:"vertexModelSourceInfo,omitempty"`
  3660  	// ForceSendFields is a list of field names (e.g. "ContainerImageUri") to
  3661  	// unconditionally include in API requests. By default, fields with empty or
  3662  	// default values are omitted from API requests. See
  3663  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3664  	// details.
  3665  	ForceSendFields []string `json:"-"`
  3666  	// NullFields is a list of field names (e.g. "ContainerImageUri") to include in
  3667  	// API requests with the JSON null value. By default, fields with empty values
  3668  	// are omitted from API requests. See
  3669  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3670  	NullFields []string `json:"-"`
  3671  }
  3672  
  3673  func (s *GoogleCloudDatacatalogV1VertexModelSpec) MarshalJSON() ([]byte, error) {
  3674  	type NoMethod GoogleCloudDatacatalogV1VertexModelSpec
  3675  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3676  }
  3677  
  3678  // GoogleCloudDatacatalogV1ViewSpec: Table view specification.
  3679  type GoogleCloudDatacatalogV1ViewSpec struct {
  3680  	// ViewQuery: Output only. The query that defines the table view.
  3681  	ViewQuery string `json:"viewQuery,omitempty"`
  3682  	// ForceSendFields is a list of field names (e.g. "ViewQuery") to
  3683  	// unconditionally include in API requests. By default, fields with empty or
  3684  	// default values are omitted from API requests. See
  3685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3686  	// details.
  3687  	ForceSendFields []string `json:"-"`
  3688  	// NullFields is a list of field names (e.g. "ViewQuery") to include in API
  3689  	// requests with the JSON null value. By default, fields with empty values are
  3690  	// omitted from API requests. See
  3691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3692  	NullFields []string `json:"-"`
  3693  }
  3694  
  3695  func (s *GoogleCloudDatacatalogV1ViewSpec) MarshalJSON() ([]byte, error) {
  3696  	type NoMethod GoogleCloudDatacatalogV1ViewSpec
  3697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3698  }
  3699  
  3700  // ListOperationsResponse: The response message for Operations.ListOperations.
  3701  type ListOperationsResponse struct {
  3702  	// NextPageToken: The standard List next-page token.
  3703  	NextPageToken string `json:"nextPageToken,omitempty"`
  3704  	// Operations: A list of operations that matches the specified filter in the
  3705  	// request.
  3706  	Operations []*Operation `json:"operations,omitempty"`
  3707  
  3708  	// ServerResponse contains the HTTP response code and headers from the server.
  3709  	googleapi.ServerResponse `json:"-"`
  3710  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3711  	// unconditionally include in API requests. By default, fields with empty or
  3712  	// default values are omitted from API requests. See
  3713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3714  	// details.
  3715  	ForceSendFields []string `json:"-"`
  3716  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3717  	// requests with the JSON null value. By default, fields with empty values are
  3718  	// omitted from API requests. See
  3719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3720  	NullFields []string `json:"-"`
  3721  }
  3722  
  3723  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  3724  	type NoMethod ListOperationsResponse
  3725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3726  }
  3727  
  3728  // Operation: This resource represents a long-running operation that is the
  3729  // result of a network API call.
  3730  type Operation struct {
  3731  	// Done: If the value is `false`, it means the operation is still in progress.
  3732  	// If `true`, the operation is completed, and either `error` or `response` is
  3733  	// available.
  3734  	Done bool `json:"done,omitempty"`
  3735  	// Error: The error result of the operation in case of failure or cancellation.
  3736  	Error *Status `json:"error,omitempty"`
  3737  	// Metadata: Service-specific metadata associated with the operation. It
  3738  	// typically contains progress information and common metadata such as create
  3739  	// time. Some services might not provide such metadata. Any method that returns
  3740  	// a long-running operation should document the metadata type, if any.
  3741  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3742  	// Name: The server-assigned name, which is only unique within the same service
  3743  	// that originally returns it. If you use the default HTTP mapping, the `name`
  3744  	// should be a resource name ending with `operations/{unique_id}`.
  3745  	Name string `json:"name,omitempty"`
  3746  	// Response: The normal, successful response of the operation. If the original
  3747  	// method returns no data on success, such as `Delete`, the response is
  3748  	// `google.protobuf.Empty`. If the original method is standard
  3749  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  3750  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  3751  	// original method name. For example, if the original method name is
  3752  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  3753  	Response googleapi.RawMessage `json:"response,omitempty"`
  3754  
  3755  	// ServerResponse contains the HTTP response code and headers from the server.
  3756  	googleapi.ServerResponse `json:"-"`
  3757  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  3758  	// include in API requests. By default, fields with empty or default values are
  3759  	// omitted from API requests. See
  3760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3761  	// details.
  3762  	ForceSendFields []string `json:"-"`
  3763  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  3764  	// with the JSON null value. By default, fields with empty values are omitted
  3765  	// from API requests. See
  3766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3767  	NullFields []string `json:"-"`
  3768  }
  3769  
  3770  func (s *Operation) MarshalJSON() ([]byte, error) {
  3771  	type NoMethod Operation
  3772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3773  }
  3774  
  3775  // Policy: An Identity and Access Management (IAM) policy, which specifies
  3776  // access controls for Google Cloud resources. A `Policy` is a collection of
  3777  // `bindings`. A `binding` binds one or more `members`, or principals, to a
  3778  // single `role`. Principals can be user accounts, service accounts, Google
  3779  // groups, and domains (such as G Suite). A `role` is a named list of
  3780  // permissions; each `role` can be an IAM predefined role or a user-created
  3781  // custom role. For some types of Google Cloud resources, a `binding` can also
  3782  // specify a `condition`, which is a logical expression that allows access to a
  3783  // resource only if the expression evaluates to `true`. A condition can add
  3784  // constraints based on attributes of the request, the resource, or both. To
  3785  // learn which resources support conditions in their IAM policies, see the IAM
  3786  // documentation
  3787  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  3788  // example:** ``` { "bindings": [ { "role":
  3789  // "roles/resourcemanager.organizationAdmin", "members": [
  3790  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  3791  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  3792  // "roles/resourcemanager.organizationViewer", "members": [
  3793  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  3794  // "description": "Does not grant access after Sep 2020", "expression":
  3795  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  3796  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  3797  // members: - user:mike@example.com - group:admins@example.com -
  3798  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  3799  // role: roles/resourcemanager.organizationAdmin - members: -
  3800  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  3801  // condition: title: expirable access description: Does not grant access after
  3802  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  3803  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  3804  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  3805  type Policy struct {
  3806  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  3807  	// Optionally, may specify a `condition` that determines how and when the
  3808  	// `bindings` are applied. Each of the `bindings` must contain at least one
  3809  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  3810  	// up to 250 of these principals can be Google groups. Each occurrence of a
  3811  	// principal counts towards these limits. For example, if the `bindings` grant
  3812  	// 50 different roles to `user:alice@example.com`, and not to any other
  3813  	// principal, then you can add another 1,450 principals to the `bindings` in
  3814  	// the `Policy`.
  3815  	Bindings []*Binding `json:"bindings,omitempty"`
  3816  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  3817  	// prevent simultaneous updates of a policy from overwriting each other. It is
  3818  	// strongly suggested that systems make use of the `etag` in the
  3819  	// read-modify-write cycle to perform policy updates in order to avoid race
  3820  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  3821  	// systems are expected to put that etag in the request to `setIamPolicy` to
  3822  	// ensure that their change will be applied to the same version of the policy.
  3823  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  3824  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  3825  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  3826  	// the conditions in the version `3` policy are lost.
  3827  	Etag string `json:"etag,omitempty"`
  3828  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  3829  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  3830  	// affects conditional role bindings must specify version `3`. This requirement
  3831  	// applies to the following operations: * Getting a policy that includes a
  3832  	// conditional role binding * Adding a conditional role binding to a policy *
  3833  	// Changing a conditional role binding in a policy * Removing any role binding,
  3834  	// with or without a condition, from a policy that includes conditions
  3835  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  3836  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  3837  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  3838  	// the conditions in the version `3` policy are lost. If a policy does not
  3839  	// include any conditions, operations on that policy may specify any valid
  3840  	// version or leave the field unset. To learn which resources support
  3841  	// conditions in their IAM policies, see the IAM documentation
  3842  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  3843  	Version int64 `json:"version,omitempty"`
  3844  
  3845  	// ServerResponse contains the HTTP response code and headers from the server.
  3846  	googleapi.ServerResponse `json:"-"`
  3847  	// ForceSendFields is a list of field names (e.g. "Bindings") to
  3848  	// unconditionally include in API requests. By default, fields with empty or
  3849  	// default values are omitted from API requests. See
  3850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3851  	// details.
  3852  	ForceSendFields []string `json:"-"`
  3853  	// NullFields is a list of field names (e.g. "Bindings") to include in API
  3854  	// requests with the JSON null value. By default, fields with empty values are
  3855  	// omitted from API requests. See
  3856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3857  	NullFields []string `json:"-"`
  3858  }
  3859  
  3860  func (s *Policy) MarshalJSON() ([]byte, error) {
  3861  	type NoMethod Policy
  3862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3863  }
  3864  
  3865  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  3866  type SetIamPolicyRequest struct {
  3867  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  3868  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  3869  	// policy but certain Google Cloud services (such as Projects) might reject
  3870  	// them.
  3871  	Policy *Policy `json:"policy,omitempty"`
  3872  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  3873  	// include in API requests. By default, fields with empty or default values are
  3874  	// omitted from API requests. See
  3875  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3876  	// details.
  3877  	ForceSendFields []string `json:"-"`
  3878  	// NullFields is a list of field names (e.g. "Policy") to include in API
  3879  	// requests with the JSON null value. By default, fields with empty values are
  3880  	// omitted from API requests. See
  3881  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3882  	NullFields []string `json:"-"`
  3883  }
  3884  
  3885  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  3886  	type NoMethod SetIamPolicyRequest
  3887  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3888  }
  3889  
  3890  // Status: The `Status` type defines a logical error model that is suitable for
  3891  // different programming environments, including REST APIs and RPC APIs. It is
  3892  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  3893  // pieces of data: error code, error message, and error details. You can find
  3894  // out more about this error model and how to work with it in the API Design
  3895  // Guide (https://cloud.google.com/apis/design/errors).
  3896  type Status struct {
  3897  	// Code: The status code, which should be an enum value of google.rpc.Code.
  3898  	Code int64 `json:"code,omitempty"`
  3899  	// Details: A list of messages that carry the error details. There is a common
  3900  	// set of message types for APIs to use.
  3901  	Details []googleapi.RawMessage `json:"details,omitempty"`
  3902  	// Message: A developer-facing error message, which should be in English. Any
  3903  	// user-facing error message should be localized and sent in the
  3904  	// google.rpc.Status.details field, or localized by the client.
  3905  	Message string `json:"message,omitempty"`
  3906  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  3907  	// include in API requests. By default, fields with empty or default values are
  3908  	// omitted from API requests. See
  3909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3910  	// details.
  3911  	ForceSendFields []string `json:"-"`
  3912  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  3913  	// with the JSON null value. By default, fields with empty values are omitted
  3914  	// from API requests. See
  3915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3916  	NullFields []string `json:"-"`
  3917  }
  3918  
  3919  func (s *Status) MarshalJSON() ([]byte, error) {
  3920  	type NoMethod Status
  3921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3922  }
  3923  
  3924  // TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  3925  type TestIamPermissionsRequest struct {
  3926  	// Permissions: The set of permissions to check for the `resource`. Permissions
  3927  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  3928  	// information see IAM Overview
  3929  	// (https://cloud.google.com/iam/docs/overview#permissions).
  3930  	Permissions []string `json:"permissions,omitempty"`
  3931  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  3932  	// unconditionally include in API requests. By default, fields with empty or
  3933  	// default values are omitted from API requests. See
  3934  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3935  	// details.
  3936  	ForceSendFields []string `json:"-"`
  3937  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  3938  	// requests with the JSON null value. By default, fields with empty values are
  3939  	// omitted from API requests. See
  3940  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3941  	NullFields []string `json:"-"`
  3942  }
  3943  
  3944  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  3945  	type NoMethod TestIamPermissionsRequest
  3946  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3947  }
  3948  
  3949  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  3950  // method.
  3951  type TestIamPermissionsResponse struct {
  3952  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  3953  	// caller is allowed.
  3954  	Permissions []string `json:"permissions,omitempty"`
  3955  
  3956  	// ServerResponse contains the HTTP response code and headers from the server.
  3957  	googleapi.ServerResponse `json:"-"`
  3958  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  3959  	// unconditionally include in API requests. By default, fields with empty or
  3960  	// default values are omitted from API requests. See
  3961  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3962  	// details.
  3963  	ForceSendFields []string `json:"-"`
  3964  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  3965  	// requests with the JSON null value. By default, fields with empty values are
  3966  	// omitted from API requests. See
  3967  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3968  	NullFields []string `json:"-"`
  3969  }
  3970  
  3971  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  3972  	type NoMethod TestIamPermissionsResponse
  3973  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3974  }
  3975  
  3976  type CatalogSearchCall struct {
  3977  	s                                            *Service
  3978  	googleclouddatacatalogv1searchcatalogrequest *GoogleCloudDatacatalogV1SearchCatalogRequest
  3979  	urlParams_                                   gensupport.URLParams
  3980  	ctx_                                         context.Context
  3981  	header_                                      http.Header
  3982  }
  3983  
  3984  // Search: Searches Data Catalog for multiple resources like entries and tags
  3985  // that match a query. This is a [Custom Method]
  3986  // (https://cloud.google.com/apis/design/custom_methods) that doesn't return
  3987  // all information on a resource, only its ID and high level fields. To get
  3988  // more information, you can subsequently call specific get methods. Note: Data
  3989  // Catalog search queries don't guarantee full recall. Results that match your
  3990  // query might not be returned, even in subsequent result pages. Additionally,
  3991  // returned (and not returned) results can vary if you repeat search queries.
  3992  // For more information, see [Data Catalog search syntax]
  3993  // (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
  3994  func (r *CatalogService) Search(googleclouddatacatalogv1searchcatalogrequest *GoogleCloudDatacatalogV1SearchCatalogRequest) *CatalogSearchCall {
  3995  	c := &CatalogSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3996  	c.googleclouddatacatalogv1searchcatalogrequest = googleclouddatacatalogv1searchcatalogrequest
  3997  	return c
  3998  }
  3999  
  4000  // Fields allows partial responses to be retrieved. See
  4001  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4002  // details.
  4003  func (c *CatalogSearchCall) Fields(s ...googleapi.Field) *CatalogSearchCall {
  4004  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4005  	return c
  4006  }
  4007  
  4008  // Context sets the context to be used in this call's Do method.
  4009  func (c *CatalogSearchCall) Context(ctx context.Context) *CatalogSearchCall {
  4010  	c.ctx_ = ctx
  4011  	return c
  4012  }
  4013  
  4014  // Header returns a http.Header that can be modified by the caller to add
  4015  // headers to the request.
  4016  func (c *CatalogSearchCall) Header() http.Header {
  4017  	if c.header_ == nil {
  4018  		c.header_ = make(http.Header)
  4019  	}
  4020  	return c.header_
  4021  }
  4022  
  4023  func (c *CatalogSearchCall) doRequest(alt string) (*http.Response, error) {
  4024  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4025  	var body io.Reader = nil
  4026  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1searchcatalogrequest)
  4027  	if err != nil {
  4028  		return nil, err
  4029  	}
  4030  	c.urlParams_.Set("alt", alt)
  4031  	c.urlParams_.Set("prettyPrint", "false")
  4032  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/catalog:search")
  4033  	urls += "?" + c.urlParams_.Encode()
  4034  	req, err := http.NewRequest("POST", urls, body)
  4035  	if err != nil {
  4036  		return nil, err
  4037  	}
  4038  	req.Header = reqHeaders
  4039  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4040  }
  4041  
  4042  // Do executes the "datacatalog.catalog.search" call.
  4043  // Any non-2xx status code is an error. Response headers are in either
  4044  // *GoogleCloudDatacatalogV1SearchCatalogResponse.ServerResponse.Header or (if
  4045  // a response was returned at all) in error.(*googleapi.Error).Header. Use
  4046  // googleapi.IsNotModified to check whether the returned error was because
  4047  // http.StatusNotModified was returned.
  4048  func (c *CatalogSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1SearchCatalogResponse, error) {
  4049  	gensupport.SetOptions(c.urlParams_, opts...)
  4050  	res, err := c.doRequest("json")
  4051  	if res != nil && res.StatusCode == http.StatusNotModified {
  4052  		if res.Body != nil {
  4053  			res.Body.Close()
  4054  		}
  4055  		return nil, gensupport.WrapError(&googleapi.Error{
  4056  			Code:   res.StatusCode,
  4057  			Header: res.Header,
  4058  		})
  4059  	}
  4060  	if err != nil {
  4061  		return nil, err
  4062  	}
  4063  	defer googleapi.CloseBody(res)
  4064  	if err := googleapi.CheckResponse(res); err != nil {
  4065  		return nil, gensupport.WrapError(err)
  4066  	}
  4067  	ret := &GoogleCloudDatacatalogV1SearchCatalogResponse{
  4068  		ServerResponse: googleapi.ServerResponse{
  4069  			Header:         res.Header,
  4070  			HTTPStatusCode: res.StatusCode,
  4071  		},
  4072  	}
  4073  	target := &ret
  4074  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4075  		return nil, err
  4076  	}
  4077  	return ret, nil
  4078  }
  4079  
  4080  // Pages invokes f for each page of results.
  4081  // A non-nil error returned from f will halt the iteration.
  4082  // The provided context supersedes any context provided to the Context method.
  4083  func (c *CatalogSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1SearchCatalogResponse) error) error {
  4084  	c.ctx_ = ctx
  4085  	defer func(pt string) { c.googleclouddatacatalogv1searchcatalogrequest.PageToken = pt }(c.googleclouddatacatalogv1searchcatalogrequest.PageToken)
  4086  	for {
  4087  		x, err := c.Do()
  4088  		if err != nil {
  4089  			return err
  4090  		}
  4091  		if err := f(x); err != nil {
  4092  			return err
  4093  		}
  4094  		if x.NextPageToken == "" {
  4095  			return nil
  4096  		}
  4097  		c.googleclouddatacatalogv1searchcatalogrequest.PageToken = x.NextPageToken
  4098  	}
  4099  }
  4100  
  4101  type EntriesLookupCall struct {
  4102  	s            *Service
  4103  	urlParams_   gensupport.URLParams
  4104  	ifNoneMatch_ string
  4105  	ctx_         context.Context
  4106  	header_      http.Header
  4107  }
  4108  
  4109  // Lookup: Gets an entry by its target resource name. The resource name comes
  4110  // from the source Google Cloud Platform service.
  4111  func (r *EntriesService) Lookup() *EntriesLookupCall {
  4112  	c := &EntriesLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4113  	return c
  4114  }
  4115  
  4116  // FullyQualifiedName sets the optional parameter "fullyQualifiedName": Fully
  4117  // Qualified Name (FQN)
  4118  // (https://cloud.google.com//data-catalog/docs/fully-qualified-names) of the
  4119  // resource. FQNs take two forms: * For non-regionalized resources:
  4120  // `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For
  4121  // regionalized resources:
  4122  // `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
  4123  // Example for a DPMS table:
  4124  // `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{T
  4125  // ABLE_ID}`
  4126  func (c *EntriesLookupCall) FullyQualifiedName(fullyQualifiedName string) *EntriesLookupCall {
  4127  	c.urlParams_.Set("fullyQualifiedName", fullyQualifiedName)
  4128  	return c
  4129  }
  4130  
  4131  // LinkedResource sets the optional parameter "linkedResource": The full name
  4132  // of the Google Cloud Platform resource the Data Catalog entry represents. For
  4133  // more information, see [Full Resource Name]
  4134  // (https://cloud.google.com/apis/design/resource_names#full_resource_name).
  4135  // Full names are case-sensitive. For example: *
  4136  // `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables
  4137  // /{TABLE_ID}` *
  4138  // `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
  4139  func (c *EntriesLookupCall) LinkedResource(linkedResource string) *EntriesLookupCall {
  4140  	c.urlParams_.Set("linkedResource", linkedResource)
  4141  	return c
  4142  }
  4143  
  4144  // Location sets the optional parameter "location": Location where the lookup
  4145  // should be performed. Required to lookup entry that is not a part of `DPMS`
  4146  // or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored
  4147  // in other cases.
  4148  func (c *EntriesLookupCall) Location(location string) *EntriesLookupCall {
  4149  	c.urlParams_.Set("location", location)
  4150  	return c
  4151  }
  4152  
  4153  // Project sets the optional parameter "project": Project where the lookup
  4154  // should be performed. Required to lookup entry that is not a part of `DPMS`
  4155  // or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored
  4156  // in other cases.
  4157  func (c *EntriesLookupCall) Project(project string) *EntriesLookupCall {
  4158  	c.urlParams_.Set("project", project)
  4159  	return c
  4160  }
  4161  
  4162  // SqlResource sets the optional parameter "sqlResource": The SQL name of the
  4163  // entry. SQL names are case-sensitive. Examples: *
  4164  // `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` *
  4165  // `pubsub.topic.{PROJECT_ID}.`\“{TOPIC.ID.SEPARATED.WITH.DOTS}`\` *
  4166  // `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` *
  4167  // `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` *
  4168  // `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
  4169  // Identifiers (`*_ID`) should comply with the [Lexical structure in Standard
  4170  // SQL]
  4171  // (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
  4172  func (c *EntriesLookupCall) SqlResource(sqlResource string) *EntriesLookupCall {
  4173  	c.urlParams_.Set("sqlResource", sqlResource)
  4174  	return c
  4175  }
  4176  
  4177  // Fields allows partial responses to be retrieved. See
  4178  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4179  // details.
  4180  func (c *EntriesLookupCall) Fields(s ...googleapi.Field) *EntriesLookupCall {
  4181  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4182  	return c
  4183  }
  4184  
  4185  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4186  // object's ETag matches the given value. This is useful for getting updates
  4187  // only after the object has changed since the last request.
  4188  func (c *EntriesLookupCall) IfNoneMatch(entityTag string) *EntriesLookupCall {
  4189  	c.ifNoneMatch_ = entityTag
  4190  	return c
  4191  }
  4192  
  4193  // Context sets the context to be used in this call's Do method.
  4194  func (c *EntriesLookupCall) Context(ctx context.Context) *EntriesLookupCall {
  4195  	c.ctx_ = ctx
  4196  	return c
  4197  }
  4198  
  4199  // Header returns a http.Header that can be modified by the caller to add
  4200  // headers to the request.
  4201  func (c *EntriesLookupCall) Header() http.Header {
  4202  	if c.header_ == nil {
  4203  		c.header_ = make(http.Header)
  4204  	}
  4205  	return c.header_
  4206  }
  4207  
  4208  func (c *EntriesLookupCall) doRequest(alt string) (*http.Response, error) {
  4209  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4210  	if c.ifNoneMatch_ != "" {
  4211  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4212  	}
  4213  	var body io.Reader = nil
  4214  	c.urlParams_.Set("alt", alt)
  4215  	c.urlParams_.Set("prettyPrint", "false")
  4216  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/entries:lookup")
  4217  	urls += "?" + c.urlParams_.Encode()
  4218  	req, err := http.NewRequest("GET", urls, body)
  4219  	if err != nil {
  4220  		return nil, err
  4221  	}
  4222  	req.Header = reqHeaders
  4223  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4224  }
  4225  
  4226  // Do executes the "datacatalog.entries.lookup" call.
  4227  // Any non-2xx status code is an error. Response headers are in either
  4228  // *GoogleCloudDatacatalogV1Entry.ServerResponse.Header or (if a response was
  4229  // returned at all) in error.(*googleapi.Error).Header. Use
  4230  // googleapi.IsNotModified to check whether the returned error was because
  4231  // http.StatusNotModified was returned.
  4232  func (c *EntriesLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
  4233  	gensupport.SetOptions(c.urlParams_, opts...)
  4234  	res, err := c.doRequest("json")
  4235  	if res != nil && res.StatusCode == http.StatusNotModified {
  4236  		if res.Body != nil {
  4237  			res.Body.Close()
  4238  		}
  4239  		return nil, gensupport.WrapError(&googleapi.Error{
  4240  			Code:   res.StatusCode,
  4241  			Header: res.Header,
  4242  		})
  4243  	}
  4244  	if err != nil {
  4245  		return nil, err
  4246  	}
  4247  	defer googleapi.CloseBody(res)
  4248  	if err := googleapi.CheckResponse(res); err != nil {
  4249  		return nil, gensupport.WrapError(err)
  4250  	}
  4251  	ret := &GoogleCloudDatacatalogV1Entry{
  4252  		ServerResponse: googleapi.ServerResponse{
  4253  			Header:         res.Header,
  4254  			HTTPStatusCode: res.StatusCode,
  4255  		},
  4256  	}
  4257  	target := &ret
  4258  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4259  		return nil, err
  4260  	}
  4261  	return ret, nil
  4262  }
  4263  
  4264  type ProjectsLocationsEntryGroupsCreateCall struct {
  4265  	s                                  *Service
  4266  	parent                             string
  4267  	googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup
  4268  	urlParams_                         gensupport.URLParams
  4269  	ctx_                               context.Context
  4270  	header_                            http.Header
  4271  }
  4272  
  4273  // Create: Creates an entry group. An entry group contains logically related
  4274  // entries together with Cloud Identity and Access Management
  4275  // (/data-catalog/docs/concepts/iam) policies. These policies specify users who
  4276  // can create, edit, and view entries within entry groups. Data Catalog
  4277  // automatically creates entry groups with names that start with the `@` symbol
  4278  // for the following resources: * BigQuery entries (`@bigquery`) * Pub/Sub
  4279  // topics (`@pubsub`) * Dataproc Metastore services
  4280  // (`@dataproc_metastore_{SERVICE_NAME_HASH}`) You can create your own entry
  4281  // groups for Cloud Storage fileset entries and custom entries together with
  4282  // the corresponding IAM policies. User-created entry groups can't contain the
  4283  // `@` symbol, it is reserved for automatically created groups. Entry groups,
  4284  // like entries, can be searched. A maximum of 10,000 entry groups may be
  4285  // created per organization across all locations. You must enable the Data
  4286  // Catalog API in the project identified by the `parent` parameter. For more
  4287  // information, see Data Catalog resource project
  4288  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  4289  //
  4290  //   - parent: The names of the project and location that the new entry group
  4291  //     belongs to. Note: The entry group itself and its child resources might not
  4292  //     be stored in the location specified in its name.
  4293  func (r *ProjectsLocationsEntryGroupsService) Create(parent string, googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup) *ProjectsLocationsEntryGroupsCreateCall {
  4294  	c := &ProjectsLocationsEntryGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4295  	c.parent = parent
  4296  	c.googleclouddatacatalogv1entrygroup = googleclouddatacatalogv1entrygroup
  4297  	return c
  4298  }
  4299  
  4300  // EntryGroupId sets the optional parameter "entryGroupId": Required. The ID of
  4301  // the entry group to create. The ID must contain only letters (a-z, A-Z),
  4302  // numbers (0-9), underscores (_), and must start with a letter or underscore.
  4303  // The maximum size is 64 bytes when encoded in UTF-8.
  4304  func (c *ProjectsLocationsEntryGroupsCreateCall) EntryGroupId(entryGroupId string) *ProjectsLocationsEntryGroupsCreateCall {
  4305  	c.urlParams_.Set("entryGroupId", entryGroupId)
  4306  	return c
  4307  }
  4308  
  4309  // Fields allows partial responses to be retrieved. See
  4310  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4311  // details.
  4312  func (c *ProjectsLocationsEntryGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsCreateCall {
  4313  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4314  	return c
  4315  }
  4316  
  4317  // Context sets the context to be used in this call's Do method.
  4318  func (c *ProjectsLocationsEntryGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsCreateCall {
  4319  	c.ctx_ = ctx
  4320  	return c
  4321  }
  4322  
  4323  // Header returns a http.Header that can be modified by the caller to add
  4324  // headers to the request.
  4325  func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header {
  4326  	if c.header_ == nil {
  4327  		c.header_ = make(http.Header)
  4328  	}
  4329  	return c.header_
  4330  }
  4331  
  4332  func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
  4333  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4334  	var body io.Reader = nil
  4335  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entrygroup)
  4336  	if err != nil {
  4337  		return nil, err
  4338  	}
  4339  	c.urlParams_.Set("alt", alt)
  4340  	c.urlParams_.Set("prettyPrint", "false")
  4341  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
  4342  	urls += "?" + c.urlParams_.Encode()
  4343  	req, err := http.NewRequest("POST", urls, body)
  4344  	if err != nil {
  4345  		return nil, err
  4346  	}
  4347  	req.Header = reqHeaders
  4348  	googleapi.Expand(req.URL, map[string]string{
  4349  		"parent": c.parent,
  4350  	})
  4351  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4352  }
  4353  
  4354  // Do executes the "datacatalog.projects.locations.entryGroups.create" call.
  4355  // Any non-2xx status code is an error. Response headers are in either
  4356  // *GoogleCloudDatacatalogV1EntryGroup.ServerResponse.Header or (if a response
  4357  // was returned at all) in error.(*googleapi.Error).Header. Use
  4358  // googleapi.IsNotModified to check whether the returned error was because
  4359  // http.StatusNotModified was returned.
  4360  func (c *ProjectsLocationsEntryGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryGroup, error) {
  4361  	gensupport.SetOptions(c.urlParams_, opts...)
  4362  	res, err := c.doRequest("json")
  4363  	if res != nil && res.StatusCode == http.StatusNotModified {
  4364  		if res.Body != nil {
  4365  			res.Body.Close()
  4366  		}
  4367  		return nil, gensupport.WrapError(&googleapi.Error{
  4368  			Code:   res.StatusCode,
  4369  			Header: res.Header,
  4370  		})
  4371  	}
  4372  	if err != nil {
  4373  		return nil, err
  4374  	}
  4375  	defer googleapi.CloseBody(res)
  4376  	if err := googleapi.CheckResponse(res); err != nil {
  4377  		return nil, gensupport.WrapError(err)
  4378  	}
  4379  	ret := &GoogleCloudDatacatalogV1EntryGroup{
  4380  		ServerResponse: googleapi.ServerResponse{
  4381  			Header:         res.Header,
  4382  			HTTPStatusCode: res.StatusCode,
  4383  		},
  4384  	}
  4385  	target := &ret
  4386  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4387  		return nil, err
  4388  	}
  4389  	return ret, nil
  4390  }
  4391  
  4392  type ProjectsLocationsEntryGroupsDeleteCall struct {
  4393  	s          *Service
  4394  	name       string
  4395  	urlParams_ gensupport.URLParams
  4396  	ctx_       context.Context
  4397  	header_    http.Header
  4398  }
  4399  
  4400  // Delete: Deletes an entry group. You must enable the Data Catalog API in the
  4401  // project identified by the `name` parameter. For more information, see Data
  4402  // Catalog resource project
  4403  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  4404  //
  4405  // - name: The name of the entry group to delete.
  4406  func (r *ProjectsLocationsEntryGroupsService) Delete(name string) *ProjectsLocationsEntryGroupsDeleteCall {
  4407  	c := &ProjectsLocationsEntryGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4408  	c.name = name
  4409  	return c
  4410  }
  4411  
  4412  // Force sets the optional parameter "force": If true, deletes all entries in
  4413  // the entry group.
  4414  func (c *ProjectsLocationsEntryGroupsDeleteCall) Force(force bool) *ProjectsLocationsEntryGroupsDeleteCall {
  4415  	c.urlParams_.Set("force", fmt.Sprint(force))
  4416  	return c
  4417  }
  4418  
  4419  // Fields allows partial responses to be retrieved. See
  4420  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4421  // details.
  4422  func (c *ProjectsLocationsEntryGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsDeleteCall {
  4423  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4424  	return c
  4425  }
  4426  
  4427  // Context sets the context to be used in this call's Do method.
  4428  func (c *ProjectsLocationsEntryGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsDeleteCall {
  4429  	c.ctx_ = ctx
  4430  	return c
  4431  }
  4432  
  4433  // Header returns a http.Header that can be modified by the caller to add
  4434  // headers to the request.
  4435  func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header {
  4436  	if c.header_ == nil {
  4437  		c.header_ = make(http.Header)
  4438  	}
  4439  	return c.header_
  4440  }
  4441  
  4442  func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
  4443  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4444  	var body io.Reader = nil
  4445  	c.urlParams_.Set("alt", alt)
  4446  	c.urlParams_.Set("prettyPrint", "false")
  4447  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4448  	urls += "?" + c.urlParams_.Encode()
  4449  	req, err := http.NewRequest("DELETE", urls, body)
  4450  	if err != nil {
  4451  		return nil, err
  4452  	}
  4453  	req.Header = reqHeaders
  4454  	googleapi.Expand(req.URL, map[string]string{
  4455  		"name": c.name,
  4456  	})
  4457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4458  }
  4459  
  4460  // Do executes the "datacatalog.projects.locations.entryGroups.delete" call.
  4461  // Any non-2xx status code is an error. Response headers are in either
  4462  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  4463  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4464  // whether the returned error was because http.StatusNotModified was returned.
  4465  func (c *ProjectsLocationsEntryGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  4466  	gensupport.SetOptions(c.urlParams_, opts...)
  4467  	res, err := c.doRequest("json")
  4468  	if res != nil && res.StatusCode == http.StatusNotModified {
  4469  		if res.Body != nil {
  4470  			res.Body.Close()
  4471  		}
  4472  		return nil, gensupport.WrapError(&googleapi.Error{
  4473  			Code:   res.StatusCode,
  4474  			Header: res.Header,
  4475  		})
  4476  	}
  4477  	if err != nil {
  4478  		return nil, err
  4479  	}
  4480  	defer googleapi.CloseBody(res)
  4481  	if err := googleapi.CheckResponse(res); err != nil {
  4482  		return nil, gensupport.WrapError(err)
  4483  	}
  4484  	ret := &Empty{
  4485  		ServerResponse: googleapi.ServerResponse{
  4486  			Header:         res.Header,
  4487  			HTTPStatusCode: res.StatusCode,
  4488  		},
  4489  	}
  4490  	target := &ret
  4491  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4492  		return nil, err
  4493  	}
  4494  	return ret, nil
  4495  }
  4496  
  4497  type ProjectsLocationsEntryGroupsGetCall struct {
  4498  	s            *Service
  4499  	name         string
  4500  	urlParams_   gensupport.URLParams
  4501  	ifNoneMatch_ string
  4502  	ctx_         context.Context
  4503  	header_      http.Header
  4504  }
  4505  
  4506  // Get: Gets an entry group.
  4507  //
  4508  // - name: The name of the entry group to get.
  4509  func (r *ProjectsLocationsEntryGroupsService) Get(name string) *ProjectsLocationsEntryGroupsGetCall {
  4510  	c := &ProjectsLocationsEntryGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4511  	c.name = name
  4512  	return c
  4513  }
  4514  
  4515  // ReadMask sets the optional parameter "readMask": The fields to return. If
  4516  // empty or omitted, all fields are returned.
  4517  func (c *ProjectsLocationsEntryGroupsGetCall) ReadMask(readMask string) *ProjectsLocationsEntryGroupsGetCall {
  4518  	c.urlParams_.Set("readMask", readMask)
  4519  	return c
  4520  }
  4521  
  4522  // Fields allows partial responses to be retrieved. See
  4523  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4524  // details.
  4525  func (c *ProjectsLocationsEntryGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetCall {
  4526  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4527  	return c
  4528  }
  4529  
  4530  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4531  // object's ETag matches the given value. This is useful for getting updates
  4532  // only after the object has changed since the last request.
  4533  func (c *ProjectsLocationsEntryGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetCall {
  4534  	c.ifNoneMatch_ = entityTag
  4535  	return c
  4536  }
  4537  
  4538  // Context sets the context to be used in this call's Do method.
  4539  func (c *ProjectsLocationsEntryGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetCall {
  4540  	c.ctx_ = ctx
  4541  	return c
  4542  }
  4543  
  4544  // Header returns a http.Header that can be modified by the caller to add
  4545  // headers to the request.
  4546  func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header {
  4547  	if c.header_ == nil {
  4548  		c.header_ = make(http.Header)
  4549  	}
  4550  	return c.header_
  4551  }
  4552  
  4553  func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Response, error) {
  4554  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4555  	if c.ifNoneMatch_ != "" {
  4556  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4557  	}
  4558  	var body io.Reader = nil
  4559  	c.urlParams_.Set("alt", alt)
  4560  	c.urlParams_.Set("prettyPrint", "false")
  4561  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4562  	urls += "?" + c.urlParams_.Encode()
  4563  	req, err := http.NewRequest("GET", urls, body)
  4564  	if err != nil {
  4565  		return nil, err
  4566  	}
  4567  	req.Header = reqHeaders
  4568  	googleapi.Expand(req.URL, map[string]string{
  4569  		"name": c.name,
  4570  	})
  4571  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4572  }
  4573  
  4574  // Do executes the "datacatalog.projects.locations.entryGroups.get" call.
  4575  // Any non-2xx status code is an error. Response headers are in either
  4576  // *GoogleCloudDatacatalogV1EntryGroup.ServerResponse.Header or (if a response
  4577  // was returned at all) in error.(*googleapi.Error).Header. Use
  4578  // googleapi.IsNotModified to check whether the returned error was because
  4579  // http.StatusNotModified was returned.
  4580  func (c *ProjectsLocationsEntryGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryGroup, error) {
  4581  	gensupport.SetOptions(c.urlParams_, opts...)
  4582  	res, err := c.doRequest("json")
  4583  	if res != nil && res.StatusCode == http.StatusNotModified {
  4584  		if res.Body != nil {
  4585  			res.Body.Close()
  4586  		}
  4587  		return nil, gensupport.WrapError(&googleapi.Error{
  4588  			Code:   res.StatusCode,
  4589  			Header: res.Header,
  4590  		})
  4591  	}
  4592  	if err != nil {
  4593  		return nil, err
  4594  	}
  4595  	defer googleapi.CloseBody(res)
  4596  	if err := googleapi.CheckResponse(res); err != nil {
  4597  		return nil, gensupport.WrapError(err)
  4598  	}
  4599  	ret := &GoogleCloudDatacatalogV1EntryGroup{
  4600  		ServerResponse: googleapi.ServerResponse{
  4601  			Header:         res.Header,
  4602  			HTTPStatusCode: res.StatusCode,
  4603  		},
  4604  	}
  4605  	target := &ret
  4606  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4607  		return nil, err
  4608  	}
  4609  	return ret, nil
  4610  }
  4611  
  4612  type ProjectsLocationsEntryGroupsGetIamPolicyCall struct {
  4613  	s                   *Service
  4614  	resource            string
  4615  	getiampolicyrequest *GetIamPolicyRequest
  4616  	urlParams_          gensupport.URLParams
  4617  	ctx_                context.Context
  4618  	header_             http.Header
  4619  }
  4620  
  4621  // GetIamPolicy: Gets the access control policy for a resource. May return: *
  4622  // A`NOT_FOUND` error if the resource doesn't exist or you don't have the
  4623  // permission to view it. * An empty policy if the resource exists but doesn't
  4624  // have a set policy. Supported resources are: - Tag templates - Entry groups
  4625  // Note: This method doesn't get policies from Google Cloud Platform resources
  4626  // ingested into Data Catalog. To call this method, you must have the following
  4627  // Google IAM permissions: - `datacatalog.tagTemplates.getIamPolicy` to get
  4628  // policies on tag templates. - `datacatalog.entryGroups.getIamPolicy` to get
  4629  // policies on entry groups.
  4630  //
  4631  //   - resource: REQUIRED: The resource for which the policy is being requested.
  4632  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  4633  //     for the appropriate value for this field.
  4634  func (r *ProjectsLocationsEntryGroupsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
  4635  	c := &ProjectsLocationsEntryGroupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4636  	c.resource = resource
  4637  	c.getiampolicyrequest = getiampolicyrequest
  4638  	return c
  4639  }
  4640  
  4641  // Fields allows partial responses to be retrieved. See
  4642  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4643  // details.
  4644  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
  4645  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4646  	return c
  4647  }
  4648  
  4649  // Context sets the context to be used in this call's Do method.
  4650  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
  4651  	c.ctx_ = ctx
  4652  	return c
  4653  }
  4654  
  4655  // Header returns a http.Header that can be modified by the caller to add
  4656  // headers to the request.
  4657  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header {
  4658  	if c.header_ == nil {
  4659  		c.header_ = make(http.Header)
  4660  	}
  4661  	return c.header_
  4662  }
  4663  
  4664  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  4665  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4666  	var body io.Reader = nil
  4667  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
  4668  	if err != nil {
  4669  		return nil, err
  4670  	}
  4671  	c.urlParams_.Set("alt", alt)
  4672  	c.urlParams_.Set("prettyPrint", "false")
  4673  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  4674  	urls += "?" + c.urlParams_.Encode()
  4675  	req, err := http.NewRequest("POST", urls, body)
  4676  	if err != nil {
  4677  		return nil, err
  4678  	}
  4679  	req.Header = reqHeaders
  4680  	googleapi.Expand(req.URL, map[string]string{
  4681  		"resource": c.resource,
  4682  	})
  4683  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4684  }
  4685  
  4686  // Do executes the "datacatalog.projects.locations.entryGroups.getIamPolicy" call.
  4687  // Any non-2xx status code is an error. Response headers are in either
  4688  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  4689  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4690  // whether the returned error was because http.StatusNotModified was returned.
  4691  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  4692  	gensupport.SetOptions(c.urlParams_, opts...)
  4693  	res, err := c.doRequest("json")
  4694  	if res != nil && res.StatusCode == http.StatusNotModified {
  4695  		if res.Body != nil {
  4696  			res.Body.Close()
  4697  		}
  4698  		return nil, gensupport.WrapError(&googleapi.Error{
  4699  			Code:   res.StatusCode,
  4700  			Header: res.Header,
  4701  		})
  4702  	}
  4703  	if err != nil {
  4704  		return nil, err
  4705  	}
  4706  	defer googleapi.CloseBody(res)
  4707  	if err := googleapi.CheckResponse(res); err != nil {
  4708  		return nil, gensupport.WrapError(err)
  4709  	}
  4710  	ret := &Policy{
  4711  		ServerResponse: googleapi.ServerResponse{
  4712  			Header:         res.Header,
  4713  			HTTPStatusCode: res.StatusCode,
  4714  		},
  4715  	}
  4716  	target := &ret
  4717  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4718  		return nil, err
  4719  	}
  4720  	return ret, nil
  4721  }
  4722  
  4723  type ProjectsLocationsEntryGroupsListCall struct {
  4724  	s            *Service
  4725  	parent       string
  4726  	urlParams_   gensupport.URLParams
  4727  	ifNoneMatch_ string
  4728  	ctx_         context.Context
  4729  	header_      http.Header
  4730  }
  4731  
  4732  // List: Lists entry groups.
  4733  //
  4734  //   - parent: The name of the location that contains the entry groups to list.
  4735  //     Can be provided as a URL.
  4736  func (r *ProjectsLocationsEntryGroupsService) List(parent string) *ProjectsLocationsEntryGroupsListCall {
  4737  	c := &ProjectsLocationsEntryGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4738  	c.parent = parent
  4739  	return c
  4740  }
  4741  
  4742  // PageSize sets the optional parameter "pageSize": The maximum number of items
  4743  // to return. Default is 10. Maximum limit is 1000. Throws an invalid argument
  4744  // if `page_size` is greater than 1000.
  4745  func (c *ProjectsLocationsEntryGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsListCall {
  4746  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4747  	return c
  4748  }
  4749  
  4750  // PageToken sets the optional parameter "pageToken": Pagination token that
  4751  // specifies the next page to return. If empty, returns the first page.
  4752  func (c *ProjectsLocationsEntryGroupsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsListCall {
  4753  	c.urlParams_.Set("pageToken", pageToken)
  4754  	return c
  4755  }
  4756  
  4757  // Fields allows partial responses to be retrieved. See
  4758  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4759  // details.
  4760  func (c *ProjectsLocationsEntryGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsListCall {
  4761  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4762  	return c
  4763  }
  4764  
  4765  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4766  // object's ETag matches the given value. This is useful for getting updates
  4767  // only after the object has changed since the last request.
  4768  func (c *ProjectsLocationsEntryGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsListCall {
  4769  	c.ifNoneMatch_ = entityTag
  4770  	return c
  4771  }
  4772  
  4773  // Context sets the context to be used in this call's Do method.
  4774  func (c *ProjectsLocationsEntryGroupsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsListCall {
  4775  	c.ctx_ = ctx
  4776  	return c
  4777  }
  4778  
  4779  // Header returns a http.Header that can be modified by the caller to add
  4780  // headers to the request.
  4781  func (c *ProjectsLocationsEntryGroupsListCall) Header() http.Header {
  4782  	if c.header_ == nil {
  4783  		c.header_ = make(http.Header)
  4784  	}
  4785  	return c.header_
  4786  }
  4787  
  4788  func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Response, error) {
  4789  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4790  	if c.ifNoneMatch_ != "" {
  4791  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4792  	}
  4793  	var body io.Reader = nil
  4794  	c.urlParams_.Set("alt", alt)
  4795  	c.urlParams_.Set("prettyPrint", "false")
  4796  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
  4797  	urls += "?" + c.urlParams_.Encode()
  4798  	req, err := http.NewRequest("GET", urls, body)
  4799  	if err != nil {
  4800  		return nil, err
  4801  	}
  4802  	req.Header = reqHeaders
  4803  	googleapi.Expand(req.URL, map[string]string{
  4804  		"parent": c.parent,
  4805  	})
  4806  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4807  }
  4808  
  4809  // Do executes the "datacatalog.projects.locations.entryGroups.list" call.
  4810  // Any non-2xx status code is an error. Response headers are in either
  4811  // *GoogleCloudDatacatalogV1ListEntryGroupsResponse.ServerResponse.Header or
  4812  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  4813  // googleapi.IsNotModified to check whether the returned error was because
  4814  // http.StatusNotModified was returned.
  4815  func (c *ProjectsLocationsEntryGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListEntryGroupsResponse, error) {
  4816  	gensupport.SetOptions(c.urlParams_, opts...)
  4817  	res, err := c.doRequest("json")
  4818  	if res != nil && res.StatusCode == http.StatusNotModified {
  4819  		if res.Body != nil {
  4820  			res.Body.Close()
  4821  		}
  4822  		return nil, gensupport.WrapError(&googleapi.Error{
  4823  			Code:   res.StatusCode,
  4824  			Header: res.Header,
  4825  		})
  4826  	}
  4827  	if err != nil {
  4828  		return nil, err
  4829  	}
  4830  	defer googleapi.CloseBody(res)
  4831  	if err := googleapi.CheckResponse(res); err != nil {
  4832  		return nil, gensupport.WrapError(err)
  4833  	}
  4834  	ret := &GoogleCloudDatacatalogV1ListEntryGroupsResponse{
  4835  		ServerResponse: googleapi.ServerResponse{
  4836  			Header:         res.Header,
  4837  			HTTPStatusCode: res.StatusCode,
  4838  		},
  4839  	}
  4840  	target := &ret
  4841  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4842  		return nil, err
  4843  	}
  4844  	return ret, nil
  4845  }
  4846  
  4847  // Pages invokes f for each page of results.
  4848  // A non-nil error returned from f will halt the iteration.
  4849  // The provided context supersedes any context provided to the Context method.
  4850  func (c *ProjectsLocationsEntryGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListEntryGroupsResponse) error) error {
  4851  	c.ctx_ = ctx
  4852  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4853  	for {
  4854  		x, err := c.Do()
  4855  		if err != nil {
  4856  			return err
  4857  		}
  4858  		if err := f(x); err != nil {
  4859  			return err
  4860  		}
  4861  		if x.NextPageToken == "" {
  4862  			return nil
  4863  		}
  4864  		c.PageToken(x.NextPageToken)
  4865  	}
  4866  }
  4867  
  4868  type ProjectsLocationsEntryGroupsPatchCall struct {
  4869  	s                                  *Service
  4870  	name                               string
  4871  	googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup
  4872  	urlParams_                         gensupport.URLParams
  4873  	ctx_                               context.Context
  4874  	header_                            http.Header
  4875  }
  4876  
  4877  // Patch: Updates an entry group. You must enable the Data Catalog API in the
  4878  // project identified by the `entry_group.name` parameter. For more
  4879  // information, see Data Catalog resource project
  4880  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  4881  //
  4882  //   - name: Identifier. The resource name of the entry group in URL format.
  4883  //     Note: The entry group itself and its child resources might not be stored
  4884  //     in the location specified in its name.
  4885  func (r *ProjectsLocationsEntryGroupsService) Patch(name string, googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup) *ProjectsLocationsEntryGroupsPatchCall {
  4886  	c := &ProjectsLocationsEntryGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4887  	c.name = name
  4888  	c.googleclouddatacatalogv1entrygroup = googleclouddatacatalogv1entrygroup
  4889  	return c
  4890  }
  4891  
  4892  // UpdateMask sets the optional parameter "updateMask": Names of fields whose
  4893  // values to overwrite on an entry group. If this parameter is absent or empty,
  4894  // all modifiable fields are overwritten. If such fields are non-required and
  4895  // omitted in the request body, their values are emptied.
  4896  func (c *ProjectsLocationsEntryGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsPatchCall {
  4897  	c.urlParams_.Set("updateMask", updateMask)
  4898  	return c
  4899  }
  4900  
  4901  // Fields allows partial responses to be retrieved. See
  4902  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4903  // details.
  4904  func (c *ProjectsLocationsEntryGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsPatchCall {
  4905  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4906  	return c
  4907  }
  4908  
  4909  // Context sets the context to be used in this call's Do method.
  4910  func (c *ProjectsLocationsEntryGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsPatchCall {
  4911  	c.ctx_ = ctx
  4912  	return c
  4913  }
  4914  
  4915  // Header returns a http.Header that can be modified by the caller to add
  4916  // headers to the request.
  4917  func (c *ProjectsLocationsEntryGroupsPatchCall) Header() http.Header {
  4918  	if c.header_ == nil {
  4919  		c.header_ = make(http.Header)
  4920  	}
  4921  	return c.header_
  4922  }
  4923  
  4924  func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
  4925  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4926  	var body io.Reader = nil
  4927  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entrygroup)
  4928  	if err != nil {
  4929  		return nil, err
  4930  	}
  4931  	c.urlParams_.Set("alt", alt)
  4932  	c.urlParams_.Set("prettyPrint", "false")
  4933  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4934  	urls += "?" + c.urlParams_.Encode()
  4935  	req, err := http.NewRequest("PATCH", urls, body)
  4936  	if err != nil {
  4937  		return nil, err
  4938  	}
  4939  	req.Header = reqHeaders
  4940  	googleapi.Expand(req.URL, map[string]string{
  4941  		"name": c.name,
  4942  	})
  4943  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4944  }
  4945  
  4946  // Do executes the "datacatalog.projects.locations.entryGroups.patch" call.
  4947  // Any non-2xx status code is an error. Response headers are in either
  4948  // *GoogleCloudDatacatalogV1EntryGroup.ServerResponse.Header or (if a response
  4949  // was returned at all) in error.(*googleapi.Error).Header. Use
  4950  // googleapi.IsNotModified to check whether the returned error was because
  4951  // http.StatusNotModified was returned.
  4952  func (c *ProjectsLocationsEntryGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryGroup, error) {
  4953  	gensupport.SetOptions(c.urlParams_, opts...)
  4954  	res, err := c.doRequest("json")
  4955  	if res != nil && res.StatusCode == http.StatusNotModified {
  4956  		if res.Body != nil {
  4957  			res.Body.Close()
  4958  		}
  4959  		return nil, gensupport.WrapError(&googleapi.Error{
  4960  			Code:   res.StatusCode,
  4961  			Header: res.Header,
  4962  		})
  4963  	}
  4964  	if err != nil {
  4965  		return nil, err
  4966  	}
  4967  	defer googleapi.CloseBody(res)
  4968  	if err := googleapi.CheckResponse(res); err != nil {
  4969  		return nil, gensupport.WrapError(err)
  4970  	}
  4971  	ret := &GoogleCloudDatacatalogV1EntryGroup{
  4972  		ServerResponse: googleapi.ServerResponse{
  4973  			Header:         res.Header,
  4974  			HTTPStatusCode: res.StatusCode,
  4975  		},
  4976  	}
  4977  	target := &ret
  4978  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4979  		return nil, err
  4980  	}
  4981  	return ret, nil
  4982  }
  4983  
  4984  type ProjectsLocationsEntryGroupsSetIamPolicyCall struct {
  4985  	s                   *Service
  4986  	resource            string
  4987  	setiampolicyrequest *SetIamPolicyRequest
  4988  	urlParams_          gensupport.URLParams
  4989  	ctx_                context.Context
  4990  	header_             http.Header
  4991  }
  4992  
  4993  // SetIamPolicy: Sets an access control policy for a resource. Replaces any
  4994  // existing policy. Supported resources are: - Tag templates - Entry groups
  4995  // Note: This method sets policies only within Data Catalog and can't be used
  4996  // to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
  4997  // external Google Cloud Platform resources synced with the Data Catalog. To
  4998  // call this method, you must have the following Google IAM permissions: -
  4999  // `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. -
  5000  // `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
  5001  //
  5002  //   - resource: REQUIRED: The resource for which the policy is being specified.
  5003  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  5004  //     for the appropriate value for this field.
  5005  func (r *ProjectsLocationsEntryGroupsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
  5006  	c := &ProjectsLocationsEntryGroupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5007  	c.resource = resource
  5008  	c.setiampolicyrequest = setiampolicyrequest
  5009  	return c
  5010  }
  5011  
  5012  // Fields allows partial responses to be retrieved. See
  5013  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5014  // details.
  5015  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
  5016  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5017  	return c
  5018  }
  5019  
  5020  // Context sets the context to be used in this call's Do method.
  5021  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
  5022  	c.ctx_ = ctx
  5023  	return c
  5024  }
  5025  
  5026  // Header returns a http.Header that can be modified by the caller to add
  5027  // headers to the request.
  5028  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header {
  5029  	if c.header_ == nil {
  5030  		c.header_ = make(http.Header)
  5031  	}
  5032  	return c.header_
  5033  }
  5034  
  5035  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5036  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5037  	var body io.Reader = nil
  5038  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  5039  	if err != nil {
  5040  		return nil, err
  5041  	}
  5042  	c.urlParams_.Set("alt", alt)
  5043  	c.urlParams_.Set("prettyPrint", "false")
  5044  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  5045  	urls += "?" + c.urlParams_.Encode()
  5046  	req, err := http.NewRequest("POST", urls, body)
  5047  	if err != nil {
  5048  		return nil, err
  5049  	}
  5050  	req.Header = reqHeaders
  5051  	googleapi.Expand(req.URL, map[string]string{
  5052  		"resource": c.resource,
  5053  	})
  5054  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5055  }
  5056  
  5057  // Do executes the "datacatalog.projects.locations.entryGroups.setIamPolicy" call.
  5058  // Any non-2xx status code is an error. Response headers are in either
  5059  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  5060  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5061  // whether the returned error was because http.StatusNotModified was returned.
  5062  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5063  	gensupport.SetOptions(c.urlParams_, opts...)
  5064  	res, err := c.doRequest("json")
  5065  	if res != nil && res.StatusCode == http.StatusNotModified {
  5066  		if res.Body != nil {
  5067  			res.Body.Close()
  5068  		}
  5069  		return nil, gensupport.WrapError(&googleapi.Error{
  5070  			Code:   res.StatusCode,
  5071  			Header: res.Header,
  5072  		})
  5073  	}
  5074  	if err != nil {
  5075  		return nil, err
  5076  	}
  5077  	defer googleapi.CloseBody(res)
  5078  	if err := googleapi.CheckResponse(res); err != nil {
  5079  		return nil, gensupport.WrapError(err)
  5080  	}
  5081  	ret := &Policy{
  5082  		ServerResponse: googleapi.ServerResponse{
  5083  			Header:         res.Header,
  5084  			HTTPStatusCode: res.StatusCode,
  5085  		},
  5086  	}
  5087  	target := &ret
  5088  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5089  		return nil, err
  5090  	}
  5091  	return ret, nil
  5092  }
  5093  
  5094  type ProjectsLocationsEntryGroupsTestIamPermissionsCall struct {
  5095  	s                         *Service
  5096  	resource                  string
  5097  	testiampermissionsrequest *TestIamPermissionsRequest
  5098  	urlParams_                gensupport.URLParams
  5099  	ctx_                      context.Context
  5100  	header_                   http.Header
  5101  }
  5102  
  5103  // TestIamPermissions: Gets your permissions on a resource. Returns an empty
  5104  // set of permissions if the resource doesn't exist. Supported resources are: -
  5105  // Tag templates - Entry groups Note: This method gets policies only within
  5106  // Data Catalog and can't be used to get policies from BigQuery, Pub/Sub,
  5107  // Dataproc Metastore, and any external Google Cloud Platform resources
  5108  // ingested into Data Catalog. No Google IAM permissions are required to call
  5109  // this method.
  5110  //
  5111  //   - resource: REQUIRED: The resource for which the policy detail is being
  5112  //     requested. See Resource names
  5113  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  5114  //     value for this field.
  5115  func (r *ProjectsLocationsEntryGroupsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
  5116  	c := &ProjectsLocationsEntryGroupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5117  	c.resource = resource
  5118  	c.testiampermissionsrequest = testiampermissionsrequest
  5119  	return c
  5120  }
  5121  
  5122  // Fields allows partial responses to be retrieved. See
  5123  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5124  // details.
  5125  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
  5126  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5127  	return c
  5128  }
  5129  
  5130  // Context sets the context to be used in this call's Do method.
  5131  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
  5132  	c.ctx_ = ctx
  5133  	return c
  5134  }
  5135  
  5136  // Header returns a http.Header that can be modified by the caller to add
  5137  // headers to the request.
  5138  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Header {
  5139  	if c.header_ == nil {
  5140  		c.header_ = make(http.Header)
  5141  	}
  5142  	return c.header_
  5143  }
  5144  
  5145  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  5146  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5147  	var body io.Reader = nil
  5148  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  5149  	if err != nil {
  5150  		return nil, err
  5151  	}
  5152  	c.urlParams_.Set("alt", alt)
  5153  	c.urlParams_.Set("prettyPrint", "false")
  5154  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  5155  	urls += "?" + c.urlParams_.Encode()
  5156  	req, err := http.NewRequest("POST", urls, body)
  5157  	if err != nil {
  5158  		return nil, err
  5159  	}
  5160  	req.Header = reqHeaders
  5161  	googleapi.Expand(req.URL, map[string]string{
  5162  		"resource": c.resource,
  5163  	})
  5164  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5165  }
  5166  
  5167  // Do executes the "datacatalog.projects.locations.entryGroups.testIamPermissions" call.
  5168  // Any non-2xx status code is an error. Response headers are in either
  5169  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  5170  // returned at all) in error.(*googleapi.Error).Header. Use
  5171  // googleapi.IsNotModified to check whether the returned error was because
  5172  // http.StatusNotModified was returned.
  5173  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  5174  	gensupport.SetOptions(c.urlParams_, opts...)
  5175  	res, err := c.doRequest("json")
  5176  	if res != nil && res.StatusCode == http.StatusNotModified {
  5177  		if res.Body != nil {
  5178  			res.Body.Close()
  5179  		}
  5180  		return nil, gensupport.WrapError(&googleapi.Error{
  5181  			Code:   res.StatusCode,
  5182  			Header: res.Header,
  5183  		})
  5184  	}
  5185  	if err != nil {
  5186  		return nil, err
  5187  	}
  5188  	defer googleapi.CloseBody(res)
  5189  	if err := googleapi.CheckResponse(res); err != nil {
  5190  		return nil, gensupport.WrapError(err)
  5191  	}
  5192  	ret := &TestIamPermissionsResponse{
  5193  		ServerResponse: googleapi.ServerResponse{
  5194  			Header:         res.Header,
  5195  			HTTPStatusCode: res.StatusCode,
  5196  		},
  5197  	}
  5198  	target := &ret
  5199  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5200  		return nil, err
  5201  	}
  5202  	return ret, nil
  5203  }
  5204  
  5205  type ProjectsLocationsEntryGroupsEntriesCreateCall struct {
  5206  	s                             *Service
  5207  	parent                        string
  5208  	googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry
  5209  	urlParams_                    gensupport.URLParams
  5210  	ctx_                          context.Context
  5211  	header_                       http.Header
  5212  }
  5213  
  5214  // Create: Creates an entry. You can create entries only with 'FILESET',
  5215  // 'CLUSTER', 'DATA_STREAM', or custom types. Data Catalog automatically
  5216  // creates entries with other types during metadata ingestion from integrated
  5217  // systems. You must enable the Data Catalog API in the project identified by
  5218  // the `parent` parameter. For more information, see Data Catalog resource
  5219  // project
  5220  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project). An
  5221  // entry group can have a maximum of 100,000 entries.
  5222  //
  5223  //   - parent: The name of the entry group this entry belongs to. Note: The entry
  5224  //     itself and its child resources might not be stored in the location
  5225  //     specified in its name.
  5226  func (r *ProjectsLocationsEntryGroupsEntriesService) Create(parent string, googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry) *ProjectsLocationsEntryGroupsEntriesCreateCall {
  5227  	c := &ProjectsLocationsEntryGroupsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5228  	c.parent = parent
  5229  	c.googleclouddatacatalogv1entry = googleclouddatacatalogv1entry
  5230  	return c
  5231  }
  5232  
  5233  // EntryId sets the optional parameter "entryId": Required. The ID of the entry
  5234  // to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and
  5235  // underscores (_). The maximum size is 64 bytes when encoded in UTF-8.
  5236  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId(entryId string) *ProjectsLocationsEntryGroupsEntriesCreateCall {
  5237  	c.urlParams_.Set("entryId", entryId)
  5238  	return c
  5239  }
  5240  
  5241  // Fields allows partial responses to be retrieved. See
  5242  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5243  // details.
  5244  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesCreateCall {
  5245  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5246  	return c
  5247  }
  5248  
  5249  // Context sets the context to be used in this call's Do method.
  5250  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesCreateCall {
  5251  	c.ctx_ = ctx
  5252  	return c
  5253  }
  5254  
  5255  // Header returns a http.Header that can be modified by the caller to add
  5256  // headers to the request.
  5257  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header {
  5258  	if c.header_ == nil {
  5259  		c.header_ = make(http.Header)
  5260  	}
  5261  	return c.header_
  5262  }
  5263  
  5264  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
  5265  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5266  	var body io.Reader = nil
  5267  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entry)
  5268  	if err != nil {
  5269  		return nil, err
  5270  	}
  5271  	c.urlParams_.Set("alt", alt)
  5272  	c.urlParams_.Set("prettyPrint", "false")
  5273  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
  5274  	urls += "?" + c.urlParams_.Encode()
  5275  	req, err := http.NewRequest("POST", urls, body)
  5276  	if err != nil {
  5277  		return nil, err
  5278  	}
  5279  	req.Header = reqHeaders
  5280  	googleapi.Expand(req.URL, map[string]string{
  5281  		"parent": c.parent,
  5282  	})
  5283  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5284  }
  5285  
  5286  // Do executes the "datacatalog.projects.locations.entryGroups.entries.create" call.
  5287  // Any non-2xx status code is an error. Response headers are in either
  5288  // *GoogleCloudDatacatalogV1Entry.ServerResponse.Header or (if a response was
  5289  // returned at all) in error.(*googleapi.Error).Header. Use
  5290  // googleapi.IsNotModified to check whether the returned error was because
  5291  // http.StatusNotModified was returned.
  5292  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
  5293  	gensupport.SetOptions(c.urlParams_, opts...)
  5294  	res, err := c.doRequest("json")
  5295  	if res != nil && res.StatusCode == http.StatusNotModified {
  5296  		if res.Body != nil {
  5297  			res.Body.Close()
  5298  		}
  5299  		return nil, gensupport.WrapError(&googleapi.Error{
  5300  			Code:   res.StatusCode,
  5301  			Header: res.Header,
  5302  		})
  5303  	}
  5304  	if err != nil {
  5305  		return nil, err
  5306  	}
  5307  	defer googleapi.CloseBody(res)
  5308  	if err := googleapi.CheckResponse(res); err != nil {
  5309  		return nil, gensupport.WrapError(err)
  5310  	}
  5311  	ret := &GoogleCloudDatacatalogV1Entry{
  5312  		ServerResponse: googleapi.ServerResponse{
  5313  			Header:         res.Header,
  5314  			HTTPStatusCode: res.StatusCode,
  5315  		},
  5316  	}
  5317  	target := &ret
  5318  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5319  		return nil, err
  5320  	}
  5321  	return ret, nil
  5322  }
  5323  
  5324  type ProjectsLocationsEntryGroupsEntriesDeleteCall struct {
  5325  	s          *Service
  5326  	name       string
  5327  	urlParams_ gensupport.URLParams
  5328  	ctx_       context.Context
  5329  	header_    http.Header
  5330  }
  5331  
  5332  // Delete: Deletes an existing entry. You can delete only the entries created
  5333  // by the CreateEntry method. You must enable the Data Catalog API in the
  5334  // project identified by the `name` parameter. For more information, see Data
  5335  // Catalog resource project
  5336  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  5337  //
  5338  // - name: The name of the entry to delete.
  5339  func (r *ProjectsLocationsEntryGroupsEntriesService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
  5340  	c := &ProjectsLocationsEntryGroupsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5341  	c.name = name
  5342  	return c
  5343  }
  5344  
  5345  // Fields allows partial responses to be retrieved. See
  5346  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5347  // details.
  5348  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
  5349  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5350  	return c
  5351  }
  5352  
  5353  // Context sets the context to be used in this call's Do method.
  5354  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
  5355  	c.ctx_ = ctx
  5356  	return c
  5357  }
  5358  
  5359  // Header returns a http.Header that can be modified by the caller to add
  5360  // headers to the request.
  5361  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header {
  5362  	if c.header_ == nil {
  5363  		c.header_ = make(http.Header)
  5364  	}
  5365  	return c.header_
  5366  }
  5367  
  5368  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
  5369  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5370  	var body io.Reader = nil
  5371  	c.urlParams_.Set("alt", alt)
  5372  	c.urlParams_.Set("prettyPrint", "false")
  5373  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5374  	urls += "?" + c.urlParams_.Encode()
  5375  	req, err := http.NewRequest("DELETE", urls, body)
  5376  	if err != nil {
  5377  		return nil, err
  5378  	}
  5379  	req.Header = reqHeaders
  5380  	googleapi.Expand(req.URL, map[string]string{
  5381  		"name": c.name,
  5382  	})
  5383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5384  }
  5385  
  5386  // Do executes the "datacatalog.projects.locations.entryGroups.entries.delete" call.
  5387  // Any non-2xx status code is an error. Response headers are in either
  5388  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  5389  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5390  // whether the returned error was because http.StatusNotModified was returned.
  5391  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  5392  	gensupport.SetOptions(c.urlParams_, opts...)
  5393  	res, err := c.doRequest("json")
  5394  	if res != nil && res.StatusCode == http.StatusNotModified {
  5395  		if res.Body != nil {
  5396  			res.Body.Close()
  5397  		}
  5398  		return nil, gensupport.WrapError(&googleapi.Error{
  5399  			Code:   res.StatusCode,
  5400  			Header: res.Header,
  5401  		})
  5402  	}
  5403  	if err != nil {
  5404  		return nil, err
  5405  	}
  5406  	defer googleapi.CloseBody(res)
  5407  	if err := googleapi.CheckResponse(res); err != nil {
  5408  		return nil, gensupport.WrapError(err)
  5409  	}
  5410  	ret := &Empty{
  5411  		ServerResponse: googleapi.ServerResponse{
  5412  			Header:         res.Header,
  5413  			HTTPStatusCode: res.StatusCode,
  5414  		},
  5415  	}
  5416  	target := &ret
  5417  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5418  		return nil, err
  5419  	}
  5420  	return ret, nil
  5421  }
  5422  
  5423  type ProjectsLocationsEntryGroupsEntriesGetCall struct {
  5424  	s            *Service
  5425  	name         string
  5426  	urlParams_   gensupport.URLParams
  5427  	ifNoneMatch_ string
  5428  	ctx_         context.Context
  5429  	header_      http.Header
  5430  }
  5431  
  5432  // Get: Gets an entry.
  5433  //
  5434  // - name: The name of the entry to get.
  5435  func (r *ProjectsLocationsEntryGroupsEntriesService) Get(name string) *ProjectsLocationsEntryGroupsEntriesGetCall {
  5436  	c := &ProjectsLocationsEntryGroupsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5437  	c.name = name
  5438  	return c
  5439  }
  5440  
  5441  // Fields allows partial responses to be retrieved. See
  5442  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5443  // details.
  5444  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetCall {
  5445  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5446  	return c
  5447  }
  5448  
  5449  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5450  // object's ETag matches the given value. This is useful for getting updates
  5451  // only after the object has changed since the last request.
  5452  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesGetCall {
  5453  	c.ifNoneMatch_ = entityTag
  5454  	return c
  5455  }
  5456  
  5457  // Context sets the context to be used in this call's Do method.
  5458  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetCall {
  5459  	c.ctx_ = ctx
  5460  	return c
  5461  }
  5462  
  5463  // Header returns a http.Header that can be modified by the caller to add
  5464  // headers to the request.
  5465  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header {
  5466  	if c.header_ == nil {
  5467  		c.header_ = make(http.Header)
  5468  	}
  5469  	return c.header_
  5470  }
  5471  
  5472  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
  5473  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5474  	if c.ifNoneMatch_ != "" {
  5475  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5476  	}
  5477  	var body io.Reader = nil
  5478  	c.urlParams_.Set("alt", alt)
  5479  	c.urlParams_.Set("prettyPrint", "false")
  5480  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5481  	urls += "?" + c.urlParams_.Encode()
  5482  	req, err := http.NewRequest("GET", urls, body)
  5483  	if err != nil {
  5484  		return nil, err
  5485  	}
  5486  	req.Header = reqHeaders
  5487  	googleapi.Expand(req.URL, map[string]string{
  5488  		"name": c.name,
  5489  	})
  5490  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5491  }
  5492  
  5493  // Do executes the "datacatalog.projects.locations.entryGroups.entries.get" call.
  5494  // Any non-2xx status code is an error. Response headers are in either
  5495  // *GoogleCloudDatacatalogV1Entry.ServerResponse.Header or (if a response was
  5496  // returned at all) in error.(*googleapi.Error).Header. Use
  5497  // googleapi.IsNotModified to check whether the returned error was because
  5498  // http.StatusNotModified was returned.
  5499  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
  5500  	gensupport.SetOptions(c.urlParams_, opts...)
  5501  	res, err := c.doRequest("json")
  5502  	if res != nil && res.StatusCode == http.StatusNotModified {
  5503  		if res.Body != nil {
  5504  			res.Body.Close()
  5505  		}
  5506  		return nil, gensupport.WrapError(&googleapi.Error{
  5507  			Code:   res.StatusCode,
  5508  			Header: res.Header,
  5509  		})
  5510  	}
  5511  	if err != nil {
  5512  		return nil, err
  5513  	}
  5514  	defer googleapi.CloseBody(res)
  5515  	if err := googleapi.CheckResponse(res); err != nil {
  5516  		return nil, gensupport.WrapError(err)
  5517  	}
  5518  	ret := &GoogleCloudDatacatalogV1Entry{
  5519  		ServerResponse: googleapi.ServerResponse{
  5520  			Header:         res.Header,
  5521  			HTTPStatusCode: res.StatusCode,
  5522  		},
  5523  	}
  5524  	target := &ret
  5525  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5526  		return nil, err
  5527  	}
  5528  	return ret, nil
  5529  }
  5530  
  5531  type ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall struct {
  5532  	s                   *Service
  5533  	resource            string
  5534  	getiampolicyrequest *GetIamPolicyRequest
  5535  	urlParams_          gensupport.URLParams
  5536  	ctx_                context.Context
  5537  	header_             http.Header
  5538  }
  5539  
  5540  // GetIamPolicy: Gets the access control policy for a resource. May return: *
  5541  // A`NOT_FOUND` error if the resource doesn't exist or you don't have the
  5542  // permission to view it. * An empty policy if the resource exists but doesn't
  5543  // have a set policy. Supported resources are: - Tag templates - Entry groups
  5544  // Note: This method doesn't get policies from Google Cloud Platform resources
  5545  // ingested into Data Catalog. To call this method, you must have the following
  5546  // Google IAM permissions: - `datacatalog.tagTemplates.getIamPolicy` to get
  5547  // policies on tag templates. - `datacatalog.entryGroups.getIamPolicy` to get
  5548  // policies on entry groups.
  5549  //
  5550  //   - resource: REQUIRED: The resource for which the policy is being requested.
  5551  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  5552  //     for the appropriate value for this field.
  5553  func (r *ProjectsLocationsEntryGroupsEntriesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall {
  5554  	c := &ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5555  	c.resource = resource
  5556  	c.getiampolicyrequest = getiampolicyrequest
  5557  	return c
  5558  }
  5559  
  5560  // Fields allows partial responses to be retrieved. See
  5561  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5562  // details.
  5563  func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall {
  5564  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5565  	return c
  5566  }
  5567  
  5568  // Context sets the context to be used in this call's Do method.
  5569  func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall {
  5570  	c.ctx_ = ctx
  5571  	return c
  5572  }
  5573  
  5574  // Header returns a http.Header that can be modified by the caller to add
  5575  // headers to the request.
  5576  func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Header() http.Header {
  5577  	if c.header_ == nil {
  5578  		c.header_ = make(http.Header)
  5579  	}
  5580  	return c.header_
  5581  }
  5582  
  5583  func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5584  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5585  	var body io.Reader = nil
  5586  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
  5587  	if err != nil {
  5588  		return nil, err
  5589  	}
  5590  	c.urlParams_.Set("alt", alt)
  5591  	c.urlParams_.Set("prettyPrint", "false")
  5592  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  5593  	urls += "?" + c.urlParams_.Encode()
  5594  	req, err := http.NewRequest("POST", urls, body)
  5595  	if err != nil {
  5596  		return nil, err
  5597  	}
  5598  	req.Header = reqHeaders
  5599  	googleapi.Expand(req.URL, map[string]string{
  5600  		"resource": c.resource,
  5601  	})
  5602  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5603  }
  5604  
  5605  // Do executes the "datacatalog.projects.locations.entryGroups.entries.getIamPolicy" call.
  5606  // Any non-2xx status code is an error. Response headers are in either
  5607  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  5608  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5609  // whether the returned error was because http.StatusNotModified was returned.
  5610  func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5611  	gensupport.SetOptions(c.urlParams_, opts...)
  5612  	res, err := c.doRequest("json")
  5613  	if res != nil && res.StatusCode == http.StatusNotModified {
  5614  		if res.Body != nil {
  5615  			res.Body.Close()
  5616  		}
  5617  		return nil, gensupport.WrapError(&googleapi.Error{
  5618  			Code:   res.StatusCode,
  5619  			Header: res.Header,
  5620  		})
  5621  	}
  5622  	if err != nil {
  5623  		return nil, err
  5624  	}
  5625  	defer googleapi.CloseBody(res)
  5626  	if err := googleapi.CheckResponse(res); err != nil {
  5627  		return nil, gensupport.WrapError(err)
  5628  	}
  5629  	ret := &Policy{
  5630  		ServerResponse: googleapi.ServerResponse{
  5631  			Header:         res.Header,
  5632  			HTTPStatusCode: res.StatusCode,
  5633  		},
  5634  	}
  5635  	target := &ret
  5636  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5637  		return nil, err
  5638  	}
  5639  	return ret, nil
  5640  }
  5641  
  5642  type ProjectsLocationsEntryGroupsEntriesImportCall struct {
  5643  	s                                            *Service
  5644  	parent                                       string
  5645  	googleclouddatacatalogv1importentriesrequest *GoogleCloudDatacatalogV1ImportEntriesRequest
  5646  	urlParams_                                   gensupport.URLParams
  5647  	ctx_                                         context.Context
  5648  	header_                                      http.Header
  5649  }
  5650  
  5651  // Import: Imports entries from a source, such as data previously dumped into a
  5652  // Cloud Storage bucket, into Data Catalog. Import of entries is a sync
  5653  // operation that reconciles the state of the third-party system with the Data
  5654  // Catalog. `ImportEntries` accepts source data snapshots of a third-party
  5655  // system. Snapshot should be delivered as a .wire or base65-encoded .txt file
  5656  // containing a sequence of Protocol Buffer messages of DumpItem type.
  5657  // `ImportEntries` returns a long-running operation resource that can be
  5658  // queried with Operations.GetOperation to return ImportEntriesMetadata and an
  5659  // ImportEntriesResponse message.
  5660  //
  5661  // - parent: Target entry group for ingested entries.
  5662  func (r *ProjectsLocationsEntryGroupsEntriesService) Import(parent string, googleclouddatacatalogv1importentriesrequest *GoogleCloudDatacatalogV1ImportEntriesRequest) *ProjectsLocationsEntryGroupsEntriesImportCall {
  5663  	c := &ProjectsLocationsEntryGroupsEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5664  	c.parent = parent
  5665  	c.googleclouddatacatalogv1importentriesrequest = googleclouddatacatalogv1importentriesrequest
  5666  	return c
  5667  }
  5668  
  5669  // Fields allows partial responses to be retrieved. See
  5670  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5671  // details.
  5672  func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesImportCall {
  5673  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5674  	return c
  5675  }
  5676  
  5677  // Context sets the context to be used in this call's Do method.
  5678  func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesImportCall {
  5679  	c.ctx_ = ctx
  5680  	return c
  5681  }
  5682  
  5683  // Header returns a http.Header that can be modified by the caller to add
  5684  // headers to the request.
  5685  func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Header() http.Header {
  5686  	if c.header_ == nil {
  5687  		c.header_ = make(http.Header)
  5688  	}
  5689  	return c.header_
  5690  }
  5691  
  5692  func (c *ProjectsLocationsEntryGroupsEntriesImportCall) doRequest(alt string) (*http.Response, error) {
  5693  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5694  	var body io.Reader = nil
  5695  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1importentriesrequest)
  5696  	if err != nil {
  5697  		return nil, err
  5698  	}
  5699  	c.urlParams_.Set("alt", alt)
  5700  	c.urlParams_.Set("prettyPrint", "false")
  5701  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries:import")
  5702  	urls += "?" + c.urlParams_.Encode()
  5703  	req, err := http.NewRequest("POST", urls, body)
  5704  	if err != nil {
  5705  		return nil, err
  5706  	}
  5707  	req.Header = reqHeaders
  5708  	googleapi.Expand(req.URL, map[string]string{
  5709  		"parent": c.parent,
  5710  	})
  5711  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5712  }
  5713  
  5714  // Do executes the "datacatalog.projects.locations.entryGroups.entries.import" call.
  5715  // Any non-2xx status code is an error. Response headers are in either
  5716  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5717  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5718  // whether the returned error was because http.StatusNotModified was returned.
  5719  func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5720  	gensupport.SetOptions(c.urlParams_, opts...)
  5721  	res, err := c.doRequest("json")
  5722  	if res != nil && res.StatusCode == http.StatusNotModified {
  5723  		if res.Body != nil {
  5724  			res.Body.Close()
  5725  		}
  5726  		return nil, gensupport.WrapError(&googleapi.Error{
  5727  			Code:   res.StatusCode,
  5728  			Header: res.Header,
  5729  		})
  5730  	}
  5731  	if err != nil {
  5732  		return nil, err
  5733  	}
  5734  	defer googleapi.CloseBody(res)
  5735  	if err := googleapi.CheckResponse(res); err != nil {
  5736  		return nil, gensupport.WrapError(err)
  5737  	}
  5738  	ret := &Operation{
  5739  		ServerResponse: googleapi.ServerResponse{
  5740  			Header:         res.Header,
  5741  			HTTPStatusCode: res.StatusCode,
  5742  		},
  5743  	}
  5744  	target := &ret
  5745  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5746  		return nil, err
  5747  	}
  5748  	return ret, nil
  5749  }
  5750  
  5751  type ProjectsLocationsEntryGroupsEntriesListCall struct {
  5752  	s            *Service
  5753  	parent       string
  5754  	urlParams_   gensupport.URLParams
  5755  	ifNoneMatch_ string
  5756  	ctx_         context.Context
  5757  	header_      http.Header
  5758  }
  5759  
  5760  // List: Lists entries. Note: Currently, this method can list only custom
  5761  // entries. To get a list of both custom and automatically created entries, use
  5762  // SearchCatalog.
  5763  //
  5764  //   - parent: The name of the entry group that contains the entries to list. Can
  5765  //     be provided in URL format.
  5766  func (r *ProjectsLocationsEntryGroupsEntriesService) List(parent string) *ProjectsLocationsEntryGroupsEntriesListCall {
  5767  	c := &ProjectsLocationsEntryGroupsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5768  	c.parent = parent
  5769  	return c
  5770  }
  5771  
  5772  // PageSize sets the optional parameter "pageSize": The maximum number of items
  5773  // to return. Default is 10. Maximum limit is 1000. Throws an invalid argument
  5774  // if `page_size` is more than 1000.
  5775  func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesListCall {
  5776  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5777  	return c
  5778  }
  5779  
  5780  // PageToken sets the optional parameter "pageToken": Pagination token that
  5781  // specifies the next page to return. If empty, the first page is returned.
  5782  func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesListCall {
  5783  	c.urlParams_.Set("pageToken", pageToken)
  5784  	return c
  5785  }
  5786  
  5787  // ReadMask sets the optional parameter "readMask": The fields to return for
  5788  // each entry. If empty or omitted, all fields are returned. For example, to
  5789  // return a list of entries with only the `name` field, set `read_mask` to only
  5790  // one path with the `name` value.
  5791  func (c *ProjectsLocationsEntryGroupsEntriesListCall) ReadMask(readMask string) *ProjectsLocationsEntryGroupsEntriesListCall {
  5792  	c.urlParams_.Set("readMask", readMask)
  5793  	return c
  5794  }
  5795  
  5796  // Fields allows partial responses to be retrieved. See
  5797  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5798  // details.
  5799  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesListCall {
  5800  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5801  	return c
  5802  }
  5803  
  5804  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5805  // object's ETag matches the given value. This is useful for getting updates
  5806  // only after the object has changed since the last request.
  5807  func (c *ProjectsLocationsEntryGroupsEntriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesListCall {
  5808  	c.ifNoneMatch_ = entityTag
  5809  	return c
  5810  }
  5811  
  5812  // Context sets the context to be used in this call's Do method.
  5813  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesListCall {
  5814  	c.ctx_ = ctx
  5815  	return c
  5816  }
  5817  
  5818  // Header returns a http.Header that can be modified by the caller to add
  5819  // headers to the request.
  5820  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Header() http.Header {
  5821  	if c.header_ == nil {
  5822  		c.header_ = make(http.Header)
  5823  	}
  5824  	return c.header_
  5825  }
  5826  
  5827  func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*http.Response, error) {
  5828  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5829  	if c.ifNoneMatch_ != "" {
  5830  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5831  	}
  5832  	var body io.Reader = nil
  5833  	c.urlParams_.Set("alt", alt)
  5834  	c.urlParams_.Set("prettyPrint", "false")
  5835  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
  5836  	urls += "?" + c.urlParams_.Encode()
  5837  	req, err := http.NewRequest("GET", urls, body)
  5838  	if err != nil {
  5839  		return nil, err
  5840  	}
  5841  	req.Header = reqHeaders
  5842  	googleapi.Expand(req.URL, map[string]string{
  5843  		"parent": c.parent,
  5844  	})
  5845  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5846  }
  5847  
  5848  // Do executes the "datacatalog.projects.locations.entryGroups.entries.list" call.
  5849  // Any non-2xx status code is an error. Response headers are in either
  5850  // *GoogleCloudDatacatalogV1ListEntriesResponse.ServerResponse.Header or (if a
  5851  // response was returned at all) in error.(*googleapi.Error).Header. Use
  5852  // googleapi.IsNotModified to check whether the returned error was because
  5853  // http.StatusNotModified was returned.
  5854  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListEntriesResponse, error) {
  5855  	gensupport.SetOptions(c.urlParams_, opts...)
  5856  	res, err := c.doRequest("json")
  5857  	if res != nil && res.StatusCode == http.StatusNotModified {
  5858  		if res.Body != nil {
  5859  			res.Body.Close()
  5860  		}
  5861  		return nil, gensupport.WrapError(&googleapi.Error{
  5862  			Code:   res.StatusCode,
  5863  			Header: res.Header,
  5864  		})
  5865  	}
  5866  	if err != nil {
  5867  		return nil, err
  5868  	}
  5869  	defer googleapi.CloseBody(res)
  5870  	if err := googleapi.CheckResponse(res); err != nil {
  5871  		return nil, gensupport.WrapError(err)
  5872  	}
  5873  	ret := &GoogleCloudDatacatalogV1ListEntriesResponse{
  5874  		ServerResponse: googleapi.ServerResponse{
  5875  			Header:         res.Header,
  5876  			HTTPStatusCode: res.StatusCode,
  5877  		},
  5878  	}
  5879  	target := &ret
  5880  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5881  		return nil, err
  5882  	}
  5883  	return ret, nil
  5884  }
  5885  
  5886  // Pages invokes f for each page of results.
  5887  // A non-nil error returned from f will halt the iteration.
  5888  // The provided context supersedes any context provided to the Context method.
  5889  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListEntriesResponse) error) error {
  5890  	c.ctx_ = ctx
  5891  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5892  	for {
  5893  		x, err := c.Do()
  5894  		if err != nil {
  5895  			return err
  5896  		}
  5897  		if err := f(x); err != nil {
  5898  			return err
  5899  		}
  5900  		if x.NextPageToken == "" {
  5901  			return nil
  5902  		}
  5903  		c.PageToken(x.NextPageToken)
  5904  	}
  5905  }
  5906  
  5907  type ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall struct {
  5908  	s                                                  *Service
  5909  	name                                               string
  5910  	googleclouddatacatalogv1modifyentrycontactsrequest *GoogleCloudDatacatalogV1ModifyEntryContactsRequest
  5911  	urlParams_                                         gensupport.URLParams
  5912  	ctx_                                               context.Context
  5913  	header_                                            http.Header
  5914  }
  5915  
  5916  // ModifyEntryContacts: Modifies contacts, part of the business context of an
  5917  // Entry. To call this method, you must have the
  5918  // `datacatalog.entries.updateContacts` IAM permission on the corresponding
  5919  // project.
  5920  //
  5921  // - name: The full resource name of the entry.
  5922  func (r *ProjectsLocationsEntryGroupsEntriesService) ModifyEntryContacts(name string, googleclouddatacatalogv1modifyentrycontactsrequest *GoogleCloudDatacatalogV1ModifyEntryContactsRequest) *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall {
  5923  	c := &ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5924  	c.name = name
  5925  	c.googleclouddatacatalogv1modifyentrycontactsrequest = googleclouddatacatalogv1modifyentrycontactsrequest
  5926  	return c
  5927  }
  5928  
  5929  // Fields allows partial responses to be retrieved. See
  5930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5931  // details.
  5932  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall {
  5933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5934  	return c
  5935  }
  5936  
  5937  // Context sets the context to be used in this call's Do method.
  5938  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall {
  5939  	c.ctx_ = ctx
  5940  	return c
  5941  }
  5942  
  5943  // Header returns a http.Header that can be modified by the caller to add
  5944  // headers to the request.
  5945  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Header() http.Header {
  5946  	if c.header_ == nil {
  5947  		c.header_ = make(http.Header)
  5948  	}
  5949  	return c.header_
  5950  }
  5951  
  5952  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) doRequest(alt string) (*http.Response, error) {
  5953  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5954  	var body io.Reader = nil
  5955  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1modifyentrycontactsrequest)
  5956  	if err != nil {
  5957  		return nil, err
  5958  	}
  5959  	c.urlParams_.Set("alt", alt)
  5960  	c.urlParams_.Set("prettyPrint", "false")
  5961  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:modifyEntryContacts")
  5962  	urls += "?" + c.urlParams_.Encode()
  5963  	req, err := http.NewRequest("POST", urls, body)
  5964  	if err != nil {
  5965  		return nil, err
  5966  	}
  5967  	req.Header = reqHeaders
  5968  	googleapi.Expand(req.URL, map[string]string{
  5969  		"name": c.name,
  5970  	})
  5971  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5972  }
  5973  
  5974  // Do executes the "datacatalog.projects.locations.entryGroups.entries.modifyEntryContacts" call.
  5975  // Any non-2xx status code is an error. Response headers are in either
  5976  // *GoogleCloudDatacatalogV1Contacts.ServerResponse.Header or (if a response
  5977  // was returned at all) in error.(*googleapi.Error).Header. Use
  5978  // googleapi.IsNotModified to check whether the returned error was because
  5979  // http.StatusNotModified was returned.
  5980  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Contacts, error) {
  5981  	gensupport.SetOptions(c.urlParams_, opts...)
  5982  	res, err := c.doRequest("json")
  5983  	if res != nil && res.StatusCode == http.StatusNotModified {
  5984  		if res.Body != nil {
  5985  			res.Body.Close()
  5986  		}
  5987  		return nil, gensupport.WrapError(&googleapi.Error{
  5988  			Code:   res.StatusCode,
  5989  			Header: res.Header,
  5990  		})
  5991  	}
  5992  	if err != nil {
  5993  		return nil, err
  5994  	}
  5995  	defer googleapi.CloseBody(res)
  5996  	if err := googleapi.CheckResponse(res); err != nil {
  5997  		return nil, gensupport.WrapError(err)
  5998  	}
  5999  	ret := &GoogleCloudDatacatalogV1Contacts{
  6000  		ServerResponse: googleapi.ServerResponse{
  6001  			Header:         res.Header,
  6002  			HTTPStatusCode: res.StatusCode,
  6003  		},
  6004  	}
  6005  	target := &ret
  6006  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6007  		return nil, err
  6008  	}
  6009  	return ret, nil
  6010  }
  6011  
  6012  type ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall struct {
  6013  	s                                                  *Service
  6014  	name                                               string
  6015  	googleclouddatacatalogv1modifyentryoverviewrequest *GoogleCloudDatacatalogV1ModifyEntryOverviewRequest
  6016  	urlParams_                                         gensupport.URLParams
  6017  	ctx_                                               context.Context
  6018  	header_                                            http.Header
  6019  }
  6020  
  6021  // ModifyEntryOverview: Modifies entry overview, part of the business context
  6022  // of an Entry. To call this method, you must have the
  6023  // `datacatalog.entries.updateOverview` IAM permission on the corresponding
  6024  // project.
  6025  //
  6026  // - name: The full resource name of the entry.
  6027  func (r *ProjectsLocationsEntryGroupsEntriesService) ModifyEntryOverview(name string, googleclouddatacatalogv1modifyentryoverviewrequest *GoogleCloudDatacatalogV1ModifyEntryOverviewRequest) *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall {
  6028  	c := &ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6029  	c.name = name
  6030  	c.googleclouddatacatalogv1modifyentryoverviewrequest = googleclouddatacatalogv1modifyentryoverviewrequest
  6031  	return c
  6032  }
  6033  
  6034  // Fields allows partial responses to be retrieved. See
  6035  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6036  // details.
  6037  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall {
  6038  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6039  	return c
  6040  }
  6041  
  6042  // Context sets the context to be used in this call's Do method.
  6043  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall {
  6044  	c.ctx_ = ctx
  6045  	return c
  6046  }
  6047  
  6048  // Header returns a http.Header that can be modified by the caller to add
  6049  // headers to the request.
  6050  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Header() http.Header {
  6051  	if c.header_ == nil {
  6052  		c.header_ = make(http.Header)
  6053  	}
  6054  	return c.header_
  6055  }
  6056  
  6057  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) doRequest(alt string) (*http.Response, error) {
  6058  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6059  	var body io.Reader = nil
  6060  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1modifyentryoverviewrequest)
  6061  	if err != nil {
  6062  		return nil, err
  6063  	}
  6064  	c.urlParams_.Set("alt", alt)
  6065  	c.urlParams_.Set("prettyPrint", "false")
  6066  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:modifyEntryOverview")
  6067  	urls += "?" + c.urlParams_.Encode()
  6068  	req, err := http.NewRequest("POST", urls, body)
  6069  	if err != nil {
  6070  		return nil, err
  6071  	}
  6072  	req.Header = reqHeaders
  6073  	googleapi.Expand(req.URL, map[string]string{
  6074  		"name": c.name,
  6075  	})
  6076  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6077  }
  6078  
  6079  // Do executes the "datacatalog.projects.locations.entryGroups.entries.modifyEntryOverview" call.
  6080  // Any non-2xx status code is an error. Response headers are in either
  6081  // *GoogleCloudDatacatalogV1EntryOverview.ServerResponse.Header or (if a
  6082  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6083  // googleapi.IsNotModified to check whether the returned error was because
  6084  // http.StatusNotModified was returned.
  6085  func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryOverview, error) {
  6086  	gensupport.SetOptions(c.urlParams_, opts...)
  6087  	res, err := c.doRequest("json")
  6088  	if res != nil && res.StatusCode == http.StatusNotModified {
  6089  		if res.Body != nil {
  6090  			res.Body.Close()
  6091  		}
  6092  		return nil, gensupport.WrapError(&googleapi.Error{
  6093  			Code:   res.StatusCode,
  6094  			Header: res.Header,
  6095  		})
  6096  	}
  6097  	if err != nil {
  6098  		return nil, err
  6099  	}
  6100  	defer googleapi.CloseBody(res)
  6101  	if err := googleapi.CheckResponse(res); err != nil {
  6102  		return nil, gensupport.WrapError(err)
  6103  	}
  6104  	ret := &GoogleCloudDatacatalogV1EntryOverview{
  6105  		ServerResponse: googleapi.ServerResponse{
  6106  			Header:         res.Header,
  6107  			HTTPStatusCode: res.StatusCode,
  6108  		},
  6109  	}
  6110  	target := &ret
  6111  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6112  		return nil, err
  6113  	}
  6114  	return ret, nil
  6115  }
  6116  
  6117  type ProjectsLocationsEntryGroupsEntriesPatchCall struct {
  6118  	s                             *Service
  6119  	name                          string
  6120  	googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry
  6121  	urlParams_                    gensupport.URLParams
  6122  	ctx_                          context.Context
  6123  	header_                       http.Header
  6124  }
  6125  
  6126  // Patch: Updates an existing entry. You must enable the Data Catalog API in
  6127  // the project identified by the `entry.name` parameter. For more information,
  6128  // see Data Catalog resource project
  6129  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  6130  //
  6131  //   - name: Output only. Identifier. The resource name of an entry in URL
  6132  //     format. Note: The entry itself and its child resources might not be stored
  6133  //     in the location specified in its name.
  6134  func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry) *ProjectsLocationsEntryGroupsEntriesPatchCall {
  6135  	c := &ProjectsLocationsEntryGroupsEntriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6136  	c.name = name
  6137  	c.googleclouddatacatalogv1entry = googleclouddatacatalogv1entry
  6138  	return c
  6139  }
  6140  
  6141  // UpdateMask sets the optional parameter "updateMask": Names of fields whose
  6142  // values to overwrite on an entry. If this parameter is absent or empty, all
  6143  // modifiable fields are overwritten. If such fields are non-required and
  6144  // omitted in the request body, their values are emptied. You can modify only
  6145  // the fields listed below. For entries with type `DATA_STREAM`: * `schema` For
  6146  // entries with type `FILESET`: * `schema` * `display_name` * `description` *
  6147  // `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` For entries with
  6148  // `user_specified_type`: * `schema` * `display_name` * `description` *
  6149  // `user_specified_type` * `user_specified_system` * `linked_resource` *
  6150  // `source_system_timestamps`
  6151  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesPatchCall {
  6152  	c.urlParams_.Set("updateMask", updateMask)
  6153  	return c
  6154  }
  6155  
  6156  // Fields allows partial responses to be retrieved. See
  6157  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6158  // details.
  6159  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesPatchCall {
  6160  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6161  	return c
  6162  }
  6163  
  6164  // Context sets the context to be used in this call's Do method.
  6165  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesPatchCall {
  6166  	c.ctx_ = ctx
  6167  	return c
  6168  }
  6169  
  6170  // Header returns a http.Header that can be modified by the caller to add
  6171  // headers to the request.
  6172  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header {
  6173  	if c.header_ == nil {
  6174  		c.header_ = make(http.Header)
  6175  	}
  6176  	return c.header_
  6177  }
  6178  
  6179  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*http.Response, error) {
  6180  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6181  	var body io.Reader = nil
  6182  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entry)
  6183  	if err != nil {
  6184  		return nil, err
  6185  	}
  6186  	c.urlParams_.Set("alt", alt)
  6187  	c.urlParams_.Set("prettyPrint", "false")
  6188  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6189  	urls += "?" + c.urlParams_.Encode()
  6190  	req, err := http.NewRequest("PATCH", urls, body)
  6191  	if err != nil {
  6192  		return nil, err
  6193  	}
  6194  	req.Header = reqHeaders
  6195  	googleapi.Expand(req.URL, map[string]string{
  6196  		"name": c.name,
  6197  	})
  6198  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6199  }
  6200  
  6201  // Do executes the "datacatalog.projects.locations.entryGroups.entries.patch" call.
  6202  // Any non-2xx status code is an error. Response headers are in either
  6203  // *GoogleCloudDatacatalogV1Entry.ServerResponse.Header or (if a response was
  6204  // returned at all) in error.(*googleapi.Error).Header. Use
  6205  // googleapi.IsNotModified to check whether the returned error was because
  6206  // http.StatusNotModified was returned.
  6207  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
  6208  	gensupport.SetOptions(c.urlParams_, opts...)
  6209  	res, err := c.doRequest("json")
  6210  	if res != nil && res.StatusCode == http.StatusNotModified {
  6211  		if res.Body != nil {
  6212  			res.Body.Close()
  6213  		}
  6214  		return nil, gensupport.WrapError(&googleapi.Error{
  6215  			Code:   res.StatusCode,
  6216  			Header: res.Header,
  6217  		})
  6218  	}
  6219  	if err != nil {
  6220  		return nil, err
  6221  	}
  6222  	defer googleapi.CloseBody(res)
  6223  	if err := googleapi.CheckResponse(res); err != nil {
  6224  		return nil, gensupport.WrapError(err)
  6225  	}
  6226  	ret := &GoogleCloudDatacatalogV1Entry{
  6227  		ServerResponse: googleapi.ServerResponse{
  6228  			Header:         res.Header,
  6229  			HTTPStatusCode: res.StatusCode,
  6230  		},
  6231  	}
  6232  	target := &ret
  6233  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6234  		return nil, err
  6235  	}
  6236  	return ret, nil
  6237  }
  6238  
  6239  type ProjectsLocationsEntryGroupsEntriesStarCall struct {
  6240  	s                                        *Service
  6241  	name                                     string
  6242  	googleclouddatacatalogv1starentryrequest *GoogleCloudDatacatalogV1StarEntryRequest
  6243  	urlParams_                               gensupport.URLParams
  6244  	ctx_                                     context.Context
  6245  	header_                                  http.Header
  6246  }
  6247  
  6248  // Star: Marks an Entry as starred by the current user. Starring information is
  6249  // private to each user.
  6250  //
  6251  // - name: The name of the entry to mark as starred.
  6252  func (r *ProjectsLocationsEntryGroupsEntriesService) Star(name string, googleclouddatacatalogv1starentryrequest *GoogleCloudDatacatalogV1StarEntryRequest) *ProjectsLocationsEntryGroupsEntriesStarCall {
  6253  	c := &ProjectsLocationsEntryGroupsEntriesStarCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6254  	c.name = name
  6255  	c.googleclouddatacatalogv1starentryrequest = googleclouddatacatalogv1starentryrequest
  6256  	return c
  6257  }
  6258  
  6259  // Fields allows partial responses to be retrieved. See
  6260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6261  // details.
  6262  func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesStarCall {
  6263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6264  	return c
  6265  }
  6266  
  6267  // Context sets the context to be used in this call's Do method.
  6268  func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesStarCall {
  6269  	c.ctx_ = ctx
  6270  	return c
  6271  }
  6272  
  6273  // Header returns a http.Header that can be modified by the caller to add
  6274  // headers to the request.
  6275  func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Header() http.Header {
  6276  	if c.header_ == nil {
  6277  		c.header_ = make(http.Header)
  6278  	}
  6279  	return c.header_
  6280  }
  6281  
  6282  func (c *ProjectsLocationsEntryGroupsEntriesStarCall) doRequest(alt string) (*http.Response, error) {
  6283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6284  	var body io.Reader = nil
  6285  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1starentryrequest)
  6286  	if err != nil {
  6287  		return nil, err
  6288  	}
  6289  	c.urlParams_.Set("alt", alt)
  6290  	c.urlParams_.Set("prettyPrint", "false")
  6291  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:star")
  6292  	urls += "?" + c.urlParams_.Encode()
  6293  	req, err := http.NewRequest("POST", urls, body)
  6294  	if err != nil {
  6295  		return nil, err
  6296  	}
  6297  	req.Header = reqHeaders
  6298  	googleapi.Expand(req.URL, map[string]string{
  6299  		"name": c.name,
  6300  	})
  6301  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6302  }
  6303  
  6304  // Do executes the "datacatalog.projects.locations.entryGroups.entries.star" call.
  6305  // Any non-2xx status code is an error. Response headers are in either
  6306  // *GoogleCloudDatacatalogV1StarEntryResponse.ServerResponse.Header or (if a
  6307  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6308  // googleapi.IsNotModified to check whether the returned error was because
  6309  // http.StatusNotModified was returned.
  6310  func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1StarEntryResponse, error) {
  6311  	gensupport.SetOptions(c.urlParams_, opts...)
  6312  	res, err := c.doRequest("json")
  6313  	if res != nil && res.StatusCode == http.StatusNotModified {
  6314  		if res.Body != nil {
  6315  			res.Body.Close()
  6316  		}
  6317  		return nil, gensupport.WrapError(&googleapi.Error{
  6318  			Code:   res.StatusCode,
  6319  			Header: res.Header,
  6320  		})
  6321  	}
  6322  	if err != nil {
  6323  		return nil, err
  6324  	}
  6325  	defer googleapi.CloseBody(res)
  6326  	if err := googleapi.CheckResponse(res); err != nil {
  6327  		return nil, gensupport.WrapError(err)
  6328  	}
  6329  	ret := &GoogleCloudDatacatalogV1StarEntryResponse{
  6330  		ServerResponse: googleapi.ServerResponse{
  6331  			Header:         res.Header,
  6332  			HTTPStatusCode: res.StatusCode,
  6333  		},
  6334  	}
  6335  	target := &ret
  6336  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6337  		return nil, err
  6338  	}
  6339  	return ret, nil
  6340  }
  6341  
  6342  type ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall struct {
  6343  	s                         *Service
  6344  	resource                  string
  6345  	testiampermissionsrequest *TestIamPermissionsRequest
  6346  	urlParams_                gensupport.URLParams
  6347  	ctx_                      context.Context
  6348  	header_                   http.Header
  6349  }
  6350  
  6351  // TestIamPermissions: Gets your permissions on a resource. Returns an empty
  6352  // set of permissions if the resource doesn't exist. Supported resources are: -
  6353  // Tag templates - Entry groups Note: This method gets policies only within
  6354  // Data Catalog and can't be used to get policies from BigQuery, Pub/Sub,
  6355  // Dataproc Metastore, and any external Google Cloud Platform resources
  6356  // ingested into Data Catalog. No Google IAM permissions are required to call
  6357  // this method.
  6358  //
  6359  //   - resource: REQUIRED: The resource for which the policy detail is being
  6360  //     requested. See Resource names
  6361  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  6362  //     value for this field.
  6363  func (r *ProjectsLocationsEntryGroupsEntriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall {
  6364  	c := &ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6365  	c.resource = resource
  6366  	c.testiampermissionsrequest = testiampermissionsrequest
  6367  	return c
  6368  }
  6369  
  6370  // Fields allows partial responses to be retrieved. See
  6371  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6372  // details.
  6373  func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall {
  6374  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6375  	return c
  6376  }
  6377  
  6378  // Context sets the context to be used in this call's Do method.
  6379  func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall {
  6380  	c.ctx_ = ctx
  6381  	return c
  6382  }
  6383  
  6384  // Header returns a http.Header that can be modified by the caller to add
  6385  // headers to the request.
  6386  func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Header() http.Header {
  6387  	if c.header_ == nil {
  6388  		c.header_ = make(http.Header)
  6389  	}
  6390  	return c.header_
  6391  }
  6392  
  6393  func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  6394  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6395  	var body io.Reader = nil
  6396  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  6397  	if err != nil {
  6398  		return nil, err
  6399  	}
  6400  	c.urlParams_.Set("alt", alt)
  6401  	c.urlParams_.Set("prettyPrint", "false")
  6402  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  6403  	urls += "?" + c.urlParams_.Encode()
  6404  	req, err := http.NewRequest("POST", urls, body)
  6405  	if err != nil {
  6406  		return nil, err
  6407  	}
  6408  	req.Header = reqHeaders
  6409  	googleapi.Expand(req.URL, map[string]string{
  6410  		"resource": c.resource,
  6411  	})
  6412  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6413  }
  6414  
  6415  // Do executes the "datacatalog.projects.locations.entryGroups.entries.testIamPermissions" call.
  6416  // Any non-2xx status code is an error. Response headers are in either
  6417  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  6418  // returned at all) in error.(*googleapi.Error).Header. Use
  6419  // googleapi.IsNotModified to check whether the returned error was because
  6420  // http.StatusNotModified was returned.
  6421  func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  6422  	gensupport.SetOptions(c.urlParams_, opts...)
  6423  	res, err := c.doRequest("json")
  6424  	if res != nil && res.StatusCode == http.StatusNotModified {
  6425  		if res.Body != nil {
  6426  			res.Body.Close()
  6427  		}
  6428  		return nil, gensupport.WrapError(&googleapi.Error{
  6429  			Code:   res.StatusCode,
  6430  			Header: res.Header,
  6431  		})
  6432  	}
  6433  	if err != nil {
  6434  		return nil, err
  6435  	}
  6436  	defer googleapi.CloseBody(res)
  6437  	if err := googleapi.CheckResponse(res); err != nil {
  6438  		return nil, gensupport.WrapError(err)
  6439  	}
  6440  	ret := &TestIamPermissionsResponse{
  6441  		ServerResponse: googleapi.ServerResponse{
  6442  			Header:         res.Header,
  6443  			HTTPStatusCode: res.StatusCode,
  6444  		},
  6445  	}
  6446  	target := &ret
  6447  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6448  		return nil, err
  6449  	}
  6450  	return ret, nil
  6451  }
  6452  
  6453  type ProjectsLocationsEntryGroupsEntriesUnstarCall struct {
  6454  	s                                          *Service
  6455  	name                                       string
  6456  	googleclouddatacatalogv1unstarentryrequest *GoogleCloudDatacatalogV1UnstarEntryRequest
  6457  	urlParams_                                 gensupport.URLParams
  6458  	ctx_                                       context.Context
  6459  	header_                                    http.Header
  6460  }
  6461  
  6462  // Unstar: Marks an Entry as NOT starred by the current user. Starring
  6463  // information is private to each user.
  6464  //
  6465  // - name: The name of the entry to mark as **not** starred.
  6466  func (r *ProjectsLocationsEntryGroupsEntriesService) Unstar(name string, googleclouddatacatalogv1unstarentryrequest *GoogleCloudDatacatalogV1UnstarEntryRequest) *ProjectsLocationsEntryGroupsEntriesUnstarCall {
  6467  	c := &ProjectsLocationsEntryGroupsEntriesUnstarCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6468  	c.name = name
  6469  	c.googleclouddatacatalogv1unstarentryrequest = googleclouddatacatalogv1unstarentryrequest
  6470  	return c
  6471  }
  6472  
  6473  // Fields allows partial responses to be retrieved. See
  6474  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6475  // details.
  6476  func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesUnstarCall {
  6477  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6478  	return c
  6479  }
  6480  
  6481  // Context sets the context to be used in this call's Do method.
  6482  func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesUnstarCall {
  6483  	c.ctx_ = ctx
  6484  	return c
  6485  }
  6486  
  6487  // Header returns a http.Header that can be modified by the caller to add
  6488  // headers to the request.
  6489  func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Header() http.Header {
  6490  	if c.header_ == nil {
  6491  		c.header_ = make(http.Header)
  6492  	}
  6493  	return c.header_
  6494  }
  6495  
  6496  func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) doRequest(alt string) (*http.Response, error) {
  6497  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6498  	var body io.Reader = nil
  6499  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1unstarentryrequest)
  6500  	if err != nil {
  6501  		return nil, err
  6502  	}
  6503  	c.urlParams_.Set("alt", alt)
  6504  	c.urlParams_.Set("prettyPrint", "false")
  6505  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:unstar")
  6506  	urls += "?" + c.urlParams_.Encode()
  6507  	req, err := http.NewRequest("POST", urls, body)
  6508  	if err != nil {
  6509  		return nil, err
  6510  	}
  6511  	req.Header = reqHeaders
  6512  	googleapi.Expand(req.URL, map[string]string{
  6513  		"name": c.name,
  6514  	})
  6515  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6516  }
  6517  
  6518  // Do executes the "datacatalog.projects.locations.entryGroups.entries.unstar" call.
  6519  // Any non-2xx status code is an error. Response headers are in either
  6520  // *GoogleCloudDatacatalogV1UnstarEntryResponse.ServerResponse.Header or (if a
  6521  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6522  // googleapi.IsNotModified to check whether the returned error was because
  6523  // http.StatusNotModified was returned.
  6524  func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1UnstarEntryResponse, error) {
  6525  	gensupport.SetOptions(c.urlParams_, opts...)
  6526  	res, err := c.doRequest("json")
  6527  	if res != nil && res.StatusCode == http.StatusNotModified {
  6528  		if res.Body != nil {
  6529  			res.Body.Close()
  6530  		}
  6531  		return nil, gensupport.WrapError(&googleapi.Error{
  6532  			Code:   res.StatusCode,
  6533  			Header: res.Header,
  6534  		})
  6535  	}
  6536  	if err != nil {
  6537  		return nil, err
  6538  	}
  6539  	defer googleapi.CloseBody(res)
  6540  	if err := googleapi.CheckResponse(res); err != nil {
  6541  		return nil, gensupport.WrapError(err)
  6542  	}
  6543  	ret := &GoogleCloudDatacatalogV1UnstarEntryResponse{
  6544  		ServerResponse: googleapi.ServerResponse{
  6545  			Header:         res.Header,
  6546  			HTTPStatusCode: res.StatusCode,
  6547  		},
  6548  	}
  6549  	target := &ret
  6550  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6551  		return nil, err
  6552  	}
  6553  	return ret, nil
  6554  }
  6555  
  6556  type ProjectsLocationsEntryGroupsEntriesTagsCreateCall struct {
  6557  	s                           *Service
  6558  	parent                      string
  6559  	googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
  6560  	urlParams_                  gensupport.URLParams
  6561  	ctx_                        context.Context
  6562  	header_                     http.Header
  6563  }
  6564  
  6565  // Create: Creates a tag and assigns it to: * An Entry if the method name is
  6566  // `projects.locations.entryGroups.entries.tags.create`. * Or EntryGroupif the
  6567  // method name is `projects.locations.entryGroups.tags.create`. Note: The
  6568  // project identified by the `parent` parameter for the [tag]
  6569  // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
  6570  // and the [tag template]
  6571  // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
  6572  // used to create the tag must be in the same organization.
  6573  //
  6574  //   - parent: The name of the resource to attach this tag to. Tags can be
  6575  //     attached to entries or entry groups. An entry can have up to 1000 attached
  6576  //     tags. Note: The tag and its child resources might not be stored in the
  6577  //     location specified in its name.
  6578  func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Create(parent string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall {
  6579  	c := &ProjectsLocationsEntryGroupsEntriesTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6580  	c.parent = parent
  6581  	c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
  6582  	return c
  6583  }
  6584  
  6585  // Fields allows partial responses to be retrieved. See
  6586  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6587  // details.
  6588  func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall {
  6589  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6590  	return c
  6591  }
  6592  
  6593  // Context sets the context to be used in this call's Do method.
  6594  func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall {
  6595  	c.ctx_ = ctx
  6596  	return c
  6597  }
  6598  
  6599  // Header returns a http.Header that can be modified by the caller to add
  6600  // headers to the request.
  6601  func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Header() http.Header {
  6602  	if c.header_ == nil {
  6603  		c.header_ = make(http.Header)
  6604  	}
  6605  	return c.header_
  6606  }
  6607  
  6608  func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) doRequest(alt string) (*http.Response, error) {
  6609  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6610  	var body io.Reader = nil
  6611  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
  6612  	if err != nil {
  6613  		return nil, err
  6614  	}
  6615  	c.urlParams_.Set("alt", alt)
  6616  	c.urlParams_.Set("prettyPrint", "false")
  6617  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
  6618  	urls += "?" + c.urlParams_.Encode()
  6619  	req, err := http.NewRequest("POST", urls, body)
  6620  	if err != nil {
  6621  		return nil, err
  6622  	}
  6623  	req.Header = reqHeaders
  6624  	googleapi.Expand(req.URL, map[string]string{
  6625  		"parent": c.parent,
  6626  	})
  6627  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6628  }
  6629  
  6630  // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.create" call.
  6631  // Any non-2xx status code is an error. Response headers are in either
  6632  // *GoogleCloudDatacatalogV1Tag.ServerResponse.Header or (if a response was
  6633  // returned at all) in error.(*googleapi.Error).Header. Use
  6634  // googleapi.IsNotModified to check whether the returned error was because
  6635  // http.StatusNotModified was returned.
  6636  func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
  6637  	gensupport.SetOptions(c.urlParams_, opts...)
  6638  	res, err := c.doRequest("json")
  6639  	if res != nil && res.StatusCode == http.StatusNotModified {
  6640  		if res.Body != nil {
  6641  			res.Body.Close()
  6642  		}
  6643  		return nil, gensupport.WrapError(&googleapi.Error{
  6644  			Code:   res.StatusCode,
  6645  			Header: res.Header,
  6646  		})
  6647  	}
  6648  	if err != nil {
  6649  		return nil, err
  6650  	}
  6651  	defer googleapi.CloseBody(res)
  6652  	if err := googleapi.CheckResponse(res); err != nil {
  6653  		return nil, gensupport.WrapError(err)
  6654  	}
  6655  	ret := &GoogleCloudDatacatalogV1Tag{
  6656  		ServerResponse: googleapi.ServerResponse{
  6657  			Header:         res.Header,
  6658  			HTTPStatusCode: res.StatusCode,
  6659  		},
  6660  	}
  6661  	target := &ret
  6662  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6663  		return nil, err
  6664  	}
  6665  	return ret, nil
  6666  }
  6667  
  6668  type ProjectsLocationsEntryGroupsEntriesTagsDeleteCall struct {
  6669  	s          *Service
  6670  	name       string
  6671  	urlParams_ gensupport.URLParams
  6672  	ctx_       context.Context
  6673  	header_    http.Header
  6674  }
  6675  
  6676  // Delete: Deletes a tag.
  6677  //
  6678  // - name: The name of the tag to delete.
  6679  func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall {
  6680  	c := &ProjectsLocationsEntryGroupsEntriesTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6681  	c.name = name
  6682  	return c
  6683  }
  6684  
  6685  // Fields allows partial responses to be retrieved. See
  6686  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6687  // details.
  6688  func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall {
  6689  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6690  	return c
  6691  }
  6692  
  6693  // Context sets the context to be used in this call's Do method.
  6694  func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall {
  6695  	c.ctx_ = ctx
  6696  	return c
  6697  }
  6698  
  6699  // Header returns a http.Header that can be modified by the caller to add
  6700  // headers to the request.
  6701  func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Header() http.Header {
  6702  	if c.header_ == nil {
  6703  		c.header_ = make(http.Header)
  6704  	}
  6705  	return c.header_
  6706  }
  6707  
  6708  func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6709  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6710  	var body io.Reader = nil
  6711  	c.urlParams_.Set("alt", alt)
  6712  	c.urlParams_.Set("prettyPrint", "false")
  6713  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6714  	urls += "?" + c.urlParams_.Encode()
  6715  	req, err := http.NewRequest("DELETE", urls, body)
  6716  	if err != nil {
  6717  		return nil, err
  6718  	}
  6719  	req.Header = reqHeaders
  6720  	googleapi.Expand(req.URL, map[string]string{
  6721  		"name": c.name,
  6722  	})
  6723  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6724  }
  6725  
  6726  // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.delete" call.
  6727  // Any non-2xx status code is an error. Response headers are in either
  6728  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  6729  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6730  // whether the returned error was because http.StatusNotModified was returned.
  6731  func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6732  	gensupport.SetOptions(c.urlParams_, opts...)
  6733  	res, err := c.doRequest("json")
  6734  	if res != nil && res.StatusCode == http.StatusNotModified {
  6735  		if res.Body != nil {
  6736  			res.Body.Close()
  6737  		}
  6738  		return nil, gensupport.WrapError(&googleapi.Error{
  6739  			Code:   res.StatusCode,
  6740  			Header: res.Header,
  6741  		})
  6742  	}
  6743  	if err != nil {
  6744  		return nil, err
  6745  	}
  6746  	defer googleapi.CloseBody(res)
  6747  	if err := googleapi.CheckResponse(res); err != nil {
  6748  		return nil, gensupport.WrapError(err)
  6749  	}
  6750  	ret := &Empty{
  6751  		ServerResponse: googleapi.ServerResponse{
  6752  			Header:         res.Header,
  6753  			HTTPStatusCode: res.StatusCode,
  6754  		},
  6755  	}
  6756  	target := &ret
  6757  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6758  		return nil, err
  6759  	}
  6760  	return ret, nil
  6761  }
  6762  
  6763  type ProjectsLocationsEntryGroupsEntriesTagsListCall struct {
  6764  	s            *Service
  6765  	parent       string
  6766  	urlParams_   gensupport.URLParams
  6767  	ifNoneMatch_ string
  6768  	ctx_         context.Context
  6769  	header_      http.Header
  6770  }
  6771  
  6772  // List: Lists tags assigned to an Entry. The columns in the response are
  6773  // lowercased.
  6774  //
  6775  //   - parent: The name of the Data Catalog resource to list the tags of. The
  6776  //     resource can be an Entry or an EntryGroup (without `/entries/{entries}` at
  6777  //     the end).
  6778  func (r *ProjectsLocationsEntryGroupsEntriesTagsService) List(parent string) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
  6779  	c := &ProjectsLocationsEntryGroupsEntriesTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6780  	c.parent = parent
  6781  	return c
  6782  }
  6783  
  6784  // PageSize sets the optional parameter "pageSize": The maximum number of tags
  6785  // to return. Default is 10. Maximum limit is 1000.
  6786  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
  6787  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6788  	return c
  6789  }
  6790  
  6791  // PageToken sets the optional parameter "pageToken": Pagination token that
  6792  // specifies the next page to return. If empty, the first page is returned.
  6793  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
  6794  	c.urlParams_.Set("pageToken", pageToken)
  6795  	return c
  6796  }
  6797  
  6798  // Fields allows partial responses to be retrieved. See
  6799  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6800  // details.
  6801  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
  6802  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6803  	return c
  6804  }
  6805  
  6806  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6807  // object's ETag matches the given value. This is useful for getting updates
  6808  // only after the object has changed since the last request.
  6809  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
  6810  	c.ifNoneMatch_ = entityTag
  6811  	return c
  6812  }
  6813  
  6814  // Context sets the context to be used in this call's Do method.
  6815  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
  6816  	c.ctx_ = ctx
  6817  	return c
  6818  }
  6819  
  6820  // Header returns a http.Header that can be modified by the caller to add
  6821  // headers to the request.
  6822  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Header() http.Header {
  6823  	if c.header_ == nil {
  6824  		c.header_ = make(http.Header)
  6825  	}
  6826  	return c.header_
  6827  }
  6828  
  6829  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) doRequest(alt string) (*http.Response, error) {
  6830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6831  	if c.ifNoneMatch_ != "" {
  6832  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6833  	}
  6834  	var body io.Reader = nil
  6835  	c.urlParams_.Set("alt", alt)
  6836  	c.urlParams_.Set("prettyPrint", "false")
  6837  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
  6838  	urls += "?" + c.urlParams_.Encode()
  6839  	req, err := http.NewRequest("GET", urls, body)
  6840  	if err != nil {
  6841  		return nil, err
  6842  	}
  6843  	req.Header = reqHeaders
  6844  	googleapi.Expand(req.URL, map[string]string{
  6845  		"parent": c.parent,
  6846  	})
  6847  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6848  }
  6849  
  6850  // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.list" call.
  6851  // Any non-2xx status code is an error. Response headers are in either
  6852  // *GoogleCloudDatacatalogV1ListTagsResponse.ServerResponse.Header or (if a
  6853  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6854  // googleapi.IsNotModified to check whether the returned error was because
  6855  // http.StatusNotModified was returned.
  6856  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListTagsResponse, error) {
  6857  	gensupport.SetOptions(c.urlParams_, opts...)
  6858  	res, err := c.doRequest("json")
  6859  	if res != nil && res.StatusCode == http.StatusNotModified {
  6860  		if res.Body != nil {
  6861  			res.Body.Close()
  6862  		}
  6863  		return nil, gensupport.WrapError(&googleapi.Error{
  6864  			Code:   res.StatusCode,
  6865  			Header: res.Header,
  6866  		})
  6867  	}
  6868  	if err != nil {
  6869  		return nil, err
  6870  	}
  6871  	defer googleapi.CloseBody(res)
  6872  	if err := googleapi.CheckResponse(res); err != nil {
  6873  		return nil, gensupport.WrapError(err)
  6874  	}
  6875  	ret := &GoogleCloudDatacatalogV1ListTagsResponse{
  6876  		ServerResponse: googleapi.ServerResponse{
  6877  			Header:         res.Header,
  6878  			HTTPStatusCode: res.StatusCode,
  6879  		},
  6880  	}
  6881  	target := &ret
  6882  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6883  		return nil, err
  6884  	}
  6885  	return ret, nil
  6886  }
  6887  
  6888  // Pages invokes f for each page of results.
  6889  // A non-nil error returned from f will halt the iteration.
  6890  // The provided context supersedes any context provided to the Context method.
  6891  func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListTagsResponse) error) error {
  6892  	c.ctx_ = ctx
  6893  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6894  	for {
  6895  		x, err := c.Do()
  6896  		if err != nil {
  6897  			return err
  6898  		}
  6899  		if err := f(x); err != nil {
  6900  			return err
  6901  		}
  6902  		if x.NextPageToken == "" {
  6903  			return nil
  6904  		}
  6905  		c.PageToken(x.NextPageToken)
  6906  	}
  6907  }
  6908  
  6909  type ProjectsLocationsEntryGroupsEntriesTagsPatchCall struct {
  6910  	s                           *Service
  6911  	nameid                      string
  6912  	googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
  6913  	urlParams_                  gensupport.URLParams
  6914  	ctx_                        context.Context
  6915  	header_                     http.Header
  6916  }
  6917  
  6918  // Patch: Updates an existing tag.
  6919  //
  6920  //   - name: Identifier. The resource name of the tag in URL format where tag ID
  6921  //     is a system-generated identifier. Note: The tag itself might not be stored
  6922  //     in the location specified in its name.
  6923  func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Patch(nameid string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
  6924  	c := &ProjectsLocationsEntryGroupsEntriesTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6925  	c.nameid = nameid
  6926  	c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
  6927  	return c
  6928  }
  6929  
  6930  // UpdateMask sets the optional parameter "updateMask": Names of fields whose
  6931  // values to overwrite on a tag. Currently, a tag has the only modifiable field
  6932  // with the name `fields`. In general, if this parameter is absent or empty,
  6933  // all modifiable fields are overwritten. If such fields are non-required and
  6934  // omitted in the request body, their values are emptied.
  6935  func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
  6936  	c.urlParams_.Set("updateMask", updateMask)
  6937  	return c
  6938  }
  6939  
  6940  // Fields allows partial responses to be retrieved. See
  6941  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6942  // details.
  6943  func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
  6944  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6945  	return c
  6946  }
  6947  
  6948  // Context sets the context to be used in this call's Do method.
  6949  func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
  6950  	c.ctx_ = ctx
  6951  	return c
  6952  }
  6953  
  6954  // Header returns a http.Header that can be modified by the caller to add
  6955  // headers to the request.
  6956  func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Header() http.Header {
  6957  	if c.header_ == nil {
  6958  		c.header_ = make(http.Header)
  6959  	}
  6960  	return c.header_
  6961  }
  6962  
  6963  func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) doRequest(alt string) (*http.Response, error) {
  6964  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6965  	var body io.Reader = nil
  6966  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
  6967  	if err != nil {
  6968  		return nil, err
  6969  	}
  6970  	c.urlParams_.Set("alt", alt)
  6971  	c.urlParams_.Set("prettyPrint", "false")
  6972  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6973  	urls += "?" + c.urlParams_.Encode()
  6974  	req, err := http.NewRequest("PATCH", urls, body)
  6975  	if err != nil {
  6976  		return nil, err
  6977  	}
  6978  	req.Header = reqHeaders
  6979  	googleapi.Expand(req.URL, map[string]string{
  6980  		"name": c.nameid,
  6981  	})
  6982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6983  }
  6984  
  6985  // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.patch" call.
  6986  // Any non-2xx status code is an error. Response headers are in either
  6987  // *GoogleCloudDatacatalogV1Tag.ServerResponse.Header or (if a response was
  6988  // returned at all) in error.(*googleapi.Error).Header. Use
  6989  // googleapi.IsNotModified to check whether the returned error was because
  6990  // http.StatusNotModified was returned.
  6991  func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
  6992  	gensupport.SetOptions(c.urlParams_, opts...)
  6993  	res, err := c.doRequest("json")
  6994  	if res != nil && res.StatusCode == http.StatusNotModified {
  6995  		if res.Body != nil {
  6996  			res.Body.Close()
  6997  		}
  6998  		return nil, gensupport.WrapError(&googleapi.Error{
  6999  			Code:   res.StatusCode,
  7000  			Header: res.Header,
  7001  		})
  7002  	}
  7003  	if err != nil {
  7004  		return nil, err
  7005  	}
  7006  	defer googleapi.CloseBody(res)
  7007  	if err := googleapi.CheckResponse(res); err != nil {
  7008  		return nil, gensupport.WrapError(err)
  7009  	}
  7010  	ret := &GoogleCloudDatacatalogV1Tag{
  7011  		ServerResponse: googleapi.ServerResponse{
  7012  			Header:         res.Header,
  7013  			HTTPStatusCode: res.StatusCode,
  7014  		},
  7015  	}
  7016  	target := &ret
  7017  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7018  		return nil, err
  7019  	}
  7020  	return ret, nil
  7021  }
  7022  
  7023  type ProjectsLocationsEntryGroupsEntriesTagsReconcileCall struct {
  7024  	s                                            *Service
  7025  	parent                                       string
  7026  	googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest
  7027  	urlParams_                                   gensupport.URLParams
  7028  	ctx_                                         context.Context
  7029  	header_                                      http.Header
  7030  }
  7031  
  7032  // Reconcile: `ReconcileTags` creates or updates a list of tags on the entry.
  7033  // If the ReconcileTagsRequest.force_delete_missing parameter is set, the
  7034  // operation deletes tags not included in the input tag list. `ReconcileTags`
  7035  // returns a long-running operation resource that can be queried with
  7036  // Operations.GetOperation to return ReconcileTagsMetadata and a
  7037  // ReconcileTagsResponse message.
  7038  //
  7039  // - parent: Name of Entry to be tagged.
  7040  func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Reconcile(parent string, googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall {
  7041  	c := &ProjectsLocationsEntryGroupsEntriesTagsReconcileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7042  	c.parent = parent
  7043  	c.googleclouddatacatalogv1reconciletagsrequest = googleclouddatacatalogv1reconciletagsrequest
  7044  	return c
  7045  }
  7046  
  7047  // Fields allows partial responses to be retrieved. See
  7048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7049  // details.
  7050  func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall {
  7051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7052  	return c
  7053  }
  7054  
  7055  // Context sets the context to be used in this call's Do method.
  7056  func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall {
  7057  	c.ctx_ = ctx
  7058  	return c
  7059  }
  7060  
  7061  // Header returns a http.Header that can be modified by the caller to add
  7062  // headers to the request.
  7063  func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Header() http.Header {
  7064  	if c.header_ == nil {
  7065  		c.header_ = make(http.Header)
  7066  	}
  7067  	return c.header_
  7068  }
  7069  
  7070  func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) doRequest(alt string) (*http.Response, error) {
  7071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7072  	var body io.Reader = nil
  7073  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1reconciletagsrequest)
  7074  	if err != nil {
  7075  		return nil, err
  7076  	}
  7077  	c.urlParams_.Set("alt", alt)
  7078  	c.urlParams_.Set("prettyPrint", "false")
  7079  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags:reconcile")
  7080  	urls += "?" + c.urlParams_.Encode()
  7081  	req, err := http.NewRequest("POST", urls, body)
  7082  	if err != nil {
  7083  		return nil, err
  7084  	}
  7085  	req.Header = reqHeaders
  7086  	googleapi.Expand(req.URL, map[string]string{
  7087  		"parent": c.parent,
  7088  	})
  7089  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7090  }
  7091  
  7092  // Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.reconcile" call.
  7093  // Any non-2xx status code is an error. Response headers are in either
  7094  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7095  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7096  // whether the returned error was because http.StatusNotModified was returned.
  7097  func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7098  	gensupport.SetOptions(c.urlParams_, opts...)
  7099  	res, err := c.doRequest("json")
  7100  	if res != nil && res.StatusCode == http.StatusNotModified {
  7101  		if res.Body != nil {
  7102  			res.Body.Close()
  7103  		}
  7104  		return nil, gensupport.WrapError(&googleapi.Error{
  7105  			Code:   res.StatusCode,
  7106  			Header: res.Header,
  7107  		})
  7108  	}
  7109  	if err != nil {
  7110  		return nil, err
  7111  	}
  7112  	defer googleapi.CloseBody(res)
  7113  	if err := googleapi.CheckResponse(res); err != nil {
  7114  		return nil, gensupport.WrapError(err)
  7115  	}
  7116  	ret := &Operation{
  7117  		ServerResponse: googleapi.ServerResponse{
  7118  			Header:         res.Header,
  7119  			HTTPStatusCode: res.StatusCode,
  7120  		},
  7121  	}
  7122  	target := &ret
  7123  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7124  		return nil, err
  7125  	}
  7126  	return ret, nil
  7127  }
  7128  
  7129  type ProjectsLocationsEntryGroupsTagsCreateCall struct {
  7130  	s                           *Service
  7131  	parent                      string
  7132  	googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
  7133  	urlParams_                  gensupport.URLParams
  7134  	ctx_                        context.Context
  7135  	header_                     http.Header
  7136  }
  7137  
  7138  // Create: Creates a tag and assigns it to: * An Entry if the method name is
  7139  // `projects.locations.entryGroups.entries.tags.create`. * Or EntryGroupif the
  7140  // method name is `projects.locations.entryGroups.tags.create`. Note: The
  7141  // project identified by the `parent` parameter for the [tag]
  7142  // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
  7143  // and the [tag template]
  7144  // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
  7145  // used to create the tag must be in the same organization.
  7146  //
  7147  //   - parent: The name of the resource to attach this tag to. Tags can be
  7148  //     attached to entries or entry groups. An entry can have up to 1000 attached
  7149  //     tags. Note: The tag and its child resources might not be stored in the
  7150  //     location specified in its name.
  7151  func (r *ProjectsLocationsEntryGroupsTagsService) Create(parent string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsTagsCreateCall {
  7152  	c := &ProjectsLocationsEntryGroupsTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7153  	c.parent = parent
  7154  	c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
  7155  	return c
  7156  }
  7157  
  7158  // Fields allows partial responses to be retrieved. See
  7159  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7160  // details.
  7161  func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsCreateCall {
  7162  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7163  	return c
  7164  }
  7165  
  7166  // Context sets the context to be used in this call's Do method.
  7167  func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsCreateCall {
  7168  	c.ctx_ = ctx
  7169  	return c
  7170  }
  7171  
  7172  // Header returns a http.Header that can be modified by the caller to add
  7173  // headers to the request.
  7174  func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Header() http.Header {
  7175  	if c.header_ == nil {
  7176  		c.header_ = make(http.Header)
  7177  	}
  7178  	return c.header_
  7179  }
  7180  
  7181  func (c *ProjectsLocationsEntryGroupsTagsCreateCall) doRequest(alt string) (*http.Response, error) {
  7182  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7183  	var body io.Reader = nil
  7184  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
  7185  	if err != nil {
  7186  		return nil, err
  7187  	}
  7188  	c.urlParams_.Set("alt", alt)
  7189  	c.urlParams_.Set("prettyPrint", "false")
  7190  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
  7191  	urls += "?" + c.urlParams_.Encode()
  7192  	req, err := http.NewRequest("POST", urls, body)
  7193  	if err != nil {
  7194  		return nil, err
  7195  	}
  7196  	req.Header = reqHeaders
  7197  	googleapi.Expand(req.URL, map[string]string{
  7198  		"parent": c.parent,
  7199  	})
  7200  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7201  }
  7202  
  7203  // Do executes the "datacatalog.projects.locations.entryGroups.tags.create" call.
  7204  // Any non-2xx status code is an error. Response headers are in either
  7205  // *GoogleCloudDatacatalogV1Tag.ServerResponse.Header or (if a response was
  7206  // returned at all) in error.(*googleapi.Error).Header. Use
  7207  // googleapi.IsNotModified to check whether the returned error was because
  7208  // http.StatusNotModified was returned.
  7209  func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
  7210  	gensupport.SetOptions(c.urlParams_, opts...)
  7211  	res, err := c.doRequest("json")
  7212  	if res != nil && res.StatusCode == http.StatusNotModified {
  7213  		if res.Body != nil {
  7214  			res.Body.Close()
  7215  		}
  7216  		return nil, gensupport.WrapError(&googleapi.Error{
  7217  			Code:   res.StatusCode,
  7218  			Header: res.Header,
  7219  		})
  7220  	}
  7221  	if err != nil {
  7222  		return nil, err
  7223  	}
  7224  	defer googleapi.CloseBody(res)
  7225  	if err := googleapi.CheckResponse(res); err != nil {
  7226  		return nil, gensupport.WrapError(err)
  7227  	}
  7228  	ret := &GoogleCloudDatacatalogV1Tag{
  7229  		ServerResponse: googleapi.ServerResponse{
  7230  			Header:         res.Header,
  7231  			HTTPStatusCode: res.StatusCode,
  7232  		},
  7233  	}
  7234  	target := &ret
  7235  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7236  		return nil, err
  7237  	}
  7238  	return ret, nil
  7239  }
  7240  
  7241  type ProjectsLocationsEntryGroupsTagsDeleteCall struct {
  7242  	s          *Service
  7243  	name       string
  7244  	urlParams_ gensupport.URLParams
  7245  	ctx_       context.Context
  7246  	header_    http.Header
  7247  }
  7248  
  7249  // Delete: Deletes a tag.
  7250  //
  7251  // - name: The name of the tag to delete.
  7252  func (r *ProjectsLocationsEntryGroupsTagsService) Delete(name string) *ProjectsLocationsEntryGroupsTagsDeleteCall {
  7253  	c := &ProjectsLocationsEntryGroupsTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7254  	c.name = name
  7255  	return c
  7256  }
  7257  
  7258  // Fields allows partial responses to be retrieved. See
  7259  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7260  // details.
  7261  func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsDeleteCall {
  7262  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7263  	return c
  7264  }
  7265  
  7266  // Context sets the context to be used in this call's Do method.
  7267  func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsDeleteCall {
  7268  	c.ctx_ = ctx
  7269  	return c
  7270  }
  7271  
  7272  // Header returns a http.Header that can be modified by the caller to add
  7273  // headers to the request.
  7274  func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Header() http.Header {
  7275  	if c.header_ == nil {
  7276  		c.header_ = make(http.Header)
  7277  	}
  7278  	return c.header_
  7279  }
  7280  
  7281  func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7282  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7283  	var body io.Reader = nil
  7284  	c.urlParams_.Set("alt", alt)
  7285  	c.urlParams_.Set("prettyPrint", "false")
  7286  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7287  	urls += "?" + c.urlParams_.Encode()
  7288  	req, err := http.NewRequest("DELETE", urls, body)
  7289  	if err != nil {
  7290  		return nil, err
  7291  	}
  7292  	req.Header = reqHeaders
  7293  	googleapi.Expand(req.URL, map[string]string{
  7294  		"name": c.name,
  7295  	})
  7296  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7297  }
  7298  
  7299  // Do executes the "datacatalog.projects.locations.entryGroups.tags.delete" call.
  7300  // Any non-2xx status code is an error. Response headers are in either
  7301  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  7302  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7303  // whether the returned error was because http.StatusNotModified was returned.
  7304  func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7305  	gensupport.SetOptions(c.urlParams_, opts...)
  7306  	res, err := c.doRequest("json")
  7307  	if res != nil && res.StatusCode == http.StatusNotModified {
  7308  		if res.Body != nil {
  7309  			res.Body.Close()
  7310  		}
  7311  		return nil, gensupport.WrapError(&googleapi.Error{
  7312  			Code:   res.StatusCode,
  7313  			Header: res.Header,
  7314  		})
  7315  	}
  7316  	if err != nil {
  7317  		return nil, err
  7318  	}
  7319  	defer googleapi.CloseBody(res)
  7320  	if err := googleapi.CheckResponse(res); err != nil {
  7321  		return nil, gensupport.WrapError(err)
  7322  	}
  7323  	ret := &Empty{
  7324  		ServerResponse: googleapi.ServerResponse{
  7325  			Header:         res.Header,
  7326  			HTTPStatusCode: res.StatusCode,
  7327  		},
  7328  	}
  7329  	target := &ret
  7330  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7331  		return nil, err
  7332  	}
  7333  	return ret, nil
  7334  }
  7335  
  7336  type ProjectsLocationsEntryGroupsTagsListCall struct {
  7337  	s            *Service
  7338  	parent       string
  7339  	urlParams_   gensupport.URLParams
  7340  	ifNoneMatch_ string
  7341  	ctx_         context.Context
  7342  	header_      http.Header
  7343  }
  7344  
  7345  // List: Lists tags assigned to an Entry. The columns in the response are
  7346  // lowercased.
  7347  //
  7348  //   - parent: The name of the Data Catalog resource to list the tags of. The
  7349  //     resource can be an Entry or an EntryGroup (without `/entries/{entries}` at
  7350  //     the end).
  7351  func (r *ProjectsLocationsEntryGroupsTagsService) List(parent string) *ProjectsLocationsEntryGroupsTagsListCall {
  7352  	c := &ProjectsLocationsEntryGroupsTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7353  	c.parent = parent
  7354  	return c
  7355  }
  7356  
  7357  // PageSize sets the optional parameter "pageSize": The maximum number of tags
  7358  // to return. Default is 10. Maximum limit is 1000.
  7359  func (c *ProjectsLocationsEntryGroupsTagsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsTagsListCall {
  7360  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7361  	return c
  7362  }
  7363  
  7364  // PageToken sets the optional parameter "pageToken": Pagination token that
  7365  // specifies the next page to return. If empty, the first page is returned.
  7366  func (c *ProjectsLocationsEntryGroupsTagsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsTagsListCall {
  7367  	c.urlParams_.Set("pageToken", pageToken)
  7368  	return c
  7369  }
  7370  
  7371  // Fields allows partial responses to be retrieved. See
  7372  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7373  // details.
  7374  func (c *ProjectsLocationsEntryGroupsTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsListCall {
  7375  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7376  	return c
  7377  }
  7378  
  7379  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7380  // object's ETag matches the given value. This is useful for getting updates
  7381  // only after the object has changed since the last request.
  7382  func (c *ProjectsLocationsEntryGroupsTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsTagsListCall {
  7383  	c.ifNoneMatch_ = entityTag
  7384  	return c
  7385  }
  7386  
  7387  // Context sets the context to be used in this call's Do method.
  7388  func (c *ProjectsLocationsEntryGroupsTagsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsListCall {
  7389  	c.ctx_ = ctx
  7390  	return c
  7391  }
  7392  
  7393  // Header returns a http.Header that can be modified by the caller to add
  7394  // headers to the request.
  7395  func (c *ProjectsLocationsEntryGroupsTagsListCall) Header() http.Header {
  7396  	if c.header_ == nil {
  7397  		c.header_ = make(http.Header)
  7398  	}
  7399  	return c.header_
  7400  }
  7401  
  7402  func (c *ProjectsLocationsEntryGroupsTagsListCall) doRequest(alt string) (*http.Response, error) {
  7403  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7404  	if c.ifNoneMatch_ != "" {
  7405  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7406  	}
  7407  	var body io.Reader = nil
  7408  	c.urlParams_.Set("alt", alt)
  7409  	c.urlParams_.Set("prettyPrint", "false")
  7410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
  7411  	urls += "?" + c.urlParams_.Encode()
  7412  	req, err := http.NewRequest("GET", urls, body)
  7413  	if err != nil {
  7414  		return nil, err
  7415  	}
  7416  	req.Header = reqHeaders
  7417  	googleapi.Expand(req.URL, map[string]string{
  7418  		"parent": c.parent,
  7419  	})
  7420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7421  }
  7422  
  7423  // Do executes the "datacatalog.projects.locations.entryGroups.tags.list" call.
  7424  // Any non-2xx status code is an error. Response headers are in either
  7425  // *GoogleCloudDatacatalogV1ListTagsResponse.ServerResponse.Header or (if a
  7426  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7427  // googleapi.IsNotModified to check whether the returned error was because
  7428  // http.StatusNotModified was returned.
  7429  func (c *ProjectsLocationsEntryGroupsTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListTagsResponse, error) {
  7430  	gensupport.SetOptions(c.urlParams_, opts...)
  7431  	res, err := c.doRequest("json")
  7432  	if res != nil && res.StatusCode == http.StatusNotModified {
  7433  		if res.Body != nil {
  7434  			res.Body.Close()
  7435  		}
  7436  		return nil, gensupport.WrapError(&googleapi.Error{
  7437  			Code:   res.StatusCode,
  7438  			Header: res.Header,
  7439  		})
  7440  	}
  7441  	if err != nil {
  7442  		return nil, err
  7443  	}
  7444  	defer googleapi.CloseBody(res)
  7445  	if err := googleapi.CheckResponse(res); err != nil {
  7446  		return nil, gensupport.WrapError(err)
  7447  	}
  7448  	ret := &GoogleCloudDatacatalogV1ListTagsResponse{
  7449  		ServerResponse: googleapi.ServerResponse{
  7450  			Header:         res.Header,
  7451  			HTTPStatusCode: res.StatusCode,
  7452  		},
  7453  	}
  7454  	target := &ret
  7455  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7456  		return nil, err
  7457  	}
  7458  	return ret, nil
  7459  }
  7460  
  7461  // Pages invokes f for each page of results.
  7462  // A non-nil error returned from f will halt the iteration.
  7463  // The provided context supersedes any context provided to the Context method.
  7464  func (c *ProjectsLocationsEntryGroupsTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListTagsResponse) error) error {
  7465  	c.ctx_ = ctx
  7466  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7467  	for {
  7468  		x, err := c.Do()
  7469  		if err != nil {
  7470  			return err
  7471  		}
  7472  		if err := f(x); err != nil {
  7473  			return err
  7474  		}
  7475  		if x.NextPageToken == "" {
  7476  			return nil
  7477  		}
  7478  		c.PageToken(x.NextPageToken)
  7479  	}
  7480  }
  7481  
  7482  type ProjectsLocationsEntryGroupsTagsPatchCall struct {
  7483  	s                           *Service
  7484  	nameid                      string
  7485  	googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
  7486  	urlParams_                  gensupport.URLParams
  7487  	ctx_                        context.Context
  7488  	header_                     http.Header
  7489  }
  7490  
  7491  // Patch: Updates an existing tag.
  7492  //
  7493  //   - name: Identifier. The resource name of the tag in URL format where tag ID
  7494  //     is a system-generated identifier. Note: The tag itself might not be stored
  7495  //     in the location specified in its name.
  7496  func (r *ProjectsLocationsEntryGroupsTagsService) Patch(nameid string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsTagsPatchCall {
  7497  	c := &ProjectsLocationsEntryGroupsTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7498  	c.nameid = nameid
  7499  	c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
  7500  	return c
  7501  }
  7502  
  7503  // UpdateMask sets the optional parameter "updateMask": Names of fields whose
  7504  // values to overwrite on a tag. Currently, a tag has the only modifiable field
  7505  // with the name `fields`. In general, if this parameter is absent or empty,
  7506  // all modifiable fields are overwritten. If such fields are non-required and
  7507  // omitted in the request body, their values are emptied.
  7508  func (c *ProjectsLocationsEntryGroupsTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsTagsPatchCall {
  7509  	c.urlParams_.Set("updateMask", updateMask)
  7510  	return c
  7511  }
  7512  
  7513  // Fields allows partial responses to be retrieved. See
  7514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7515  // details.
  7516  func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsPatchCall {
  7517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7518  	return c
  7519  }
  7520  
  7521  // Context sets the context to be used in this call's Do method.
  7522  func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsPatchCall {
  7523  	c.ctx_ = ctx
  7524  	return c
  7525  }
  7526  
  7527  // Header returns a http.Header that can be modified by the caller to add
  7528  // headers to the request.
  7529  func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Header() http.Header {
  7530  	if c.header_ == nil {
  7531  		c.header_ = make(http.Header)
  7532  	}
  7533  	return c.header_
  7534  }
  7535  
  7536  func (c *ProjectsLocationsEntryGroupsTagsPatchCall) doRequest(alt string) (*http.Response, error) {
  7537  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7538  	var body io.Reader = nil
  7539  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
  7540  	if err != nil {
  7541  		return nil, err
  7542  	}
  7543  	c.urlParams_.Set("alt", alt)
  7544  	c.urlParams_.Set("prettyPrint", "false")
  7545  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7546  	urls += "?" + c.urlParams_.Encode()
  7547  	req, err := http.NewRequest("PATCH", urls, body)
  7548  	if err != nil {
  7549  		return nil, err
  7550  	}
  7551  	req.Header = reqHeaders
  7552  	googleapi.Expand(req.URL, map[string]string{
  7553  		"name": c.nameid,
  7554  	})
  7555  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7556  }
  7557  
  7558  // Do executes the "datacatalog.projects.locations.entryGroups.tags.patch" call.
  7559  // Any non-2xx status code is an error. Response headers are in either
  7560  // *GoogleCloudDatacatalogV1Tag.ServerResponse.Header or (if a response was
  7561  // returned at all) in error.(*googleapi.Error).Header. Use
  7562  // googleapi.IsNotModified to check whether the returned error was because
  7563  // http.StatusNotModified was returned.
  7564  func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
  7565  	gensupport.SetOptions(c.urlParams_, opts...)
  7566  	res, err := c.doRequest("json")
  7567  	if res != nil && res.StatusCode == http.StatusNotModified {
  7568  		if res.Body != nil {
  7569  			res.Body.Close()
  7570  		}
  7571  		return nil, gensupport.WrapError(&googleapi.Error{
  7572  			Code:   res.StatusCode,
  7573  			Header: res.Header,
  7574  		})
  7575  	}
  7576  	if err != nil {
  7577  		return nil, err
  7578  	}
  7579  	defer googleapi.CloseBody(res)
  7580  	if err := googleapi.CheckResponse(res); err != nil {
  7581  		return nil, gensupport.WrapError(err)
  7582  	}
  7583  	ret := &GoogleCloudDatacatalogV1Tag{
  7584  		ServerResponse: googleapi.ServerResponse{
  7585  			Header:         res.Header,
  7586  			HTTPStatusCode: res.StatusCode,
  7587  		},
  7588  	}
  7589  	target := &ret
  7590  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7591  		return nil, err
  7592  	}
  7593  	return ret, nil
  7594  }
  7595  
  7596  type ProjectsLocationsOperationsCancelCall struct {
  7597  	s          *Service
  7598  	name       string
  7599  	urlParams_ gensupport.URLParams
  7600  	ctx_       context.Context
  7601  	header_    http.Header
  7602  }
  7603  
  7604  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  7605  // server makes a best effort to cancel the operation, but success is not
  7606  // guaranteed. If the server doesn't support this method, it returns
  7607  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  7608  // other methods to check whether the cancellation succeeded or whether the
  7609  // operation completed despite cancellation. On successful cancellation, the
  7610  // operation is not deleted; instead, it becomes an operation with an
  7611  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  7612  // `Code.CANCELLED`.
  7613  //
  7614  // - name: The name of the operation resource to be cancelled.
  7615  func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
  7616  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7617  	c.name = name
  7618  	return c
  7619  }
  7620  
  7621  // Fields allows partial responses to be retrieved. See
  7622  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7623  // details.
  7624  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
  7625  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7626  	return c
  7627  }
  7628  
  7629  // Context sets the context to be used in this call's Do method.
  7630  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
  7631  	c.ctx_ = ctx
  7632  	return c
  7633  }
  7634  
  7635  // Header returns a http.Header that can be modified by the caller to add
  7636  // headers to the request.
  7637  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
  7638  	if c.header_ == nil {
  7639  		c.header_ = make(http.Header)
  7640  	}
  7641  	return c.header_
  7642  }
  7643  
  7644  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  7645  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7646  	var body io.Reader = nil
  7647  	c.urlParams_.Set("alt", alt)
  7648  	c.urlParams_.Set("prettyPrint", "false")
  7649  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  7650  	urls += "?" + c.urlParams_.Encode()
  7651  	req, err := http.NewRequest("POST", urls, body)
  7652  	if err != nil {
  7653  		return nil, err
  7654  	}
  7655  	req.Header = reqHeaders
  7656  	googleapi.Expand(req.URL, map[string]string{
  7657  		"name": c.name,
  7658  	})
  7659  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7660  }
  7661  
  7662  // Do executes the "datacatalog.projects.locations.operations.cancel" call.
  7663  // Any non-2xx status code is an error. Response headers are in either
  7664  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  7665  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7666  // whether the returned error was because http.StatusNotModified was returned.
  7667  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7668  	gensupport.SetOptions(c.urlParams_, opts...)
  7669  	res, err := c.doRequest("json")
  7670  	if res != nil && res.StatusCode == http.StatusNotModified {
  7671  		if res.Body != nil {
  7672  			res.Body.Close()
  7673  		}
  7674  		return nil, gensupport.WrapError(&googleapi.Error{
  7675  			Code:   res.StatusCode,
  7676  			Header: res.Header,
  7677  		})
  7678  	}
  7679  	if err != nil {
  7680  		return nil, err
  7681  	}
  7682  	defer googleapi.CloseBody(res)
  7683  	if err := googleapi.CheckResponse(res); err != nil {
  7684  		return nil, gensupport.WrapError(err)
  7685  	}
  7686  	ret := &Empty{
  7687  		ServerResponse: googleapi.ServerResponse{
  7688  			Header:         res.Header,
  7689  			HTTPStatusCode: res.StatusCode,
  7690  		},
  7691  	}
  7692  	target := &ret
  7693  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7694  		return nil, err
  7695  	}
  7696  	return ret, nil
  7697  }
  7698  
  7699  type ProjectsLocationsOperationsDeleteCall struct {
  7700  	s          *Service
  7701  	name       string
  7702  	urlParams_ gensupport.URLParams
  7703  	ctx_       context.Context
  7704  	header_    http.Header
  7705  }
  7706  
  7707  // Delete: Deletes a long-running operation. This method indicates that the
  7708  // client is no longer interested in the operation result. It does not cancel
  7709  // the operation. If the server doesn't support this method, it returns
  7710  // `google.rpc.Code.UNIMPLEMENTED`.
  7711  //
  7712  // - name: The name of the operation resource to be deleted.
  7713  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
  7714  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7715  	c.name = name
  7716  	return c
  7717  }
  7718  
  7719  // Fields allows partial responses to be retrieved. See
  7720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7721  // details.
  7722  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
  7723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7724  	return c
  7725  }
  7726  
  7727  // Context sets the context to be used in this call's Do method.
  7728  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
  7729  	c.ctx_ = ctx
  7730  	return c
  7731  }
  7732  
  7733  // Header returns a http.Header that can be modified by the caller to add
  7734  // headers to the request.
  7735  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
  7736  	if c.header_ == nil {
  7737  		c.header_ = make(http.Header)
  7738  	}
  7739  	return c.header_
  7740  }
  7741  
  7742  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7744  	var body io.Reader = nil
  7745  	c.urlParams_.Set("alt", alt)
  7746  	c.urlParams_.Set("prettyPrint", "false")
  7747  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7748  	urls += "?" + c.urlParams_.Encode()
  7749  	req, err := http.NewRequest("DELETE", urls, body)
  7750  	if err != nil {
  7751  		return nil, err
  7752  	}
  7753  	req.Header = reqHeaders
  7754  	googleapi.Expand(req.URL, map[string]string{
  7755  		"name": c.name,
  7756  	})
  7757  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7758  }
  7759  
  7760  // Do executes the "datacatalog.projects.locations.operations.delete" call.
  7761  // Any non-2xx status code is an error. Response headers are in either
  7762  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  7763  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7764  // whether the returned error was because http.StatusNotModified was returned.
  7765  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7766  	gensupport.SetOptions(c.urlParams_, opts...)
  7767  	res, err := c.doRequest("json")
  7768  	if res != nil && res.StatusCode == http.StatusNotModified {
  7769  		if res.Body != nil {
  7770  			res.Body.Close()
  7771  		}
  7772  		return nil, gensupport.WrapError(&googleapi.Error{
  7773  			Code:   res.StatusCode,
  7774  			Header: res.Header,
  7775  		})
  7776  	}
  7777  	if err != nil {
  7778  		return nil, err
  7779  	}
  7780  	defer googleapi.CloseBody(res)
  7781  	if err := googleapi.CheckResponse(res); err != nil {
  7782  		return nil, gensupport.WrapError(err)
  7783  	}
  7784  	ret := &Empty{
  7785  		ServerResponse: googleapi.ServerResponse{
  7786  			Header:         res.Header,
  7787  			HTTPStatusCode: res.StatusCode,
  7788  		},
  7789  	}
  7790  	target := &ret
  7791  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7792  		return nil, err
  7793  	}
  7794  	return ret, nil
  7795  }
  7796  
  7797  type ProjectsLocationsOperationsGetCall struct {
  7798  	s            *Service
  7799  	name         string
  7800  	urlParams_   gensupport.URLParams
  7801  	ifNoneMatch_ string
  7802  	ctx_         context.Context
  7803  	header_      http.Header
  7804  }
  7805  
  7806  // Get: Gets the latest state of a long-running operation. Clients can use this
  7807  // method to poll the operation result at intervals as recommended by the API
  7808  // service.
  7809  //
  7810  // - name: The name of the operation resource.
  7811  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
  7812  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7813  	c.name = name
  7814  	return c
  7815  }
  7816  
  7817  // Fields allows partial responses to be retrieved. See
  7818  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7819  // details.
  7820  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  7821  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7822  	return c
  7823  }
  7824  
  7825  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7826  // object's ETag matches the given value. This is useful for getting updates
  7827  // only after the object has changed since the last request.
  7828  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  7829  	c.ifNoneMatch_ = entityTag
  7830  	return c
  7831  }
  7832  
  7833  // Context sets the context to be used in this call's Do method.
  7834  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  7835  	c.ctx_ = ctx
  7836  	return c
  7837  }
  7838  
  7839  // Header returns a http.Header that can be modified by the caller to add
  7840  // headers to the request.
  7841  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  7842  	if c.header_ == nil {
  7843  		c.header_ = make(http.Header)
  7844  	}
  7845  	return c.header_
  7846  }
  7847  
  7848  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  7849  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7850  	if c.ifNoneMatch_ != "" {
  7851  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7852  	}
  7853  	var body io.Reader = nil
  7854  	c.urlParams_.Set("alt", alt)
  7855  	c.urlParams_.Set("prettyPrint", "false")
  7856  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7857  	urls += "?" + c.urlParams_.Encode()
  7858  	req, err := http.NewRequest("GET", urls, body)
  7859  	if err != nil {
  7860  		return nil, err
  7861  	}
  7862  	req.Header = reqHeaders
  7863  	googleapi.Expand(req.URL, map[string]string{
  7864  		"name": c.name,
  7865  	})
  7866  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7867  }
  7868  
  7869  // Do executes the "datacatalog.projects.locations.operations.get" call.
  7870  // Any non-2xx status code is an error. Response headers are in either
  7871  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7872  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7873  // whether the returned error was because http.StatusNotModified was returned.
  7874  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7875  	gensupport.SetOptions(c.urlParams_, opts...)
  7876  	res, err := c.doRequest("json")
  7877  	if res != nil && res.StatusCode == http.StatusNotModified {
  7878  		if res.Body != nil {
  7879  			res.Body.Close()
  7880  		}
  7881  		return nil, gensupport.WrapError(&googleapi.Error{
  7882  			Code:   res.StatusCode,
  7883  			Header: res.Header,
  7884  		})
  7885  	}
  7886  	if err != nil {
  7887  		return nil, err
  7888  	}
  7889  	defer googleapi.CloseBody(res)
  7890  	if err := googleapi.CheckResponse(res); err != nil {
  7891  		return nil, gensupport.WrapError(err)
  7892  	}
  7893  	ret := &Operation{
  7894  		ServerResponse: googleapi.ServerResponse{
  7895  			Header:         res.Header,
  7896  			HTTPStatusCode: res.StatusCode,
  7897  		},
  7898  	}
  7899  	target := &ret
  7900  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7901  		return nil, err
  7902  	}
  7903  	return ret, nil
  7904  }
  7905  
  7906  type ProjectsLocationsOperationsListCall struct {
  7907  	s            *Service
  7908  	name         string
  7909  	urlParams_   gensupport.URLParams
  7910  	ifNoneMatch_ string
  7911  	ctx_         context.Context
  7912  	header_      http.Header
  7913  }
  7914  
  7915  // List: Lists operations that match the specified filter in the request. If
  7916  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  7917  //
  7918  // - name: The name of the operation's parent resource.
  7919  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
  7920  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7921  	c.name = name
  7922  	return c
  7923  }
  7924  
  7925  // Filter sets the optional parameter "filter": The standard list filter.
  7926  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
  7927  	c.urlParams_.Set("filter", filter)
  7928  	return c
  7929  }
  7930  
  7931  // PageSize sets the optional parameter "pageSize": The standard list page
  7932  // size.
  7933  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
  7934  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7935  	return c
  7936  }
  7937  
  7938  // PageToken sets the optional parameter "pageToken": The standard list page
  7939  // token.
  7940  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
  7941  	c.urlParams_.Set("pageToken", pageToken)
  7942  	return c
  7943  }
  7944  
  7945  // Fields allows partial responses to be retrieved. See
  7946  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7947  // details.
  7948  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
  7949  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7950  	return c
  7951  }
  7952  
  7953  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7954  // object's ETag matches the given value. This is useful for getting updates
  7955  // only after the object has changed since the last request.
  7956  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
  7957  	c.ifNoneMatch_ = entityTag
  7958  	return c
  7959  }
  7960  
  7961  // Context sets the context to be used in this call's Do method.
  7962  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
  7963  	c.ctx_ = ctx
  7964  	return c
  7965  }
  7966  
  7967  // Header returns a http.Header that can be modified by the caller to add
  7968  // headers to the request.
  7969  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
  7970  	if c.header_ == nil {
  7971  		c.header_ = make(http.Header)
  7972  	}
  7973  	return c.header_
  7974  }
  7975  
  7976  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  7977  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7978  	if c.ifNoneMatch_ != "" {
  7979  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7980  	}
  7981  	var body io.Reader = nil
  7982  	c.urlParams_.Set("alt", alt)
  7983  	c.urlParams_.Set("prettyPrint", "false")
  7984  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
  7985  	urls += "?" + c.urlParams_.Encode()
  7986  	req, err := http.NewRequest("GET", urls, body)
  7987  	if err != nil {
  7988  		return nil, err
  7989  	}
  7990  	req.Header = reqHeaders
  7991  	googleapi.Expand(req.URL, map[string]string{
  7992  		"name": c.name,
  7993  	})
  7994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7995  }
  7996  
  7997  // Do executes the "datacatalog.projects.locations.operations.list" call.
  7998  // Any non-2xx status code is an error. Response headers are in either
  7999  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  8000  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8001  // check whether the returned error was because http.StatusNotModified was
  8002  // returned.
  8003  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  8004  	gensupport.SetOptions(c.urlParams_, opts...)
  8005  	res, err := c.doRequest("json")
  8006  	if res != nil && res.StatusCode == http.StatusNotModified {
  8007  		if res.Body != nil {
  8008  			res.Body.Close()
  8009  		}
  8010  		return nil, gensupport.WrapError(&googleapi.Error{
  8011  			Code:   res.StatusCode,
  8012  			Header: res.Header,
  8013  		})
  8014  	}
  8015  	if err != nil {
  8016  		return nil, err
  8017  	}
  8018  	defer googleapi.CloseBody(res)
  8019  	if err := googleapi.CheckResponse(res); err != nil {
  8020  		return nil, gensupport.WrapError(err)
  8021  	}
  8022  	ret := &ListOperationsResponse{
  8023  		ServerResponse: googleapi.ServerResponse{
  8024  			Header:         res.Header,
  8025  			HTTPStatusCode: res.StatusCode,
  8026  		},
  8027  	}
  8028  	target := &ret
  8029  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8030  		return nil, err
  8031  	}
  8032  	return ret, nil
  8033  }
  8034  
  8035  // Pages invokes f for each page of results.
  8036  // A non-nil error returned from f will halt the iteration.
  8037  // The provided context supersedes any context provided to the Context method.
  8038  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  8039  	c.ctx_ = ctx
  8040  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8041  	for {
  8042  		x, err := c.Do()
  8043  		if err != nil {
  8044  			return err
  8045  		}
  8046  		if err := f(x); err != nil {
  8047  			return err
  8048  		}
  8049  		if x.NextPageToken == "" {
  8050  			return nil
  8051  		}
  8052  		c.PageToken(x.NextPageToken)
  8053  	}
  8054  }
  8055  
  8056  type ProjectsLocationsTagTemplatesCreateCall struct {
  8057  	s                                   *Service
  8058  	parent                              string
  8059  	googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate
  8060  	urlParams_                          gensupport.URLParams
  8061  	ctx_                                context.Context
  8062  	header_                             http.Header
  8063  }
  8064  
  8065  // Create: Creates a tag template. You must enable the Data Catalog API in the
  8066  // project identified by the `parent` parameter. For more information, see
  8067  // [Data Catalog resource project]
  8068  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  8069  //
  8070  //   - parent: The name of the project and the template location region
  8071  //     (https://cloud.google.com/data-catalog/docs/concepts/regions).
  8072  func (r *ProjectsLocationsTagTemplatesService) Create(parent string, googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate) *ProjectsLocationsTagTemplatesCreateCall {
  8073  	c := &ProjectsLocationsTagTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8074  	c.parent = parent
  8075  	c.googleclouddatacatalogv1tagtemplate = googleclouddatacatalogv1tagtemplate
  8076  	return c
  8077  }
  8078  
  8079  // TagTemplateId sets the optional parameter "tagTemplateId": Required. The ID
  8080  // of the tag template to create. The ID must contain only lowercase letters
  8081  // (a-z), numbers (0-9), or underscores (_), and must start with a letter or
  8082  // underscore. The maximum size is 64 bytes when encoded in UTF-8.
  8083  func (c *ProjectsLocationsTagTemplatesCreateCall) TagTemplateId(tagTemplateId string) *ProjectsLocationsTagTemplatesCreateCall {
  8084  	c.urlParams_.Set("tagTemplateId", tagTemplateId)
  8085  	return c
  8086  }
  8087  
  8088  // Fields allows partial responses to be retrieved. See
  8089  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8090  // details.
  8091  func (c *ProjectsLocationsTagTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesCreateCall {
  8092  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8093  	return c
  8094  }
  8095  
  8096  // Context sets the context to be used in this call's Do method.
  8097  func (c *ProjectsLocationsTagTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesCreateCall {
  8098  	c.ctx_ = ctx
  8099  	return c
  8100  }
  8101  
  8102  // Header returns a http.Header that can be modified by the caller to add
  8103  // headers to the request.
  8104  func (c *ProjectsLocationsTagTemplatesCreateCall) Header() http.Header {
  8105  	if c.header_ == nil {
  8106  		c.header_ = make(http.Header)
  8107  	}
  8108  	return c.header_
  8109  }
  8110  
  8111  func (c *ProjectsLocationsTagTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
  8112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8113  	var body io.Reader = nil
  8114  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplate)
  8115  	if err != nil {
  8116  		return nil, err
  8117  	}
  8118  	c.urlParams_.Set("alt", alt)
  8119  	c.urlParams_.Set("prettyPrint", "false")
  8120  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tagTemplates")
  8121  	urls += "?" + c.urlParams_.Encode()
  8122  	req, err := http.NewRequest("POST", urls, body)
  8123  	if err != nil {
  8124  		return nil, err
  8125  	}
  8126  	req.Header = reqHeaders
  8127  	googleapi.Expand(req.URL, map[string]string{
  8128  		"parent": c.parent,
  8129  	})
  8130  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8131  }
  8132  
  8133  // Do executes the "datacatalog.projects.locations.tagTemplates.create" call.
  8134  // Any non-2xx status code is an error. Response headers are in either
  8135  // *GoogleCloudDatacatalogV1TagTemplate.ServerResponse.Header or (if a response
  8136  // was returned at all) in error.(*googleapi.Error).Header. Use
  8137  // googleapi.IsNotModified to check whether the returned error was because
  8138  // http.StatusNotModified was returned.
  8139  func (c *ProjectsLocationsTagTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplate, error) {
  8140  	gensupport.SetOptions(c.urlParams_, opts...)
  8141  	res, err := c.doRequest("json")
  8142  	if res != nil && res.StatusCode == http.StatusNotModified {
  8143  		if res.Body != nil {
  8144  			res.Body.Close()
  8145  		}
  8146  		return nil, gensupport.WrapError(&googleapi.Error{
  8147  			Code:   res.StatusCode,
  8148  			Header: res.Header,
  8149  		})
  8150  	}
  8151  	if err != nil {
  8152  		return nil, err
  8153  	}
  8154  	defer googleapi.CloseBody(res)
  8155  	if err := googleapi.CheckResponse(res); err != nil {
  8156  		return nil, gensupport.WrapError(err)
  8157  	}
  8158  	ret := &GoogleCloudDatacatalogV1TagTemplate{
  8159  		ServerResponse: googleapi.ServerResponse{
  8160  			Header:         res.Header,
  8161  			HTTPStatusCode: res.StatusCode,
  8162  		},
  8163  	}
  8164  	target := &ret
  8165  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8166  		return nil, err
  8167  	}
  8168  	return ret, nil
  8169  }
  8170  
  8171  type ProjectsLocationsTagTemplatesDeleteCall struct {
  8172  	s          *Service
  8173  	name       string
  8174  	urlParams_ gensupport.URLParams
  8175  	ctx_       context.Context
  8176  	header_    http.Header
  8177  }
  8178  
  8179  // Delete: Deletes a tag template and all tags that use it. You must enable the
  8180  // Data Catalog API in the project identified by the `name` parameter. For more
  8181  // information, see Data Catalog resource project
  8182  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  8183  //
  8184  // - name: The name of the tag template to delete.
  8185  func (r *ProjectsLocationsTagTemplatesService) Delete(name string) *ProjectsLocationsTagTemplatesDeleteCall {
  8186  	c := &ProjectsLocationsTagTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8187  	c.name = name
  8188  	return c
  8189  }
  8190  
  8191  // Force sets the optional parameter "force": Required. If true, deletes all
  8192  // tags that use this template. Currently, `true` is the only supported value.
  8193  func (c *ProjectsLocationsTagTemplatesDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesDeleteCall {
  8194  	c.urlParams_.Set("force", fmt.Sprint(force))
  8195  	return c
  8196  }
  8197  
  8198  // Fields allows partial responses to be retrieved. See
  8199  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8200  // details.
  8201  func (c *ProjectsLocationsTagTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesDeleteCall {
  8202  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8203  	return c
  8204  }
  8205  
  8206  // Context sets the context to be used in this call's Do method.
  8207  func (c *ProjectsLocationsTagTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesDeleteCall {
  8208  	c.ctx_ = ctx
  8209  	return c
  8210  }
  8211  
  8212  // Header returns a http.Header that can be modified by the caller to add
  8213  // headers to the request.
  8214  func (c *ProjectsLocationsTagTemplatesDeleteCall) Header() http.Header {
  8215  	if c.header_ == nil {
  8216  		c.header_ = make(http.Header)
  8217  	}
  8218  	return c.header_
  8219  }
  8220  
  8221  func (c *ProjectsLocationsTagTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
  8222  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8223  	var body io.Reader = nil
  8224  	c.urlParams_.Set("alt", alt)
  8225  	c.urlParams_.Set("prettyPrint", "false")
  8226  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8227  	urls += "?" + c.urlParams_.Encode()
  8228  	req, err := http.NewRequest("DELETE", urls, body)
  8229  	if err != nil {
  8230  		return nil, err
  8231  	}
  8232  	req.Header = reqHeaders
  8233  	googleapi.Expand(req.URL, map[string]string{
  8234  		"name": c.name,
  8235  	})
  8236  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8237  }
  8238  
  8239  // Do executes the "datacatalog.projects.locations.tagTemplates.delete" call.
  8240  // Any non-2xx status code is an error. Response headers are in either
  8241  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  8242  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8243  // whether the returned error was because http.StatusNotModified was returned.
  8244  func (c *ProjectsLocationsTagTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  8245  	gensupport.SetOptions(c.urlParams_, opts...)
  8246  	res, err := c.doRequest("json")
  8247  	if res != nil && res.StatusCode == http.StatusNotModified {
  8248  		if res.Body != nil {
  8249  			res.Body.Close()
  8250  		}
  8251  		return nil, gensupport.WrapError(&googleapi.Error{
  8252  			Code:   res.StatusCode,
  8253  			Header: res.Header,
  8254  		})
  8255  	}
  8256  	if err != nil {
  8257  		return nil, err
  8258  	}
  8259  	defer googleapi.CloseBody(res)
  8260  	if err := googleapi.CheckResponse(res); err != nil {
  8261  		return nil, gensupport.WrapError(err)
  8262  	}
  8263  	ret := &Empty{
  8264  		ServerResponse: googleapi.ServerResponse{
  8265  			Header:         res.Header,
  8266  			HTTPStatusCode: res.StatusCode,
  8267  		},
  8268  	}
  8269  	target := &ret
  8270  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8271  		return nil, err
  8272  	}
  8273  	return ret, nil
  8274  }
  8275  
  8276  type ProjectsLocationsTagTemplatesGetCall struct {
  8277  	s            *Service
  8278  	name         string
  8279  	urlParams_   gensupport.URLParams
  8280  	ifNoneMatch_ string
  8281  	ctx_         context.Context
  8282  	header_      http.Header
  8283  }
  8284  
  8285  // Get: Gets a tag template.
  8286  //
  8287  // - name: The name of the tag template to get.
  8288  func (r *ProjectsLocationsTagTemplatesService) Get(name string) *ProjectsLocationsTagTemplatesGetCall {
  8289  	c := &ProjectsLocationsTagTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8290  	c.name = name
  8291  	return c
  8292  }
  8293  
  8294  // Fields allows partial responses to be retrieved. See
  8295  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8296  // details.
  8297  func (c *ProjectsLocationsTagTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetCall {
  8298  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8299  	return c
  8300  }
  8301  
  8302  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8303  // object's ETag matches the given value. This is useful for getting updates
  8304  // only after the object has changed since the last request.
  8305  func (c *ProjectsLocationsTagTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTagTemplatesGetCall {
  8306  	c.ifNoneMatch_ = entityTag
  8307  	return c
  8308  }
  8309  
  8310  // Context sets the context to be used in this call's Do method.
  8311  func (c *ProjectsLocationsTagTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetCall {
  8312  	c.ctx_ = ctx
  8313  	return c
  8314  }
  8315  
  8316  // Header returns a http.Header that can be modified by the caller to add
  8317  // headers to the request.
  8318  func (c *ProjectsLocationsTagTemplatesGetCall) Header() http.Header {
  8319  	if c.header_ == nil {
  8320  		c.header_ = make(http.Header)
  8321  	}
  8322  	return c.header_
  8323  }
  8324  
  8325  func (c *ProjectsLocationsTagTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
  8326  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8327  	if c.ifNoneMatch_ != "" {
  8328  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8329  	}
  8330  	var body io.Reader = nil
  8331  	c.urlParams_.Set("alt", alt)
  8332  	c.urlParams_.Set("prettyPrint", "false")
  8333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8334  	urls += "?" + c.urlParams_.Encode()
  8335  	req, err := http.NewRequest("GET", urls, body)
  8336  	if err != nil {
  8337  		return nil, err
  8338  	}
  8339  	req.Header = reqHeaders
  8340  	googleapi.Expand(req.URL, map[string]string{
  8341  		"name": c.name,
  8342  	})
  8343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8344  }
  8345  
  8346  // Do executes the "datacatalog.projects.locations.tagTemplates.get" call.
  8347  // Any non-2xx status code is an error. Response headers are in either
  8348  // *GoogleCloudDatacatalogV1TagTemplate.ServerResponse.Header or (if a response
  8349  // was returned at all) in error.(*googleapi.Error).Header. Use
  8350  // googleapi.IsNotModified to check whether the returned error was because
  8351  // http.StatusNotModified was returned.
  8352  func (c *ProjectsLocationsTagTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplate, error) {
  8353  	gensupport.SetOptions(c.urlParams_, opts...)
  8354  	res, err := c.doRequest("json")
  8355  	if res != nil && res.StatusCode == http.StatusNotModified {
  8356  		if res.Body != nil {
  8357  			res.Body.Close()
  8358  		}
  8359  		return nil, gensupport.WrapError(&googleapi.Error{
  8360  			Code:   res.StatusCode,
  8361  			Header: res.Header,
  8362  		})
  8363  	}
  8364  	if err != nil {
  8365  		return nil, err
  8366  	}
  8367  	defer googleapi.CloseBody(res)
  8368  	if err := googleapi.CheckResponse(res); err != nil {
  8369  		return nil, gensupport.WrapError(err)
  8370  	}
  8371  	ret := &GoogleCloudDatacatalogV1TagTemplate{
  8372  		ServerResponse: googleapi.ServerResponse{
  8373  			Header:         res.Header,
  8374  			HTTPStatusCode: res.StatusCode,
  8375  		},
  8376  	}
  8377  	target := &ret
  8378  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8379  		return nil, err
  8380  	}
  8381  	return ret, nil
  8382  }
  8383  
  8384  type ProjectsLocationsTagTemplatesGetIamPolicyCall struct {
  8385  	s                   *Service
  8386  	resource            string
  8387  	getiampolicyrequest *GetIamPolicyRequest
  8388  	urlParams_          gensupport.URLParams
  8389  	ctx_                context.Context
  8390  	header_             http.Header
  8391  }
  8392  
  8393  // GetIamPolicy: Gets the access control policy for a resource. May return: *
  8394  // A`NOT_FOUND` error if the resource doesn't exist or you don't have the
  8395  // permission to view it. * An empty policy if the resource exists but doesn't
  8396  // have a set policy. Supported resources are: - Tag templates - Entry groups
  8397  // Note: This method doesn't get policies from Google Cloud Platform resources
  8398  // ingested into Data Catalog. To call this method, you must have the following
  8399  // Google IAM permissions: - `datacatalog.tagTemplates.getIamPolicy` to get
  8400  // policies on tag templates. - `datacatalog.entryGroups.getIamPolicy` to get
  8401  // policies on entry groups.
  8402  //
  8403  //   - resource: REQUIRED: The resource for which the policy is being requested.
  8404  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8405  //     for the appropriate value for this field.
  8406  func (r *ProjectsLocationsTagTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTagTemplatesGetIamPolicyCall {
  8407  	c := &ProjectsLocationsTagTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8408  	c.resource = resource
  8409  	c.getiampolicyrequest = getiampolicyrequest
  8410  	return c
  8411  }
  8412  
  8413  // Fields allows partial responses to be retrieved. See
  8414  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8415  // details.
  8416  func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetIamPolicyCall {
  8417  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8418  	return c
  8419  }
  8420  
  8421  // Context sets the context to be used in this call's Do method.
  8422  func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetIamPolicyCall {
  8423  	c.ctx_ = ctx
  8424  	return c
  8425  }
  8426  
  8427  // Header returns a http.Header that can be modified by the caller to add
  8428  // headers to the request.
  8429  func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Header() http.Header {
  8430  	if c.header_ == nil {
  8431  		c.header_ = make(http.Header)
  8432  	}
  8433  	return c.header_
  8434  }
  8435  
  8436  func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8437  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8438  	var body io.Reader = nil
  8439  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
  8440  	if err != nil {
  8441  		return nil, err
  8442  	}
  8443  	c.urlParams_.Set("alt", alt)
  8444  	c.urlParams_.Set("prettyPrint", "false")
  8445  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  8446  	urls += "?" + c.urlParams_.Encode()
  8447  	req, err := http.NewRequest("POST", urls, body)
  8448  	if err != nil {
  8449  		return nil, err
  8450  	}
  8451  	req.Header = reqHeaders
  8452  	googleapi.Expand(req.URL, map[string]string{
  8453  		"resource": c.resource,
  8454  	})
  8455  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8456  }
  8457  
  8458  // Do executes the "datacatalog.projects.locations.tagTemplates.getIamPolicy" call.
  8459  // Any non-2xx status code is an error. Response headers are in either
  8460  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  8461  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8462  // whether the returned error was because http.StatusNotModified was returned.
  8463  func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  8464  	gensupport.SetOptions(c.urlParams_, opts...)
  8465  	res, err := c.doRequest("json")
  8466  	if res != nil && res.StatusCode == http.StatusNotModified {
  8467  		if res.Body != nil {
  8468  			res.Body.Close()
  8469  		}
  8470  		return nil, gensupport.WrapError(&googleapi.Error{
  8471  			Code:   res.StatusCode,
  8472  			Header: res.Header,
  8473  		})
  8474  	}
  8475  	if err != nil {
  8476  		return nil, err
  8477  	}
  8478  	defer googleapi.CloseBody(res)
  8479  	if err := googleapi.CheckResponse(res); err != nil {
  8480  		return nil, gensupport.WrapError(err)
  8481  	}
  8482  	ret := &Policy{
  8483  		ServerResponse: googleapi.ServerResponse{
  8484  			Header:         res.Header,
  8485  			HTTPStatusCode: res.StatusCode,
  8486  		},
  8487  	}
  8488  	target := &ret
  8489  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8490  		return nil, err
  8491  	}
  8492  	return ret, nil
  8493  }
  8494  
  8495  type ProjectsLocationsTagTemplatesPatchCall struct {
  8496  	s                                   *Service
  8497  	name                                string
  8498  	googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate
  8499  	urlParams_                          gensupport.URLParams
  8500  	ctx_                                context.Context
  8501  	header_                             http.Header
  8502  }
  8503  
  8504  // Patch: Updates a tag template. You can't update template fields with this
  8505  // method. These fields are separate resources with their own create, update,
  8506  // and delete methods. You must enable the Data Catalog API in the project
  8507  // identified by the `tag_template.name` parameter. For more information, see
  8508  // Data Catalog resource project
  8509  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  8510  //
  8511  //   - name: Identifier. The resource name of the tag template in URL format.
  8512  //     Note: The tag template itself and its child resources might not be stored
  8513  //     in the location specified in its name.
  8514  func (r *ProjectsLocationsTagTemplatesService) Patch(name string, googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate) *ProjectsLocationsTagTemplatesPatchCall {
  8515  	c := &ProjectsLocationsTagTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8516  	c.name = name
  8517  	c.googleclouddatacatalogv1tagtemplate = googleclouddatacatalogv1tagtemplate
  8518  	return c
  8519  }
  8520  
  8521  // UpdateMask sets the optional parameter "updateMask": Names of fields whose
  8522  // values to overwrite on a tag template. Currently, only `display_name` and
  8523  // `is_publicly_readable` can be overwritten. If this parameter is absent or
  8524  // empty, all modifiable fields are overwritten. If such fields are
  8525  // non-required and omitted in the request body, their values are emptied.
  8526  // Note: Updating the `is_publicly_readable` field may require up to 12 hours
  8527  // to take effect in search results.
  8528  func (c *ProjectsLocationsTagTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesPatchCall {
  8529  	c.urlParams_.Set("updateMask", updateMask)
  8530  	return c
  8531  }
  8532  
  8533  // Fields allows partial responses to be retrieved. See
  8534  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8535  // details.
  8536  func (c *ProjectsLocationsTagTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesPatchCall {
  8537  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8538  	return c
  8539  }
  8540  
  8541  // Context sets the context to be used in this call's Do method.
  8542  func (c *ProjectsLocationsTagTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesPatchCall {
  8543  	c.ctx_ = ctx
  8544  	return c
  8545  }
  8546  
  8547  // Header returns a http.Header that can be modified by the caller to add
  8548  // headers to the request.
  8549  func (c *ProjectsLocationsTagTemplatesPatchCall) Header() http.Header {
  8550  	if c.header_ == nil {
  8551  		c.header_ = make(http.Header)
  8552  	}
  8553  	return c.header_
  8554  }
  8555  
  8556  func (c *ProjectsLocationsTagTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
  8557  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8558  	var body io.Reader = nil
  8559  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplate)
  8560  	if err != nil {
  8561  		return nil, err
  8562  	}
  8563  	c.urlParams_.Set("alt", alt)
  8564  	c.urlParams_.Set("prettyPrint", "false")
  8565  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8566  	urls += "?" + c.urlParams_.Encode()
  8567  	req, err := http.NewRequest("PATCH", urls, body)
  8568  	if err != nil {
  8569  		return nil, err
  8570  	}
  8571  	req.Header = reqHeaders
  8572  	googleapi.Expand(req.URL, map[string]string{
  8573  		"name": c.name,
  8574  	})
  8575  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8576  }
  8577  
  8578  // Do executes the "datacatalog.projects.locations.tagTemplates.patch" call.
  8579  // Any non-2xx status code is an error. Response headers are in either
  8580  // *GoogleCloudDatacatalogV1TagTemplate.ServerResponse.Header or (if a response
  8581  // was returned at all) in error.(*googleapi.Error).Header. Use
  8582  // googleapi.IsNotModified to check whether the returned error was because
  8583  // http.StatusNotModified was returned.
  8584  func (c *ProjectsLocationsTagTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplate, error) {
  8585  	gensupport.SetOptions(c.urlParams_, opts...)
  8586  	res, err := c.doRequest("json")
  8587  	if res != nil && res.StatusCode == http.StatusNotModified {
  8588  		if res.Body != nil {
  8589  			res.Body.Close()
  8590  		}
  8591  		return nil, gensupport.WrapError(&googleapi.Error{
  8592  			Code:   res.StatusCode,
  8593  			Header: res.Header,
  8594  		})
  8595  	}
  8596  	if err != nil {
  8597  		return nil, err
  8598  	}
  8599  	defer googleapi.CloseBody(res)
  8600  	if err := googleapi.CheckResponse(res); err != nil {
  8601  		return nil, gensupport.WrapError(err)
  8602  	}
  8603  	ret := &GoogleCloudDatacatalogV1TagTemplate{
  8604  		ServerResponse: googleapi.ServerResponse{
  8605  			Header:         res.Header,
  8606  			HTTPStatusCode: res.StatusCode,
  8607  		},
  8608  	}
  8609  	target := &ret
  8610  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8611  		return nil, err
  8612  	}
  8613  	return ret, nil
  8614  }
  8615  
  8616  type ProjectsLocationsTagTemplatesSetIamPolicyCall struct {
  8617  	s                   *Service
  8618  	resource            string
  8619  	setiampolicyrequest *SetIamPolicyRequest
  8620  	urlParams_          gensupport.URLParams
  8621  	ctx_                context.Context
  8622  	header_             http.Header
  8623  }
  8624  
  8625  // SetIamPolicy: Sets an access control policy for a resource. Replaces any
  8626  // existing policy. Supported resources are: - Tag templates - Entry groups
  8627  // Note: This method sets policies only within Data Catalog and can't be used
  8628  // to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
  8629  // external Google Cloud Platform resources synced with the Data Catalog. To
  8630  // call this method, you must have the following Google IAM permissions: -
  8631  // `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. -
  8632  // `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
  8633  //
  8634  //   - resource: REQUIRED: The resource for which the policy is being specified.
  8635  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8636  //     for the appropriate value for this field.
  8637  func (r *ProjectsLocationsTagTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTagTemplatesSetIamPolicyCall {
  8638  	c := &ProjectsLocationsTagTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8639  	c.resource = resource
  8640  	c.setiampolicyrequest = setiampolicyrequest
  8641  	return c
  8642  }
  8643  
  8644  // Fields allows partial responses to be retrieved. See
  8645  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8646  // details.
  8647  func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesSetIamPolicyCall {
  8648  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8649  	return c
  8650  }
  8651  
  8652  // Context sets the context to be used in this call's Do method.
  8653  func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesSetIamPolicyCall {
  8654  	c.ctx_ = ctx
  8655  	return c
  8656  }
  8657  
  8658  // Header returns a http.Header that can be modified by the caller to add
  8659  // headers to the request.
  8660  func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Header() http.Header {
  8661  	if c.header_ == nil {
  8662  		c.header_ = make(http.Header)
  8663  	}
  8664  	return c.header_
  8665  }
  8666  
  8667  func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8668  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8669  	var body io.Reader = nil
  8670  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  8671  	if err != nil {
  8672  		return nil, err
  8673  	}
  8674  	c.urlParams_.Set("alt", alt)
  8675  	c.urlParams_.Set("prettyPrint", "false")
  8676  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  8677  	urls += "?" + c.urlParams_.Encode()
  8678  	req, err := http.NewRequest("POST", urls, body)
  8679  	if err != nil {
  8680  		return nil, err
  8681  	}
  8682  	req.Header = reqHeaders
  8683  	googleapi.Expand(req.URL, map[string]string{
  8684  		"resource": c.resource,
  8685  	})
  8686  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8687  }
  8688  
  8689  // Do executes the "datacatalog.projects.locations.tagTemplates.setIamPolicy" call.
  8690  // Any non-2xx status code is an error. Response headers are in either
  8691  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  8692  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8693  // whether the returned error was because http.StatusNotModified was returned.
  8694  func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  8695  	gensupport.SetOptions(c.urlParams_, opts...)
  8696  	res, err := c.doRequest("json")
  8697  	if res != nil && res.StatusCode == http.StatusNotModified {
  8698  		if res.Body != nil {
  8699  			res.Body.Close()
  8700  		}
  8701  		return nil, gensupport.WrapError(&googleapi.Error{
  8702  			Code:   res.StatusCode,
  8703  			Header: res.Header,
  8704  		})
  8705  	}
  8706  	if err != nil {
  8707  		return nil, err
  8708  	}
  8709  	defer googleapi.CloseBody(res)
  8710  	if err := googleapi.CheckResponse(res); err != nil {
  8711  		return nil, gensupport.WrapError(err)
  8712  	}
  8713  	ret := &Policy{
  8714  		ServerResponse: googleapi.ServerResponse{
  8715  			Header:         res.Header,
  8716  			HTTPStatusCode: res.StatusCode,
  8717  		},
  8718  	}
  8719  	target := &ret
  8720  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8721  		return nil, err
  8722  	}
  8723  	return ret, nil
  8724  }
  8725  
  8726  type ProjectsLocationsTagTemplatesTestIamPermissionsCall struct {
  8727  	s                         *Service
  8728  	resource                  string
  8729  	testiampermissionsrequest *TestIamPermissionsRequest
  8730  	urlParams_                gensupport.URLParams
  8731  	ctx_                      context.Context
  8732  	header_                   http.Header
  8733  }
  8734  
  8735  // TestIamPermissions: Gets your permissions on a resource. Returns an empty
  8736  // set of permissions if the resource doesn't exist. Supported resources are: -
  8737  // Tag templates - Entry groups Note: This method gets policies only within
  8738  // Data Catalog and can't be used to get policies from BigQuery, Pub/Sub,
  8739  // Dataproc Metastore, and any external Google Cloud Platform resources
  8740  // ingested into Data Catalog. No Google IAM permissions are required to call
  8741  // this method.
  8742  //
  8743  //   - resource: REQUIRED: The resource for which the policy detail is being
  8744  //     requested. See Resource names
  8745  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  8746  //     value for this field.
  8747  func (r *ProjectsLocationsTagTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTagTemplatesTestIamPermissionsCall {
  8748  	c := &ProjectsLocationsTagTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8749  	c.resource = resource
  8750  	c.testiampermissionsrequest = testiampermissionsrequest
  8751  	return c
  8752  }
  8753  
  8754  // Fields allows partial responses to be retrieved. See
  8755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8756  // details.
  8757  func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesTestIamPermissionsCall {
  8758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8759  	return c
  8760  }
  8761  
  8762  // Context sets the context to be used in this call's Do method.
  8763  func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesTestIamPermissionsCall {
  8764  	c.ctx_ = ctx
  8765  	return c
  8766  }
  8767  
  8768  // Header returns a http.Header that can be modified by the caller to add
  8769  // headers to the request.
  8770  func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Header() http.Header {
  8771  	if c.header_ == nil {
  8772  		c.header_ = make(http.Header)
  8773  	}
  8774  	return c.header_
  8775  }
  8776  
  8777  func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  8778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8779  	var body io.Reader = nil
  8780  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  8781  	if err != nil {
  8782  		return nil, err
  8783  	}
  8784  	c.urlParams_.Set("alt", alt)
  8785  	c.urlParams_.Set("prettyPrint", "false")
  8786  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  8787  	urls += "?" + c.urlParams_.Encode()
  8788  	req, err := http.NewRequest("POST", urls, body)
  8789  	if err != nil {
  8790  		return nil, err
  8791  	}
  8792  	req.Header = reqHeaders
  8793  	googleapi.Expand(req.URL, map[string]string{
  8794  		"resource": c.resource,
  8795  	})
  8796  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8797  }
  8798  
  8799  // Do executes the "datacatalog.projects.locations.tagTemplates.testIamPermissions" call.
  8800  // Any non-2xx status code is an error. Response headers are in either
  8801  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  8802  // returned at all) in error.(*googleapi.Error).Header. Use
  8803  // googleapi.IsNotModified to check whether the returned error was because
  8804  // http.StatusNotModified was returned.
  8805  func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  8806  	gensupport.SetOptions(c.urlParams_, opts...)
  8807  	res, err := c.doRequest("json")
  8808  	if res != nil && res.StatusCode == http.StatusNotModified {
  8809  		if res.Body != nil {
  8810  			res.Body.Close()
  8811  		}
  8812  		return nil, gensupport.WrapError(&googleapi.Error{
  8813  			Code:   res.StatusCode,
  8814  			Header: res.Header,
  8815  		})
  8816  	}
  8817  	if err != nil {
  8818  		return nil, err
  8819  	}
  8820  	defer googleapi.CloseBody(res)
  8821  	if err := googleapi.CheckResponse(res); err != nil {
  8822  		return nil, gensupport.WrapError(err)
  8823  	}
  8824  	ret := &TestIamPermissionsResponse{
  8825  		ServerResponse: googleapi.ServerResponse{
  8826  			Header:         res.Header,
  8827  			HTTPStatusCode: res.StatusCode,
  8828  		},
  8829  	}
  8830  	target := &ret
  8831  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8832  		return nil, err
  8833  	}
  8834  	return ret, nil
  8835  }
  8836  
  8837  type ProjectsLocationsTagTemplatesFieldsCreateCall struct {
  8838  	s                                        *Service
  8839  	parent                                   string
  8840  	googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField
  8841  	urlParams_                               gensupport.URLParams
  8842  	ctx_                                     context.Context
  8843  	header_                                  http.Header
  8844  }
  8845  
  8846  // Create: Creates a field in a tag template. You must enable the Data Catalog
  8847  // API in the project identified by the `parent` parameter. For more
  8848  // information, see Data Catalog resource project
  8849  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  8850  //
  8851  //   - parent: The name of the project and the template location region
  8852  //     (https://cloud.google.com/data-catalog/docs/concepts/regions).
  8853  func (r *ProjectsLocationsTagTemplatesFieldsService) Create(parent string, googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField) *ProjectsLocationsTagTemplatesFieldsCreateCall {
  8854  	c := &ProjectsLocationsTagTemplatesFieldsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8855  	c.parent = parent
  8856  	c.googleclouddatacatalogv1tagtemplatefield = googleclouddatacatalogv1tagtemplatefield
  8857  	return c
  8858  }
  8859  
  8860  // TagTemplateFieldId sets the optional parameter "tagTemplateFieldId":
  8861  // Required. The ID of the tag template field to create. Note: Adding a
  8862  // required field to an existing template is *not* allowed. Field IDs can
  8863  // contain letters (both uppercase and lowercase), numbers (0-9), underscores
  8864  // (_) and dashes (-). Field IDs must be at least 1 character long and at most
  8865  // 128 characters long. Field IDs must also be unique within their template.
  8866  func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) TagTemplateFieldId(tagTemplateFieldId string) *ProjectsLocationsTagTemplatesFieldsCreateCall {
  8867  	c.urlParams_.Set("tagTemplateFieldId", tagTemplateFieldId)
  8868  	return c
  8869  }
  8870  
  8871  // Fields allows partial responses to be retrieved. See
  8872  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8873  // details.
  8874  func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsCreateCall {
  8875  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8876  	return c
  8877  }
  8878  
  8879  // Context sets the context to be used in this call's Do method.
  8880  func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsCreateCall {
  8881  	c.ctx_ = ctx
  8882  	return c
  8883  }
  8884  
  8885  // Header returns a http.Header that can be modified by the caller to add
  8886  // headers to the request.
  8887  func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Header() http.Header {
  8888  	if c.header_ == nil {
  8889  		c.header_ = make(http.Header)
  8890  	}
  8891  	return c.header_
  8892  }
  8893  
  8894  func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) doRequest(alt string) (*http.Response, error) {
  8895  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8896  	var body io.Reader = nil
  8897  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplatefield)
  8898  	if err != nil {
  8899  		return nil, err
  8900  	}
  8901  	c.urlParams_.Set("alt", alt)
  8902  	c.urlParams_.Set("prettyPrint", "false")
  8903  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fields")
  8904  	urls += "?" + c.urlParams_.Encode()
  8905  	req, err := http.NewRequest("POST", urls, body)
  8906  	if err != nil {
  8907  		return nil, err
  8908  	}
  8909  	req.Header = reqHeaders
  8910  	googleapi.Expand(req.URL, map[string]string{
  8911  		"parent": c.parent,
  8912  	})
  8913  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8914  }
  8915  
  8916  // Do executes the "datacatalog.projects.locations.tagTemplates.fields.create" call.
  8917  // Any non-2xx status code is an error. Response headers are in either
  8918  // *GoogleCloudDatacatalogV1TagTemplateField.ServerResponse.Header or (if a
  8919  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8920  // googleapi.IsNotModified to check whether the returned error was because
  8921  // http.StatusNotModified was returned.
  8922  func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
  8923  	gensupport.SetOptions(c.urlParams_, opts...)
  8924  	res, err := c.doRequest("json")
  8925  	if res != nil && res.StatusCode == http.StatusNotModified {
  8926  		if res.Body != nil {
  8927  			res.Body.Close()
  8928  		}
  8929  		return nil, gensupport.WrapError(&googleapi.Error{
  8930  			Code:   res.StatusCode,
  8931  			Header: res.Header,
  8932  		})
  8933  	}
  8934  	if err != nil {
  8935  		return nil, err
  8936  	}
  8937  	defer googleapi.CloseBody(res)
  8938  	if err := googleapi.CheckResponse(res); err != nil {
  8939  		return nil, gensupport.WrapError(err)
  8940  	}
  8941  	ret := &GoogleCloudDatacatalogV1TagTemplateField{
  8942  		ServerResponse: googleapi.ServerResponse{
  8943  			Header:         res.Header,
  8944  			HTTPStatusCode: res.StatusCode,
  8945  		},
  8946  	}
  8947  	target := &ret
  8948  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8949  		return nil, err
  8950  	}
  8951  	return ret, nil
  8952  }
  8953  
  8954  type ProjectsLocationsTagTemplatesFieldsDeleteCall struct {
  8955  	s          *Service
  8956  	name       string
  8957  	urlParams_ gensupport.URLParams
  8958  	ctx_       context.Context
  8959  	header_    http.Header
  8960  }
  8961  
  8962  // Delete: Deletes a field in a tag template and all uses of this field from
  8963  // the tags based on this template. You must enable the Data Catalog API in the
  8964  // project identified by the `name` parameter. For more information, see Data
  8965  // Catalog resource project
  8966  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  8967  //
  8968  // - name: The name of the tag template field to delete.
  8969  func (r *ProjectsLocationsTagTemplatesFieldsService) Delete(name string) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
  8970  	c := &ProjectsLocationsTagTemplatesFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8971  	c.name = name
  8972  	return c
  8973  }
  8974  
  8975  // Force sets the optional parameter "force": Required. If true, deletes this
  8976  // field from any tags that use it. Currently, `true` is the only supported
  8977  // value.
  8978  func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
  8979  	c.urlParams_.Set("force", fmt.Sprint(force))
  8980  	return c
  8981  }
  8982  
  8983  // Fields allows partial responses to be retrieved. See
  8984  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8985  // details.
  8986  func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
  8987  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8988  	return c
  8989  }
  8990  
  8991  // Context sets the context to be used in this call's Do method.
  8992  func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
  8993  	c.ctx_ = ctx
  8994  	return c
  8995  }
  8996  
  8997  // Header returns a http.Header that can be modified by the caller to add
  8998  // headers to the request.
  8999  func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Header() http.Header {
  9000  	if c.header_ == nil {
  9001  		c.header_ = make(http.Header)
  9002  	}
  9003  	return c.header_
  9004  }
  9005  
  9006  func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9007  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9008  	var body io.Reader = nil
  9009  	c.urlParams_.Set("alt", alt)
  9010  	c.urlParams_.Set("prettyPrint", "false")
  9011  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9012  	urls += "?" + c.urlParams_.Encode()
  9013  	req, err := http.NewRequest("DELETE", urls, body)
  9014  	if err != nil {
  9015  		return nil, err
  9016  	}
  9017  	req.Header = reqHeaders
  9018  	googleapi.Expand(req.URL, map[string]string{
  9019  		"name": c.name,
  9020  	})
  9021  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9022  }
  9023  
  9024  // Do executes the "datacatalog.projects.locations.tagTemplates.fields.delete" call.
  9025  // Any non-2xx status code is an error. Response headers are in either
  9026  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9027  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9028  // whether the returned error was because http.StatusNotModified was returned.
  9029  func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9030  	gensupport.SetOptions(c.urlParams_, opts...)
  9031  	res, err := c.doRequest("json")
  9032  	if res != nil && res.StatusCode == http.StatusNotModified {
  9033  		if res.Body != nil {
  9034  			res.Body.Close()
  9035  		}
  9036  		return nil, gensupport.WrapError(&googleapi.Error{
  9037  			Code:   res.StatusCode,
  9038  			Header: res.Header,
  9039  		})
  9040  	}
  9041  	if err != nil {
  9042  		return nil, err
  9043  	}
  9044  	defer googleapi.CloseBody(res)
  9045  	if err := googleapi.CheckResponse(res); err != nil {
  9046  		return nil, gensupport.WrapError(err)
  9047  	}
  9048  	ret := &Empty{
  9049  		ServerResponse: googleapi.ServerResponse{
  9050  			Header:         res.Header,
  9051  			HTTPStatusCode: res.StatusCode,
  9052  		},
  9053  	}
  9054  	target := &ret
  9055  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9056  		return nil, err
  9057  	}
  9058  	return ret, nil
  9059  }
  9060  
  9061  type ProjectsLocationsTagTemplatesFieldsPatchCall struct {
  9062  	s                                        *Service
  9063  	name                                     string
  9064  	googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField
  9065  	urlParams_                               gensupport.URLParams
  9066  	ctx_                                     context.Context
  9067  	header_                                  http.Header
  9068  }
  9069  
  9070  // Patch: Updates a field in a tag template. You can't update the field type
  9071  // with this method. You must enable the Data Catalog API in the project
  9072  // identified by the `name` parameter. For more information, see Data Catalog
  9073  // resource project
  9074  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  9075  //
  9076  // - name: The name of the tag template field.
  9077  func (r *ProjectsLocationsTagTemplatesFieldsService) Patch(name string, googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField) *ProjectsLocationsTagTemplatesFieldsPatchCall {
  9078  	c := &ProjectsLocationsTagTemplatesFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9079  	c.name = name
  9080  	c.googleclouddatacatalogv1tagtemplatefield = googleclouddatacatalogv1tagtemplatefield
  9081  	return c
  9082  }
  9083  
  9084  // UpdateMask sets the optional parameter "updateMask": Names of fields whose
  9085  // values to overwrite on an individual field of a tag template. The following
  9086  // fields are modifiable: * `display_name` * `type.enum_type` * `is_required`
  9087  // If this parameter is absent or empty, all modifiable fields are overwritten.
  9088  // If such fields are non-required and omitted in the request body, their
  9089  // values are emptied with one exception: when updating an enum type, the
  9090  // provided values are merged with the existing values. Therefore, enum values
  9091  // can only be added, existing enum values cannot be deleted or renamed.
  9092  // Additionally, updating a template field from optional to required is *not*
  9093  // allowed.
  9094  func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesFieldsPatchCall {
  9095  	c.urlParams_.Set("updateMask", updateMask)
  9096  	return c
  9097  }
  9098  
  9099  // Fields allows partial responses to be retrieved. See
  9100  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9101  // details.
  9102  func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsPatchCall {
  9103  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9104  	return c
  9105  }
  9106  
  9107  // Context sets the context to be used in this call's Do method.
  9108  func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsPatchCall {
  9109  	c.ctx_ = ctx
  9110  	return c
  9111  }
  9112  
  9113  // Header returns a http.Header that can be modified by the caller to add
  9114  // headers to the request.
  9115  func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Header() http.Header {
  9116  	if c.header_ == nil {
  9117  		c.header_ = make(http.Header)
  9118  	}
  9119  	return c.header_
  9120  }
  9121  
  9122  func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) doRequest(alt string) (*http.Response, error) {
  9123  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9124  	var body io.Reader = nil
  9125  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplatefield)
  9126  	if err != nil {
  9127  		return nil, err
  9128  	}
  9129  	c.urlParams_.Set("alt", alt)
  9130  	c.urlParams_.Set("prettyPrint", "false")
  9131  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9132  	urls += "?" + c.urlParams_.Encode()
  9133  	req, err := http.NewRequest("PATCH", urls, body)
  9134  	if err != nil {
  9135  		return nil, err
  9136  	}
  9137  	req.Header = reqHeaders
  9138  	googleapi.Expand(req.URL, map[string]string{
  9139  		"name": c.name,
  9140  	})
  9141  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9142  }
  9143  
  9144  // Do executes the "datacatalog.projects.locations.tagTemplates.fields.patch" call.
  9145  // Any non-2xx status code is an error. Response headers are in either
  9146  // *GoogleCloudDatacatalogV1TagTemplateField.ServerResponse.Header or (if a
  9147  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9148  // googleapi.IsNotModified to check whether the returned error was because
  9149  // http.StatusNotModified was returned.
  9150  func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
  9151  	gensupport.SetOptions(c.urlParams_, opts...)
  9152  	res, err := c.doRequest("json")
  9153  	if res != nil && res.StatusCode == http.StatusNotModified {
  9154  		if res.Body != nil {
  9155  			res.Body.Close()
  9156  		}
  9157  		return nil, gensupport.WrapError(&googleapi.Error{
  9158  			Code:   res.StatusCode,
  9159  			Header: res.Header,
  9160  		})
  9161  	}
  9162  	if err != nil {
  9163  		return nil, err
  9164  	}
  9165  	defer googleapi.CloseBody(res)
  9166  	if err := googleapi.CheckResponse(res); err != nil {
  9167  		return nil, gensupport.WrapError(err)
  9168  	}
  9169  	ret := &GoogleCloudDatacatalogV1TagTemplateField{
  9170  		ServerResponse: googleapi.ServerResponse{
  9171  			Header:         res.Header,
  9172  			HTTPStatusCode: res.StatusCode,
  9173  		},
  9174  	}
  9175  	target := &ret
  9176  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9177  		return nil, err
  9178  	}
  9179  	return ret, nil
  9180  }
  9181  
  9182  type ProjectsLocationsTagTemplatesFieldsRenameCall struct {
  9183  	s                                                     *Service
  9184  	name                                                  string
  9185  	googleclouddatacatalogv1renametagtemplatefieldrequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest
  9186  	urlParams_                                            gensupport.URLParams
  9187  	ctx_                                                  context.Context
  9188  	header_                                               http.Header
  9189  }
  9190  
  9191  // Rename: Renames a field in a tag template. You must enable the Data Catalog
  9192  // API in the project identified by the `name` parameter. For more information,
  9193  // see [Data Catalog resource project]
  9194  // (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
  9195  //
  9196  // - name: The name of the tag template field.
  9197  func (r *ProjectsLocationsTagTemplatesFieldsService) Rename(name string, googleclouddatacatalogv1renametagtemplatefieldrequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest) *ProjectsLocationsTagTemplatesFieldsRenameCall {
  9198  	c := &ProjectsLocationsTagTemplatesFieldsRenameCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9199  	c.name = name
  9200  	c.googleclouddatacatalogv1renametagtemplatefieldrequest = googleclouddatacatalogv1renametagtemplatefieldrequest
  9201  	return c
  9202  }
  9203  
  9204  // Fields allows partial responses to be retrieved. See
  9205  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9206  // details.
  9207  func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsRenameCall {
  9208  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9209  	return c
  9210  }
  9211  
  9212  // Context sets the context to be used in this call's Do method.
  9213  func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsRenameCall {
  9214  	c.ctx_ = ctx
  9215  	return c
  9216  }
  9217  
  9218  // Header returns a http.Header that can be modified by the caller to add
  9219  // headers to the request.
  9220  func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Header() http.Header {
  9221  	if c.header_ == nil {
  9222  		c.header_ = make(http.Header)
  9223  	}
  9224  	return c.header_
  9225  }
  9226  
  9227  func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) doRequest(alt string) (*http.Response, error) {
  9228  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9229  	var body io.Reader = nil
  9230  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1renametagtemplatefieldrequest)
  9231  	if err != nil {
  9232  		return nil, err
  9233  	}
  9234  	c.urlParams_.Set("alt", alt)
  9235  	c.urlParams_.Set("prettyPrint", "false")
  9236  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rename")
  9237  	urls += "?" + c.urlParams_.Encode()
  9238  	req, err := http.NewRequest("POST", urls, body)
  9239  	if err != nil {
  9240  		return nil, err
  9241  	}
  9242  	req.Header = reqHeaders
  9243  	googleapi.Expand(req.URL, map[string]string{
  9244  		"name": c.name,
  9245  	})
  9246  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9247  }
  9248  
  9249  // Do executes the "datacatalog.projects.locations.tagTemplates.fields.rename" call.
  9250  // Any non-2xx status code is an error. Response headers are in either
  9251  // *GoogleCloudDatacatalogV1TagTemplateField.ServerResponse.Header or (if a
  9252  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9253  // googleapi.IsNotModified to check whether the returned error was because
  9254  // http.StatusNotModified was returned.
  9255  func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
  9256  	gensupport.SetOptions(c.urlParams_, opts...)
  9257  	res, err := c.doRequest("json")
  9258  	if res != nil && res.StatusCode == http.StatusNotModified {
  9259  		if res.Body != nil {
  9260  			res.Body.Close()
  9261  		}
  9262  		return nil, gensupport.WrapError(&googleapi.Error{
  9263  			Code:   res.StatusCode,
  9264  			Header: res.Header,
  9265  		})
  9266  	}
  9267  	if err != nil {
  9268  		return nil, err
  9269  	}
  9270  	defer googleapi.CloseBody(res)
  9271  	if err := googleapi.CheckResponse(res); err != nil {
  9272  		return nil, gensupport.WrapError(err)
  9273  	}
  9274  	ret := &GoogleCloudDatacatalogV1TagTemplateField{
  9275  		ServerResponse: googleapi.ServerResponse{
  9276  			Header:         res.Header,
  9277  			HTTPStatusCode: res.StatusCode,
  9278  		},
  9279  	}
  9280  	target := &ret
  9281  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9282  		return nil, err
  9283  	}
  9284  	return ret, nil
  9285  }
  9286  
  9287  type ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall struct {
  9288  	s                                                              *Service
  9289  	name                                                           string
  9290  	googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
  9291  	urlParams_                                                     gensupport.URLParams
  9292  	ctx_                                                           context.Context
  9293  	header_                                                        http.Header
  9294  }
  9295  
  9296  // Rename: Renames an enum value in a tag template. Within a single enum field,
  9297  // enum values must be unique.
  9298  //
  9299  // - name: The name of the enum field value.
  9300  func (r *ProjectsLocationsTagTemplatesFieldsEnumValuesService) Rename(name string, googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest) *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall {
  9301  	c := &ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9302  	c.name = name
  9303  	c.googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest = googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest
  9304  	return c
  9305  }
  9306  
  9307  // Fields allows partial responses to be retrieved. See
  9308  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9309  // details.
  9310  func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall {
  9311  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9312  	return c
  9313  }
  9314  
  9315  // Context sets the context to be used in this call's Do method.
  9316  func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall {
  9317  	c.ctx_ = ctx
  9318  	return c
  9319  }
  9320  
  9321  // Header returns a http.Header that can be modified by the caller to add
  9322  // headers to the request.
  9323  func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Header() http.Header {
  9324  	if c.header_ == nil {
  9325  		c.header_ = make(http.Header)
  9326  	}
  9327  	return c.header_
  9328  }
  9329  
  9330  func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) doRequest(alt string) (*http.Response, error) {
  9331  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9332  	var body io.Reader = nil
  9333  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest)
  9334  	if err != nil {
  9335  		return nil, err
  9336  	}
  9337  	c.urlParams_.Set("alt", alt)
  9338  	c.urlParams_.Set("prettyPrint", "false")
  9339  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rename")
  9340  	urls += "?" + c.urlParams_.Encode()
  9341  	req, err := http.NewRequest("POST", urls, body)
  9342  	if err != nil {
  9343  		return nil, err
  9344  	}
  9345  	req.Header = reqHeaders
  9346  	googleapi.Expand(req.URL, map[string]string{
  9347  		"name": c.name,
  9348  	})
  9349  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9350  }
  9351  
  9352  // Do executes the "datacatalog.projects.locations.tagTemplates.fields.enumValues.rename" call.
  9353  // Any non-2xx status code is an error. Response headers are in either
  9354  // *GoogleCloudDatacatalogV1TagTemplateField.ServerResponse.Header or (if a
  9355  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9356  // googleapi.IsNotModified to check whether the returned error was because
  9357  // http.StatusNotModified was returned.
  9358  func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
  9359  	gensupport.SetOptions(c.urlParams_, opts...)
  9360  	res, err := c.doRequest("json")
  9361  	if res != nil && res.StatusCode == http.StatusNotModified {
  9362  		if res.Body != nil {
  9363  			res.Body.Close()
  9364  		}
  9365  		return nil, gensupport.WrapError(&googleapi.Error{
  9366  			Code:   res.StatusCode,
  9367  			Header: res.Header,
  9368  		})
  9369  	}
  9370  	if err != nil {
  9371  		return nil, err
  9372  	}
  9373  	defer googleapi.CloseBody(res)
  9374  	if err := googleapi.CheckResponse(res); err != nil {
  9375  		return nil, gensupport.WrapError(err)
  9376  	}
  9377  	ret := &GoogleCloudDatacatalogV1TagTemplateField{
  9378  		ServerResponse: googleapi.ServerResponse{
  9379  			Header:         res.Header,
  9380  			HTTPStatusCode: res.StatusCode,
  9381  		},
  9382  	}
  9383  	target := &ret
  9384  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9385  		return nil, err
  9386  	}
  9387  	return ret, nil
  9388  }
  9389  
  9390  type ProjectsLocationsTaxonomiesCreateCall struct {
  9391  	s                                *Service
  9392  	parent                           string
  9393  	googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy
  9394  	urlParams_                       gensupport.URLParams
  9395  	ctx_                             context.Context
  9396  	header_                          http.Header
  9397  }
  9398  
  9399  // Create: Creates a taxonomy in a specified project. The taxonomy is initially
  9400  // empty, that is, it doesn't contain policy tags.
  9401  //
  9402  // - parent: Resource name of the project that the taxonomy will belong to.
  9403  func (r *ProjectsLocationsTaxonomiesService) Create(parent string, googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy) *ProjectsLocationsTaxonomiesCreateCall {
  9404  	c := &ProjectsLocationsTaxonomiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9405  	c.parent = parent
  9406  	c.googleclouddatacatalogv1taxonomy = googleclouddatacatalogv1taxonomy
  9407  	return c
  9408  }
  9409  
  9410  // Fields allows partial responses to be retrieved. See
  9411  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9412  // details.
  9413  func (c *ProjectsLocationsTaxonomiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesCreateCall {
  9414  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9415  	return c
  9416  }
  9417  
  9418  // Context sets the context to be used in this call's Do method.
  9419  func (c *ProjectsLocationsTaxonomiesCreateCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesCreateCall {
  9420  	c.ctx_ = ctx
  9421  	return c
  9422  }
  9423  
  9424  // Header returns a http.Header that can be modified by the caller to add
  9425  // headers to the request.
  9426  func (c *ProjectsLocationsTaxonomiesCreateCall) Header() http.Header {
  9427  	if c.header_ == nil {
  9428  		c.header_ = make(http.Header)
  9429  	}
  9430  	return c.header_
  9431  }
  9432  
  9433  func (c *ProjectsLocationsTaxonomiesCreateCall) doRequest(alt string) (*http.Response, error) {
  9434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9435  	var body io.Reader = nil
  9436  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1taxonomy)
  9437  	if err != nil {
  9438  		return nil, err
  9439  	}
  9440  	c.urlParams_.Set("alt", alt)
  9441  	c.urlParams_.Set("prettyPrint", "false")
  9442  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies")
  9443  	urls += "?" + c.urlParams_.Encode()
  9444  	req, err := http.NewRequest("POST", urls, body)
  9445  	if err != nil {
  9446  		return nil, err
  9447  	}
  9448  	req.Header = reqHeaders
  9449  	googleapi.Expand(req.URL, map[string]string{
  9450  		"parent": c.parent,
  9451  	})
  9452  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9453  }
  9454  
  9455  // Do executes the "datacatalog.projects.locations.taxonomies.create" call.
  9456  // Any non-2xx status code is an error. Response headers are in either
  9457  // *GoogleCloudDatacatalogV1Taxonomy.ServerResponse.Header or (if a response
  9458  // was returned at all) in error.(*googleapi.Error).Header. Use
  9459  // googleapi.IsNotModified to check whether the returned error was because
  9460  // http.StatusNotModified was returned.
  9461  func (c *ProjectsLocationsTaxonomiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
  9462  	gensupport.SetOptions(c.urlParams_, opts...)
  9463  	res, err := c.doRequest("json")
  9464  	if res != nil && res.StatusCode == http.StatusNotModified {
  9465  		if res.Body != nil {
  9466  			res.Body.Close()
  9467  		}
  9468  		return nil, gensupport.WrapError(&googleapi.Error{
  9469  			Code:   res.StatusCode,
  9470  			Header: res.Header,
  9471  		})
  9472  	}
  9473  	if err != nil {
  9474  		return nil, err
  9475  	}
  9476  	defer googleapi.CloseBody(res)
  9477  	if err := googleapi.CheckResponse(res); err != nil {
  9478  		return nil, gensupport.WrapError(err)
  9479  	}
  9480  	ret := &GoogleCloudDatacatalogV1Taxonomy{
  9481  		ServerResponse: googleapi.ServerResponse{
  9482  			Header:         res.Header,
  9483  			HTTPStatusCode: res.StatusCode,
  9484  		},
  9485  	}
  9486  	target := &ret
  9487  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9488  		return nil, err
  9489  	}
  9490  	return ret, nil
  9491  }
  9492  
  9493  type ProjectsLocationsTaxonomiesDeleteCall struct {
  9494  	s          *Service
  9495  	name       string
  9496  	urlParams_ gensupport.URLParams
  9497  	ctx_       context.Context
  9498  	header_    http.Header
  9499  }
  9500  
  9501  // Delete: Deletes a taxonomy, including all policy tags in this taxonomy,
  9502  // their associated policies, and the policy tags references from BigQuery
  9503  // columns.
  9504  //
  9505  //   - name: Resource name of the taxonomy to delete. Note: All policy tags in
  9506  //     this taxonomy are also deleted.
  9507  func (r *ProjectsLocationsTaxonomiesService) Delete(name string) *ProjectsLocationsTaxonomiesDeleteCall {
  9508  	c := &ProjectsLocationsTaxonomiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9509  	c.name = name
  9510  	return c
  9511  }
  9512  
  9513  // Fields allows partial responses to be retrieved. See
  9514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9515  // details.
  9516  func (c *ProjectsLocationsTaxonomiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesDeleteCall {
  9517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9518  	return c
  9519  }
  9520  
  9521  // Context sets the context to be used in this call's Do method.
  9522  func (c *ProjectsLocationsTaxonomiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesDeleteCall {
  9523  	c.ctx_ = ctx
  9524  	return c
  9525  }
  9526  
  9527  // Header returns a http.Header that can be modified by the caller to add
  9528  // headers to the request.
  9529  func (c *ProjectsLocationsTaxonomiesDeleteCall) Header() http.Header {
  9530  	if c.header_ == nil {
  9531  		c.header_ = make(http.Header)
  9532  	}
  9533  	return c.header_
  9534  }
  9535  
  9536  func (c *ProjectsLocationsTaxonomiesDeleteCall) doRequest(alt string) (*http.Response, error) {
  9537  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9538  	var body io.Reader = nil
  9539  	c.urlParams_.Set("alt", alt)
  9540  	c.urlParams_.Set("prettyPrint", "false")
  9541  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9542  	urls += "?" + c.urlParams_.Encode()
  9543  	req, err := http.NewRequest("DELETE", urls, body)
  9544  	if err != nil {
  9545  		return nil, err
  9546  	}
  9547  	req.Header = reqHeaders
  9548  	googleapi.Expand(req.URL, map[string]string{
  9549  		"name": c.name,
  9550  	})
  9551  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9552  }
  9553  
  9554  // Do executes the "datacatalog.projects.locations.taxonomies.delete" call.
  9555  // Any non-2xx status code is an error. Response headers are in either
  9556  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9557  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9558  // whether the returned error was because http.StatusNotModified was returned.
  9559  func (c *ProjectsLocationsTaxonomiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9560  	gensupport.SetOptions(c.urlParams_, opts...)
  9561  	res, err := c.doRequest("json")
  9562  	if res != nil && res.StatusCode == http.StatusNotModified {
  9563  		if res.Body != nil {
  9564  			res.Body.Close()
  9565  		}
  9566  		return nil, gensupport.WrapError(&googleapi.Error{
  9567  			Code:   res.StatusCode,
  9568  			Header: res.Header,
  9569  		})
  9570  	}
  9571  	if err != nil {
  9572  		return nil, err
  9573  	}
  9574  	defer googleapi.CloseBody(res)
  9575  	if err := googleapi.CheckResponse(res); err != nil {
  9576  		return nil, gensupport.WrapError(err)
  9577  	}
  9578  	ret := &Empty{
  9579  		ServerResponse: googleapi.ServerResponse{
  9580  			Header:         res.Header,
  9581  			HTTPStatusCode: res.StatusCode,
  9582  		},
  9583  	}
  9584  	target := &ret
  9585  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9586  		return nil, err
  9587  	}
  9588  	return ret, nil
  9589  }
  9590  
  9591  type ProjectsLocationsTaxonomiesExportCall struct {
  9592  	s            *Service
  9593  	parent       string
  9594  	urlParams_   gensupport.URLParams
  9595  	ifNoneMatch_ string
  9596  	ctx_         context.Context
  9597  	header_      http.Header
  9598  }
  9599  
  9600  // Export: Exports taxonomies in the requested type and returns them, including
  9601  // their policy tags. The requested taxonomies must belong to the same project.
  9602  // This method generates `SerializedTaxonomy` protocol buffers with nested
  9603  // policy tags that can be used as input for `ImportTaxonomies` calls.
  9604  //
  9605  //   - parent: Resource name of the project that the exported taxonomies belong
  9606  //     to.
  9607  func (r *ProjectsLocationsTaxonomiesService) Export(parent string) *ProjectsLocationsTaxonomiesExportCall {
  9608  	c := &ProjectsLocationsTaxonomiesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9609  	c.parent = parent
  9610  	return c
  9611  }
  9612  
  9613  // SerializedTaxonomies sets the optional parameter "serializedTaxonomies":
  9614  // Serialized export taxonomies that contain all the policy tags as nested
  9615  // protocol buffers.
  9616  func (c *ProjectsLocationsTaxonomiesExportCall) SerializedTaxonomies(serializedTaxonomies bool) *ProjectsLocationsTaxonomiesExportCall {
  9617  	c.urlParams_.Set("serializedTaxonomies", fmt.Sprint(serializedTaxonomies))
  9618  	return c
  9619  }
  9620  
  9621  // Taxonomies sets the optional parameter "taxonomies": Required. Resource
  9622  // names of the taxonomies to export.
  9623  func (c *ProjectsLocationsTaxonomiesExportCall) Taxonomies(taxonomies ...string) *ProjectsLocationsTaxonomiesExportCall {
  9624  	c.urlParams_.SetMulti("taxonomies", append([]string{}, taxonomies...))
  9625  	return c
  9626  }
  9627  
  9628  // Fields allows partial responses to be retrieved. See
  9629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9630  // details.
  9631  func (c *ProjectsLocationsTaxonomiesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesExportCall {
  9632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9633  	return c
  9634  }
  9635  
  9636  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9637  // object's ETag matches the given value. This is useful for getting updates
  9638  // only after the object has changed since the last request.
  9639  func (c *ProjectsLocationsTaxonomiesExportCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesExportCall {
  9640  	c.ifNoneMatch_ = entityTag
  9641  	return c
  9642  }
  9643  
  9644  // Context sets the context to be used in this call's Do method.
  9645  func (c *ProjectsLocationsTaxonomiesExportCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesExportCall {
  9646  	c.ctx_ = ctx
  9647  	return c
  9648  }
  9649  
  9650  // Header returns a http.Header that can be modified by the caller to add
  9651  // headers to the request.
  9652  func (c *ProjectsLocationsTaxonomiesExportCall) Header() http.Header {
  9653  	if c.header_ == nil {
  9654  		c.header_ = make(http.Header)
  9655  	}
  9656  	return c.header_
  9657  }
  9658  
  9659  func (c *ProjectsLocationsTaxonomiesExportCall) doRequest(alt string) (*http.Response, error) {
  9660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9661  	if c.ifNoneMatch_ != "" {
  9662  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9663  	}
  9664  	var body io.Reader = nil
  9665  	c.urlParams_.Set("alt", alt)
  9666  	c.urlParams_.Set("prettyPrint", "false")
  9667  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies:export")
  9668  	urls += "?" + c.urlParams_.Encode()
  9669  	req, err := http.NewRequest("GET", urls, body)
  9670  	if err != nil {
  9671  		return nil, err
  9672  	}
  9673  	req.Header = reqHeaders
  9674  	googleapi.Expand(req.URL, map[string]string{
  9675  		"parent": c.parent,
  9676  	})
  9677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9678  }
  9679  
  9680  // Do executes the "datacatalog.projects.locations.taxonomies.export" call.
  9681  // Any non-2xx status code is an error. Response headers are in either
  9682  // *GoogleCloudDatacatalogV1ExportTaxonomiesResponse.ServerResponse.Header or
  9683  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  9684  // googleapi.IsNotModified to check whether the returned error was because
  9685  // http.StatusNotModified was returned.
  9686  func (c *ProjectsLocationsTaxonomiesExportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ExportTaxonomiesResponse, error) {
  9687  	gensupport.SetOptions(c.urlParams_, opts...)
  9688  	res, err := c.doRequest("json")
  9689  	if res != nil && res.StatusCode == http.StatusNotModified {
  9690  		if res.Body != nil {
  9691  			res.Body.Close()
  9692  		}
  9693  		return nil, gensupport.WrapError(&googleapi.Error{
  9694  			Code:   res.StatusCode,
  9695  			Header: res.Header,
  9696  		})
  9697  	}
  9698  	if err != nil {
  9699  		return nil, err
  9700  	}
  9701  	defer googleapi.CloseBody(res)
  9702  	if err := googleapi.CheckResponse(res); err != nil {
  9703  		return nil, gensupport.WrapError(err)
  9704  	}
  9705  	ret := &GoogleCloudDatacatalogV1ExportTaxonomiesResponse{
  9706  		ServerResponse: googleapi.ServerResponse{
  9707  			Header:         res.Header,
  9708  			HTTPStatusCode: res.StatusCode,
  9709  		},
  9710  	}
  9711  	target := &ret
  9712  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9713  		return nil, err
  9714  	}
  9715  	return ret, nil
  9716  }
  9717  
  9718  type ProjectsLocationsTaxonomiesGetCall struct {
  9719  	s            *Service
  9720  	name         string
  9721  	urlParams_   gensupport.URLParams
  9722  	ifNoneMatch_ string
  9723  	ctx_         context.Context
  9724  	header_      http.Header
  9725  }
  9726  
  9727  // Get: Gets a taxonomy.
  9728  //
  9729  // - name: Resource name of the taxonomy to get.
  9730  func (r *ProjectsLocationsTaxonomiesService) Get(name string) *ProjectsLocationsTaxonomiesGetCall {
  9731  	c := &ProjectsLocationsTaxonomiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9732  	c.name = name
  9733  	return c
  9734  }
  9735  
  9736  // Fields allows partial responses to be retrieved. See
  9737  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9738  // details.
  9739  func (c *ProjectsLocationsTaxonomiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesGetCall {
  9740  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9741  	return c
  9742  }
  9743  
  9744  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9745  // object's ETag matches the given value. This is useful for getting updates
  9746  // only after the object has changed since the last request.
  9747  func (c *ProjectsLocationsTaxonomiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesGetCall {
  9748  	c.ifNoneMatch_ = entityTag
  9749  	return c
  9750  }
  9751  
  9752  // Context sets the context to be used in this call's Do method.
  9753  func (c *ProjectsLocationsTaxonomiesGetCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesGetCall {
  9754  	c.ctx_ = ctx
  9755  	return c
  9756  }
  9757  
  9758  // Header returns a http.Header that can be modified by the caller to add
  9759  // headers to the request.
  9760  func (c *ProjectsLocationsTaxonomiesGetCall) Header() http.Header {
  9761  	if c.header_ == nil {
  9762  		c.header_ = make(http.Header)
  9763  	}
  9764  	return c.header_
  9765  }
  9766  
  9767  func (c *ProjectsLocationsTaxonomiesGetCall) doRequest(alt string) (*http.Response, error) {
  9768  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9769  	if c.ifNoneMatch_ != "" {
  9770  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9771  	}
  9772  	var body io.Reader = nil
  9773  	c.urlParams_.Set("alt", alt)
  9774  	c.urlParams_.Set("prettyPrint", "false")
  9775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9776  	urls += "?" + c.urlParams_.Encode()
  9777  	req, err := http.NewRequest("GET", urls, body)
  9778  	if err != nil {
  9779  		return nil, err
  9780  	}
  9781  	req.Header = reqHeaders
  9782  	googleapi.Expand(req.URL, map[string]string{
  9783  		"name": c.name,
  9784  	})
  9785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9786  }
  9787  
  9788  // Do executes the "datacatalog.projects.locations.taxonomies.get" call.
  9789  // Any non-2xx status code is an error. Response headers are in either
  9790  // *GoogleCloudDatacatalogV1Taxonomy.ServerResponse.Header or (if a response
  9791  // was returned at all) in error.(*googleapi.Error).Header. Use
  9792  // googleapi.IsNotModified to check whether the returned error was because
  9793  // http.StatusNotModified was returned.
  9794  func (c *ProjectsLocationsTaxonomiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
  9795  	gensupport.SetOptions(c.urlParams_, opts...)
  9796  	res, err := c.doRequest("json")
  9797  	if res != nil && res.StatusCode == http.StatusNotModified {
  9798  		if res.Body != nil {
  9799  			res.Body.Close()
  9800  		}
  9801  		return nil, gensupport.WrapError(&googleapi.Error{
  9802  			Code:   res.StatusCode,
  9803  			Header: res.Header,
  9804  		})
  9805  	}
  9806  	if err != nil {
  9807  		return nil, err
  9808  	}
  9809  	defer googleapi.CloseBody(res)
  9810  	if err := googleapi.CheckResponse(res); err != nil {
  9811  		return nil, gensupport.WrapError(err)
  9812  	}
  9813  	ret := &GoogleCloudDatacatalogV1Taxonomy{
  9814  		ServerResponse: googleapi.ServerResponse{
  9815  			Header:         res.Header,
  9816  			HTTPStatusCode: res.StatusCode,
  9817  		},
  9818  	}
  9819  	target := &ret
  9820  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9821  		return nil, err
  9822  	}
  9823  	return ret, nil
  9824  }
  9825  
  9826  type ProjectsLocationsTaxonomiesGetIamPolicyCall struct {
  9827  	s                   *Service
  9828  	resource            string
  9829  	getiampolicyrequest *GetIamPolicyRequest
  9830  	urlParams_          gensupport.URLParams
  9831  	ctx_                context.Context
  9832  	header_             http.Header
  9833  }
  9834  
  9835  // GetIamPolicy: Gets the IAM policy for a policy tag or a taxonomy.
  9836  //
  9837  //   - resource: REQUIRED: The resource for which the policy is being requested.
  9838  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  9839  //     for the appropriate value for this field.
  9840  func (r *ProjectsLocationsTaxonomiesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTaxonomiesGetIamPolicyCall {
  9841  	c := &ProjectsLocationsTaxonomiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9842  	c.resource = resource
  9843  	c.getiampolicyrequest = getiampolicyrequest
  9844  	return c
  9845  }
  9846  
  9847  // Fields allows partial responses to be retrieved. See
  9848  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9849  // details.
  9850  func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesGetIamPolicyCall {
  9851  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9852  	return c
  9853  }
  9854  
  9855  // Context sets the context to be used in this call's Do method.
  9856  func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesGetIamPolicyCall {
  9857  	c.ctx_ = ctx
  9858  	return c
  9859  }
  9860  
  9861  // Header returns a http.Header that can be modified by the caller to add
  9862  // headers to the request.
  9863  func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Header() http.Header {
  9864  	if c.header_ == nil {
  9865  		c.header_ = make(http.Header)
  9866  	}
  9867  	return c.header_
  9868  }
  9869  
  9870  func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  9871  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9872  	var body io.Reader = nil
  9873  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
  9874  	if err != nil {
  9875  		return nil, err
  9876  	}
  9877  	c.urlParams_.Set("alt", alt)
  9878  	c.urlParams_.Set("prettyPrint", "false")
  9879  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  9880  	urls += "?" + c.urlParams_.Encode()
  9881  	req, err := http.NewRequest("POST", urls, body)
  9882  	if err != nil {
  9883  		return nil, err
  9884  	}
  9885  	req.Header = reqHeaders
  9886  	googleapi.Expand(req.URL, map[string]string{
  9887  		"resource": c.resource,
  9888  	})
  9889  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9890  }
  9891  
  9892  // Do executes the "datacatalog.projects.locations.taxonomies.getIamPolicy" call.
  9893  // Any non-2xx status code is an error. Response headers are in either
  9894  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  9895  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9896  // whether the returned error was because http.StatusNotModified was returned.
  9897  func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  9898  	gensupport.SetOptions(c.urlParams_, opts...)
  9899  	res, err := c.doRequest("json")
  9900  	if res != nil && res.StatusCode == http.StatusNotModified {
  9901  		if res.Body != nil {
  9902  			res.Body.Close()
  9903  		}
  9904  		return nil, gensupport.WrapError(&googleapi.Error{
  9905  			Code:   res.StatusCode,
  9906  			Header: res.Header,
  9907  		})
  9908  	}
  9909  	if err != nil {
  9910  		return nil, err
  9911  	}
  9912  	defer googleapi.CloseBody(res)
  9913  	if err := googleapi.CheckResponse(res); err != nil {
  9914  		return nil, gensupport.WrapError(err)
  9915  	}
  9916  	ret := &Policy{
  9917  		ServerResponse: googleapi.ServerResponse{
  9918  			Header:         res.Header,
  9919  			HTTPStatusCode: res.StatusCode,
  9920  		},
  9921  	}
  9922  	target := &ret
  9923  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9924  		return nil, err
  9925  	}
  9926  	return ret, nil
  9927  }
  9928  
  9929  type ProjectsLocationsTaxonomiesImportCall struct {
  9930  	s                                               *Service
  9931  	parent                                          string
  9932  	googleclouddatacatalogv1importtaxonomiesrequest *GoogleCloudDatacatalogV1ImportTaxonomiesRequest
  9933  	urlParams_                                      gensupport.URLParams
  9934  	ctx_                                            context.Context
  9935  	header_                                         http.Header
  9936  }
  9937  
  9938  // Import: Creates new taxonomies (including their policy tags) in a given
  9939  // project by importing from inlined or cross-regional sources. For a
  9940  // cross-regional source, new taxonomies are created by copying from a source
  9941  // in another region. For an inlined source, taxonomies and policy tags are
  9942  // created in bulk using nested protocol buffer structures.
  9943  //
  9944  //   - parent: Resource name of project that the imported taxonomies will belong
  9945  //     to.
  9946  func (r *ProjectsLocationsTaxonomiesService) Import(parent string, googleclouddatacatalogv1importtaxonomiesrequest *GoogleCloudDatacatalogV1ImportTaxonomiesRequest) *ProjectsLocationsTaxonomiesImportCall {
  9947  	c := &ProjectsLocationsTaxonomiesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9948  	c.parent = parent
  9949  	c.googleclouddatacatalogv1importtaxonomiesrequest = googleclouddatacatalogv1importtaxonomiesrequest
  9950  	return c
  9951  }
  9952  
  9953  // Fields allows partial responses to be retrieved. See
  9954  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9955  // details.
  9956  func (c *ProjectsLocationsTaxonomiesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesImportCall {
  9957  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9958  	return c
  9959  }
  9960  
  9961  // Context sets the context to be used in this call's Do method.
  9962  func (c *ProjectsLocationsTaxonomiesImportCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesImportCall {
  9963  	c.ctx_ = ctx
  9964  	return c
  9965  }
  9966  
  9967  // Header returns a http.Header that can be modified by the caller to add
  9968  // headers to the request.
  9969  func (c *ProjectsLocationsTaxonomiesImportCall) Header() http.Header {
  9970  	if c.header_ == nil {
  9971  		c.header_ = make(http.Header)
  9972  	}
  9973  	return c.header_
  9974  }
  9975  
  9976  func (c *ProjectsLocationsTaxonomiesImportCall) doRequest(alt string) (*http.Response, error) {
  9977  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9978  	var body io.Reader = nil
  9979  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1importtaxonomiesrequest)
  9980  	if err != nil {
  9981  		return nil, err
  9982  	}
  9983  	c.urlParams_.Set("alt", alt)
  9984  	c.urlParams_.Set("prettyPrint", "false")
  9985  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies:import")
  9986  	urls += "?" + c.urlParams_.Encode()
  9987  	req, err := http.NewRequest("POST", urls, body)
  9988  	if err != nil {
  9989  		return nil, err
  9990  	}
  9991  	req.Header = reqHeaders
  9992  	googleapi.Expand(req.URL, map[string]string{
  9993  		"parent": c.parent,
  9994  	})
  9995  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9996  }
  9997  
  9998  // Do executes the "datacatalog.projects.locations.taxonomies.import" call.
  9999  // Any non-2xx status code is an error. Response headers are in either
 10000  // *GoogleCloudDatacatalogV1ImportTaxonomiesResponse.ServerResponse.Header or
 10001  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 10002  // googleapi.IsNotModified to check whether the returned error was because
 10003  // http.StatusNotModified was returned.
 10004  func (c *ProjectsLocationsTaxonomiesImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ImportTaxonomiesResponse, error) {
 10005  	gensupport.SetOptions(c.urlParams_, opts...)
 10006  	res, err := c.doRequest("json")
 10007  	if res != nil && res.StatusCode == http.StatusNotModified {
 10008  		if res.Body != nil {
 10009  			res.Body.Close()
 10010  		}
 10011  		return nil, gensupport.WrapError(&googleapi.Error{
 10012  			Code:   res.StatusCode,
 10013  			Header: res.Header,
 10014  		})
 10015  	}
 10016  	if err != nil {
 10017  		return nil, err
 10018  	}
 10019  	defer googleapi.CloseBody(res)
 10020  	if err := googleapi.CheckResponse(res); err != nil {
 10021  		return nil, gensupport.WrapError(err)
 10022  	}
 10023  	ret := &GoogleCloudDatacatalogV1ImportTaxonomiesResponse{
 10024  		ServerResponse: googleapi.ServerResponse{
 10025  			Header:         res.Header,
 10026  			HTTPStatusCode: res.StatusCode,
 10027  		},
 10028  	}
 10029  	target := &ret
 10030  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10031  		return nil, err
 10032  	}
 10033  	return ret, nil
 10034  }
 10035  
 10036  type ProjectsLocationsTaxonomiesListCall struct {
 10037  	s            *Service
 10038  	parent       string
 10039  	urlParams_   gensupport.URLParams
 10040  	ifNoneMatch_ string
 10041  	ctx_         context.Context
 10042  	header_      http.Header
 10043  }
 10044  
 10045  // List: Lists all taxonomies in a project in a particular location that you
 10046  // have a permission to view.
 10047  //
 10048  // - parent: Resource name of the project to list the taxonomies of.
 10049  func (r *ProjectsLocationsTaxonomiesService) List(parent string) *ProjectsLocationsTaxonomiesListCall {
 10050  	c := &ProjectsLocationsTaxonomiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10051  	c.parent = parent
 10052  	return c
 10053  }
 10054  
 10055  // Filter sets the optional parameter "filter": Supported field for filter is
 10056  // 'service' and value is 'dataplex'. Eg: service=dataplex.
 10057  func (c *ProjectsLocationsTaxonomiesListCall) Filter(filter string) *ProjectsLocationsTaxonomiesListCall {
 10058  	c.urlParams_.Set("filter", filter)
 10059  	return c
 10060  }
 10061  
 10062  // PageSize sets the optional parameter "pageSize": The maximum number of items
 10063  // to return. Must be a value between 1 and 1000 inclusively. If not set,
 10064  // defaults to 50.
 10065  func (c *ProjectsLocationsTaxonomiesListCall) PageSize(pageSize int64) *ProjectsLocationsTaxonomiesListCall {
 10066  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10067  	return c
 10068  }
 10069  
 10070  // PageToken sets the optional parameter "pageToken": The pagination token of
 10071  // the next results page. If not set, the first page is returned. The token is
 10072  // returned in the response to a previous list request.
 10073  func (c *ProjectsLocationsTaxonomiesListCall) PageToken(pageToken string) *ProjectsLocationsTaxonomiesListCall {
 10074  	c.urlParams_.Set("pageToken", pageToken)
 10075  	return c
 10076  }
 10077  
 10078  // Fields allows partial responses to be retrieved. See
 10079  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10080  // details.
 10081  func (c *ProjectsLocationsTaxonomiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesListCall {
 10082  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10083  	return c
 10084  }
 10085  
 10086  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10087  // object's ETag matches the given value. This is useful for getting updates
 10088  // only after the object has changed since the last request.
 10089  func (c *ProjectsLocationsTaxonomiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesListCall {
 10090  	c.ifNoneMatch_ = entityTag
 10091  	return c
 10092  }
 10093  
 10094  // Context sets the context to be used in this call's Do method.
 10095  func (c *ProjectsLocationsTaxonomiesListCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesListCall {
 10096  	c.ctx_ = ctx
 10097  	return c
 10098  }
 10099  
 10100  // Header returns a http.Header that can be modified by the caller to add
 10101  // headers to the request.
 10102  func (c *ProjectsLocationsTaxonomiesListCall) Header() http.Header {
 10103  	if c.header_ == nil {
 10104  		c.header_ = make(http.Header)
 10105  	}
 10106  	return c.header_
 10107  }
 10108  
 10109  func (c *ProjectsLocationsTaxonomiesListCall) doRequest(alt string) (*http.Response, error) {
 10110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10111  	if c.ifNoneMatch_ != "" {
 10112  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10113  	}
 10114  	var body io.Reader = nil
 10115  	c.urlParams_.Set("alt", alt)
 10116  	c.urlParams_.Set("prettyPrint", "false")
 10117  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies")
 10118  	urls += "?" + c.urlParams_.Encode()
 10119  	req, err := http.NewRequest("GET", urls, body)
 10120  	if err != nil {
 10121  		return nil, err
 10122  	}
 10123  	req.Header = reqHeaders
 10124  	googleapi.Expand(req.URL, map[string]string{
 10125  		"parent": c.parent,
 10126  	})
 10127  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10128  }
 10129  
 10130  // Do executes the "datacatalog.projects.locations.taxonomies.list" call.
 10131  // Any non-2xx status code is an error. Response headers are in either
 10132  // *GoogleCloudDatacatalogV1ListTaxonomiesResponse.ServerResponse.Header or (if
 10133  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 10134  // googleapi.IsNotModified to check whether the returned error was because
 10135  // http.StatusNotModified was returned.
 10136  func (c *ProjectsLocationsTaxonomiesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListTaxonomiesResponse, error) {
 10137  	gensupport.SetOptions(c.urlParams_, opts...)
 10138  	res, err := c.doRequest("json")
 10139  	if res != nil && res.StatusCode == http.StatusNotModified {
 10140  		if res.Body != nil {
 10141  			res.Body.Close()
 10142  		}
 10143  		return nil, gensupport.WrapError(&googleapi.Error{
 10144  			Code:   res.StatusCode,
 10145  			Header: res.Header,
 10146  		})
 10147  	}
 10148  	if err != nil {
 10149  		return nil, err
 10150  	}
 10151  	defer googleapi.CloseBody(res)
 10152  	if err := googleapi.CheckResponse(res); err != nil {
 10153  		return nil, gensupport.WrapError(err)
 10154  	}
 10155  	ret := &GoogleCloudDatacatalogV1ListTaxonomiesResponse{
 10156  		ServerResponse: googleapi.ServerResponse{
 10157  			Header:         res.Header,
 10158  			HTTPStatusCode: res.StatusCode,
 10159  		},
 10160  	}
 10161  	target := &ret
 10162  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10163  		return nil, err
 10164  	}
 10165  	return ret, nil
 10166  }
 10167  
 10168  // Pages invokes f for each page of results.
 10169  // A non-nil error returned from f will halt the iteration.
 10170  // The provided context supersedes any context provided to the Context method.
 10171  func (c *ProjectsLocationsTaxonomiesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListTaxonomiesResponse) error) error {
 10172  	c.ctx_ = ctx
 10173  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10174  	for {
 10175  		x, err := c.Do()
 10176  		if err != nil {
 10177  			return err
 10178  		}
 10179  		if err := f(x); err != nil {
 10180  			return err
 10181  		}
 10182  		if x.NextPageToken == "" {
 10183  			return nil
 10184  		}
 10185  		c.PageToken(x.NextPageToken)
 10186  	}
 10187  }
 10188  
 10189  type ProjectsLocationsTaxonomiesPatchCall struct {
 10190  	s                                *Service
 10191  	name                             string
 10192  	googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy
 10193  	urlParams_                       gensupport.URLParams
 10194  	ctx_                             context.Context
 10195  	header_                          http.Header
 10196  }
 10197  
 10198  // Patch: Updates a taxonomy, including its display name, description, and
 10199  // activated policy types.
 10200  //
 10201  //   - name: Identifier. Resource name of this taxonomy in URL format. Note:
 10202  //     Policy tag manager generates unique taxonomy IDs.
 10203  func (r *ProjectsLocationsTaxonomiesService) Patch(name string, googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy) *ProjectsLocationsTaxonomiesPatchCall {
 10204  	c := &ProjectsLocationsTaxonomiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10205  	c.name = name
 10206  	c.googleclouddatacatalogv1taxonomy = googleclouddatacatalogv1taxonomy
 10207  	return c
 10208  }
 10209  
 10210  // UpdateMask sets the optional parameter "updateMask": Specifies fields to
 10211  // update. If not set, defaults to all fields you can update. For more
 10212  // information, see [FieldMask]
 10213  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
 10214  func (c *ProjectsLocationsTaxonomiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTaxonomiesPatchCall {
 10215  	c.urlParams_.Set("updateMask", updateMask)
 10216  	return c
 10217  }
 10218  
 10219  // Fields allows partial responses to be retrieved. See
 10220  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10221  // details.
 10222  func (c *ProjectsLocationsTaxonomiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPatchCall {
 10223  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10224  	return c
 10225  }
 10226  
 10227  // Context sets the context to be used in this call's Do method.
 10228  func (c *ProjectsLocationsTaxonomiesPatchCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPatchCall {
 10229  	c.ctx_ = ctx
 10230  	return c
 10231  }
 10232  
 10233  // Header returns a http.Header that can be modified by the caller to add
 10234  // headers to the request.
 10235  func (c *ProjectsLocationsTaxonomiesPatchCall) Header() http.Header {
 10236  	if c.header_ == nil {
 10237  		c.header_ = make(http.Header)
 10238  	}
 10239  	return c.header_
 10240  }
 10241  
 10242  func (c *ProjectsLocationsTaxonomiesPatchCall) doRequest(alt string) (*http.Response, error) {
 10243  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10244  	var body io.Reader = nil
 10245  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1taxonomy)
 10246  	if err != nil {
 10247  		return nil, err
 10248  	}
 10249  	c.urlParams_.Set("alt", alt)
 10250  	c.urlParams_.Set("prettyPrint", "false")
 10251  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10252  	urls += "?" + c.urlParams_.Encode()
 10253  	req, err := http.NewRequest("PATCH", urls, body)
 10254  	if err != nil {
 10255  		return nil, err
 10256  	}
 10257  	req.Header = reqHeaders
 10258  	googleapi.Expand(req.URL, map[string]string{
 10259  		"name": c.name,
 10260  	})
 10261  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10262  }
 10263  
 10264  // Do executes the "datacatalog.projects.locations.taxonomies.patch" call.
 10265  // Any non-2xx status code is an error. Response headers are in either
 10266  // *GoogleCloudDatacatalogV1Taxonomy.ServerResponse.Header or (if a response
 10267  // was returned at all) in error.(*googleapi.Error).Header. Use
 10268  // googleapi.IsNotModified to check whether the returned error was because
 10269  // http.StatusNotModified was returned.
 10270  func (c *ProjectsLocationsTaxonomiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
 10271  	gensupport.SetOptions(c.urlParams_, opts...)
 10272  	res, err := c.doRequest("json")
 10273  	if res != nil && res.StatusCode == http.StatusNotModified {
 10274  		if res.Body != nil {
 10275  			res.Body.Close()
 10276  		}
 10277  		return nil, gensupport.WrapError(&googleapi.Error{
 10278  			Code:   res.StatusCode,
 10279  			Header: res.Header,
 10280  		})
 10281  	}
 10282  	if err != nil {
 10283  		return nil, err
 10284  	}
 10285  	defer googleapi.CloseBody(res)
 10286  	if err := googleapi.CheckResponse(res); err != nil {
 10287  		return nil, gensupport.WrapError(err)
 10288  	}
 10289  	ret := &GoogleCloudDatacatalogV1Taxonomy{
 10290  		ServerResponse: googleapi.ServerResponse{
 10291  			Header:         res.Header,
 10292  			HTTPStatusCode: res.StatusCode,
 10293  		},
 10294  	}
 10295  	target := &ret
 10296  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10297  		return nil, err
 10298  	}
 10299  	return ret, nil
 10300  }
 10301  
 10302  type ProjectsLocationsTaxonomiesReplaceCall struct {
 10303  	s                                              *Service
 10304  	name                                           string
 10305  	googleclouddatacatalogv1replacetaxonomyrequest *GoogleCloudDatacatalogV1ReplaceTaxonomyRequest
 10306  	urlParams_                                     gensupport.URLParams
 10307  	ctx_                                           context.Context
 10308  	header_                                        http.Header
 10309  }
 10310  
 10311  // Replace: Replaces (updates) a taxonomy and all its policy tags. The taxonomy
 10312  // and its entire hierarchy of policy tags must be represented literally by
 10313  // `SerializedTaxonomy` and the nested `SerializedPolicyTag` messages. This
 10314  // operation automatically does the following: - Deletes the existing policy
 10315  // tags that are missing from the `SerializedPolicyTag`. - Creates policy tags
 10316  // that don't have resource names. They are considered new. - Updates policy
 10317  // tags with valid resources names accordingly.
 10318  //
 10319  // - name: Resource name of the taxonomy to update.
 10320  func (r *ProjectsLocationsTaxonomiesService) Replace(name string, googleclouddatacatalogv1replacetaxonomyrequest *GoogleCloudDatacatalogV1ReplaceTaxonomyRequest) *ProjectsLocationsTaxonomiesReplaceCall {
 10321  	c := &ProjectsLocationsTaxonomiesReplaceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10322  	c.name = name
 10323  	c.googleclouddatacatalogv1replacetaxonomyrequest = googleclouddatacatalogv1replacetaxonomyrequest
 10324  	return c
 10325  }
 10326  
 10327  // Fields allows partial responses to be retrieved. See
 10328  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10329  // details.
 10330  func (c *ProjectsLocationsTaxonomiesReplaceCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesReplaceCall {
 10331  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10332  	return c
 10333  }
 10334  
 10335  // Context sets the context to be used in this call's Do method.
 10336  func (c *ProjectsLocationsTaxonomiesReplaceCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesReplaceCall {
 10337  	c.ctx_ = ctx
 10338  	return c
 10339  }
 10340  
 10341  // Header returns a http.Header that can be modified by the caller to add
 10342  // headers to the request.
 10343  func (c *ProjectsLocationsTaxonomiesReplaceCall) Header() http.Header {
 10344  	if c.header_ == nil {
 10345  		c.header_ = make(http.Header)
 10346  	}
 10347  	return c.header_
 10348  }
 10349  
 10350  func (c *ProjectsLocationsTaxonomiesReplaceCall) doRequest(alt string) (*http.Response, error) {
 10351  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10352  	var body io.Reader = nil
 10353  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1replacetaxonomyrequest)
 10354  	if err != nil {
 10355  		return nil, err
 10356  	}
 10357  	c.urlParams_.Set("alt", alt)
 10358  	c.urlParams_.Set("prettyPrint", "false")
 10359  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:replace")
 10360  	urls += "?" + c.urlParams_.Encode()
 10361  	req, err := http.NewRequest("POST", urls, body)
 10362  	if err != nil {
 10363  		return nil, err
 10364  	}
 10365  	req.Header = reqHeaders
 10366  	googleapi.Expand(req.URL, map[string]string{
 10367  		"name": c.name,
 10368  	})
 10369  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10370  }
 10371  
 10372  // Do executes the "datacatalog.projects.locations.taxonomies.replace" call.
 10373  // Any non-2xx status code is an error. Response headers are in either
 10374  // *GoogleCloudDatacatalogV1Taxonomy.ServerResponse.Header or (if a response
 10375  // was returned at all) in error.(*googleapi.Error).Header. Use
 10376  // googleapi.IsNotModified to check whether the returned error was because
 10377  // http.StatusNotModified was returned.
 10378  func (c *ProjectsLocationsTaxonomiesReplaceCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
 10379  	gensupport.SetOptions(c.urlParams_, opts...)
 10380  	res, err := c.doRequest("json")
 10381  	if res != nil && res.StatusCode == http.StatusNotModified {
 10382  		if res.Body != nil {
 10383  			res.Body.Close()
 10384  		}
 10385  		return nil, gensupport.WrapError(&googleapi.Error{
 10386  			Code:   res.StatusCode,
 10387  			Header: res.Header,
 10388  		})
 10389  	}
 10390  	if err != nil {
 10391  		return nil, err
 10392  	}
 10393  	defer googleapi.CloseBody(res)
 10394  	if err := googleapi.CheckResponse(res); err != nil {
 10395  		return nil, gensupport.WrapError(err)
 10396  	}
 10397  	ret := &GoogleCloudDatacatalogV1Taxonomy{
 10398  		ServerResponse: googleapi.ServerResponse{
 10399  			Header:         res.Header,
 10400  			HTTPStatusCode: res.StatusCode,
 10401  		},
 10402  	}
 10403  	target := &ret
 10404  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10405  		return nil, err
 10406  	}
 10407  	return ret, nil
 10408  }
 10409  
 10410  type ProjectsLocationsTaxonomiesSetIamPolicyCall struct {
 10411  	s                   *Service
 10412  	resource            string
 10413  	setiampolicyrequest *SetIamPolicyRequest
 10414  	urlParams_          gensupport.URLParams
 10415  	ctx_                context.Context
 10416  	header_             http.Header
 10417  }
 10418  
 10419  // SetIamPolicy: Sets the IAM policy for a policy tag or a taxonomy.
 10420  //
 10421  //   - resource: REQUIRED: The resource for which the policy is being specified.
 10422  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10423  //     for the appropriate value for this field.
 10424  func (r *ProjectsLocationsTaxonomiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTaxonomiesSetIamPolicyCall {
 10425  	c := &ProjectsLocationsTaxonomiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10426  	c.resource = resource
 10427  	c.setiampolicyrequest = setiampolicyrequest
 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 *ProjectsLocationsTaxonomiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesSetIamPolicyCall {
 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 *ProjectsLocationsTaxonomiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesSetIamPolicyCall {
 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 *ProjectsLocationsTaxonomiesSetIamPolicyCall) Header() http.Header {
 10448  	if c.header_ == nil {
 10449  		c.header_ = make(http.Header)
 10450  	}
 10451  	return c.header_
 10452  }
 10453  
 10454  func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) 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.setiampolicyrequest)
 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, "v1/{+resource}:setIamPolicy")
 10464  	urls += "?" + c.urlParams_.Encode()
 10465  	req, err := http.NewRequest("POST", urls, body)
 10466  	if err != nil {
 10467  		return nil, err
 10468  	}
 10469  	req.Header = reqHeaders
 10470  	googleapi.Expand(req.URL, map[string]string{
 10471  		"resource": c.resource,
 10472  	})
 10473  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10474  }
 10475  
 10476  // Do executes the "datacatalog.projects.locations.taxonomies.setIamPolicy" call.
 10477  // Any non-2xx status code is an error. Response headers are in either
 10478  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 10479  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10480  // whether the returned error was because http.StatusNotModified was returned.
 10481  func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 10482  	gensupport.SetOptions(c.urlParams_, opts...)
 10483  	res, err := c.doRequest("json")
 10484  	if res != nil && res.StatusCode == http.StatusNotModified {
 10485  		if res.Body != nil {
 10486  			res.Body.Close()
 10487  		}
 10488  		return nil, gensupport.WrapError(&googleapi.Error{
 10489  			Code:   res.StatusCode,
 10490  			Header: res.Header,
 10491  		})
 10492  	}
 10493  	if err != nil {
 10494  		return nil, err
 10495  	}
 10496  	defer googleapi.CloseBody(res)
 10497  	if err := googleapi.CheckResponse(res); err != nil {
 10498  		return nil, gensupport.WrapError(err)
 10499  	}
 10500  	ret := &Policy{
 10501  		ServerResponse: googleapi.ServerResponse{
 10502  			Header:         res.Header,
 10503  			HTTPStatusCode: res.StatusCode,
 10504  		},
 10505  	}
 10506  	target := &ret
 10507  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10508  		return nil, err
 10509  	}
 10510  	return ret, nil
 10511  }
 10512  
 10513  type ProjectsLocationsTaxonomiesTestIamPermissionsCall struct {
 10514  	s                         *Service
 10515  	resource                  string
 10516  	testiampermissionsrequest *TestIamPermissionsRequest
 10517  	urlParams_                gensupport.URLParams
 10518  	ctx_                      context.Context
 10519  	header_                   http.Header
 10520  }
 10521  
 10522  // TestIamPermissions: Returns your permissions on a specified policy tag or
 10523  // taxonomy.
 10524  //
 10525  //   - resource: REQUIRED: The resource for which the policy detail is being
 10526  //     requested. See Resource names
 10527  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 10528  //     value for this field.
 10529  func (r *ProjectsLocationsTaxonomiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTaxonomiesTestIamPermissionsCall {
 10530  	c := &ProjectsLocationsTaxonomiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10531  	c.resource = resource
 10532  	c.testiampermissionsrequest = testiampermissionsrequest
 10533  	return c
 10534  }
 10535  
 10536  // Fields allows partial responses to be retrieved. See
 10537  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10538  // details.
 10539  func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesTestIamPermissionsCall {
 10540  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10541  	return c
 10542  }
 10543  
 10544  // Context sets the context to be used in this call's Do method.
 10545  func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesTestIamPermissionsCall {
 10546  	c.ctx_ = ctx
 10547  	return c
 10548  }
 10549  
 10550  // Header returns a http.Header that can be modified by the caller to add
 10551  // headers to the request.
 10552  func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Header() http.Header {
 10553  	if c.header_ == nil {
 10554  		c.header_ = make(http.Header)
 10555  	}
 10556  	return c.header_
 10557  }
 10558  
 10559  func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 10560  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10561  	var body io.Reader = nil
 10562  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 10563  	if err != nil {
 10564  		return nil, err
 10565  	}
 10566  	c.urlParams_.Set("alt", alt)
 10567  	c.urlParams_.Set("prettyPrint", "false")
 10568  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 10569  	urls += "?" + c.urlParams_.Encode()
 10570  	req, err := http.NewRequest("POST", urls, body)
 10571  	if err != nil {
 10572  		return nil, err
 10573  	}
 10574  	req.Header = reqHeaders
 10575  	googleapi.Expand(req.URL, map[string]string{
 10576  		"resource": c.resource,
 10577  	})
 10578  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10579  }
 10580  
 10581  // Do executes the "datacatalog.projects.locations.taxonomies.testIamPermissions" call.
 10582  // Any non-2xx status code is an error. Response headers are in either
 10583  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 10584  // returned at all) in error.(*googleapi.Error).Header. Use
 10585  // googleapi.IsNotModified to check whether the returned error was because
 10586  // http.StatusNotModified was returned.
 10587  func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 10588  	gensupport.SetOptions(c.urlParams_, opts...)
 10589  	res, err := c.doRequest("json")
 10590  	if res != nil && res.StatusCode == http.StatusNotModified {
 10591  		if res.Body != nil {
 10592  			res.Body.Close()
 10593  		}
 10594  		return nil, gensupport.WrapError(&googleapi.Error{
 10595  			Code:   res.StatusCode,
 10596  			Header: res.Header,
 10597  		})
 10598  	}
 10599  	if err != nil {
 10600  		return nil, err
 10601  	}
 10602  	defer googleapi.CloseBody(res)
 10603  	if err := googleapi.CheckResponse(res); err != nil {
 10604  		return nil, gensupport.WrapError(err)
 10605  	}
 10606  	ret := &TestIamPermissionsResponse{
 10607  		ServerResponse: googleapi.ServerResponse{
 10608  			Header:         res.Header,
 10609  			HTTPStatusCode: res.StatusCode,
 10610  		},
 10611  	}
 10612  	target := &ret
 10613  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10614  		return nil, err
 10615  	}
 10616  	return ret, nil
 10617  }
 10618  
 10619  type ProjectsLocationsTaxonomiesPolicyTagsCreateCall struct {
 10620  	s                                 *Service
 10621  	parent                            string
 10622  	googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag
 10623  	urlParams_                        gensupport.URLParams
 10624  	ctx_                              context.Context
 10625  	header_                           http.Header
 10626  }
 10627  
 10628  // Create: Creates a policy tag in a taxonomy.
 10629  //
 10630  // - parent: Resource name of the taxonomy that the policy tag will belong to.
 10631  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Create(parent string, googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag) *ProjectsLocationsTaxonomiesPolicyTagsCreateCall {
 10632  	c := &ProjectsLocationsTaxonomiesPolicyTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10633  	c.parent = parent
 10634  	c.googleclouddatacatalogv1policytag = googleclouddatacatalogv1policytag
 10635  	return c
 10636  }
 10637  
 10638  // Fields allows partial responses to be retrieved. See
 10639  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10640  // details.
 10641  func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsCreateCall {
 10642  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10643  	return c
 10644  }
 10645  
 10646  // Context sets the context to be used in this call's Do method.
 10647  func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsCreateCall {
 10648  	c.ctx_ = ctx
 10649  	return c
 10650  }
 10651  
 10652  // Header returns a http.Header that can be modified by the caller to add
 10653  // headers to the request.
 10654  func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Header() http.Header {
 10655  	if c.header_ == nil {
 10656  		c.header_ = make(http.Header)
 10657  	}
 10658  	return c.header_
 10659  }
 10660  
 10661  func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) doRequest(alt string) (*http.Response, error) {
 10662  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10663  	var body io.Reader = nil
 10664  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1policytag)
 10665  	if err != nil {
 10666  		return nil, err
 10667  	}
 10668  	c.urlParams_.Set("alt", alt)
 10669  	c.urlParams_.Set("prettyPrint", "false")
 10670  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/policyTags")
 10671  	urls += "?" + c.urlParams_.Encode()
 10672  	req, err := http.NewRequest("POST", urls, body)
 10673  	if err != nil {
 10674  		return nil, err
 10675  	}
 10676  	req.Header = reqHeaders
 10677  	googleapi.Expand(req.URL, map[string]string{
 10678  		"parent": c.parent,
 10679  	})
 10680  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10681  }
 10682  
 10683  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.create" call.
 10684  // Any non-2xx status code is an error. Response headers are in either
 10685  // *GoogleCloudDatacatalogV1PolicyTag.ServerResponse.Header or (if a response
 10686  // was returned at all) in error.(*googleapi.Error).Header. Use
 10687  // googleapi.IsNotModified to check whether the returned error was because
 10688  // http.StatusNotModified was returned.
 10689  func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1PolicyTag, error) {
 10690  	gensupport.SetOptions(c.urlParams_, opts...)
 10691  	res, err := c.doRequest("json")
 10692  	if res != nil && res.StatusCode == http.StatusNotModified {
 10693  		if res.Body != nil {
 10694  			res.Body.Close()
 10695  		}
 10696  		return nil, gensupport.WrapError(&googleapi.Error{
 10697  			Code:   res.StatusCode,
 10698  			Header: res.Header,
 10699  		})
 10700  	}
 10701  	if err != nil {
 10702  		return nil, err
 10703  	}
 10704  	defer googleapi.CloseBody(res)
 10705  	if err := googleapi.CheckResponse(res); err != nil {
 10706  		return nil, gensupport.WrapError(err)
 10707  	}
 10708  	ret := &GoogleCloudDatacatalogV1PolicyTag{
 10709  		ServerResponse: googleapi.ServerResponse{
 10710  			Header:         res.Header,
 10711  			HTTPStatusCode: res.StatusCode,
 10712  		},
 10713  	}
 10714  	target := &ret
 10715  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10716  		return nil, err
 10717  	}
 10718  	return ret, nil
 10719  }
 10720  
 10721  type ProjectsLocationsTaxonomiesPolicyTagsDeleteCall struct {
 10722  	s          *Service
 10723  	name       string
 10724  	urlParams_ gensupport.URLParams
 10725  	ctx_       context.Context
 10726  	header_    http.Header
 10727  }
 10728  
 10729  // Delete: Deletes a policy tag together with the following: * All of its
 10730  // descendant policy tags, if any * Policies associated with the policy tag and
 10731  // its descendants * References from BigQuery table schema of the policy tag
 10732  // and its descendants
 10733  //
 10734  //   - name: Resource name of the policy tag to delete. Note: All of its
 10735  //     descendant policy tags are also deleted.
 10736  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Delete(name string) *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall {
 10737  	c := &ProjectsLocationsTaxonomiesPolicyTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10738  	c.name = name
 10739  	return c
 10740  }
 10741  
 10742  // Fields allows partial responses to be retrieved. See
 10743  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10744  // details.
 10745  func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall {
 10746  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10747  	return c
 10748  }
 10749  
 10750  // Context sets the context to be used in this call's Do method.
 10751  func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall {
 10752  	c.ctx_ = ctx
 10753  	return c
 10754  }
 10755  
 10756  // Header returns a http.Header that can be modified by the caller to add
 10757  // headers to the request.
 10758  func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Header() http.Header {
 10759  	if c.header_ == nil {
 10760  		c.header_ = make(http.Header)
 10761  	}
 10762  	return c.header_
 10763  }
 10764  
 10765  func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10766  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10767  	var body io.Reader = nil
 10768  	c.urlParams_.Set("alt", alt)
 10769  	c.urlParams_.Set("prettyPrint", "false")
 10770  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10771  	urls += "?" + c.urlParams_.Encode()
 10772  	req, err := http.NewRequest("DELETE", urls, body)
 10773  	if err != nil {
 10774  		return nil, err
 10775  	}
 10776  	req.Header = reqHeaders
 10777  	googleapi.Expand(req.URL, map[string]string{
 10778  		"name": c.name,
 10779  	})
 10780  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10781  }
 10782  
 10783  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.delete" call.
 10784  // Any non-2xx status code is an error. Response headers are in either
 10785  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 10786  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10787  // whether the returned error was because http.StatusNotModified was returned.
 10788  func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10789  	gensupport.SetOptions(c.urlParams_, opts...)
 10790  	res, err := c.doRequest("json")
 10791  	if res != nil && res.StatusCode == http.StatusNotModified {
 10792  		if res.Body != nil {
 10793  			res.Body.Close()
 10794  		}
 10795  		return nil, gensupport.WrapError(&googleapi.Error{
 10796  			Code:   res.StatusCode,
 10797  			Header: res.Header,
 10798  		})
 10799  	}
 10800  	if err != nil {
 10801  		return nil, err
 10802  	}
 10803  	defer googleapi.CloseBody(res)
 10804  	if err := googleapi.CheckResponse(res); err != nil {
 10805  		return nil, gensupport.WrapError(err)
 10806  	}
 10807  	ret := &Empty{
 10808  		ServerResponse: googleapi.ServerResponse{
 10809  			Header:         res.Header,
 10810  			HTTPStatusCode: res.StatusCode,
 10811  		},
 10812  	}
 10813  	target := &ret
 10814  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10815  		return nil, err
 10816  	}
 10817  	return ret, nil
 10818  }
 10819  
 10820  type ProjectsLocationsTaxonomiesPolicyTagsGetCall struct {
 10821  	s            *Service
 10822  	name         string
 10823  	urlParams_   gensupport.URLParams
 10824  	ifNoneMatch_ string
 10825  	ctx_         context.Context
 10826  	header_      http.Header
 10827  }
 10828  
 10829  // Get: Gets a policy tag.
 10830  //
 10831  // - name: Resource name of the policy tag.
 10832  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Get(name string) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
 10833  	c := &ProjectsLocationsTaxonomiesPolicyTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10834  	c.name = name
 10835  	return c
 10836  }
 10837  
 10838  // Fields allows partial responses to be retrieved. See
 10839  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10840  // details.
 10841  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
 10842  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10843  	return c
 10844  }
 10845  
 10846  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10847  // object's ETag matches the given value. This is useful for getting updates
 10848  // only after the object has changed since the last request.
 10849  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
 10850  	c.ifNoneMatch_ = entityTag
 10851  	return c
 10852  }
 10853  
 10854  // Context sets the context to be used in this call's Do method.
 10855  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
 10856  	c.ctx_ = ctx
 10857  	return c
 10858  }
 10859  
 10860  // Header returns a http.Header that can be modified by the caller to add
 10861  // headers to the request.
 10862  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Header() http.Header {
 10863  	if c.header_ == nil {
 10864  		c.header_ = make(http.Header)
 10865  	}
 10866  	return c.header_
 10867  }
 10868  
 10869  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) doRequest(alt string) (*http.Response, error) {
 10870  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10871  	if c.ifNoneMatch_ != "" {
 10872  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10873  	}
 10874  	var body io.Reader = nil
 10875  	c.urlParams_.Set("alt", alt)
 10876  	c.urlParams_.Set("prettyPrint", "false")
 10877  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10878  	urls += "?" + c.urlParams_.Encode()
 10879  	req, err := http.NewRequest("GET", urls, body)
 10880  	if err != nil {
 10881  		return nil, err
 10882  	}
 10883  	req.Header = reqHeaders
 10884  	googleapi.Expand(req.URL, map[string]string{
 10885  		"name": c.name,
 10886  	})
 10887  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10888  }
 10889  
 10890  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.get" call.
 10891  // Any non-2xx status code is an error. Response headers are in either
 10892  // *GoogleCloudDatacatalogV1PolicyTag.ServerResponse.Header or (if a response
 10893  // was returned at all) in error.(*googleapi.Error).Header. Use
 10894  // googleapi.IsNotModified to check whether the returned error was because
 10895  // http.StatusNotModified was returned.
 10896  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1PolicyTag, error) {
 10897  	gensupport.SetOptions(c.urlParams_, opts...)
 10898  	res, err := c.doRequest("json")
 10899  	if res != nil && res.StatusCode == http.StatusNotModified {
 10900  		if res.Body != nil {
 10901  			res.Body.Close()
 10902  		}
 10903  		return nil, gensupport.WrapError(&googleapi.Error{
 10904  			Code:   res.StatusCode,
 10905  			Header: res.Header,
 10906  		})
 10907  	}
 10908  	if err != nil {
 10909  		return nil, err
 10910  	}
 10911  	defer googleapi.CloseBody(res)
 10912  	if err := googleapi.CheckResponse(res); err != nil {
 10913  		return nil, gensupport.WrapError(err)
 10914  	}
 10915  	ret := &GoogleCloudDatacatalogV1PolicyTag{
 10916  		ServerResponse: googleapi.ServerResponse{
 10917  			Header:         res.Header,
 10918  			HTTPStatusCode: res.StatusCode,
 10919  		},
 10920  	}
 10921  	target := &ret
 10922  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10923  		return nil, err
 10924  	}
 10925  	return ret, nil
 10926  }
 10927  
 10928  type ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall struct {
 10929  	s                   *Service
 10930  	resource            string
 10931  	getiampolicyrequest *GetIamPolicyRequest
 10932  	urlParams_          gensupport.URLParams
 10933  	ctx_                context.Context
 10934  	header_             http.Header
 10935  }
 10936  
 10937  // GetIamPolicy: Gets the IAM policy for a policy tag or a taxonomy.
 10938  //
 10939  //   - resource: REQUIRED: The resource for which the policy is being requested.
 10940  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10941  //     for the appropriate value for this field.
 10942  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall {
 10943  	c := &ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10944  	c.resource = resource
 10945  	c.getiampolicyrequest = getiampolicyrequest
 10946  	return c
 10947  }
 10948  
 10949  // Fields allows partial responses to be retrieved. See
 10950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10951  // details.
 10952  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall {
 10953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10954  	return c
 10955  }
 10956  
 10957  // Context sets the context to be used in this call's Do method.
 10958  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall {
 10959  	c.ctx_ = ctx
 10960  	return c
 10961  }
 10962  
 10963  // Header returns a http.Header that can be modified by the caller to add
 10964  // headers to the request.
 10965  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Header() http.Header {
 10966  	if c.header_ == nil {
 10967  		c.header_ = make(http.Header)
 10968  	}
 10969  	return c.header_
 10970  }
 10971  
 10972  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 10973  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10974  	var body io.Reader = nil
 10975  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
 10976  	if err != nil {
 10977  		return nil, err
 10978  	}
 10979  	c.urlParams_.Set("alt", alt)
 10980  	c.urlParams_.Set("prettyPrint", "false")
 10981  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 10982  	urls += "?" + c.urlParams_.Encode()
 10983  	req, err := http.NewRequest("POST", urls, body)
 10984  	if err != nil {
 10985  		return nil, err
 10986  	}
 10987  	req.Header = reqHeaders
 10988  	googleapi.Expand(req.URL, map[string]string{
 10989  		"resource": c.resource,
 10990  	})
 10991  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10992  }
 10993  
 10994  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.getIamPolicy" call.
 10995  // Any non-2xx status code is an error. Response headers are in either
 10996  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 10997  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10998  // whether the returned error was because http.StatusNotModified was returned.
 10999  func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 11000  	gensupport.SetOptions(c.urlParams_, opts...)
 11001  	res, err := c.doRequest("json")
 11002  	if res != nil && res.StatusCode == http.StatusNotModified {
 11003  		if res.Body != nil {
 11004  			res.Body.Close()
 11005  		}
 11006  		return nil, gensupport.WrapError(&googleapi.Error{
 11007  			Code:   res.StatusCode,
 11008  			Header: res.Header,
 11009  		})
 11010  	}
 11011  	if err != nil {
 11012  		return nil, err
 11013  	}
 11014  	defer googleapi.CloseBody(res)
 11015  	if err := googleapi.CheckResponse(res); err != nil {
 11016  		return nil, gensupport.WrapError(err)
 11017  	}
 11018  	ret := &Policy{
 11019  		ServerResponse: googleapi.ServerResponse{
 11020  			Header:         res.Header,
 11021  			HTTPStatusCode: res.StatusCode,
 11022  		},
 11023  	}
 11024  	target := &ret
 11025  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11026  		return nil, err
 11027  	}
 11028  	return ret, nil
 11029  }
 11030  
 11031  type ProjectsLocationsTaxonomiesPolicyTagsListCall struct {
 11032  	s            *Service
 11033  	parent       string
 11034  	urlParams_   gensupport.URLParams
 11035  	ifNoneMatch_ string
 11036  	ctx_         context.Context
 11037  	header_      http.Header
 11038  }
 11039  
 11040  // List: Lists all policy tags in a taxonomy.
 11041  //
 11042  // - parent: Resource name of the taxonomy to list the policy tags of.
 11043  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) List(parent string) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
 11044  	c := &ProjectsLocationsTaxonomiesPolicyTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11045  	c.parent = parent
 11046  	return c
 11047  }
 11048  
 11049  // PageSize sets the optional parameter "pageSize": The maximum number of items
 11050  // to return. Must be a value between 1 and 1000 inclusively. If not set,
 11051  // defaults to 50.
 11052  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) PageSize(pageSize int64) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
 11053  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11054  	return c
 11055  }
 11056  
 11057  // PageToken sets the optional parameter "pageToken": The pagination token of
 11058  // the next results page. If not set, returns the first page. The token is
 11059  // returned in the response to a previous list request.
 11060  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) PageToken(pageToken string) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
 11061  	c.urlParams_.Set("pageToken", pageToken)
 11062  	return c
 11063  }
 11064  
 11065  // Fields allows partial responses to be retrieved. See
 11066  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11067  // details.
 11068  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
 11069  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11070  	return c
 11071  }
 11072  
 11073  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11074  // object's ETag matches the given value. This is useful for getting updates
 11075  // only after the object has changed since the last request.
 11076  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
 11077  	c.ifNoneMatch_ = entityTag
 11078  	return c
 11079  }
 11080  
 11081  // Context sets the context to be used in this call's Do method.
 11082  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
 11083  	c.ctx_ = ctx
 11084  	return c
 11085  }
 11086  
 11087  // Header returns a http.Header that can be modified by the caller to add
 11088  // headers to the request.
 11089  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Header() http.Header {
 11090  	if c.header_ == nil {
 11091  		c.header_ = make(http.Header)
 11092  	}
 11093  	return c.header_
 11094  }
 11095  
 11096  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) doRequest(alt string) (*http.Response, error) {
 11097  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11098  	if c.ifNoneMatch_ != "" {
 11099  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11100  	}
 11101  	var body io.Reader = nil
 11102  	c.urlParams_.Set("alt", alt)
 11103  	c.urlParams_.Set("prettyPrint", "false")
 11104  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/policyTags")
 11105  	urls += "?" + c.urlParams_.Encode()
 11106  	req, err := http.NewRequest("GET", urls, body)
 11107  	if err != nil {
 11108  		return nil, err
 11109  	}
 11110  	req.Header = reqHeaders
 11111  	googleapi.Expand(req.URL, map[string]string{
 11112  		"parent": c.parent,
 11113  	})
 11114  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11115  }
 11116  
 11117  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.list" call.
 11118  // Any non-2xx status code is an error. Response headers are in either
 11119  // *GoogleCloudDatacatalogV1ListPolicyTagsResponse.ServerResponse.Header or (if
 11120  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 11121  // googleapi.IsNotModified to check whether the returned error was because
 11122  // http.StatusNotModified was returned.
 11123  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListPolicyTagsResponse, error) {
 11124  	gensupport.SetOptions(c.urlParams_, opts...)
 11125  	res, err := c.doRequest("json")
 11126  	if res != nil && res.StatusCode == http.StatusNotModified {
 11127  		if res.Body != nil {
 11128  			res.Body.Close()
 11129  		}
 11130  		return nil, gensupport.WrapError(&googleapi.Error{
 11131  			Code:   res.StatusCode,
 11132  			Header: res.Header,
 11133  		})
 11134  	}
 11135  	if err != nil {
 11136  		return nil, err
 11137  	}
 11138  	defer googleapi.CloseBody(res)
 11139  	if err := googleapi.CheckResponse(res); err != nil {
 11140  		return nil, gensupport.WrapError(err)
 11141  	}
 11142  	ret := &GoogleCloudDatacatalogV1ListPolicyTagsResponse{
 11143  		ServerResponse: googleapi.ServerResponse{
 11144  			Header:         res.Header,
 11145  			HTTPStatusCode: res.StatusCode,
 11146  		},
 11147  	}
 11148  	target := &ret
 11149  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11150  		return nil, err
 11151  	}
 11152  	return ret, nil
 11153  }
 11154  
 11155  // Pages invokes f for each page of results.
 11156  // A non-nil error returned from f will halt the iteration.
 11157  // The provided context supersedes any context provided to the Context method.
 11158  func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListPolicyTagsResponse) error) error {
 11159  	c.ctx_ = ctx
 11160  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11161  	for {
 11162  		x, err := c.Do()
 11163  		if err != nil {
 11164  			return err
 11165  		}
 11166  		if err := f(x); err != nil {
 11167  			return err
 11168  		}
 11169  		if x.NextPageToken == "" {
 11170  			return nil
 11171  		}
 11172  		c.PageToken(x.NextPageToken)
 11173  	}
 11174  }
 11175  
 11176  type ProjectsLocationsTaxonomiesPolicyTagsPatchCall struct {
 11177  	s                                 *Service
 11178  	name                              string
 11179  	googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag
 11180  	urlParams_                        gensupport.URLParams
 11181  	ctx_                              context.Context
 11182  	header_                           http.Header
 11183  }
 11184  
 11185  // Patch: Updates a policy tag, including its display name, description, and
 11186  // parent policy tag.
 11187  //
 11188  //   - name: Identifier. Resource name of this policy tag in the URL format. The
 11189  //     policy tag manager generates unique taxonomy IDs and policy tag IDs.
 11190  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Patch(name string, googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
 11191  	c := &ProjectsLocationsTaxonomiesPolicyTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11192  	c.name = name
 11193  	c.googleclouddatacatalogv1policytag = googleclouddatacatalogv1policytag
 11194  	return c
 11195  }
 11196  
 11197  // UpdateMask sets the optional parameter "updateMask": Specifies the fields to
 11198  // update. You can update only display name, description, and parent policy
 11199  // tag. If not set, defaults to all updatable fields. For more information, see
 11200  // [FieldMask]
 11201  // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
 11202  func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
 11203  	c.urlParams_.Set("updateMask", updateMask)
 11204  	return c
 11205  }
 11206  
 11207  // Fields allows partial responses to be retrieved. See
 11208  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11209  // details.
 11210  func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
 11211  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11212  	return c
 11213  }
 11214  
 11215  // Context sets the context to be used in this call's Do method.
 11216  func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
 11217  	c.ctx_ = ctx
 11218  	return c
 11219  }
 11220  
 11221  // Header returns a http.Header that can be modified by the caller to add
 11222  // headers to the request.
 11223  func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Header() http.Header {
 11224  	if c.header_ == nil {
 11225  		c.header_ = make(http.Header)
 11226  	}
 11227  	return c.header_
 11228  }
 11229  
 11230  func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) doRequest(alt string) (*http.Response, error) {
 11231  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11232  	var body io.Reader = nil
 11233  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1policytag)
 11234  	if err != nil {
 11235  		return nil, err
 11236  	}
 11237  	c.urlParams_.Set("alt", alt)
 11238  	c.urlParams_.Set("prettyPrint", "false")
 11239  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11240  	urls += "?" + c.urlParams_.Encode()
 11241  	req, err := http.NewRequest("PATCH", urls, body)
 11242  	if err != nil {
 11243  		return nil, err
 11244  	}
 11245  	req.Header = reqHeaders
 11246  	googleapi.Expand(req.URL, map[string]string{
 11247  		"name": c.name,
 11248  	})
 11249  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11250  }
 11251  
 11252  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.patch" call.
 11253  // Any non-2xx status code is an error. Response headers are in either
 11254  // *GoogleCloudDatacatalogV1PolicyTag.ServerResponse.Header or (if a response
 11255  // was returned at all) in error.(*googleapi.Error).Header. Use
 11256  // googleapi.IsNotModified to check whether the returned error was because
 11257  // http.StatusNotModified was returned.
 11258  func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1PolicyTag, error) {
 11259  	gensupport.SetOptions(c.urlParams_, opts...)
 11260  	res, err := c.doRequest("json")
 11261  	if res != nil && res.StatusCode == http.StatusNotModified {
 11262  		if res.Body != nil {
 11263  			res.Body.Close()
 11264  		}
 11265  		return nil, gensupport.WrapError(&googleapi.Error{
 11266  			Code:   res.StatusCode,
 11267  			Header: res.Header,
 11268  		})
 11269  	}
 11270  	if err != nil {
 11271  		return nil, err
 11272  	}
 11273  	defer googleapi.CloseBody(res)
 11274  	if err := googleapi.CheckResponse(res); err != nil {
 11275  		return nil, gensupport.WrapError(err)
 11276  	}
 11277  	ret := &GoogleCloudDatacatalogV1PolicyTag{
 11278  		ServerResponse: googleapi.ServerResponse{
 11279  			Header:         res.Header,
 11280  			HTTPStatusCode: res.StatusCode,
 11281  		},
 11282  	}
 11283  	target := &ret
 11284  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11285  		return nil, err
 11286  	}
 11287  	return ret, nil
 11288  }
 11289  
 11290  type ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall struct {
 11291  	s                   *Service
 11292  	resource            string
 11293  	setiampolicyrequest *SetIamPolicyRequest
 11294  	urlParams_          gensupport.URLParams
 11295  	ctx_                context.Context
 11296  	header_             http.Header
 11297  }
 11298  
 11299  // SetIamPolicy: Sets the IAM policy for a policy tag or a taxonomy.
 11300  //
 11301  //   - resource: REQUIRED: The resource for which the policy is being specified.
 11302  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 11303  //     for the appropriate value for this field.
 11304  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall {
 11305  	c := &ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11306  	c.resource = resource
 11307  	c.setiampolicyrequest = setiampolicyrequest
 11308  	return c
 11309  }
 11310  
 11311  // Fields allows partial responses to be retrieved. See
 11312  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11313  // details.
 11314  func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall {
 11315  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11316  	return c
 11317  }
 11318  
 11319  // Context sets the context to be used in this call's Do method.
 11320  func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall {
 11321  	c.ctx_ = ctx
 11322  	return c
 11323  }
 11324  
 11325  // Header returns a http.Header that can be modified by the caller to add
 11326  // headers to the request.
 11327  func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Header() http.Header {
 11328  	if c.header_ == nil {
 11329  		c.header_ = make(http.Header)
 11330  	}
 11331  	return c.header_
 11332  }
 11333  
 11334  func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11335  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11336  	var body io.Reader = nil
 11337  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 11338  	if err != nil {
 11339  		return nil, err
 11340  	}
 11341  	c.urlParams_.Set("alt", alt)
 11342  	c.urlParams_.Set("prettyPrint", "false")
 11343  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 11344  	urls += "?" + c.urlParams_.Encode()
 11345  	req, err := http.NewRequest("POST", urls, body)
 11346  	if err != nil {
 11347  		return nil, err
 11348  	}
 11349  	req.Header = reqHeaders
 11350  	googleapi.Expand(req.URL, map[string]string{
 11351  		"resource": c.resource,
 11352  	})
 11353  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11354  }
 11355  
 11356  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.setIamPolicy" call.
 11357  // Any non-2xx status code is an error. Response headers are in either
 11358  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 11359  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11360  // whether the returned error was because http.StatusNotModified was returned.
 11361  func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 11362  	gensupport.SetOptions(c.urlParams_, opts...)
 11363  	res, err := c.doRequest("json")
 11364  	if res != nil && res.StatusCode == http.StatusNotModified {
 11365  		if res.Body != nil {
 11366  			res.Body.Close()
 11367  		}
 11368  		return nil, gensupport.WrapError(&googleapi.Error{
 11369  			Code:   res.StatusCode,
 11370  			Header: res.Header,
 11371  		})
 11372  	}
 11373  	if err != nil {
 11374  		return nil, err
 11375  	}
 11376  	defer googleapi.CloseBody(res)
 11377  	if err := googleapi.CheckResponse(res); err != nil {
 11378  		return nil, gensupport.WrapError(err)
 11379  	}
 11380  	ret := &Policy{
 11381  		ServerResponse: googleapi.ServerResponse{
 11382  			Header:         res.Header,
 11383  			HTTPStatusCode: res.StatusCode,
 11384  		},
 11385  	}
 11386  	target := &ret
 11387  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11388  		return nil, err
 11389  	}
 11390  	return ret, nil
 11391  }
 11392  
 11393  type ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall struct {
 11394  	s                         *Service
 11395  	resource                  string
 11396  	testiampermissionsrequest *TestIamPermissionsRequest
 11397  	urlParams_                gensupport.URLParams
 11398  	ctx_                      context.Context
 11399  	header_                   http.Header
 11400  }
 11401  
 11402  // TestIamPermissions: Returns your permissions on a specified policy tag or
 11403  // taxonomy.
 11404  //
 11405  //   - resource: REQUIRED: The resource for which the policy detail is being
 11406  //     requested. See Resource names
 11407  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 11408  //     value for this field.
 11409  func (r *ProjectsLocationsTaxonomiesPolicyTagsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall {
 11410  	c := &ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11411  	c.resource = resource
 11412  	c.testiampermissionsrequest = testiampermissionsrequest
 11413  	return c
 11414  }
 11415  
 11416  // Fields allows partial responses to be retrieved. See
 11417  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11418  // details.
 11419  func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall {
 11420  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11421  	return c
 11422  }
 11423  
 11424  // Context sets the context to be used in this call's Do method.
 11425  func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall {
 11426  	c.ctx_ = ctx
 11427  	return c
 11428  }
 11429  
 11430  // Header returns a http.Header that can be modified by the caller to add
 11431  // headers to the request.
 11432  func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Header() http.Header {
 11433  	if c.header_ == nil {
 11434  		c.header_ = make(http.Header)
 11435  	}
 11436  	return c.header_
 11437  }
 11438  
 11439  func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 11440  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11441  	var body io.Reader = nil
 11442  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 11443  	if err != nil {
 11444  		return nil, err
 11445  	}
 11446  	c.urlParams_.Set("alt", alt)
 11447  	c.urlParams_.Set("prettyPrint", "false")
 11448  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 11449  	urls += "?" + c.urlParams_.Encode()
 11450  	req, err := http.NewRequest("POST", urls, body)
 11451  	if err != nil {
 11452  		return nil, err
 11453  	}
 11454  	req.Header = reqHeaders
 11455  	googleapi.Expand(req.URL, map[string]string{
 11456  		"resource": c.resource,
 11457  	})
 11458  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11459  }
 11460  
 11461  // Do executes the "datacatalog.projects.locations.taxonomies.policyTags.testIamPermissions" call.
 11462  // Any non-2xx status code is an error. Response headers are in either
 11463  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 11464  // returned at all) in error.(*googleapi.Error).Header. Use
 11465  // googleapi.IsNotModified to check whether the returned error was because
 11466  // http.StatusNotModified was returned.
 11467  func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 11468  	gensupport.SetOptions(c.urlParams_, opts...)
 11469  	res, err := c.doRequest("json")
 11470  	if res != nil && res.StatusCode == http.StatusNotModified {
 11471  		if res.Body != nil {
 11472  			res.Body.Close()
 11473  		}
 11474  		return nil, gensupport.WrapError(&googleapi.Error{
 11475  			Code:   res.StatusCode,
 11476  			Header: res.Header,
 11477  		})
 11478  	}
 11479  	if err != nil {
 11480  		return nil, err
 11481  	}
 11482  	defer googleapi.CloseBody(res)
 11483  	if err := googleapi.CheckResponse(res); err != nil {
 11484  		return nil, gensupport.WrapError(err)
 11485  	}
 11486  	ret := &TestIamPermissionsResponse{
 11487  		ServerResponse: googleapi.ServerResponse{
 11488  			Header:         res.Header,
 11489  			HTTPStatusCode: res.StatusCode,
 11490  		},
 11491  	}
 11492  	target := &ret
 11493  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11494  		return nil, err
 11495  	}
 11496  	return ret, nil
 11497  }
 11498  

View as plain text