...

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

Documentation: google.golang.org/api/discoveryengine/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 discoveryengine provides access to the Discovery Engine API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/discovery-engine/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/discoveryengine/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	discoveryengineService, err := discoveryengine.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  //	discoveryengineService, err := discoveryengine.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  //	discoveryengineService, err := discoveryengine.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package discoveryengine // import "google.golang.org/api/discoveryengine/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 = "discoveryengine:v1"
    90  const apiName = "discoveryengine"
    91  const apiVersion = "v1"
    92  const basePath = "https://discoveryengine.googleapis.com/"
    93  const basePathTemplate = "https://discoveryengine.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://discoveryengine.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.Projects = NewProjectsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Projects *ProjectsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.Locations = NewProjectsLocationsService(s)
   160  	rs.Operations = NewProjectsOperationsService(s)
   161  	return rs
   162  }
   163  
   164  type ProjectsService struct {
   165  	s *Service
   166  
   167  	Locations *ProjectsLocationsService
   168  
   169  	Operations *ProjectsOperationsService
   170  }
   171  
   172  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   173  	rs := &ProjectsLocationsService{s: s}
   174  	rs.Collections = NewProjectsLocationsCollectionsService(s)
   175  	rs.DataStores = NewProjectsLocationsDataStoresService(s)
   176  	rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s)
   177  	rs.Operations = NewProjectsLocationsOperationsService(s)
   178  	rs.UserEvents = NewProjectsLocationsUserEventsService(s)
   179  	return rs
   180  }
   181  
   182  type ProjectsLocationsService struct {
   183  	s *Service
   184  
   185  	Collections *ProjectsLocationsCollectionsService
   186  
   187  	DataStores *ProjectsLocationsDataStoresService
   188  
   189  	GroundingConfigs *ProjectsLocationsGroundingConfigsService
   190  
   191  	Operations *ProjectsLocationsOperationsService
   192  
   193  	UserEvents *ProjectsLocationsUserEventsService
   194  }
   195  
   196  func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService {
   197  	rs := &ProjectsLocationsCollectionsService{s: s}
   198  	rs.DataConnector = NewProjectsLocationsCollectionsDataConnectorService(s)
   199  	rs.DataStores = NewProjectsLocationsCollectionsDataStoresService(s)
   200  	rs.Engines = NewProjectsLocationsCollectionsEnginesService(s)
   201  	rs.Operations = NewProjectsLocationsCollectionsOperationsService(s)
   202  	return rs
   203  }
   204  
   205  type ProjectsLocationsCollectionsService struct {
   206  	s *Service
   207  
   208  	DataConnector *ProjectsLocationsCollectionsDataConnectorService
   209  
   210  	DataStores *ProjectsLocationsCollectionsDataStoresService
   211  
   212  	Engines *ProjectsLocationsCollectionsEnginesService
   213  
   214  	Operations *ProjectsLocationsCollectionsOperationsService
   215  }
   216  
   217  func NewProjectsLocationsCollectionsDataConnectorService(s *Service) *ProjectsLocationsCollectionsDataConnectorService {
   218  	rs := &ProjectsLocationsCollectionsDataConnectorService{s: s}
   219  	rs.Operations = NewProjectsLocationsCollectionsDataConnectorOperationsService(s)
   220  	return rs
   221  }
   222  
   223  type ProjectsLocationsCollectionsDataConnectorService struct {
   224  	s *Service
   225  
   226  	Operations *ProjectsLocationsCollectionsDataConnectorOperationsService
   227  }
   228  
   229  func NewProjectsLocationsCollectionsDataConnectorOperationsService(s *Service) *ProjectsLocationsCollectionsDataConnectorOperationsService {
   230  	rs := &ProjectsLocationsCollectionsDataConnectorOperationsService{s: s}
   231  	return rs
   232  }
   233  
   234  type ProjectsLocationsCollectionsDataConnectorOperationsService struct {
   235  	s *Service
   236  }
   237  
   238  func NewProjectsLocationsCollectionsDataStoresService(s *Service) *ProjectsLocationsCollectionsDataStoresService {
   239  	rs := &ProjectsLocationsCollectionsDataStoresService{s: s}
   240  	rs.Branches = NewProjectsLocationsCollectionsDataStoresBranchesService(s)
   241  	rs.Conversations = NewProjectsLocationsCollectionsDataStoresConversationsService(s)
   242  	rs.Models = NewProjectsLocationsCollectionsDataStoresModelsService(s)
   243  	rs.Operations = NewProjectsLocationsCollectionsDataStoresOperationsService(s)
   244  	rs.Schemas = NewProjectsLocationsCollectionsDataStoresSchemasService(s)
   245  	rs.ServingConfigs = NewProjectsLocationsCollectionsDataStoresServingConfigsService(s)
   246  	rs.SiteSearchEngine = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s)
   247  	rs.SuggestionDenyListEntries = NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s)
   248  	rs.UserEvents = NewProjectsLocationsCollectionsDataStoresUserEventsService(s)
   249  	return rs
   250  }
   251  
   252  type ProjectsLocationsCollectionsDataStoresService struct {
   253  	s *Service
   254  
   255  	Branches *ProjectsLocationsCollectionsDataStoresBranchesService
   256  
   257  	Conversations *ProjectsLocationsCollectionsDataStoresConversationsService
   258  
   259  	Models *ProjectsLocationsCollectionsDataStoresModelsService
   260  
   261  	Operations *ProjectsLocationsCollectionsDataStoresOperationsService
   262  
   263  	Schemas *ProjectsLocationsCollectionsDataStoresSchemasService
   264  
   265  	ServingConfigs *ProjectsLocationsCollectionsDataStoresServingConfigsService
   266  
   267  	SiteSearchEngine *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService
   268  
   269  	SuggestionDenyListEntries *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService
   270  
   271  	UserEvents *ProjectsLocationsCollectionsDataStoresUserEventsService
   272  }
   273  
   274  func NewProjectsLocationsCollectionsDataStoresBranchesService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesService {
   275  	rs := &ProjectsLocationsCollectionsDataStoresBranchesService{s: s}
   276  	rs.Documents = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s)
   277  	rs.Operations = NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s)
   278  	return rs
   279  }
   280  
   281  type ProjectsLocationsCollectionsDataStoresBranchesService struct {
   282  	s *Service
   283  
   284  	Documents *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService
   285  
   286  	Operations *ProjectsLocationsCollectionsDataStoresBranchesOperationsService
   287  }
   288  
   289  func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService {
   290  	rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s}
   291  	return rs
   292  }
   293  
   294  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct {
   295  	s *Service
   296  }
   297  
   298  func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService {
   299  	rs := &ProjectsLocationsCollectionsDataStoresBranchesOperationsService{s: s}
   300  	return rs
   301  }
   302  
   303  type ProjectsLocationsCollectionsDataStoresBranchesOperationsService struct {
   304  	s *Service
   305  }
   306  
   307  func NewProjectsLocationsCollectionsDataStoresConversationsService(s *Service) *ProjectsLocationsCollectionsDataStoresConversationsService {
   308  	rs := &ProjectsLocationsCollectionsDataStoresConversationsService{s: s}
   309  	return rs
   310  }
   311  
   312  type ProjectsLocationsCollectionsDataStoresConversationsService struct {
   313  	s *Service
   314  }
   315  
   316  func NewProjectsLocationsCollectionsDataStoresModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsService {
   317  	rs := &ProjectsLocationsCollectionsDataStoresModelsService{s: s}
   318  	rs.Operations = NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s)
   319  	return rs
   320  }
   321  
   322  type ProjectsLocationsCollectionsDataStoresModelsService struct {
   323  	s *Service
   324  
   325  	Operations *ProjectsLocationsCollectionsDataStoresModelsOperationsService
   326  }
   327  
   328  func NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsOperationsService {
   329  	rs := &ProjectsLocationsCollectionsDataStoresModelsOperationsService{s: s}
   330  	return rs
   331  }
   332  
   333  type ProjectsLocationsCollectionsDataStoresModelsOperationsService struct {
   334  	s *Service
   335  }
   336  
   337  func NewProjectsLocationsCollectionsDataStoresOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresOperationsService {
   338  	rs := &ProjectsLocationsCollectionsDataStoresOperationsService{s: s}
   339  	return rs
   340  }
   341  
   342  type ProjectsLocationsCollectionsDataStoresOperationsService struct {
   343  	s *Service
   344  }
   345  
   346  func NewProjectsLocationsCollectionsDataStoresSchemasService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasService {
   347  	rs := &ProjectsLocationsCollectionsDataStoresSchemasService{s: s}
   348  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s)
   349  	return rs
   350  }
   351  
   352  type ProjectsLocationsCollectionsDataStoresSchemasService struct {
   353  	s *Service
   354  
   355  	Operations *ProjectsLocationsCollectionsDataStoresSchemasOperationsService
   356  }
   357  
   358  func NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasOperationsService {
   359  	rs := &ProjectsLocationsCollectionsDataStoresSchemasOperationsService{s: s}
   360  	return rs
   361  }
   362  
   363  type ProjectsLocationsCollectionsDataStoresSchemasOperationsService struct {
   364  	s *Service
   365  }
   366  
   367  func NewProjectsLocationsCollectionsDataStoresServingConfigsService(s *Service) *ProjectsLocationsCollectionsDataStoresServingConfigsService {
   368  	rs := &ProjectsLocationsCollectionsDataStoresServingConfigsService{s: s}
   369  	return rs
   370  }
   371  
   372  type ProjectsLocationsCollectionsDataStoresServingConfigsService struct {
   373  	s *Service
   374  }
   375  
   376  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService {
   377  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s}
   378  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s)
   379  	rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s)
   380  	return rs
   381  }
   382  
   383  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct {
   384  	s *Service
   385  
   386  	Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService
   387  
   388  	TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService
   389  }
   390  
   391  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService {
   392  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService{s: s}
   393  	return rs
   394  }
   395  
   396  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService struct {
   397  	s *Service
   398  }
   399  
   400  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService {
   401  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s}
   402  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s)
   403  	return rs
   404  }
   405  
   406  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService struct {
   407  	s *Service
   408  
   409  	Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService
   410  }
   411  
   412  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService {
   413  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService{s: s}
   414  	return rs
   415  }
   416  
   417  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService struct {
   418  	s *Service
   419  }
   420  
   421  func NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService {
   422  	rs := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService{s: s}
   423  	return rs
   424  }
   425  
   426  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService struct {
   427  	s *Service
   428  }
   429  
   430  func NewProjectsLocationsCollectionsDataStoresUserEventsService(s *Service) *ProjectsLocationsCollectionsDataStoresUserEventsService {
   431  	rs := &ProjectsLocationsCollectionsDataStoresUserEventsService{s: s}
   432  	return rs
   433  }
   434  
   435  type ProjectsLocationsCollectionsDataStoresUserEventsService struct {
   436  	s *Service
   437  }
   438  
   439  func NewProjectsLocationsCollectionsEnginesService(s *Service) *ProjectsLocationsCollectionsEnginesService {
   440  	rs := &ProjectsLocationsCollectionsEnginesService{s: s}
   441  	rs.Conversations = NewProjectsLocationsCollectionsEnginesConversationsService(s)
   442  	rs.Operations = NewProjectsLocationsCollectionsEnginesOperationsService(s)
   443  	rs.ServingConfigs = NewProjectsLocationsCollectionsEnginesServingConfigsService(s)
   444  	return rs
   445  }
   446  
   447  type ProjectsLocationsCollectionsEnginesService struct {
   448  	s *Service
   449  
   450  	Conversations *ProjectsLocationsCollectionsEnginesConversationsService
   451  
   452  	Operations *ProjectsLocationsCollectionsEnginesOperationsService
   453  
   454  	ServingConfigs *ProjectsLocationsCollectionsEnginesServingConfigsService
   455  }
   456  
   457  func NewProjectsLocationsCollectionsEnginesConversationsService(s *Service) *ProjectsLocationsCollectionsEnginesConversationsService {
   458  	rs := &ProjectsLocationsCollectionsEnginesConversationsService{s: s}
   459  	return rs
   460  }
   461  
   462  type ProjectsLocationsCollectionsEnginesConversationsService struct {
   463  	s *Service
   464  }
   465  
   466  func NewProjectsLocationsCollectionsEnginesOperationsService(s *Service) *ProjectsLocationsCollectionsEnginesOperationsService {
   467  	rs := &ProjectsLocationsCollectionsEnginesOperationsService{s: s}
   468  	return rs
   469  }
   470  
   471  type ProjectsLocationsCollectionsEnginesOperationsService struct {
   472  	s *Service
   473  }
   474  
   475  func NewProjectsLocationsCollectionsEnginesServingConfigsService(s *Service) *ProjectsLocationsCollectionsEnginesServingConfigsService {
   476  	rs := &ProjectsLocationsCollectionsEnginesServingConfigsService{s: s}
   477  	return rs
   478  }
   479  
   480  type ProjectsLocationsCollectionsEnginesServingConfigsService struct {
   481  	s *Service
   482  }
   483  
   484  func NewProjectsLocationsCollectionsOperationsService(s *Service) *ProjectsLocationsCollectionsOperationsService {
   485  	rs := &ProjectsLocationsCollectionsOperationsService{s: s}
   486  	return rs
   487  }
   488  
   489  type ProjectsLocationsCollectionsOperationsService struct {
   490  	s *Service
   491  }
   492  
   493  func NewProjectsLocationsDataStoresService(s *Service) *ProjectsLocationsDataStoresService {
   494  	rs := &ProjectsLocationsDataStoresService{s: s}
   495  	rs.Branches = NewProjectsLocationsDataStoresBranchesService(s)
   496  	rs.Conversations = NewProjectsLocationsDataStoresConversationsService(s)
   497  	rs.Models = NewProjectsLocationsDataStoresModelsService(s)
   498  	rs.Operations = NewProjectsLocationsDataStoresOperationsService(s)
   499  	rs.Schemas = NewProjectsLocationsDataStoresSchemasService(s)
   500  	rs.ServingConfigs = NewProjectsLocationsDataStoresServingConfigsService(s)
   501  	rs.SiteSearchEngine = NewProjectsLocationsDataStoresSiteSearchEngineService(s)
   502  	rs.SuggestionDenyListEntries = NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s)
   503  	rs.UserEvents = NewProjectsLocationsDataStoresUserEventsService(s)
   504  	return rs
   505  }
   506  
   507  type ProjectsLocationsDataStoresService struct {
   508  	s *Service
   509  
   510  	Branches *ProjectsLocationsDataStoresBranchesService
   511  
   512  	Conversations *ProjectsLocationsDataStoresConversationsService
   513  
   514  	Models *ProjectsLocationsDataStoresModelsService
   515  
   516  	Operations *ProjectsLocationsDataStoresOperationsService
   517  
   518  	Schemas *ProjectsLocationsDataStoresSchemasService
   519  
   520  	ServingConfigs *ProjectsLocationsDataStoresServingConfigsService
   521  
   522  	SiteSearchEngine *ProjectsLocationsDataStoresSiteSearchEngineService
   523  
   524  	SuggestionDenyListEntries *ProjectsLocationsDataStoresSuggestionDenyListEntriesService
   525  
   526  	UserEvents *ProjectsLocationsDataStoresUserEventsService
   527  }
   528  
   529  func NewProjectsLocationsDataStoresBranchesService(s *Service) *ProjectsLocationsDataStoresBranchesService {
   530  	rs := &ProjectsLocationsDataStoresBranchesService{s: s}
   531  	rs.Documents = NewProjectsLocationsDataStoresBranchesDocumentsService(s)
   532  	rs.Operations = NewProjectsLocationsDataStoresBranchesOperationsService(s)
   533  	return rs
   534  }
   535  
   536  type ProjectsLocationsDataStoresBranchesService struct {
   537  	s *Service
   538  
   539  	Documents *ProjectsLocationsDataStoresBranchesDocumentsService
   540  
   541  	Operations *ProjectsLocationsDataStoresBranchesOperationsService
   542  }
   543  
   544  func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService {
   545  	rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s}
   546  	return rs
   547  }
   548  
   549  type ProjectsLocationsDataStoresBranchesDocumentsService struct {
   550  	s *Service
   551  }
   552  
   553  func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService {
   554  	rs := &ProjectsLocationsDataStoresBranchesOperationsService{s: s}
   555  	return rs
   556  }
   557  
   558  type ProjectsLocationsDataStoresBranchesOperationsService struct {
   559  	s *Service
   560  }
   561  
   562  func NewProjectsLocationsDataStoresConversationsService(s *Service) *ProjectsLocationsDataStoresConversationsService {
   563  	rs := &ProjectsLocationsDataStoresConversationsService{s: s}
   564  	return rs
   565  }
   566  
   567  type ProjectsLocationsDataStoresConversationsService struct {
   568  	s *Service
   569  }
   570  
   571  func NewProjectsLocationsDataStoresModelsService(s *Service) *ProjectsLocationsDataStoresModelsService {
   572  	rs := &ProjectsLocationsDataStoresModelsService{s: s}
   573  	rs.Operations = NewProjectsLocationsDataStoresModelsOperationsService(s)
   574  	return rs
   575  }
   576  
   577  type ProjectsLocationsDataStoresModelsService struct {
   578  	s *Service
   579  
   580  	Operations *ProjectsLocationsDataStoresModelsOperationsService
   581  }
   582  
   583  func NewProjectsLocationsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsDataStoresModelsOperationsService {
   584  	rs := &ProjectsLocationsDataStoresModelsOperationsService{s: s}
   585  	return rs
   586  }
   587  
   588  type ProjectsLocationsDataStoresModelsOperationsService struct {
   589  	s *Service
   590  }
   591  
   592  func NewProjectsLocationsDataStoresOperationsService(s *Service) *ProjectsLocationsDataStoresOperationsService {
   593  	rs := &ProjectsLocationsDataStoresOperationsService{s: s}
   594  	return rs
   595  }
   596  
   597  type ProjectsLocationsDataStoresOperationsService struct {
   598  	s *Service
   599  }
   600  
   601  func NewProjectsLocationsDataStoresSchemasService(s *Service) *ProjectsLocationsDataStoresSchemasService {
   602  	rs := &ProjectsLocationsDataStoresSchemasService{s: s}
   603  	return rs
   604  }
   605  
   606  type ProjectsLocationsDataStoresSchemasService struct {
   607  	s *Service
   608  }
   609  
   610  func NewProjectsLocationsDataStoresServingConfigsService(s *Service) *ProjectsLocationsDataStoresServingConfigsService {
   611  	rs := &ProjectsLocationsDataStoresServingConfigsService{s: s}
   612  	return rs
   613  }
   614  
   615  type ProjectsLocationsDataStoresServingConfigsService struct {
   616  	s *Service
   617  }
   618  
   619  func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService {
   620  	rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s}
   621  	rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s)
   622  	return rs
   623  }
   624  
   625  type ProjectsLocationsDataStoresSiteSearchEngineService struct {
   626  	s *Service
   627  
   628  	TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService
   629  }
   630  
   631  func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService {
   632  	rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s}
   633  	return rs
   634  }
   635  
   636  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService struct {
   637  	s *Service
   638  }
   639  
   640  func NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsDataStoresSuggestionDenyListEntriesService {
   641  	rs := &ProjectsLocationsDataStoresSuggestionDenyListEntriesService{s: s}
   642  	return rs
   643  }
   644  
   645  type ProjectsLocationsDataStoresSuggestionDenyListEntriesService struct {
   646  	s *Service
   647  }
   648  
   649  func NewProjectsLocationsDataStoresUserEventsService(s *Service) *ProjectsLocationsDataStoresUserEventsService {
   650  	rs := &ProjectsLocationsDataStoresUserEventsService{s: s}
   651  	return rs
   652  }
   653  
   654  type ProjectsLocationsDataStoresUserEventsService struct {
   655  	s *Service
   656  }
   657  
   658  func NewProjectsLocationsGroundingConfigsService(s *Service) *ProjectsLocationsGroundingConfigsService {
   659  	rs := &ProjectsLocationsGroundingConfigsService{s: s}
   660  	return rs
   661  }
   662  
   663  type ProjectsLocationsGroundingConfigsService struct {
   664  	s *Service
   665  }
   666  
   667  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   668  	rs := &ProjectsLocationsOperationsService{s: s}
   669  	return rs
   670  }
   671  
   672  type ProjectsLocationsOperationsService struct {
   673  	s *Service
   674  }
   675  
   676  func NewProjectsLocationsUserEventsService(s *Service) *ProjectsLocationsUserEventsService {
   677  	rs := &ProjectsLocationsUserEventsService{s: s}
   678  	return rs
   679  }
   680  
   681  type ProjectsLocationsUserEventsService struct {
   682  	s *Service
   683  }
   684  
   685  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   686  	rs := &ProjectsOperationsService{s: s}
   687  	return rs
   688  }
   689  
   690  type ProjectsOperationsService struct {
   691  	s *Service
   692  }
   693  
   694  // GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should
   695  // only be used for payload formats that can't be represented as JSON, such as
   696  // raw binary or an HTML page. This message can be used both in streaming and
   697  // non-streaming API methods in the request as well as the response. It can be
   698  // used as a top-level request field, which is convenient if one wants to
   699  // extract parameters from either the URL or HTTP template into the request
   700  // fields and also want access to the raw HTTP body. Example: message
   701  // GetResourceRequest { // A unique request id. string request_id = 1; // The
   702  // raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
   703  // service ResourceService { rpc GetResource(GetResourceRequest) returns
   704  // (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
   705  // (google.protobuf.Empty); } Example with streaming methods: service
   706  // CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
   707  // google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
   708  // (stream google.api.HttpBody); } Use of this type only changes how the
   709  // request and response bodies are handled, all other features will continue to
   710  // work unchanged.
   711  type GoogleApiHttpBody struct {
   712  	// ContentType: The HTTP Content-Type header value specifying the content type
   713  	// of the body.
   714  	ContentType string `json:"contentType,omitempty"`
   715  	// Data: The HTTP request/response body as raw binary.
   716  	Data string `json:"data,omitempty"`
   717  	// Extensions: Application specific response metadata. Must be set in the first
   718  	// response for streaming APIs.
   719  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
   720  
   721  	// ServerResponse contains the HTTP response code and headers from the server.
   722  	googleapi.ServerResponse `json:"-"`
   723  	// ForceSendFields is a list of field names (e.g. "ContentType") to
   724  	// unconditionally include in API requests. By default, fields with empty or
   725  	// default values are omitted from API requests. See
   726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   727  	// details.
   728  	ForceSendFields []string `json:"-"`
   729  	// NullFields is a list of field names (e.g. "ContentType") to include in API
   730  	// requests with the JSON null value. By default, fields with empty values are
   731  	// omitted from API requests. See
   732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   733  	NullFields []string `json:"-"`
   734  }
   735  
   736  func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
   737  	type NoMethod GoogleApiHttpBody
   738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   739  }
   740  
   741  // GoogleCloudDiscoveryengineLoggingErrorContext: A description of the context
   742  // in which an error occurred.
   743  type GoogleCloudDiscoveryengineLoggingErrorContext struct {
   744  	// HttpRequest: The HTTP request which was processed when the error was
   745  	// triggered.
   746  	HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"`
   747  	// ReportLocation: The location in the source code where the decision was made
   748  	// to report the error, usually the place where it was logged.
   749  	ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"`
   750  	// ForceSendFields is a list of field names (e.g. "HttpRequest") to
   751  	// unconditionally include in API requests. By default, fields with empty or
   752  	// default values are omitted from API requests. See
   753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   754  	// details.
   755  	ForceSendFields []string `json:"-"`
   756  	// NullFields is a list of field names (e.g. "HttpRequest") to include in API
   757  	// requests with the JSON null value. By default, fields with empty values are
   758  	// omitted from API requests. See
   759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   760  	NullFields []string `json:"-"`
   761  }
   762  
   763  func (s *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) {
   764  	type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext
   765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   766  }
   767  
   768  // GoogleCloudDiscoveryengineLoggingErrorLog: An error log which is reported to
   769  // the Error Reporting system.
   770  type GoogleCloudDiscoveryengineLoggingErrorLog struct {
   771  	// Context: A description of the context in which the error occurred.
   772  	Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"`
   773  	// ImportPayload: The error payload that is populated on LRO import APIs.
   774  	ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"`
   775  	// Message: A message describing the error.
   776  	Message string `json:"message,omitempty"`
   777  	// RequestPayload: The API request payload, represented as a protocol buffer.
   778  	// Most API request types are supported—for example: *
   779  	// `type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.Cre
   780  	// ateDocumentRequest` *
   781  	// `type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.Wr
   782  	// iteUserEventRequest`
   783  	RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"`
   784  	// ResponsePayload: The API response payload, represented as a protocol buffer.
   785  	// This is used to log some "soft errors", where the response is valid but we
   786  	// consider there are some quality issues like unjoined events. The following
   787  	// API responses are supported, and no PII is included: *
   788  	// `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend` *
   789  	// `google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent` *
   790  	// `google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent`
   791  	ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"`
   792  	// ServiceContext: The service context in which this error has occurred.
   793  	ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"`
   794  	// Status: The RPC status associated with the error log.
   795  	Status *GoogleRpcStatus `json:"status,omitempty"`
   796  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
   797  	// include in API requests. By default, fields with empty or default values are
   798  	// omitted from API requests. See
   799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   800  	// details.
   801  	ForceSendFields []string `json:"-"`
   802  	// NullFields is a list of field names (e.g. "Context") to include in API
   803  	// requests with the JSON null value. By default, fields with empty values are
   804  	// omitted from API requests. See
   805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   806  	NullFields []string `json:"-"`
   807  }
   808  
   809  func (s *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) {
   810  	type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog
   811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   812  }
   813  
   814  // GoogleCloudDiscoveryengineLoggingHttpRequestContext: HTTP request data that
   815  // is related to a reported error.
   816  type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct {
   817  	// ResponseStatusCode: The HTTP response status code for the request.
   818  	ResponseStatusCode int64 `json:"responseStatusCode,omitempty"`
   819  	// ForceSendFields is a list of field names (e.g. "ResponseStatusCode") to
   820  	// unconditionally include in API requests. By default, fields with empty or
   821  	// default values are omitted from API requests. See
   822  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   823  	// details.
   824  	ForceSendFields []string `json:"-"`
   825  	// NullFields is a list of field names (e.g. "ResponseStatusCode") to include
   826  	// in API requests with the JSON null value. By default, fields with empty
   827  	// values are omitted from API requests. See
   828  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   829  	NullFields []string `json:"-"`
   830  }
   831  
   832  func (s *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) {
   833  	type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext
   834  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   835  }
   836  
   837  // GoogleCloudDiscoveryengineLoggingImportErrorContext: The error payload that
   838  // is populated on LRO import APIs, including the following: *
   839  // `google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments` *
   840  // `google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents`
   841  type GoogleCloudDiscoveryengineLoggingImportErrorContext struct {
   842  	// Document: The detailed content which caused the error on importing a
   843  	// document.
   844  	Document string `json:"document,omitempty"`
   845  	// GcsPath: Google Cloud Storage file path of the import source. Can be set for
   846  	// batch operation error.
   847  	GcsPath string `json:"gcsPath,omitempty"`
   848  	// LineNumber: Line number of the content in file. Should be empty for
   849  	// permission or batch operation error.
   850  	LineNumber string `json:"lineNumber,omitempty"`
   851  	// Operation: The operation resource name of the LRO.
   852  	Operation string `json:"operation,omitempty"`
   853  	// UserEvent: The detailed content which caused the error on importing a user
   854  	// event.
   855  	UserEvent string `json:"userEvent,omitempty"`
   856  	// ForceSendFields is a list of field names (e.g. "Document") to
   857  	// unconditionally include in API requests. By default, fields with empty or
   858  	// default values are omitted from API requests. See
   859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   860  	// details.
   861  	ForceSendFields []string `json:"-"`
   862  	// NullFields is a list of field names (e.g. "Document") to include in API
   863  	// requests with the JSON null value. By default, fields with empty values are
   864  	// omitted from API requests. See
   865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   866  	NullFields []string `json:"-"`
   867  }
   868  
   869  func (s *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) {
   870  	type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext
   871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   872  }
   873  
   874  // GoogleCloudDiscoveryengineLoggingServiceContext: Describes a running service
   875  // that sends errors.
   876  type GoogleCloudDiscoveryengineLoggingServiceContext struct {
   877  	// Service: An identifier of the service—for example,
   878  	// `discoveryengine.googleapis.com`.
   879  	Service string `json:"service,omitempty"`
   880  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
   881  	// include in API requests. By default, fields with empty or default values are
   882  	// omitted from API requests. See
   883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   884  	// details.
   885  	ForceSendFields []string `json:"-"`
   886  	// NullFields is a list of field names (e.g. "Service") to include in API
   887  	// requests with the JSON null value. By default, fields with empty values are
   888  	// omitted from API requests. See
   889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   890  	NullFields []string `json:"-"`
   891  }
   892  
   893  func (s *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) {
   894  	type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext
   895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   896  }
   897  
   898  // GoogleCloudDiscoveryengineLoggingSourceLocation: Indicates a location in the
   899  // source code of the service for which errors are reported.
   900  type GoogleCloudDiscoveryengineLoggingSourceLocation struct {
   901  	// FunctionName: Human-readable name of a function or method—for example,
   902  	// `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`.
   903  	FunctionName string `json:"functionName,omitempty"`
   904  	// ForceSendFields is a list of field names (e.g. "FunctionName") to
   905  	// unconditionally include in API requests. By default, fields with empty or
   906  	// default values are omitted from API requests. See
   907  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   908  	// details.
   909  	ForceSendFields []string `json:"-"`
   910  	// NullFields is a list of field names (e.g. "FunctionName") to include in API
   911  	// requests with the JSON null value. By default, fields with empty values are
   912  	// omitted from API requests. See
   913  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   914  	NullFields []string `json:"-"`
   915  }
   916  
   917  func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) {
   918  	type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation
   919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   920  }
   921  
   922  // GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata: Metadata related
   923  // to the progress of the SiteSearchEngineService.BatchCreateTargetSites
   924  // operation. This will be returned by the
   925  // google.longrunning.Operation.metadata field.
   926  type GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata struct {
   927  	// CreateTime: Operation create time.
   928  	CreateTime string `json:"createTime,omitempty"`
   929  	// UpdateTime: Operation last update time. If the operation is done, this is
   930  	// also the finish time.
   931  	UpdateTime string `json:"updateTime,omitempty"`
   932  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   933  	// unconditionally include in API requests. By default, fields with empty or
   934  	// default values are omitted from API requests. See
   935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   936  	// details.
   937  	ForceSendFields []string `json:"-"`
   938  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   939  	// requests with the JSON null value. By default, fields with empty values are
   940  	// omitted from API requests. See
   941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   942  	NullFields []string `json:"-"`
   943  }
   944  
   945  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
   946  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
   947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   948  }
   949  
   950  // GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest: Request message
   951  // for SiteSearchEngineService.BatchCreateTargetSites method.
   952  type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest struct {
   953  	// Requests: Required. The request message specifying the resources to create.
   954  	// A maximum of 20 TargetSites can be created in a batch.
   955  	Requests []*GoogleCloudDiscoveryengineV1CreateTargetSiteRequest `json:"requests,omitempty"`
   956  	// ForceSendFields is a list of field names (e.g. "Requests") to
   957  	// unconditionally include in API requests. By default, fields with empty or
   958  	// default values are omitted from API requests. See
   959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   960  	// details.
   961  	ForceSendFields []string `json:"-"`
   962  	// NullFields is a list of field names (e.g. "Requests") to include in API
   963  	// requests with the JSON null value. By default, fields with empty values are
   964  	// omitted from API requests. See
   965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   966  	NullFields []string `json:"-"`
   967  }
   968  
   969  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest) MarshalJSON() ([]byte, error) {
   970  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest
   971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   972  }
   973  
   974  // GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse: Response message
   975  // for SiteSearchEngineService.BatchCreateTargetSites method.
   976  type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse struct {
   977  	// TargetSites: TargetSites created.
   978  	TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
   979  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
   980  	// unconditionally include in API requests. By default, fields with empty or
   981  	// default values are omitted from API requests. See
   982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   983  	// details.
   984  	ForceSendFields []string `json:"-"`
   985  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
   986  	// requests with the JSON null value. By default, fields with empty values are
   987  	// omitted from API requests. See
   988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   989  	NullFields []string `json:"-"`
   990  }
   991  
   992  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
   993  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse
   994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   995  }
   996  
   997  // GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest: Request message
   998  // for SiteSearchEngineService.BatchVerifyTargetSites method.
   999  type GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest struct {
  1000  }
  1001  
  1002  // GoogleCloudDiscoveryengineV1BigQuerySource: BigQuery source import data
  1003  // from.
  1004  type GoogleCloudDiscoveryengineV1BigQuerySource struct {
  1005  	// DataSchema: The schema to use when parsing the data from the source.
  1006  	// Supported values for user event imports: * `user_event` (default): One
  1007  	// UserEvent per row. Supported values for document imports: * `document`
  1008  	// (default): One Document format per row. Each document must have a valid
  1009  	// Document.id and one of Document.json_data or Document.struct_data. *
  1010  	// `custom`: One custom data per row in arbitrary format that conforms to the
  1011  	// defined Schema of the data store. This can only be used by the GENERIC Data
  1012  	// Store vertical.
  1013  	DataSchema string `json:"dataSchema,omitempty"`
  1014  	// DatasetId: Required. The BigQuery data set to copy the data from with a
  1015  	// length limit of 1,024 characters.
  1016  	DatasetId string `json:"datasetId,omitempty"`
  1017  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  1018  	// a length limit of 2,000 characters. Can be specified if one wants to have
  1019  	// the BigQuery export to a specific Cloud Storage directory.
  1020  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  1021  	// PartitionDate: BigQuery time partitioned table's _PARTITIONDATE in
  1022  	// YYYY-MM-DD format.
  1023  	PartitionDate *GoogleTypeDate `json:"partitionDate,omitempty"`
  1024  	// ProjectId: The project ID (can be project # or ID) that the BigQuery source
  1025  	// is in with a length limit of 128 characters. If not specified, inherits the
  1026  	// project ID from the parent request.
  1027  	ProjectId string `json:"projectId,omitempty"`
  1028  	// TableId: Required. The BigQuery table to copy the data from with a length
  1029  	// limit of 1,024 characters.
  1030  	TableId string `json:"tableId,omitempty"`
  1031  	// ForceSendFields is a list of field names (e.g. "DataSchema") to
  1032  	// unconditionally include in API requests. By default, fields with empty or
  1033  	// default values are omitted from API requests. See
  1034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1035  	// details.
  1036  	ForceSendFields []string `json:"-"`
  1037  	// NullFields is a list of field names (e.g. "DataSchema") to include in API
  1038  	// requests with the JSON null value. By default, fields with empty values are
  1039  	// omitted from API requests. See
  1040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1041  	NullFields []string `json:"-"`
  1042  }
  1043  
  1044  func (s *GoogleCloudDiscoveryengineV1BigQuerySource) MarshalJSON() ([]byte, error) {
  1045  	type NoMethod GoogleCloudDiscoveryengineV1BigQuerySource
  1046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1047  }
  1048  
  1049  // GoogleCloudDiscoveryengineV1BigtableOptions: The Bigtable Options object
  1050  // that contains information to support the import.
  1051  type GoogleCloudDiscoveryengineV1BigtableOptions struct {
  1052  	// Families: The mapping from family names to an object that contains column
  1053  	// families level information for the given column family. If a family is not
  1054  	// present in this map it will be ignored.
  1055  	Families map[string]GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily `json:"families,omitempty"`
  1056  	// KeyFieldName: The field name used for saving row key value in the document.
  1057  	// The name has to match the pattern `a-zA-Z0-9*`.
  1058  	KeyFieldName string `json:"keyFieldName,omitempty"`
  1059  	// ForceSendFields is a list of field names (e.g. "Families") to
  1060  	// unconditionally include in API requests. By default, fields with empty or
  1061  	// default values are omitted from API requests. See
  1062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1063  	// details.
  1064  	ForceSendFields []string `json:"-"`
  1065  	// NullFields is a list of field names (e.g. "Families") to include in API
  1066  	// requests with the JSON null value. By default, fields with empty values are
  1067  	// omitted from API requests. See
  1068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1069  	NullFields []string `json:"-"`
  1070  }
  1071  
  1072  func (s *GoogleCloudDiscoveryengineV1BigtableOptions) MarshalJSON() ([]byte, error) {
  1073  	type NoMethod GoogleCloudDiscoveryengineV1BigtableOptions
  1074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1075  }
  1076  
  1077  // GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn: The column of the
  1078  // Bigtable.
  1079  type GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn struct {
  1080  	// Encoding: The encoding mode of the values when the type is not `STRING`.
  1081  	// Acceptable encoding values are: * `TEXT`: indicates values are alphanumeric
  1082  	// text strings. * `BINARY`: indicates values are encoded using `HBase
  1083  	// Bytes.toBytes` family of functions. This can be overridden for a specific
  1084  	// column by listing that column in `columns` and specifying an encoding for
  1085  	// it.
  1086  	//
  1087  	// Possible values:
  1088  	//   "ENCODING_UNSPECIFIED" - The encoding is unspecified.
  1089  	//   "TEXT" - Text encoding.
  1090  	//   "BINARY" - Binary encoding.
  1091  	Encoding string `json:"encoding,omitempty"`
  1092  	// FieldName: The field name to use for this column in the document. The name
  1093  	// has to match the pattern `a-zA-Z0-9*`. If not set, it is parsed from the
  1094  	// qualifier bytes with best effort. However, due to different naming patterns,
  1095  	// field name collisions could happen, where parsing behavior is undefined.
  1096  	FieldName string `json:"fieldName,omitempty"`
  1097  	// Qualifier: Required. Qualifier of the column. If it cannot be decoded with
  1098  	// utf-8, use a base-64 encoded string instead.
  1099  	Qualifier string `json:"qualifier,omitempty"`
  1100  	// Type: The type of values in this column family. The values are expected to
  1101  	// be encoded using `HBase Bytes.toBytes` function when the encoding value is
  1102  	// set to `BINARY`.
  1103  	//
  1104  	// Possible values:
  1105  	//   "TYPE_UNSPECIFIED" - The type is unspecified.
  1106  	//   "STRING" - String type.
  1107  	//   "NUMBER" - Numerical type.
  1108  	//   "INTEGER" - Integer type.
  1109  	//   "VAR_INTEGER" - Variable length integer type.
  1110  	//   "BIG_NUMERIC" - BigDecimal type.
  1111  	//   "BOOLEAN" - Boolean type.
  1112  	//   "JSON" - JSON type.
  1113  	Type string `json:"type,omitempty"`
  1114  	// ForceSendFields is a list of field names (e.g. "Encoding") 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. "Encoding") 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 *GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn) MarshalJSON() ([]byte, error) {
  1128  	type NoMethod GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn
  1129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1130  }
  1131  
  1132  // GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily: The column
  1133  // family of the Bigtable.
  1134  type GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily struct {
  1135  	// Columns: The list of objects that contains column level information for each
  1136  	// column. If a column is not present in this list it will be ignored.
  1137  	Columns []*GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn `json:"columns,omitempty"`
  1138  	// Encoding: The encoding mode of the values when the type is not STRING.
  1139  	// Acceptable encoding values are: * `TEXT`: indicates values are alphanumeric
  1140  	// text strings. * `BINARY`: indicates values are encoded using `HBase
  1141  	// Bytes.toBytes` family of functions. This can be overridden for a specific
  1142  	// column by listing that column in `columns` and specifying an encoding for
  1143  	// it.
  1144  	//
  1145  	// Possible values:
  1146  	//   "ENCODING_UNSPECIFIED" - The encoding is unspecified.
  1147  	//   "TEXT" - Text encoding.
  1148  	//   "BINARY" - Binary encoding.
  1149  	Encoding string `json:"encoding,omitempty"`
  1150  	// FieldName: The field name to use for this column family in the document. The
  1151  	// name has to match the pattern `a-zA-Z0-9*`. If not set, it is parsed from
  1152  	// the family name with best effort. However, due to different naming patterns,
  1153  	// field name collisions could happen, where parsing behavior is undefined.
  1154  	FieldName string `json:"fieldName,omitempty"`
  1155  	// Type: The type of values in this column family. The values are expected to
  1156  	// be encoded using `HBase Bytes.toBytes` function when the encoding value is
  1157  	// set to `BINARY`.
  1158  	//
  1159  	// Possible values:
  1160  	//   "TYPE_UNSPECIFIED" - The type is unspecified.
  1161  	//   "STRING" - String type.
  1162  	//   "NUMBER" - Numerical type.
  1163  	//   "INTEGER" - Integer type.
  1164  	//   "VAR_INTEGER" - Variable length integer type.
  1165  	//   "BIG_NUMERIC" - BigDecimal type.
  1166  	//   "BOOLEAN" - Boolean type.
  1167  	//   "JSON" - JSON type.
  1168  	Type string `json:"type,omitempty"`
  1169  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  1170  	// include in API requests. By default, fields with empty or default values are
  1171  	// omitted from API requests. See
  1172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1173  	// details.
  1174  	ForceSendFields []string `json:"-"`
  1175  	// NullFields is a list of field names (e.g. "Columns") to include in API
  1176  	// requests with the JSON null value. By default, fields with empty values are
  1177  	// omitted from API requests. See
  1178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1179  	NullFields []string `json:"-"`
  1180  }
  1181  
  1182  func (s *GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily) MarshalJSON() ([]byte, error) {
  1183  	type NoMethod GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily
  1184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1185  }
  1186  
  1187  // GoogleCloudDiscoveryengineV1BigtableSource: The Cloud Bigtable source for
  1188  // importing data.
  1189  type GoogleCloudDiscoveryengineV1BigtableSource struct {
  1190  	// BigtableOptions: Required. Bigtable options that contains information needed
  1191  	// when parsing data into typed structures. For example, column type
  1192  	// annotations.
  1193  	BigtableOptions *GoogleCloudDiscoveryengineV1BigtableOptions `json:"bigtableOptions,omitempty"`
  1194  	// InstanceId: Required. The instance ID of the Cloud Bigtable that needs to be
  1195  	// imported.
  1196  	InstanceId string `json:"instanceId,omitempty"`
  1197  	// ProjectId: The project ID that the Bigtable source is in with a length limit
  1198  	// of 128 characters. If not specified, inherits the project ID from the parent
  1199  	// request.
  1200  	ProjectId string `json:"projectId,omitempty"`
  1201  	// TableId: Required. The table ID of the Cloud Bigtable that needs to be
  1202  	// imported.
  1203  	TableId string `json:"tableId,omitempty"`
  1204  	// ForceSendFields is a list of field names (e.g. "BigtableOptions") to
  1205  	// unconditionally include in API requests. By default, fields with empty or
  1206  	// default values are omitted from API requests. See
  1207  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1208  	// details.
  1209  	ForceSendFields []string `json:"-"`
  1210  	// NullFields is a list of field names (e.g. "BigtableOptions") to include in
  1211  	// API requests with the JSON null value. By default, fields with empty values
  1212  	// are omitted from API requests. See
  1213  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1214  	NullFields []string `json:"-"`
  1215  }
  1216  
  1217  func (s *GoogleCloudDiscoveryengineV1BigtableSource) MarshalJSON() ([]byte, error) {
  1218  	type NoMethod GoogleCloudDiscoveryengineV1BigtableSource
  1219  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1220  }
  1221  
  1222  // GoogleCloudDiscoveryengineV1CheckGroundingRequest: Request message for
  1223  // GroundedGenerationService.CheckGrounding method.
  1224  type GoogleCloudDiscoveryengineV1CheckGroundingRequest struct {
  1225  	// AnswerCandidate: Answer candidate to check. Can have a maximum length of
  1226  	// 1024 characters.
  1227  	AnswerCandidate string `json:"answerCandidate,omitempty"`
  1228  	// Facts: List of facts for the grounding check. We support up to 200 facts.
  1229  	Facts []*GoogleCloudDiscoveryengineV1GroundingFact `json:"facts,omitempty"`
  1230  	// GroundingSpec: Configuration of the grounding check.
  1231  	GroundingSpec *GoogleCloudDiscoveryengineV1CheckGroundingSpec `json:"groundingSpec,omitempty"`
  1232  	// UserLabels: The user labels applied to a resource must meet the following
  1233  	// requirements: * Each resource can have multiple labels, up to a maximum of
  1234  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  1235  	// character and a maximum length of 63 characters and cannot be empty. Values
  1236  	// can be empty and have a maximum length of 63 characters. * Keys and values
  1237  	// can contain only lowercase letters, numeric characters, underscores, and
  1238  	// dashes. All characters must use UTF-8 encoding, and international characters
  1239  	// are allowed. * The key portion of a label must be unique. However, you can
  1240  	// use the same key with multiple resources. * Keys must start with a lowercase
  1241  	// letter or international character. See Google Cloud Document
  1242  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  1243  	// for more details.
  1244  	UserLabels map[string]string `json:"userLabels,omitempty"`
  1245  	// ForceSendFields is a list of field names (e.g. "AnswerCandidate") to
  1246  	// unconditionally include in API requests. By default, fields with empty or
  1247  	// default values are omitted from API requests. See
  1248  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1249  	// details.
  1250  	ForceSendFields []string `json:"-"`
  1251  	// NullFields is a list of field names (e.g. "AnswerCandidate") to include in
  1252  	// API requests with the JSON null value. By default, fields with empty values
  1253  	// are omitted from API requests. See
  1254  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1255  	NullFields []string `json:"-"`
  1256  }
  1257  
  1258  func (s *GoogleCloudDiscoveryengineV1CheckGroundingRequest) MarshalJSON() ([]byte, error) {
  1259  	type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingRequest
  1260  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1261  }
  1262  
  1263  // GoogleCloudDiscoveryengineV1CheckGroundingResponse: Response message for the
  1264  // GroundedGenerationService.CheckGrounding method.
  1265  type GoogleCloudDiscoveryengineV1CheckGroundingResponse struct {
  1266  	// CitedChunks: List of facts cited across all claims in the answer candidate.
  1267  	// These are derived from the facts supplied in the request.
  1268  	CitedChunks []*GoogleCloudDiscoveryengineV1FactChunk `json:"citedChunks,omitempty"`
  1269  	// Claims: Claim texts and citation info across all claims in the answer
  1270  	// candidate.
  1271  	Claims []*GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim `json:"claims,omitempty"`
  1272  	// SupportScore: The support score for the input answer candidate. Higher the
  1273  	// score, higher is the fraction of claims that are supported by the provided
  1274  	// facts. This is always set when a response is returned.
  1275  	SupportScore float64 `json:"supportScore,omitempty"`
  1276  
  1277  	// ServerResponse contains the HTTP response code and headers from the server.
  1278  	googleapi.ServerResponse `json:"-"`
  1279  	// ForceSendFields is a list of field names (e.g. "CitedChunks") to
  1280  	// unconditionally include in API requests. By default, fields with empty or
  1281  	// default values are omitted from API requests. See
  1282  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1283  	// details.
  1284  	ForceSendFields []string `json:"-"`
  1285  	// NullFields is a list of field names (e.g. "CitedChunks") to include in API
  1286  	// requests with the JSON null value. By default, fields with empty values are
  1287  	// omitted from API requests. See
  1288  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1289  	NullFields []string `json:"-"`
  1290  }
  1291  
  1292  func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponse) MarshalJSON() ([]byte, error) {
  1293  	type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponse
  1294  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1295  }
  1296  
  1297  func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponse) UnmarshalJSON(data []byte) error {
  1298  	type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponse
  1299  	var s1 struct {
  1300  		SupportScore gensupport.JSONFloat64 `json:"supportScore"`
  1301  		*NoMethod
  1302  	}
  1303  	s1.NoMethod = (*NoMethod)(s)
  1304  	if err := json.Unmarshal(data, &s1); err != nil {
  1305  		return err
  1306  	}
  1307  	s.SupportScore = float64(s1.SupportScore)
  1308  	return nil
  1309  }
  1310  
  1311  // GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim: Text and citation
  1312  // info for a claim in the answer candidate.
  1313  type GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim struct {
  1314  	// CitationIndices: A list of indices (into 'cited_chunks') specifying the
  1315  	// citations associated with the claim. For instance [1,3,4] means that
  1316  	// cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited
  1317  	// supporting for the claim. A citation to a fact indicates that the claim is
  1318  	// supported by the fact.
  1319  	CitationIndices []int64 `json:"citationIndices,omitempty"`
  1320  	// ClaimText: Text for the claim in the answer candidate. Always provided
  1321  	// regardless of whether citations or anti-citations are found.
  1322  	ClaimText string `json:"claimText,omitempty"`
  1323  	// EndPos: Position indicating the end of the claim in the answer candidate,
  1324  	// exclusive.
  1325  	EndPos int64 `json:"endPos,omitempty"`
  1326  	// GroundingCheckRequired: Indicates that this claim required grounding check.
  1327  	// When the system decided this claim doesn't require attribution/grounding
  1328  	// check, this field will be set to false. In that case, no grounding check was
  1329  	// done for the claim and therefore citation_indices, and anti_citation_indices
  1330  	// should not be returned.
  1331  	GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"`
  1332  	// StartPos: Position indicating the start of the claim in the answer
  1333  	// candidate, measured in bytes.
  1334  	StartPos int64 `json:"startPos,omitempty"`
  1335  	// ForceSendFields is a list of field names (e.g. "CitationIndices") to
  1336  	// unconditionally include in API requests. By default, fields with empty or
  1337  	// default values are omitted from API requests. See
  1338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1339  	// details.
  1340  	ForceSendFields []string `json:"-"`
  1341  	// NullFields is a list of field names (e.g. "CitationIndices") to include in
  1342  	// API requests with the JSON null value. By default, fields with empty values
  1343  	// are omitted from API requests. See
  1344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1345  	NullFields []string `json:"-"`
  1346  }
  1347  
  1348  func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim) MarshalJSON() ([]byte, error) {
  1349  	type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim
  1350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1351  }
  1352  
  1353  // GoogleCloudDiscoveryengineV1CheckGroundingSpec: Specification for the
  1354  // grounding check.
  1355  type GoogleCloudDiscoveryengineV1CheckGroundingSpec struct {
  1356  	// CitationThreshold: The threshold (in [0,1]) used for determining whether a
  1357  	// fact must be cited for a claim in the answer candidate. Choosing a higher
  1358  	// threshold will lead to fewer but very strong citations, while choosing a
  1359  	// lower threshold may lead to more but somewhat weaker citations. If unset,
  1360  	// the threshold will default to 0.6.
  1361  	CitationThreshold float64 `json:"citationThreshold,omitempty"`
  1362  	// ForceSendFields is a list of field names (e.g. "CitationThreshold") to
  1363  	// unconditionally include in API requests. By default, fields with empty or
  1364  	// default values are omitted from API requests. See
  1365  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1366  	// details.
  1367  	ForceSendFields []string `json:"-"`
  1368  	// NullFields is a list of field names (e.g. "CitationThreshold") to include in
  1369  	// API requests with the JSON null value. By default, fields with empty values
  1370  	// are omitted from API requests. See
  1371  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1372  	NullFields []string `json:"-"`
  1373  }
  1374  
  1375  func (s *GoogleCloudDiscoveryengineV1CheckGroundingSpec) MarshalJSON() ([]byte, error) {
  1376  	type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingSpec
  1377  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1378  }
  1379  
  1380  func (s *GoogleCloudDiscoveryengineV1CheckGroundingSpec) UnmarshalJSON(data []byte) error {
  1381  	type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingSpec
  1382  	var s1 struct {
  1383  		CitationThreshold gensupport.JSONFloat64 `json:"citationThreshold"`
  1384  		*NoMethod
  1385  	}
  1386  	s1.NoMethod = (*NoMethod)(s)
  1387  	if err := json.Unmarshal(data, &s1); err != nil {
  1388  		return err
  1389  	}
  1390  	s.CitationThreshold = float64(s1.CitationThreshold)
  1391  	return nil
  1392  }
  1393  
  1394  // GoogleCloudDiscoveryengineV1CloudSqlSource: Cloud SQL source import data
  1395  // from.
  1396  type GoogleCloudDiscoveryengineV1CloudSqlSource struct {
  1397  	// DatabaseId: Required. The Cloud SQL database to copy the data from with a
  1398  	// length limit of 256 characters.
  1399  	DatabaseId string `json:"databaseId,omitempty"`
  1400  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  1401  	// a length limit of 2,000 characters. Can be specified if one wants to have
  1402  	// the Cloud SQL export to a specific Cloud Storage directory. Ensure that the
  1403  	// Cloud SQL service account has the necessary Cloud Storage Admin permissions
  1404  	// to access the specified Cloud Storage directory.
  1405  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  1406  	// InstanceId: Required. The Cloud SQL instance to copy the data from with a
  1407  	// length limit of 256 characters.
  1408  	InstanceId string `json:"instanceId,omitempty"`
  1409  	// Offload: Option for serverless export. Enabling this option will incur
  1410  	// additional cost. More info can be found here
  1411  	// (https://cloud.google.com/sql/pricing#serverless).
  1412  	Offload bool `json:"offload,omitempty"`
  1413  	// ProjectId: The project ID that the Cloud SQL source is in with a length
  1414  	// limit of 128 characters. If not specified, inherits the project ID from the
  1415  	// parent request.
  1416  	ProjectId string `json:"projectId,omitempty"`
  1417  	// TableId: Required. The Cloud SQL table to copy the data from with a length
  1418  	// limit of 256 characters.
  1419  	TableId string `json:"tableId,omitempty"`
  1420  	// ForceSendFields is a list of field names (e.g. "DatabaseId") to
  1421  	// unconditionally include in API requests. By default, fields with empty or
  1422  	// default values are omitted from API requests. See
  1423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1424  	// details.
  1425  	ForceSendFields []string `json:"-"`
  1426  	// NullFields is a list of field names (e.g. "DatabaseId") to include in API
  1427  	// requests with the JSON null value. By default, fields with empty values are
  1428  	// omitted from API requests. See
  1429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1430  	NullFields []string `json:"-"`
  1431  }
  1432  
  1433  func (s *GoogleCloudDiscoveryengineV1CloudSqlSource) MarshalJSON() ([]byte, error) {
  1434  	type NoMethod GoogleCloudDiscoveryengineV1CloudSqlSource
  1435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1436  }
  1437  
  1438  // GoogleCloudDiscoveryengineV1CompleteQueryResponse: Response message for
  1439  // CompletionService.CompleteQuery method.
  1440  type GoogleCloudDiscoveryengineV1CompleteQueryResponse struct {
  1441  	// QuerySuggestions: Results of the matched query suggestions. The result list
  1442  	// is ordered and the first result is a top suggestion.
  1443  	QuerySuggestions []*GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion `json:"querySuggestions,omitempty"`
  1444  	// TailMatchTriggered: True if the returned suggestions are all tail
  1445  	// suggestions. For tail matching to be triggered, include_tail_suggestions in
  1446  	// the request must be true and there must be no suggestions that match the
  1447  	// full query.
  1448  	TailMatchTriggered bool `json:"tailMatchTriggered,omitempty"`
  1449  
  1450  	// ServerResponse contains the HTTP response code and headers from the server.
  1451  	googleapi.ServerResponse `json:"-"`
  1452  	// ForceSendFields is a list of field names (e.g. "QuerySuggestions") to
  1453  	// unconditionally include in API requests. By default, fields with empty or
  1454  	// default values are omitted from API requests. See
  1455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1456  	// details.
  1457  	ForceSendFields []string `json:"-"`
  1458  	// NullFields is a list of field names (e.g. "QuerySuggestions") to include in
  1459  	// API requests with the JSON null value. By default, fields with empty values
  1460  	// are omitted from API requests. See
  1461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1462  	NullFields []string `json:"-"`
  1463  }
  1464  
  1465  func (s *GoogleCloudDiscoveryengineV1CompleteQueryResponse) MarshalJSON() ([]byte, error) {
  1466  	type NoMethod GoogleCloudDiscoveryengineV1CompleteQueryResponse
  1467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1468  }
  1469  
  1470  // GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion:
  1471  // Suggestions as search queries.
  1472  type GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion struct {
  1473  	// CompletableFieldPaths: The unique document field paths that serve as the
  1474  	// source of this suggestion if it was generated from completable fields. This
  1475  	// field is only populated for the document-completable model.
  1476  	CompletableFieldPaths []string `json:"completableFieldPaths,omitempty"`
  1477  	// Suggestion: The suggestion for the query.
  1478  	Suggestion string `json:"suggestion,omitempty"`
  1479  	// ForceSendFields is a list of field names (e.g. "CompletableFieldPaths") to
  1480  	// unconditionally include in API requests. By default, fields with empty or
  1481  	// default values are omitted from API requests. See
  1482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1483  	// details.
  1484  	ForceSendFields []string `json:"-"`
  1485  	// NullFields is a list of field names (e.g. "CompletableFieldPaths") to
  1486  	// include in API requests with the JSON null value. By default, fields with
  1487  	// empty values are omitted from API requests. See
  1488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1489  	NullFields []string `json:"-"`
  1490  }
  1491  
  1492  func (s *GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion) MarshalJSON() ([]byte, error) {
  1493  	type NoMethod GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion
  1494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1495  }
  1496  
  1497  // GoogleCloudDiscoveryengineV1CompletionInfo: Detailed completion information
  1498  // including completion attribution token and clicked completion info.
  1499  type GoogleCloudDiscoveryengineV1CompletionInfo struct {
  1500  	// SelectedPosition: End user selected
  1501  	// CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0.
  1502  	SelectedPosition int64 `json:"selectedPosition,omitempty"`
  1503  	// SelectedSuggestion: End user selected
  1504  	// CompleteQueryResponse.QuerySuggestion.suggestion.
  1505  	SelectedSuggestion string `json:"selectedSuggestion,omitempty"`
  1506  	// ForceSendFields is a list of field names (e.g. "SelectedPosition") to
  1507  	// unconditionally include in API requests. By default, fields with empty or
  1508  	// default values are omitted from API requests. See
  1509  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1510  	// details.
  1511  	ForceSendFields []string `json:"-"`
  1512  	// NullFields is a list of field names (e.g. "SelectedPosition") to include in
  1513  	// API requests with the JSON null value. By default, fields with empty values
  1514  	// are omitted from API requests. See
  1515  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1516  	NullFields []string `json:"-"`
  1517  }
  1518  
  1519  func (s *GoogleCloudDiscoveryengineV1CompletionInfo) MarshalJSON() ([]byte, error) {
  1520  	type NoMethod GoogleCloudDiscoveryengineV1CompletionInfo
  1521  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1522  }
  1523  
  1524  // GoogleCloudDiscoveryengineV1Conversation: External conversation proto
  1525  // definition.
  1526  type GoogleCloudDiscoveryengineV1Conversation struct {
  1527  	// EndTime: Output only. The time the conversation finished.
  1528  	EndTime string `json:"endTime,omitempty"`
  1529  	// Messages: Conversation messages.
  1530  	Messages []*GoogleCloudDiscoveryengineV1ConversationMessage `json:"messages,omitempty"`
  1531  	// Name: Immutable. Fully qualified name
  1532  	// `projects/{project}/locations/global/collections/{collection}/dataStore/*/con
  1533  	// versations/*` or
  1534  	// `projects/{project}/locations/global/collections/{collection}/engines/*/conve
  1535  	// rsations/*`.
  1536  	Name string `json:"name,omitempty"`
  1537  	// StartTime: Output only. The time the conversation started.
  1538  	StartTime string `json:"startTime,omitempty"`
  1539  	// State: The state of the Conversation.
  1540  	//
  1541  	// Possible values:
  1542  	//   "STATE_UNSPECIFIED" - Unknown.
  1543  	//   "IN_PROGRESS" - Conversation is currently open.
  1544  	//   "COMPLETED" - Conversation has been completed.
  1545  	State string `json:"state,omitempty"`
  1546  	// UserPseudoId: A unique identifier for tracking users.
  1547  	UserPseudoId string `json:"userPseudoId,omitempty"`
  1548  
  1549  	// ServerResponse contains the HTTP response code and headers from the server.
  1550  	googleapi.ServerResponse `json:"-"`
  1551  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  1552  	// include in API requests. By default, fields with empty or default values are
  1553  	// omitted from API requests. See
  1554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1555  	// details.
  1556  	ForceSendFields []string `json:"-"`
  1557  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  1558  	// requests with the JSON null value. By default, fields with empty values are
  1559  	// omitted from API requests. See
  1560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1561  	NullFields []string `json:"-"`
  1562  }
  1563  
  1564  func (s *GoogleCloudDiscoveryengineV1Conversation) MarshalJSON() ([]byte, error) {
  1565  	type NoMethod GoogleCloudDiscoveryengineV1Conversation
  1566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1567  }
  1568  
  1569  // GoogleCloudDiscoveryengineV1ConversationContext: Defines context of the
  1570  // conversation
  1571  type GoogleCloudDiscoveryengineV1ConversationContext struct {
  1572  	// ActiveDocument: The current active document the user opened. It contains the
  1573  	// document resource reference.
  1574  	ActiveDocument string `json:"activeDocument,omitempty"`
  1575  	// ContextDocuments: The current list of documents the user is seeing. It
  1576  	// contains the document resource references.
  1577  	ContextDocuments []string `json:"contextDocuments,omitempty"`
  1578  	// ForceSendFields is a list of field names (e.g. "ActiveDocument") to
  1579  	// unconditionally include in API requests. By default, fields with empty or
  1580  	// default values are omitted from API requests. See
  1581  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1582  	// details.
  1583  	ForceSendFields []string `json:"-"`
  1584  	// NullFields is a list of field names (e.g. "ActiveDocument") to include in
  1585  	// API requests with the JSON null value. By default, fields with empty values
  1586  	// are omitted from API requests. See
  1587  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1588  	NullFields []string `json:"-"`
  1589  }
  1590  
  1591  func (s *GoogleCloudDiscoveryengineV1ConversationContext) MarshalJSON() ([]byte, error) {
  1592  	type NoMethod GoogleCloudDiscoveryengineV1ConversationContext
  1593  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1594  }
  1595  
  1596  // GoogleCloudDiscoveryengineV1ConversationMessage: Defines a conversation
  1597  // message.
  1598  type GoogleCloudDiscoveryengineV1ConversationMessage struct {
  1599  	// CreateTime: Output only. Message creation timestamp.
  1600  	CreateTime string `json:"createTime,omitempty"`
  1601  	// Reply: Search reply.
  1602  	Reply *GoogleCloudDiscoveryengineV1Reply `json:"reply,omitempty"`
  1603  	// UserInput: User text input.
  1604  	UserInput *GoogleCloudDiscoveryengineV1TextInput `json:"userInput,omitempty"`
  1605  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1606  	// unconditionally include in API requests. By default, fields with empty or
  1607  	// default values are omitted from API requests. See
  1608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1609  	// details.
  1610  	ForceSendFields []string `json:"-"`
  1611  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1612  	// requests with the JSON null value. By default, fields with empty values are
  1613  	// omitted from API requests. See
  1614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1615  	NullFields []string `json:"-"`
  1616  }
  1617  
  1618  func (s *GoogleCloudDiscoveryengineV1ConversationMessage) MarshalJSON() ([]byte, error) {
  1619  	type NoMethod GoogleCloudDiscoveryengineV1ConversationMessage
  1620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1621  }
  1622  
  1623  // GoogleCloudDiscoveryengineV1ConverseConversationRequest: Request message for
  1624  // ConversationalSearchService.ConverseConversation method.
  1625  type GoogleCloudDiscoveryengineV1ConverseConversationRequest struct {
  1626  	// BoostSpec: Boost specification to boost certain documents in search results
  1627  	// which may affect the converse response. For more information on boosting,
  1628  	// see Boosting (https://cloud.google.com/retail/docs/boosting#boost)
  1629  	BoostSpec *GoogleCloudDiscoveryengineV1SearchRequestBoostSpec `json:"boostSpec,omitempty"`
  1630  	// Conversation: The conversation to be used by auto session only. The name
  1631  	// field will be ignored as we automatically assign new name for the
  1632  	// conversation in auto session.
  1633  	Conversation *GoogleCloudDiscoveryengineV1Conversation `json:"conversation,omitempty"`
  1634  	// Filter: The filter syntax consists of an expression language for
  1635  	// constructing a predicate from one or more fields of the documents being
  1636  	// filtered. Filter expression is case-sensitive. This will be used to filter
  1637  	// search results which may affect the summary response. If this field is
  1638  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  1639  	// Search is done by mapping the LHS filter key to a key property defined in
  1640  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  1641  	// their schema. For example a media customer might have a field 'name' in
  1642  	// their schema. In this case the filter would look like this: filter -->
  1643  	// name:'ANY("king kong")' For more information about filtering including
  1644  	// syntax and filter operators, see Filter
  1645  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  1646  	Filter string `json:"filter,omitempty"`
  1647  	// Query: Required. Current user input.
  1648  	Query *GoogleCloudDiscoveryengineV1TextInput `json:"query,omitempty"`
  1649  	// SafeSearch: Whether to turn on safe search.
  1650  	SafeSearch bool `json:"safeSearch,omitempty"`
  1651  	// ServingConfig: The resource name of the Serving Config to use. Format:
  1652  	// `projects/{project_number}/locations/{location_id}/collections/{collection}/d
  1653  	// ataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not
  1654  	// set, the default serving config will be used.
  1655  	ServingConfig string `json:"servingConfig,omitempty"`
  1656  	// SummarySpec: A specification for configuring the summary returned in the
  1657  	// response.
  1658  	SummarySpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
  1659  	// UserLabels: The user labels applied to a resource must meet the following
  1660  	// requirements: * Each resource can have multiple labels, up to a maximum of
  1661  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  1662  	// character and a maximum length of 63 characters and cannot be empty. Values
  1663  	// can be empty and have a maximum length of 63 characters. * Keys and values
  1664  	// can contain only lowercase letters, numeric characters, underscores, and
  1665  	// dashes. All characters must use UTF-8 encoding, and international characters
  1666  	// are allowed. * The key portion of a label must be unique. However, you can
  1667  	// use the same key with multiple resources. * Keys must start with a lowercase
  1668  	// letter or international character. See Google Cloud Document
  1669  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  1670  	// for more details.
  1671  	UserLabels map[string]string `json:"userLabels,omitempty"`
  1672  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  1673  	// unconditionally include in API requests. By default, fields with empty or
  1674  	// default values are omitted from API requests. See
  1675  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1676  	// details.
  1677  	ForceSendFields []string `json:"-"`
  1678  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  1679  	// requests with the JSON null value. By default, fields with empty values are
  1680  	// omitted from API requests. See
  1681  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1682  	NullFields []string `json:"-"`
  1683  }
  1684  
  1685  func (s *GoogleCloudDiscoveryengineV1ConverseConversationRequest) MarshalJSON() ([]byte, error) {
  1686  	type NoMethod GoogleCloudDiscoveryengineV1ConverseConversationRequest
  1687  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1688  }
  1689  
  1690  // GoogleCloudDiscoveryengineV1ConverseConversationResponse: Response message
  1691  // for ConversationalSearchService.ConverseConversation method.
  1692  type GoogleCloudDiscoveryengineV1ConverseConversationResponse struct {
  1693  	// Conversation: Updated conversation including the answer.
  1694  	Conversation *GoogleCloudDiscoveryengineV1Conversation `json:"conversation,omitempty"`
  1695  	// Reply: Answer to the current query.
  1696  	Reply *GoogleCloudDiscoveryengineV1Reply `json:"reply,omitempty"`
  1697  	// SearchResults: Search Results.
  1698  	SearchResults []*GoogleCloudDiscoveryengineV1SearchResponseSearchResult `json:"searchResults,omitempty"`
  1699  
  1700  	// ServerResponse contains the HTTP response code and headers from the server.
  1701  	googleapi.ServerResponse `json:"-"`
  1702  	// ForceSendFields is a list of field names (e.g. "Conversation") to
  1703  	// unconditionally include in API requests. By default, fields with empty or
  1704  	// default values are omitted from API requests. See
  1705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1706  	// details.
  1707  	ForceSendFields []string `json:"-"`
  1708  	// NullFields is a list of field names (e.g. "Conversation") to include in API
  1709  	// requests with the JSON null value. By default, fields with empty values are
  1710  	// omitted from API requests. See
  1711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1712  	NullFields []string `json:"-"`
  1713  }
  1714  
  1715  func (s *GoogleCloudDiscoveryengineV1ConverseConversationResponse) MarshalJSON() ([]byte, error) {
  1716  	type NoMethod GoogleCloudDiscoveryengineV1ConverseConversationResponse
  1717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1718  }
  1719  
  1720  // GoogleCloudDiscoveryengineV1CreateDataStoreMetadata: Metadata related to the
  1721  // progress of the DataStoreService.CreateDataStore operation. This will be
  1722  // returned by the google.longrunning.Operation.metadata field.
  1723  type GoogleCloudDiscoveryengineV1CreateDataStoreMetadata struct {
  1724  	// CreateTime: Operation create time.
  1725  	CreateTime string `json:"createTime,omitempty"`
  1726  	// UpdateTime: Operation last update time. If the operation is done, this is
  1727  	// also the finish time.
  1728  	UpdateTime string `json:"updateTime,omitempty"`
  1729  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1730  	// unconditionally include in API requests. By default, fields with empty or
  1731  	// default values are omitted from API requests. See
  1732  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1733  	// details.
  1734  	ForceSendFields []string `json:"-"`
  1735  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1736  	// requests with the JSON null value. By default, fields with empty values are
  1737  	// omitted from API requests. See
  1738  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1739  	NullFields []string `json:"-"`
  1740  }
  1741  
  1742  func (s *GoogleCloudDiscoveryengineV1CreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  1743  	type NoMethod GoogleCloudDiscoveryengineV1CreateDataStoreMetadata
  1744  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1745  }
  1746  
  1747  // GoogleCloudDiscoveryengineV1CreateEngineMetadata: Metadata related to the
  1748  // progress of the EngineService.CreateEngine operation. This will be returned
  1749  // by the google.longrunning.Operation.metadata field.
  1750  type GoogleCloudDiscoveryengineV1CreateEngineMetadata struct {
  1751  	// CreateTime: Operation create time.
  1752  	CreateTime string `json:"createTime,omitempty"`
  1753  	// UpdateTime: Operation last update time. If the operation is done, this is
  1754  	// also the finish time.
  1755  	UpdateTime string `json:"updateTime,omitempty"`
  1756  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1757  	// unconditionally include in API requests. By default, fields with empty or
  1758  	// default values are omitted from API requests. See
  1759  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1760  	// details.
  1761  	ForceSendFields []string `json:"-"`
  1762  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1763  	// requests with the JSON null value. By default, fields with empty values are
  1764  	// omitted from API requests. See
  1765  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1766  	NullFields []string `json:"-"`
  1767  }
  1768  
  1769  func (s *GoogleCloudDiscoveryengineV1CreateEngineMetadata) MarshalJSON() ([]byte, error) {
  1770  	type NoMethod GoogleCloudDiscoveryengineV1CreateEngineMetadata
  1771  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1772  }
  1773  
  1774  // GoogleCloudDiscoveryengineV1CreateSchemaMetadata: Metadata for Create Schema
  1775  // LRO.
  1776  type GoogleCloudDiscoveryengineV1CreateSchemaMetadata struct {
  1777  	// CreateTime: Operation create time.
  1778  	CreateTime string `json:"createTime,omitempty"`
  1779  	// UpdateTime: Operation last update time. If the operation is done, this is
  1780  	// also the finish time.
  1781  	UpdateTime string `json:"updateTime,omitempty"`
  1782  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1783  	// unconditionally include in API requests. By default, fields with empty or
  1784  	// default values are omitted from API requests. See
  1785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1786  	// details.
  1787  	ForceSendFields []string `json:"-"`
  1788  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1789  	// requests with the JSON null value. By default, fields with empty values are
  1790  	// omitted from API requests. See
  1791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1792  	NullFields []string `json:"-"`
  1793  }
  1794  
  1795  func (s *GoogleCloudDiscoveryengineV1CreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  1796  	type NoMethod GoogleCloudDiscoveryengineV1CreateSchemaMetadata
  1797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1798  }
  1799  
  1800  // GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata: Metadata related to
  1801  // the progress of the SiteSearchEngineService.CreateTargetSite operation. This
  1802  // will be returned by the google.longrunning.Operation.metadata field.
  1803  type GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata struct {
  1804  	// CreateTime: Operation create time.
  1805  	CreateTime string `json:"createTime,omitempty"`
  1806  	// UpdateTime: Operation last update time. If the operation is done, this is
  1807  	// also the finish time.
  1808  	UpdateTime string `json:"updateTime,omitempty"`
  1809  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1810  	// unconditionally include in API requests. By default, fields with empty or
  1811  	// default values are omitted from API requests. See
  1812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1813  	// details.
  1814  	ForceSendFields []string `json:"-"`
  1815  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1816  	// requests with the JSON null value. By default, fields with empty values are
  1817  	// omitted from API requests. See
  1818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1819  	NullFields []string `json:"-"`
  1820  }
  1821  
  1822  func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1823  	type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata
  1824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1825  }
  1826  
  1827  // GoogleCloudDiscoveryengineV1CreateTargetSiteRequest: Request message for
  1828  // SiteSearchEngineService.CreateTargetSite method.
  1829  type GoogleCloudDiscoveryengineV1CreateTargetSiteRequest struct {
  1830  	// Parent: Required. Parent resource name of TargetSite, such as
  1831  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  1832  	// {data_store}/siteSearchEngine`.
  1833  	Parent string `json:"parent,omitempty"`
  1834  	// TargetSite: Required. The TargetSite to create.
  1835  	TargetSite *GoogleCloudDiscoveryengineV1TargetSite `json:"targetSite,omitempty"`
  1836  	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
  1837  	// include in API requests. By default, fields with empty or default values are
  1838  	// omitted from API requests. See
  1839  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1840  	// details.
  1841  	ForceSendFields []string `json:"-"`
  1842  	// NullFields is a list of field names (e.g. "Parent") to include in API
  1843  	// requests with the JSON null value. By default, fields with empty values are
  1844  	// omitted from API requests. See
  1845  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1846  	NullFields []string `json:"-"`
  1847  }
  1848  
  1849  func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteRequest) MarshalJSON() ([]byte, error) {
  1850  	type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteRequest
  1851  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1852  }
  1853  
  1854  // GoogleCloudDiscoveryengineV1CustomAttribute: A custom attribute that is not
  1855  // explicitly modeled in a resource, e.g. UserEvent.
  1856  type GoogleCloudDiscoveryengineV1CustomAttribute struct {
  1857  	// Numbers: The numerical values of this custom attribute. For example, `[2.3,
  1858  	// 15.4]` when the key is "lengths_cm". Exactly one of CustomAttribute.text or
  1859  	// CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT`
  1860  	// error is returned.
  1861  	Numbers []float64 `json:"numbers,omitempty"`
  1862  	// Text: The textual values of this custom attribute. For example, `["yellow",
  1863  	// "green"]` when the key is "color". Empty string is not allowed. Otherwise,
  1864  	// an `INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text
  1865  	// or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT`
  1866  	// error is returned.
  1867  	Text []string `json:"text,omitempty"`
  1868  	// ForceSendFields is a list of field names (e.g. "Numbers") to unconditionally
  1869  	// include in API requests. By default, fields with empty or default values are
  1870  	// omitted from API requests. See
  1871  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1872  	// details.
  1873  	ForceSendFields []string `json:"-"`
  1874  	// NullFields is a list of field names (e.g. "Numbers") to include in API
  1875  	// requests with the JSON null value. By default, fields with empty values are
  1876  	// omitted from API requests. See
  1877  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1878  	NullFields []string `json:"-"`
  1879  }
  1880  
  1881  func (s *GoogleCloudDiscoveryengineV1CustomAttribute) MarshalJSON() ([]byte, error) {
  1882  	type NoMethod GoogleCloudDiscoveryengineV1CustomAttribute
  1883  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1884  }
  1885  
  1886  func (s *GoogleCloudDiscoveryengineV1CustomAttribute) UnmarshalJSON(data []byte) error {
  1887  	type NoMethod GoogleCloudDiscoveryengineV1CustomAttribute
  1888  	var s1 struct {
  1889  		Numbers []gensupport.JSONFloat64 `json:"numbers"`
  1890  		*NoMethod
  1891  	}
  1892  	s1.NoMethod = (*NoMethod)(s)
  1893  	if err := json.Unmarshal(data, &s1); err != nil {
  1894  		return err
  1895  	}
  1896  	s.Numbers = make([]float64, len(s1.Numbers))
  1897  	for i := range s1.Numbers {
  1898  		s.Numbers[i] = float64(s1.Numbers[i])
  1899  	}
  1900  	return nil
  1901  }
  1902  
  1903  // GoogleCloudDiscoveryengineV1DataStore: DataStore captures global settings
  1904  // and configs at the DataStore level.
  1905  type GoogleCloudDiscoveryengineV1DataStore struct {
  1906  	// ContentConfig: Immutable. The content config of the data store. If this
  1907  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  1908  	//
  1909  	// Possible values:
  1910  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  1911  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  1912  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  1913  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  1914  	ContentConfig string `json:"contentConfig,omitempty"`
  1915  	// CreateTime: Output only. Timestamp the DataStore was created at.
  1916  	CreateTime string `json:"createTime,omitempty"`
  1917  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  1918  	// this data store.
  1919  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  1920  	// DisplayName: Required. The data store display name. This field must be a
  1921  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  1922  	// INVALID_ARGUMENT error is returned.
  1923  	DisplayName string `json:"displayName,omitempty"`
  1924  	// DocumentProcessingConfig: Configuration for Document understanding and
  1925  	// enrichment.
  1926  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  1927  	// IndustryVertical: Immutable. The industry vertical that the data store
  1928  	// registers.
  1929  	//
  1930  	// Possible values:
  1931  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  1932  	//   "GENERIC" - The generic vertical for documents that are not specific to
  1933  	// any industry vertical.
  1934  	//   "MEDIA" - The media industry vertical.
  1935  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  1936  	IndustryVertical string `json:"industryVertical,omitempty"`
  1937  	// Name: Immutable. The full resource name of the data store. Format:
  1938  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  1939  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  1940  	// limit of 1024 characters.
  1941  	Name string `json:"name,omitempty"`
  1942  	// SolutionTypes: The solutions that the data store enrolls. Available
  1943  	// solutions for each industry_vertical: * `MEDIA`:
  1944  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  1945  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  1946  	// enrolled.
  1947  	//
  1948  	// Possible values:
  1949  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  1950  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  1951  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  1952  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  1953  	// agent.
  1954  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  1955  	// Generative Chat agent. It's used for Generative chat engine only, the
  1956  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  1957  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  1958  	// StartingSchema: The start schema to use for this DataStore when provisioning
  1959  	// it. If unset, a default vertical specialized schema will be used. This field
  1960  	// is only used by CreateDataStore API, and will be ignored if used in other
  1961  	// APIs. This field will be omitted from all API responses including
  1962  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  1963  	// SchemaService.GetSchema API instead. The provided schema will be validated
  1964  	// against certain rules on schema. Learn more from this doc
  1965  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  1966  	StartingSchema *GoogleCloudDiscoveryengineV1Schema `json:"startingSchema,omitempty"`
  1967  
  1968  	// ServerResponse contains the HTTP response code and headers from the server.
  1969  	googleapi.ServerResponse `json:"-"`
  1970  	// ForceSendFields is a list of field names (e.g. "ContentConfig") to
  1971  	// unconditionally include in API requests. By default, fields with empty or
  1972  	// default values are omitted from API requests. See
  1973  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1974  	// details.
  1975  	ForceSendFields []string `json:"-"`
  1976  	// NullFields is a list of field names (e.g. "ContentConfig") to include in API
  1977  	// requests with the JSON null value. By default, fields with empty values are
  1978  	// omitted from API requests. See
  1979  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1980  	NullFields []string `json:"-"`
  1981  }
  1982  
  1983  func (s *GoogleCloudDiscoveryengineV1DataStore) MarshalJSON() ([]byte, error) {
  1984  	type NoMethod GoogleCloudDiscoveryengineV1DataStore
  1985  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1986  }
  1987  
  1988  // GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata: Metadata related to the
  1989  // progress of the DataStoreService.DeleteDataStore operation. This will be
  1990  // returned by the google.longrunning.Operation.metadata field.
  1991  type GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata struct {
  1992  	// CreateTime: Operation create time.
  1993  	CreateTime string `json:"createTime,omitempty"`
  1994  	// UpdateTime: Operation last update time. If the operation is done, this is
  1995  	// also the finish time.
  1996  	UpdateTime string `json:"updateTime,omitempty"`
  1997  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1998  	// unconditionally include in API requests. By default, fields with empty or
  1999  	// default values are omitted from API requests. See
  2000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2001  	// details.
  2002  	ForceSendFields []string `json:"-"`
  2003  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2004  	// requests with the JSON null value. By default, fields with empty values are
  2005  	// omitted from API requests. See
  2006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2007  	NullFields []string `json:"-"`
  2008  }
  2009  
  2010  func (s *GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  2011  	type NoMethod GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata
  2012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2013  }
  2014  
  2015  // GoogleCloudDiscoveryengineV1DeleteEngineMetadata: Metadata related to the
  2016  // progress of the EngineService.DeleteEngine operation. This will be returned
  2017  // by the google.longrunning.Operation.metadata field.
  2018  type GoogleCloudDiscoveryengineV1DeleteEngineMetadata struct {
  2019  	// CreateTime: Operation create time.
  2020  	CreateTime string `json:"createTime,omitempty"`
  2021  	// UpdateTime: Operation last update time. If the operation is done, this is
  2022  	// also the finish time.
  2023  	UpdateTime string `json:"updateTime,omitempty"`
  2024  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2025  	// unconditionally include in API requests. By default, fields with empty or
  2026  	// default values are omitted from API requests. See
  2027  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2028  	// details.
  2029  	ForceSendFields []string `json:"-"`
  2030  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2031  	// requests with the JSON null value. By default, fields with empty values are
  2032  	// omitted from API requests. See
  2033  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2034  	NullFields []string `json:"-"`
  2035  }
  2036  
  2037  func (s *GoogleCloudDiscoveryengineV1DeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  2038  	type NoMethod GoogleCloudDiscoveryengineV1DeleteEngineMetadata
  2039  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2040  }
  2041  
  2042  // GoogleCloudDiscoveryengineV1DeleteSchemaMetadata: Metadata for DeleteSchema
  2043  // LRO.
  2044  type GoogleCloudDiscoveryengineV1DeleteSchemaMetadata struct {
  2045  	// CreateTime: Operation create time.
  2046  	CreateTime string `json:"createTime,omitempty"`
  2047  	// UpdateTime: Operation last update time. If the operation is done, this is
  2048  	// also the finish time.
  2049  	UpdateTime string `json:"updateTime,omitempty"`
  2050  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2051  	// unconditionally include in API requests. By default, fields with empty or
  2052  	// default values are omitted from API requests. See
  2053  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2054  	// details.
  2055  	ForceSendFields []string `json:"-"`
  2056  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2057  	// requests with the JSON null value. By default, fields with empty values are
  2058  	// omitted from API requests. See
  2059  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2060  	NullFields []string `json:"-"`
  2061  }
  2062  
  2063  func (s *GoogleCloudDiscoveryengineV1DeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  2064  	type NoMethod GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
  2065  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2066  }
  2067  
  2068  // GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata: Metadata related to
  2069  // the progress of the SiteSearchEngineService.DeleteTargetSite operation. This
  2070  // will be returned by the google.longrunning.Operation.metadata field.
  2071  type GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata struct {
  2072  	// CreateTime: Operation create time.
  2073  	CreateTime string `json:"createTime,omitempty"`
  2074  	// UpdateTime: Operation last update time. If the operation is done, this is
  2075  	// also the finish time.
  2076  	UpdateTime string `json:"updateTime,omitempty"`
  2077  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2078  	// unconditionally include in API requests. By default, fields with empty or
  2079  	// default values are omitted from API requests. See
  2080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2081  	// details.
  2082  	ForceSendFields []string `json:"-"`
  2083  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2084  	// requests with the JSON null value. By default, fields with empty values are
  2085  	// omitted from API requests. See
  2086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2087  	NullFields []string `json:"-"`
  2088  }
  2089  
  2090  func (s *GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  2091  	type NoMethod GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata
  2092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2093  }
  2094  
  2095  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata: Metadata
  2096  // related to the progress of the
  2097  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  2098  // returned by the google.longrunning.Operation.metadata field.
  2099  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata struct {
  2100  	// CreateTime: Operation create time.
  2101  	CreateTime string `json:"createTime,omitempty"`
  2102  	// UpdateTime: Operation last update time. If the operation is done, this is
  2103  	// also the finish time.
  2104  	UpdateTime string `json:"updateTime,omitempty"`
  2105  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2106  	// unconditionally include in API requests. By default, fields with empty or
  2107  	// default values are omitted from API requests. See
  2108  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2109  	// details.
  2110  	ForceSendFields []string `json:"-"`
  2111  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2112  	// requests with the JSON null value. By default, fields with empty values are
  2113  	// omitted from API requests. See
  2114  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2115  	NullFields []string `json:"-"`
  2116  }
  2117  
  2118  func (s *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  2119  	type NoMethod GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata
  2120  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2121  }
  2122  
  2123  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest: Request
  2124  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  2125  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest struct {
  2126  }
  2127  
  2128  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse: Response
  2129  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  2130  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse struct {
  2131  }
  2132  
  2133  // GoogleCloudDiscoveryengineV1Document: Document captures all raw metadata
  2134  // information of items to be recommended or searched.
  2135  type GoogleCloudDiscoveryengineV1Document struct {
  2136  	// Content: The unstructured data linked to this document. Content must be set
  2137  	// if this document is under a `CONTENT_REQUIRED` data store.
  2138  	Content *GoogleCloudDiscoveryengineV1DocumentContent `json:"content,omitempty"`
  2139  	// DerivedStructData: Output only. This field is OUTPUT_ONLY. It contains
  2140  	// derived data that are not in the original input document.
  2141  	DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
  2142  	// Id: Immutable. The identifier of the document. Id should conform to RFC-1034
  2143  	// (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
  2144  	// characters.
  2145  	Id string `json:"id,omitempty"`
  2146  	// IndexTime: Output only. The last time the document was indexed. If this
  2147  	// field is set, the document could be returned in search results. This field
  2148  	// is OUTPUT_ONLY. If this field is not populated, it means the document has
  2149  	// never been indexed.
  2150  	IndexTime string `json:"indexTime,omitempty"`
  2151  	// JsonData: The JSON string representation of the document. It should conform
  2152  	// to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
  2153  	JsonData string `json:"jsonData,omitempty"`
  2154  	// Name: Immutable. The full resource name of the document. Format:
  2155  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  2156  	// {data_store}/branches/{branch}/documents/{document_id}`. This field must be
  2157  	// a UTF-8 encoded string with a length limit of 1024 characters.
  2158  	Name string `json:"name,omitempty"`
  2159  	// ParentDocumentId: The identifier of the parent document. Currently supports
  2160  	// at most two level document hierarchy. Id should conform to RFC-1034
  2161  	// (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
  2162  	// characters.
  2163  	ParentDocumentId string `json:"parentDocumentId,omitempty"`
  2164  	// SchemaId: The identifier of the schema located in the same data store.
  2165  	SchemaId string `json:"schemaId,omitempty"`
  2166  	// StructData: The structured JSON data for the document. It should conform to
  2167  	// the registered Schema or an `INVALID_ARGUMENT` error is thrown.
  2168  	StructData googleapi.RawMessage `json:"structData,omitempty"`
  2169  
  2170  	// ServerResponse contains the HTTP response code and headers from the server.
  2171  	googleapi.ServerResponse `json:"-"`
  2172  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2173  	// include in API requests. By default, fields with empty or default values are
  2174  	// omitted from API requests. See
  2175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2176  	// details.
  2177  	ForceSendFields []string `json:"-"`
  2178  	// NullFields is a list of field names (e.g. "Content") to include in API
  2179  	// requests with the JSON null value. By default, fields with empty values are
  2180  	// omitted from API requests. See
  2181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2182  	NullFields []string `json:"-"`
  2183  }
  2184  
  2185  func (s *GoogleCloudDiscoveryengineV1Document) MarshalJSON() ([]byte, error) {
  2186  	type NoMethod GoogleCloudDiscoveryengineV1Document
  2187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2188  }
  2189  
  2190  // GoogleCloudDiscoveryengineV1DocumentContent: Unstructured data linked to
  2191  // this document.
  2192  type GoogleCloudDiscoveryengineV1DocumentContent struct {
  2193  	// MimeType: The MIME type of the content. Supported types: * `application/pdf`
  2194  	// (PDF, only native PDFs are supported for now) * `text/html` (HTML) *
  2195  	// `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
  2196  	// (DOCX) *
  2197  	// `application/vnd.openxmlformats-officedocument.presentationml.presentation`
  2198  	// (PPTX) * `text/plain` (TXT) See
  2199  	// https://www.iana.org/assignments/media-types/media-types.xhtml.
  2200  	MimeType string `json:"mimeType,omitempty"`
  2201  	// RawBytes: The content represented as a stream of bytes. The maximum length
  2202  	// is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields,
  2203  	// this field is represented as pure binary in Protocol Buffers and
  2204  	// base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be
  2205  	// represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
  2206  	// https://developers.google.com/protocol-buffers/docs/proto3#json.
  2207  	RawBytes string `json:"rawBytes,omitempty"`
  2208  	// Uri: The URI of the content. Only Cloud Storage URIs (e.g.
  2209  	// `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5
  2210  	// MB for text-based formats, 100 MB for other formats.
  2211  	Uri string `json:"uri,omitempty"`
  2212  	// ForceSendFields is a list of field names (e.g. "MimeType") 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. "MimeType") 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 *GoogleCloudDiscoveryengineV1DocumentContent) MarshalJSON() ([]byte, error) {
  2226  	type NoMethod GoogleCloudDiscoveryengineV1DocumentContent
  2227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2228  }
  2229  
  2230  // GoogleCloudDiscoveryengineV1DocumentInfo: Detailed document information
  2231  // associated with a user event.
  2232  type GoogleCloudDiscoveryengineV1DocumentInfo struct {
  2233  	// Id: The Document resource ID.
  2234  	Id string `json:"id,omitempty"`
  2235  	// Name: The Document resource full name, of the form:
  2236  	// `projects/{project_id}/locations/{location}/collections/{collection_id}/dataS
  2237  	// tores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
  2238  	Name string `json:"name,omitempty"`
  2239  	// PromotionIds: The promotion IDs associated with this Document. Currently,
  2240  	// this field is restricted to at most one ID.
  2241  	PromotionIds []string `json:"promotionIds,omitempty"`
  2242  	// Quantity: Quantity of the Document associated with the user event. Defaults
  2243  	// to 1. For example, this field will be 2 if two quantities of the same
  2244  	// Document are involved in a `add-to-cart` event. Required for events of the
  2245  	// following event types: * `add-to-cart` * `purchase`
  2246  	Quantity int64 `json:"quantity,omitempty"`
  2247  	// Uri: The Document URI - only allowed for website data stores.
  2248  	Uri string `json:"uri,omitempty"`
  2249  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  2250  	// include in API requests. By default, fields with empty or default values are
  2251  	// omitted from API requests. See
  2252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2253  	// details.
  2254  	ForceSendFields []string `json:"-"`
  2255  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  2256  	// with the JSON null value. By default, fields with empty values are omitted
  2257  	// from API requests. See
  2258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2259  	NullFields []string `json:"-"`
  2260  }
  2261  
  2262  func (s *GoogleCloudDiscoveryengineV1DocumentInfo) MarshalJSON() ([]byte, error) {
  2263  	type NoMethod GoogleCloudDiscoveryengineV1DocumentInfo
  2264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2265  }
  2266  
  2267  // GoogleCloudDiscoveryengineV1DocumentProcessingConfig: A singleton resource
  2268  // of DataStore. It's empty when DataStore is created, which defaults to
  2269  // digital parser. The first call to
  2270  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  2271  // config.
  2272  type GoogleCloudDiscoveryengineV1DocumentProcessingConfig struct {
  2273  	// DefaultParsingConfig: Configurations for default Document parser. If not
  2274  	// specified, we will configure it as default DigitalParsingConfig, and the
  2275  	// default parsing config will be applied to all file types for Document
  2276  	// parsing.
  2277  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  2278  	// Name: The full resource name of the Document Processing Config. Format:
  2279  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  2280  	Name string `json:"name,omitempty"`
  2281  	// ParsingConfigOverrides: Map from file type to override the default parsing
  2282  	// configuration based on the file type. Supported keys: * `pdf`: Override
  2283  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  2284  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  2285  	// digital parsing and or layout parsing are supported. * `docx`: Override
  2286  	// parsing config for DOCX files, only digital parsing and or layout parsing
  2287  	// are supported.
  2288  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  2289  	// ForceSendFields is a list of field names (e.g. "DefaultParsingConfig") to
  2290  	// unconditionally include in API requests. By default, fields with empty or
  2291  	// default values are omitted from API requests. See
  2292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2293  	// details.
  2294  	ForceSendFields []string `json:"-"`
  2295  	// NullFields is a list of field names (e.g. "DefaultParsingConfig") to include
  2296  	// in API requests with the JSON null value. By default, fields with empty
  2297  	// values are omitted from API requests. See
  2298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2299  	NullFields []string `json:"-"`
  2300  }
  2301  
  2302  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  2303  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfig
  2304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2305  }
  2306  
  2307  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig: Related
  2308  // configurations applied to a specific type of document parser.
  2309  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig struct {
  2310  	// DigitalParsingConfig: Configurations applied to digital parser.
  2311  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  2312  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  2313  	// applies to PDFs.
  2314  	OcrParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  2315  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  2316  	// unconditionally include in API requests. By default, fields with empty or
  2317  	// default values are omitted from API requests. See
  2318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2319  	// details.
  2320  	ForceSendFields []string `json:"-"`
  2321  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  2322  	// in API requests with the JSON null value. By default, fields with empty
  2323  	// values are omitted from API requests. See
  2324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2325  	NullFields []string `json:"-"`
  2326  }
  2327  
  2328  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  2329  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
  2330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2331  }
  2332  
  2333  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsi
  2334  // ngConfig: The digital parsing configurations for documents.
  2335  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  2336  }
  2337  
  2338  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingCo
  2339  // nfig: The OCR parsing configurations for documents.
  2340  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  2341  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  2342  	// additional enhanced document elements processing, please switch to
  2343  	// `layout_parsing_config`.
  2344  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  2345  	// UseNativeText: If true, will use native text instead of OCR text on pages
  2346  	// containing native text.
  2347  	UseNativeText bool `json:"useNativeText,omitempty"`
  2348  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  2349  	// to unconditionally include in API requests. By default, fields with empty or
  2350  	// default values are omitted from API requests. See
  2351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2352  	// details.
  2353  	ForceSendFields []string `json:"-"`
  2354  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  2355  	// include in API requests with the JSON null value. By default, fields with
  2356  	// empty values are omitted from API requests. See
  2357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2358  	NullFields []string `json:"-"`
  2359  }
  2360  
  2361  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  2362  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
  2363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2364  }
  2365  
  2366  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata: Metadata
  2367  // related to the progress of the
  2368  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  2369  // returned by the google.longrunning.Operation.metadata field.
  2370  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata struct {
  2371  	// CreateTime: Operation create time.
  2372  	CreateTime string `json:"createTime,omitempty"`
  2373  	// UpdateTime: Operation last update time. If the operation is done, this is
  2374  	// also the finish time.
  2375  	UpdateTime string `json:"updateTime,omitempty"`
  2376  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2377  	// unconditionally include in API requests. By default, fields with empty or
  2378  	// default values are omitted from API requests. See
  2379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2380  	// details.
  2381  	ForceSendFields []string `json:"-"`
  2382  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2383  	// requests with the JSON null value. By default, fields with empty values are
  2384  	// omitted from API requests. See
  2385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2386  	NullFields []string `json:"-"`
  2387  }
  2388  
  2389  func (s *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  2390  	type NoMethod GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata
  2391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2392  }
  2393  
  2394  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest: Request message
  2395  // for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  2396  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest struct {
  2397  }
  2398  
  2399  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse: Response
  2400  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  2401  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse struct {
  2402  }
  2403  
  2404  // GoogleCloudDiscoveryengineV1Engine: Metadata that describes the training and
  2405  // serving parameters of an Engine.
  2406  type GoogleCloudDiscoveryengineV1Engine struct {
  2407  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  2408  	// solution_type is SOLUTION_TYPE_CHAT.
  2409  	ChatEngineConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  2410  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  2411  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  2412  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  2413  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  2414  	CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
  2415  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  2416  	CreateTime string `json:"createTime,omitempty"`
  2417  	// DataStoreIds: The data stores associated with this engine. For
  2418  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  2419  	// can only associate with at most one data store. If solution_type is
  2420  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  2421  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  2422  	// id must be provided as the system will use it for necessary initializations.
  2423  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  2424  	// DisplayName: Required. The display name of the engine. Should be human
  2425  	// readable. UTF-8 encoded string with limit of 1024 characters.
  2426  	DisplayName string `json:"displayName,omitempty"`
  2427  	// IndustryVertical: The industry vertical that the engine registers. The
  2428  	// restriction of the Engine industry vertical is based on DataStore: If
  2429  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  2430  	// of the DataStore liniked to the engine.
  2431  	//
  2432  	// Possible values:
  2433  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  2434  	//   "GENERIC" - The generic vertical for documents that are not specific to
  2435  	// any industry vertical.
  2436  	//   "MEDIA" - The media industry vertical.
  2437  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  2438  	IndustryVertical string `json:"industryVertical,omitempty"`
  2439  	// Name: Immutable. The fully qualified resource name of the engine. This field
  2440  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  2441  	// Format:
  2442  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  2443  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  2444  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  2445  	Name string `json:"name,omitempty"`
  2446  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  2447  	// solution_type is SOLUTION_TYPE_SEARCH.
  2448  	SearchEngineConfig *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  2449  	// SolutionType: Required. The solutions of the engine.
  2450  	//
  2451  	// Possible values:
  2452  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  2453  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  2454  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  2455  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  2456  	// agent.
  2457  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  2458  	// Generative Chat agent. It's used for Generative chat engine only, the
  2459  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  2460  	SolutionType string `json:"solutionType,omitempty"`
  2461  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  2462  	// updated.
  2463  	UpdateTime string `json:"updateTime,omitempty"`
  2464  
  2465  	// ServerResponse contains the HTTP response code and headers from the server.
  2466  	googleapi.ServerResponse `json:"-"`
  2467  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  2468  	// unconditionally include in API requests. By default, fields with empty or
  2469  	// default values are omitted from API requests. See
  2470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2471  	// details.
  2472  	ForceSendFields []string `json:"-"`
  2473  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  2474  	// API requests with the JSON null value. By default, fields with empty values
  2475  	// are omitted from API requests. See
  2476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2477  	NullFields []string `json:"-"`
  2478  }
  2479  
  2480  func (s *GoogleCloudDiscoveryengineV1Engine) MarshalJSON() ([]byte, error) {
  2481  	type NoMethod GoogleCloudDiscoveryengineV1Engine
  2482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2483  }
  2484  
  2485  // GoogleCloudDiscoveryengineV1EngineChatEngineConfig: Configurations for a
  2486  // Chat Engine.
  2487  type GoogleCloudDiscoveryengineV1EngineChatEngineConfig struct {
  2488  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  2489  	// is associated to this Engine. Note that these configurations are one-time
  2490  	// consumed by and passed to Dialogflow service. It means they cannot be
  2491  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  2492  	// after engine creation.
  2493  	AgentCreationConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  2494  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  2495  	// link to this Chat Engine. Customers can either provide
  2496  	// `agent_creation_config` to create agent or provide an agent name that links
  2497  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  2498  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  2499  	// Dialogflow service. It means they cannot be retrieved using
  2500  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  2501  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  2502  	// association after Engine is created.
  2503  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  2504  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  2505  	// unconditionally include in API requests. By default, fields with empty or
  2506  	// default values are omitted from API requests. See
  2507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2508  	// details.
  2509  	ForceSendFields []string `json:"-"`
  2510  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  2511  	// in API requests with the JSON null value. By default, fields with empty
  2512  	// values are omitted from API requests. See
  2513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2514  	NullFields []string `json:"-"`
  2515  }
  2516  
  2517  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  2518  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfig
  2519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2520  }
  2521  
  2522  // GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig:
  2523  // Configurations for generating a Dialogflow agent. Note that these
  2524  // configurations are one-time consumed by and passed to Dialogflow service. It
  2525  // means they cannot be retrieved using EngineService.GetEngine or
  2526  // EngineService.ListEngines API after engine creation.
  2527  type GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig struct {
  2528  	// Business: Name of the company, organization or other entity that the agent
  2529  	// represents. Used for knowledge connector LLM prompt and for knowledge
  2530  	// search.
  2531  	Business string `json:"business,omitempty"`
  2532  	// DefaultLanguageCode: Required. The default language of the agent as a
  2533  	// language tag. See Language Support
  2534  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  2535  	// the currently supported language codes.
  2536  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  2537  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  2538  	// If not provided, us Engine will create Agent using us-central-1 by default;
  2539  	// eu Engine will create Agent using eu-west-1 by default.
  2540  	Location string `json:"location,omitempty"`
  2541  	// TimeZone: Required. The time zone of the agent from the time zone database
  2542  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  2543  	TimeZone string `json:"timeZone,omitempty"`
  2544  	// ForceSendFields is a list of field names (e.g. "Business") to
  2545  	// unconditionally include in API requests. By default, fields with empty or
  2546  	// default values are omitted from API requests. See
  2547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2548  	// details.
  2549  	ForceSendFields []string `json:"-"`
  2550  	// NullFields is a list of field names (e.g. "Business") to include in API
  2551  	// requests with the JSON null value. By default, fields with empty values are
  2552  	// omitted from API requests. See
  2553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2554  	NullFields []string `json:"-"`
  2555  }
  2556  
  2557  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  2558  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig
  2559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2560  }
  2561  
  2562  // GoogleCloudDiscoveryengineV1EngineChatEngineMetadata: Additional information
  2563  // of a Chat Engine. Fields in this message are output only.
  2564  type GoogleCloudDiscoveryengineV1EngineChatEngineMetadata struct {
  2565  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  2566  	// Engine refers to. Format: `projects//locations//agents/`.
  2567  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  2568  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  2569  	// unconditionally include in API requests. By default, fields with empty or
  2570  	// default values are omitted from API requests. See
  2571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2572  	// details.
  2573  	ForceSendFields []string `json:"-"`
  2574  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  2575  	// API requests with the JSON null value. By default, fields with empty values
  2576  	// are omitted from API requests. See
  2577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2578  	NullFields []string `json:"-"`
  2579  }
  2580  
  2581  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  2582  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineMetadata
  2583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2584  }
  2585  
  2586  // GoogleCloudDiscoveryengineV1EngineCommonConfig: Common configurations for an
  2587  // Engine.
  2588  type GoogleCloudDiscoveryengineV1EngineCommonConfig struct {
  2589  	// CompanyName: Immutable. The name of the company, business or entity that is
  2590  	// associated with the engine. Setting this may help improve LLM related
  2591  	// features.
  2592  	CompanyName string `json:"companyName,omitempty"`
  2593  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  2594  	// unconditionally include in API requests. By default, fields with empty or
  2595  	// default values are omitted from API requests. See
  2596  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2597  	// details.
  2598  	ForceSendFields []string `json:"-"`
  2599  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  2600  	// requests with the JSON null value. By default, fields with empty values are
  2601  	// omitted from API requests. See
  2602  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2603  	NullFields []string `json:"-"`
  2604  }
  2605  
  2606  func (s *GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, error) {
  2607  	type NoMethod GoogleCloudDiscoveryengineV1EngineCommonConfig
  2608  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2609  }
  2610  
  2611  // GoogleCloudDiscoveryengineV1EngineSearchEngineConfig: Configurations for a
  2612  // Search Engine.
  2613  type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct {
  2614  	// SearchAddOns: The add-on that this search engine enables.
  2615  	//
  2616  	// Possible values:
  2617  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  2618  	// This is invalid to use.
  2619  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  2620  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  2621  	// SearchTier: The search feature tier of this engine. Different tiers might
  2622  	// have different pricing. To learn more, check the pricing documentation.
  2623  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  2624  	//
  2625  	// Possible values:
  2626  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  2627  	// This is invalid to use.
  2628  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  2629  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  2630  	SearchTier string `json:"searchTier,omitempty"`
  2631  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  2632  	// unconditionally include in API requests. By default, fields with empty or
  2633  	// default values are omitted from API requests. See
  2634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2635  	// details.
  2636  	ForceSendFields []string `json:"-"`
  2637  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  2638  	// requests with the JSON null value. By default, fields with empty values are
  2639  	// omitted from API requests. See
  2640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2641  	NullFields []string `json:"-"`
  2642  }
  2643  
  2644  func (s *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  2645  	type NoMethod GoogleCloudDiscoveryengineV1EngineSearchEngineConfig
  2646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2647  }
  2648  
  2649  // GoogleCloudDiscoveryengineV1FactChunk: Fact Chunk.
  2650  type GoogleCloudDiscoveryengineV1FactChunk struct {
  2651  	// ChunkText: Text content of the fact chunk. Can be at most 10K characters
  2652  	// long.
  2653  	ChunkText string `json:"chunkText,omitempty"`
  2654  	// Index: The index of this chunk. Currently, only used for the streaming mode.
  2655  	Index int64 `json:"index,omitempty"`
  2656  	// Source: Source from which this fact chunk was retrieved. If it was retrieved
  2657  	// from the GroundingFacts provided in the request then this field will contain
  2658  	// the index of the specific fact from which this chunk was retrieved.
  2659  	Source string `json:"source,omitempty"`
  2660  	// SourceMetadata: More fine-grained information for the source reference.
  2661  	SourceMetadata map[string]string `json:"sourceMetadata,omitempty"`
  2662  	// ForceSendFields is a list of field names (e.g. "ChunkText") to
  2663  	// unconditionally include in API requests. By default, fields with empty or
  2664  	// default values are omitted from API requests. See
  2665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2666  	// details.
  2667  	ForceSendFields []string `json:"-"`
  2668  	// NullFields is a list of field names (e.g. "ChunkText") to include in API
  2669  	// requests with the JSON null value. By default, fields with empty values are
  2670  	// omitted from API requests. See
  2671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2672  	NullFields []string `json:"-"`
  2673  }
  2674  
  2675  func (s *GoogleCloudDiscoveryengineV1FactChunk) MarshalJSON() ([]byte, error) {
  2676  	type NoMethod GoogleCloudDiscoveryengineV1FactChunk
  2677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2678  }
  2679  
  2680  // GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse: Response
  2681  // message for SiteSearchEngineService.FetchDomainVerificationStatus method.
  2682  type GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse struct {
  2683  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2684  	// page. If this field is omitted, there are no subsequent pages.
  2685  	NextPageToken string `json:"nextPageToken,omitempty"`
  2686  	// TargetSites: List of TargetSites containing the site verification status.
  2687  	TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
  2688  	// TotalSize: The total number of items matching the request. This will always
  2689  	// be populated in the response.
  2690  	TotalSize int64 `json:"totalSize,omitempty"`
  2691  
  2692  	// ServerResponse contains the HTTP response code and headers from the server.
  2693  	googleapi.ServerResponse `json:"-"`
  2694  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2695  	// unconditionally include in API requests. By default, fields with empty or
  2696  	// default values are omitted from API requests. See
  2697  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2698  	// details.
  2699  	ForceSendFields []string `json:"-"`
  2700  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2701  	// requests with the JSON null value. By default, fields with empty values are
  2702  	// omitted from API requests. See
  2703  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2704  	NullFields []string `json:"-"`
  2705  }
  2706  
  2707  func (s *GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse) MarshalJSON() ([]byte, error) {
  2708  	type NoMethod GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse
  2709  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2710  }
  2711  
  2712  // GoogleCloudDiscoveryengineV1FhirStoreSource: Cloud FhirStore source import
  2713  // data from.
  2714  type GoogleCloudDiscoveryengineV1FhirStoreSource struct {
  2715  	// FhirStore: Required. The full resource name of the FHIR store to import data
  2716  	// from, in the format of
  2717  	// `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_
  2718  	// store}`.
  2719  	FhirStore string `json:"fhirStore,omitempty"`
  2720  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  2721  	// a length limit of 2,000 characters. Can be specified if one wants to have
  2722  	// the FhirStore export to a specific Cloud Storage directory.
  2723  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  2724  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  2725  	// unconditionally include in API requests. By default, fields with empty or
  2726  	// default values are omitted from API requests. See
  2727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2728  	// details.
  2729  	ForceSendFields []string `json:"-"`
  2730  	// NullFields is a list of field names (e.g. "FhirStore") to include in API
  2731  	// requests with the JSON null value. By default, fields with empty values are
  2732  	// omitted from API requests. See
  2733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2734  	NullFields []string `json:"-"`
  2735  }
  2736  
  2737  func (s *GoogleCloudDiscoveryengineV1FhirStoreSource) MarshalJSON() ([]byte, error) {
  2738  	type NoMethod GoogleCloudDiscoveryengineV1FhirStoreSource
  2739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2740  }
  2741  
  2742  // GoogleCloudDiscoveryengineV1FirestoreSource: Firestore source import data
  2743  // from.
  2744  type GoogleCloudDiscoveryengineV1FirestoreSource struct {
  2745  	// CollectionId: Required. The Firestore collection to copy the data from with
  2746  	// a length limit of 1,500 characters.
  2747  	CollectionId string `json:"collectionId,omitempty"`
  2748  	// DatabaseId: Required. The Firestore database to copy the data from with a
  2749  	// length limit of 256 characters.
  2750  	DatabaseId string `json:"databaseId,omitempty"`
  2751  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  2752  	// a length limit of 2,000 characters. Can be specified if one wants to have
  2753  	// the Firestore export to a specific Cloud Storage directory. Ensure that the
  2754  	// Firestore service account has the necessary Cloud Storage Admin permissions
  2755  	// to access the specified Cloud Storage directory.
  2756  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  2757  	// ProjectId: The project ID that the Cloud SQL source is in with a length
  2758  	// limit of 128 characters. If not specified, inherits the project ID from the
  2759  	// parent request.
  2760  	ProjectId string `json:"projectId,omitempty"`
  2761  	// ForceSendFields is a list of field names (e.g. "CollectionId") to
  2762  	// unconditionally include in API requests. By default, fields with empty or
  2763  	// default values are omitted from API requests. See
  2764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2765  	// details.
  2766  	ForceSendFields []string `json:"-"`
  2767  	// NullFields is a list of field names (e.g. "CollectionId") to include in API
  2768  	// requests with the JSON null value. By default, fields with empty values are
  2769  	// omitted from API requests. See
  2770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2771  	NullFields []string `json:"-"`
  2772  }
  2773  
  2774  func (s *GoogleCloudDiscoveryengineV1FirestoreSource) MarshalJSON() ([]byte, error) {
  2775  	type NoMethod GoogleCloudDiscoveryengineV1FirestoreSource
  2776  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2777  }
  2778  
  2779  // GoogleCloudDiscoveryengineV1GcsSource: Cloud Storage location for input
  2780  // content.
  2781  type GoogleCloudDiscoveryengineV1GcsSource struct {
  2782  	// DataSchema: The schema to use when parsing the data from the source.
  2783  	// Supported values for document imports: * `document` (default): One JSON
  2784  	// Document per line. Each document must have a valid Document.id. * `content`:
  2785  	// Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris`
  2786  	// becomes a document, with the ID set to the first 128 bits of SHA256(URI)
  2787  	// encoded as a hex string. * `custom`: One custom data JSON per row in
  2788  	// arbitrary format that conforms to the defined Schema of the data store. This
  2789  	// can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file
  2790  	// with header conforming to the defined Schema of the data store. Each entry
  2791  	// after the header is imported as a Document. This can only be used by the
  2792  	// GENERIC Data Store vertical. Supported values for user even imports: *
  2793  	// `user_event` (default): One JSON UserEvent per line.
  2794  	DataSchema string `json:"dataSchema,omitempty"`
  2795  	// InputUris: Required. Cloud Storage URIs to input files. URI can be up to
  2796  	// 2000 characters long. URIs can match the full object path (for example,
  2797  	// `gs://bucket/directory/object.json`) or a pattern matching one or more
  2798  	// files, such as `gs://bucket/directory/*.json`. A request can contain at most
  2799  	// 100 files (or 100,000 files if `data_schema` is `content`). Each file can be
  2800  	// up to 2 GB (or 100 MB if `data_schema` is `content`).
  2801  	InputUris []string `json:"inputUris,omitempty"`
  2802  	// ForceSendFields is a list of field names (e.g. "DataSchema") to
  2803  	// unconditionally include in API requests. By default, fields with empty or
  2804  	// default values are omitted from API requests. See
  2805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2806  	// details.
  2807  	ForceSendFields []string `json:"-"`
  2808  	// NullFields is a list of field names (e.g. "DataSchema") to include in API
  2809  	// requests with the JSON null value. By default, fields with empty values are
  2810  	// omitted from API requests. See
  2811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2812  	NullFields []string `json:"-"`
  2813  }
  2814  
  2815  func (s *GoogleCloudDiscoveryengineV1GcsSource) MarshalJSON() ([]byte, error) {
  2816  	type NoMethod GoogleCloudDiscoveryengineV1GcsSource
  2817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2818  }
  2819  
  2820  // GoogleCloudDiscoveryengineV1GroundingFact: Grounding Fact.
  2821  type GoogleCloudDiscoveryengineV1GroundingFact struct {
  2822  	// Attributes: Attributes associated with the fact. Common attributes include
  2823  	// `source` (indicating where the fact was sourced from), `author` (indicating
  2824  	// the author of the fact), and so on.
  2825  	Attributes map[string]string `json:"attributes,omitempty"`
  2826  	// FactText: Text content of the fact. Can be at most 10K characters long.
  2827  	FactText string `json:"factText,omitempty"`
  2828  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  2829  	// unconditionally include in API requests. By default, fields with empty or
  2830  	// default values are omitted from API requests. See
  2831  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2832  	// details.
  2833  	ForceSendFields []string `json:"-"`
  2834  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  2835  	// requests with the JSON null value. By default, fields with empty values are
  2836  	// omitted from API requests. See
  2837  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2838  	NullFields []string `json:"-"`
  2839  }
  2840  
  2841  func (s *GoogleCloudDiscoveryengineV1GroundingFact) MarshalJSON() ([]byte, error) {
  2842  	type NoMethod GoogleCloudDiscoveryengineV1GroundingFact
  2843  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2844  }
  2845  
  2846  // GoogleCloudDiscoveryengineV1ImportDocumentsMetadata: Metadata related to the
  2847  // progress of the ImportDocuments operation. This is returned by the
  2848  // google.longrunning.Operation.metadata field.
  2849  type GoogleCloudDiscoveryengineV1ImportDocumentsMetadata struct {
  2850  	// CreateTime: Operation create time.
  2851  	CreateTime string `json:"createTime,omitempty"`
  2852  	// FailureCount: Count of entries that encountered errors while processing.
  2853  	FailureCount int64 `json:"failureCount,omitempty,string"`
  2854  	// SuccessCount: Count of entries that were processed successfully.
  2855  	SuccessCount int64 `json:"successCount,omitempty,string"`
  2856  	// TotalCount: Total count of entries that were processed.
  2857  	TotalCount int64 `json:"totalCount,omitempty,string"`
  2858  	// UpdateTime: Operation last update time. If the operation is done, this is
  2859  	// also the finish time.
  2860  	UpdateTime string `json:"updateTime,omitempty"`
  2861  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2862  	// unconditionally include in API requests. By default, fields with empty or
  2863  	// default values are omitted from API requests. See
  2864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2865  	// details.
  2866  	ForceSendFields []string `json:"-"`
  2867  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2868  	// requests with the JSON null value. By default, fields with empty values are
  2869  	// omitted from API requests. See
  2870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2871  	NullFields []string `json:"-"`
  2872  }
  2873  
  2874  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  2875  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
  2876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2877  }
  2878  
  2879  // GoogleCloudDiscoveryengineV1ImportDocumentsRequest: Request message for
  2880  // Import methods.
  2881  type GoogleCloudDiscoveryengineV1ImportDocumentsRequest struct {
  2882  	// AutoGenerateIds: Whether to automatically generate IDs for the documents if
  2883  	// absent. If set to `true`, Document.ids are automatically generated based on
  2884  	// the hash of the payload, where IDs may not be consistent during multiple
  2885  	// imports. In which case ReconciliationMode.FULL is highly recommended to
  2886  	// avoid duplicate contents. If unset or set to `false`, Document.ids have to
  2887  	// be specified using id_field, otherwise, documents without IDs fail to be
  2888  	// imported. Supported data sources: * GcsSource. GcsSource.data_schema must be
  2889  	// `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
  2890  	// BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`.
  2891  	// Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. *
  2892  	// CloudSqlSource. * FirestoreSource. * BigtableSource.
  2893  	AutoGenerateIds bool `json:"autoGenerateIds,omitempty"`
  2894  	// BigquerySource: BigQuery input source.
  2895  	BigquerySource *GoogleCloudDiscoveryengineV1BigQuerySource `json:"bigquerySource,omitempty"`
  2896  	// BigtableSource: Cloud Bigtable input source.
  2897  	BigtableSource *GoogleCloudDiscoveryengineV1BigtableSource `json:"bigtableSource,omitempty"`
  2898  	// CloudSqlSource: Cloud SQL input source.
  2899  	CloudSqlSource *GoogleCloudDiscoveryengineV1CloudSqlSource `json:"cloudSqlSource,omitempty"`
  2900  	// ErrorConfig: The desired location of errors incurred during the Import.
  2901  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  2902  	// FhirStoreSource: FhirStore input source.
  2903  	FhirStoreSource *GoogleCloudDiscoveryengineV1FhirStoreSource `json:"fhirStoreSource,omitempty"`
  2904  	// FirestoreSource: Firestore input source.
  2905  	FirestoreSource *GoogleCloudDiscoveryengineV1FirestoreSource `json:"firestoreSource,omitempty"`
  2906  	// GcsSource: Cloud Storage location for the input content.
  2907  	GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"`
  2908  	// IdField: The field indicates the ID field or column to be used as unique IDs
  2909  	// of the documents. For GcsSource it is the key of the JSON field. For
  2910  	// instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For others, it may be
  2911  	// the column name of the table where the unique ids are stored. The values of
  2912  	// the JSON field or the table column are used as the Document.ids. The JSON
  2913  	// field or the table column must be of string type, and the values must be set
  2914  	// as valid strings conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
  2915  	// with 1-63 characters. Otherwise, documents without valid IDs fail to be
  2916  	// imported. Only set this field when auto_generate_ids is unset or set as
  2917  	// `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a
  2918  	// default value `_id` is used when importing from the allowed data sources.
  2919  	// Supported data sources: * GcsSource. GcsSource.data_schema must be `custom`
  2920  	// or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource.
  2921  	// BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an
  2922  	// INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. *
  2923  	// FirestoreSource. * BigtableSource.
  2924  	IdField string `json:"idField,omitempty"`
  2925  	// InlineSource: The Inline source for the input content for documents.
  2926  	InlineSource *GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource `json:"inlineSource,omitempty"`
  2927  	// ReconciliationMode: The mode of reconciliation between existing documents
  2928  	// and the documents to be imported. Defaults to
  2929  	// ReconciliationMode.INCREMENTAL.
  2930  	//
  2931  	// Possible values:
  2932  	//   "RECONCILIATION_MODE_UNSPECIFIED" - Defaults to `INCREMENTAL`.
  2933  	//   "INCREMENTAL" - Inserts new documents or updates existing documents.
  2934  	//   "FULL" - Calculates diff and replaces the entire document dataset.
  2935  	// Existing documents may be deleted if they are not present in the source
  2936  	// location.
  2937  	ReconciliationMode string `json:"reconciliationMode,omitempty"`
  2938  	// SpannerSource: Spanner input source.
  2939  	SpannerSource *GoogleCloudDiscoveryengineV1SpannerSource `json:"spannerSource,omitempty"`
  2940  	// UpdateMask: Indicates which fields in the provided imported documents to
  2941  	// update. If not set, the default is to update all fields.
  2942  	UpdateMask string `json:"updateMask,omitempty"`
  2943  	// ForceSendFields is a list of field names (e.g. "AutoGenerateIds") to
  2944  	// unconditionally include in API requests. By default, fields with empty or
  2945  	// default values are omitted from API requests. See
  2946  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2947  	// details.
  2948  	ForceSendFields []string `json:"-"`
  2949  	// NullFields is a list of field names (e.g. "AutoGenerateIds") to include in
  2950  	// API requests with the JSON null value. By default, fields with empty values
  2951  	// are omitted from API requests. See
  2952  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2953  	NullFields []string `json:"-"`
  2954  }
  2955  
  2956  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
  2957  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsRequest
  2958  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2959  }
  2960  
  2961  // GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource: The inline
  2962  // source for the input config for ImportDocuments method.
  2963  type GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource struct {
  2964  	// Documents: Required. A list of documents to update/create. Each document
  2965  	// must have a valid Document.id. Recommended max of 100 items.
  2966  	Documents []*GoogleCloudDiscoveryengineV1Document `json:"documents,omitempty"`
  2967  	// ForceSendFields is a list of field names (e.g. "Documents") to
  2968  	// unconditionally include in API requests. By default, fields with empty or
  2969  	// default values are omitted from API requests. See
  2970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2971  	// details.
  2972  	ForceSendFields []string `json:"-"`
  2973  	// NullFields is a list of field names (e.g. "Documents") to include in API
  2974  	// requests with the JSON null value. By default, fields with empty values are
  2975  	// omitted from API requests. See
  2976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2977  	NullFields []string `json:"-"`
  2978  }
  2979  
  2980  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource) MarshalJSON() ([]byte, error) {
  2981  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource
  2982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2983  }
  2984  
  2985  // GoogleCloudDiscoveryengineV1ImportDocumentsResponse: Response of the
  2986  // ImportDocumentsRequest. If the long running operation is done, then this
  2987  // message is returned by the google.longrunning.Operations.response field if
  2988  // the operation was successful.
  2989  type GoogleCloudDiscoveryengineV1ImportDocumentsResponse struct {
  2990  	// ErrorConfig: Echoes the destination for the complete errors in the request
  2991  	// if set.
  2992  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  2993  	// ErrorSamples: A sample of errors encountered while processing the request.
  2994  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  2995  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  2996  	// unconditionally include in API requests. By default, fields with empty or
  2997  	// default values are omitted from API requests. See
  2998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2999  	// details.
  3000  	ForceSendFields []string `json:"-"`
  3001  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  3002  	// requests with the JSON null value. By default, fields with empty values are
  3003  	// omitted from API requests. See
  3004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3005  	NullFields []string `json:"-"`
  3006  }
  3007  
  3008  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  3009  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsResponse
  3010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3011  }
  3012  
  3013  // GoogleCloudDiscoveryengineV1ImportErrorConfig: Configuration of destination
  3014  // for Import related errors.
  3015  type GoogleCloudDiscoveryengineV1ImportErrorConfig struct {
  3016  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  3017  	// existing Cloud Storage directory. Import errors are written to sharded files
  3018  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  3019  	// message.
  3020  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  3021  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  3022  	// unconditionally include in API requests. By default, fields with empty or
  3023  	// default values are omitted from API requests. See
  3024  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3025  	// details.
  3026  	ForceSendFields []string `json:"-"`
  3027  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  3028  	// requests with the JSON null value. By default, fields with empty values are
  3029  	// omitted from API requests. See
  3030  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3031  	NullFields []string `json:"-"`
  3032  }
  3033  
  3034  func (s *GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, error) {
  3035  	type NoMethod GoogleCloudDiscoveryengineV1ImportErrorConfig
  3036  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3037  }
  3038  
  3039  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata:
  3040  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  3041  // operation. This is returned by the google.longrunning.Operation.metadata
  3042  // field.
  3043  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata struct {
  3044  	// CreateTime: Operation create time.
  3045  	CreateTime string `json:"createTime,omitempty"`
  3046  	// UpdateTime: Operation last update time. If the operation is done, this is
  3047  	// also the finish time.
  3048  	UpdateTime string `json:"updateTime,omitempty"`
  3049  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3050  	// unconditionally include in API requests. By default, fields with empty or
  3051  	// default values are omitted from API requests. See
  3052  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3053  	// details.
  3054  	ForceSendFields []string `json:"-"`
  3055  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3056  	// requests with the JSON null value. By default, fields with empty values are
  3057  	// omitted from API requests. See
  3058  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3059  	NullFields []string `json:"-"`
  3060  }
  3061  
  3062  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  3063  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata
  3064  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3065  }
  3066  
  3067  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest: Request
  3068  // message for CompletionService.ImportSuggestionDenyListEntries method.
  3069  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest struct {
  3070  	// GcsSource: Cloud Storage location for the input content. Only 1 file can be
  3071  	// specified that contains all entries to import. Supported values
  3072  	// `gcs_source.schema` for autocomplete suggestion deny list entry imports: *
  3073  	// `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] per
  3074  	// line.
  3075  	GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"`
  3076  	// InlineSource: The Inline source for the input content for suggestion deny
  3077  	// list entries.
  3078  	InlineSource *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource `json:"inlineSource,omitempty"`
  3079  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  3080  	// unconditionally include in API requests. By default, fields with empty or
  3081  	// default values are omitted from API requests. See
  3082  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3083  	// details.
  3084  	ForceSendFields []string `json:"-"`
  3085  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  3086  	// requests with the JSON null value. By default, fields with empty values are
  3087  	// omitted from API requests. See
  3088  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3089  	NullFields []string `json:"-"`
  3090  }
  3091  
  3092  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest) MarshalJSON() ([]byte, error) {
  3093  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest
  3094  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3095  }
  3096  
  3097  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSourc
  3098  // e: The inline source for SuggestionDenyListEntry.
  3099  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource struct {
  3100  	// Entries: Required. A list of all denylist entries to import. Max of 1000
  3101  	// items.
  3102  	Entries []*GoogleCloudDiscoveryengineV1SuggestionDenyListEntry `json:"entries,omitempty"`
  3103  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3104  	// include in API requests. By default, fields with empty or default values are
  3105  	// omitted from API requests. See
  3106  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3107  	// details.
  3108  	ForceSendFields []string `json:"-"`
  3109  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3110  	// requests with the JSON null value. By default, fields with empty values are
  3111  	// omitted from API requests. See
  3112  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3113  	NullFields []string `json:"-"`
  3114  }
  3115  
  3116  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource) MarshalJSON() ([]byte, error) {
  3117  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource
  3118  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3119  }
  3120  
  3121  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse:
  3122  // Response message for CompletionService.ImportSuggestionDenyListEntries
  3123  // method.
  3124  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse struct {
  3125  	// ErrorSamples: A sample of errors encountered while processing the request.
  3126  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  3127  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  3128  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  3129  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  3130  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  3131  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  3132  	// unconditionally include in API requests. By default, fields with empty or
  3133  	// default values are omitted from API requests. See
  3134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3135  	// details.
  3136  	ForceSendFields []string `json:"-"`
  3137  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  3138  	// requests with the JSON null value. By default, fields with empty values are
  3139  	// omitted from API requests. See
  3140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3141  	NullFields []string `json:"-"`
  3142  }
  3143  
  3144  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  3145  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse
  3146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3147  }
  3148  
  3149  // GoogleCloudDiscoveryengineV1ImportUserEventsMetadata: Metadata related to
  3150  // the progress of the Import operation. This is returned by the
  3151  // google.longrunning.Operation.metadata field.
  3152  type GoogleCloudDiscoveryengineV1ImportUserEventsMetadata struct {
  3153  	// CreateTime: Operation create time.
  3154  	CreateTime string `json:"createTime,omitempty"`
  3155  	// FailureCount: Count of entries that encountered errors while processing.
  3156  	FailureCount int64 `json:"failureCount,omitempty,string"`
  3157  	// SuccessCount: Count of entries that were processed successfully.
  3158  	SuccessCount int64 `json:"successCount,omitempty,string"`
  3159  	// UpdateTime: Operation last update time. If the operation is done, this is
  3160  	// also the finish time.
  3161  	UpdateTime string `json:"updateTime,omitempty"`
  3162  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3163  	// unconditionally include in API requests. By default, fields with empty or
  3164  	// default values are omitted from API requests. See
  3165  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3166  	// details.
  3167  	ForceSendFields []string `json:"-"`
  3168  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3169  	// requests with the JSON null value. By default, fields with empty values are
  3170  	// omitted from API requests. See
  3171  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3172  	NullFields []string `json:"-"`
  3173  }
  3174  
  3175  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  3176  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
  3177  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3178  }
  3179  
  3180  // GoogleCloudDiscoveryengineV1ImportUserEventsRequest: Request message for the
  3181  // ImportUserEvents request.
  3182  type GoogleCloudDiscoveryengineV1ImportUserEventsRequest struct {
  3183  	// BigquerySource: BigQuery input source.
  3184  	BigquerySource *GoogleCloudDiscoveryengineV1BigQuerySource `json:"bigquerySource,omitempty"`
  3185  	// ErrorConfig: The desired location of errors incurred during the Import.
  3186  	// Cannot be set for inline user event imports.
  3187  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  3188  	// GcsSource: Cloud Storage location for the input content.
  3189  	GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"`
  3190  	// InlineSource: The Inline source for the input content for UserEvents.
  3191  	InlineSource *GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"`
  3192  	// ForceSendFields is a list of field names (e.g. "BigquerySource") to
  3193  	// unconditionally include in API requests. By default, fields with empty or
  3194  	// default values are omitted from API requests. See
  3195  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3196  	// details.
  3197  	ForceSendFields []string `json:"-"`
  3198  	// NullFields is a list of field names (e.g. "BigquerySource") to include in
  3199  	// API requests with the JSON null value. By default, fields with empty values
  3200  	// are omitted from API requests. See
  3201  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3202  	NullFields []string `json:"-"`
  3203  }
  3204  
  3205  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsRequest) MarshalJSON() ([]byte, error) {
  3206  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsRequest
  3207  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3208  }
  3209  
  3210  // GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource: The inline
  3211  // source for the input config for ImportUserEvents method.
  3212  type GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource struct {
  3213  	// UserEvents: Required. A list of user events to import. Recommended max of
  3214  	// 10k items.
  3215  	UserEvents []*GoogleCloudDiscoveryengineV1UserEvent `json:"userEvents,omitempty"`
  3216  	// ForceSendFields is a list of field names (e.g. "UserEvents") to
  3217  	// unconditionally include in API requests. By default, fields with empty or
  3218  	// default values are omitted from API requests. See
  3219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3220  	// details.
  3221  	ForceSendFields []string `json:"-"`
  3222  	// NullFields is a list of field names (e.g. "UserEvents") to include in API
  3223  	// requests with the JSON null value. By default, fields with empty values are
  3224  	// omitted from API requests. See
  3225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3226  	NullFields []string `json:"-"`
  3227  }
  3228  
  3229  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource) MarshalJSON() ([]byte, error) {
  3230  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource
  3231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3232  }
  3233  
  3234  // GoogleCloudDiscoveryengineV1ImportUserEventsResponse: Response of the
  3235  // ImportUserEventsRequest. If the long running operation was successful, then
  3236  // this message is returned by the google.longrunning.Operations.response field
  3237  // if the operation was successful.
  3238  type GoogleCloudDiscoveryengineV1ImportUserEventsResponse struct {
  3239  	// ErrorConfig: Echoes the destination for the complete errors if this field
  3240  	// was set in the request.
  3241  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  3242  	// ErrorSamples: A sample of errors encountered while processing the request.
  3243  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  3244  	// JoinedEventsCount: Count of user events imported with complete existing
  3245  	// Documents.
  3246  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  3247  	// UnjoinedEventsCount: Count of user events imported, but with Document
  3248  	// information not found in the existing Branch.
  3249  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  3250  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  3251  	// unconditionally include in API requests. By default, fields with empty or
  3252  	// default values are omitted from API requests. See
  3253  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3254  	// details.
  3255  	ForceSendFields []string `json:"-"`
  3256  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  3257  	// requests with the JSON null value. By default, fields with empty values are
  3258  	// omitted from API requests. See
  3259  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3260  	NullFields []string `json:"-"`
  3261  }
  3262  
  3263  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  3264  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsResponse
  3265  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3266  }
  3267  
  3268  // GoogleCloudDiscoveryengineV1Interval: A floating point interval.
  3269  type GoogleCloudDiscoveryengineV1Interval struct {
  3270  	// ExclusiveMaximum: Exclusive upper bound.
  3271  	ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"`
  3272  	// ExclusiveMinimum: Exclusive lower bound.
  3273  	ExclusiveMinimum float64 `json:"exclusiveMinimum,omitempty"`
  3274  	// Maximum: Inclusive upper bound.
  3275  	Maximum float64 `json:"maximum,omitempty"`
  3276  	// Minimum: Inclusive lower bound.
  3277  	Minimum float64 `json:"minimum,omitempty"`
  3278  	// ForceSendFields is a list of field names (e.g. "ExclusiveMaximum") to
  3279  	// unconditionally include in API requests. By default, fields with empty or
  3280  	// default values are omitted from API requests. See
  3281  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3282  	// details.
  3283  	ForceSendFields []string `json:"-"`
  3284  	// NullFields is a list of field names (e.g. "ExclusiveMaximum") to include in
  3285  	// API requests with the JSON null value. By default, fields with empty values
  3286  	// are omitted from API requests. See
  3287  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3288  	NullFields []string `json:"-"`
  3289  }
  3290  
  3291  func (s *GoogleCloudDiscoveryengineV1Interval) MarshalJSON() ([]byte, error) {
  3292  	type NoMethod GoogleCloudDiscoveryengineV1Interval
  3293  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3294  }
  3295  
  3296  func (s *GoogleCloudDiscoveryengineV1Interval) UnmarshalJSON(data []byte) error {
  3297  	type NoMethod GoogleCloudDiscoveryengineV1Interval
  3298  	var s1 struct {
  3299  		ExclusiveMaximum gensupport.JSONFloat64 `json:"exclusiveMaximum"`
  3300  		ExclusiveMinimum gensupport.JSONFloat64 `json:"exclusiveMinimum"`
  3301  		Maximum          gensupport.JSONFloat64 `json:"maximum"`
  3302  		Minimum          gensupport.JSONFloat64 `json:"minimum"`
  3303  		*NoMethod
  3304  	}
  3305  	s1.NoMethod = (*NoMethod)(s)
  3306  	if err := json.Unmarshal(data, &s1); err != nil {
  3307  		return err
  3308  	}
  3309  	s.ExclusiveMaximum = float64(s1.ExclusiveMaximum)
  3310  	s.ExclusiveMinimum = float64(s1.ExclusiveMinimum)
  3311  	s.Maximum = float64(s1.Maximum)
  3312  	s.Minimum = float64(s1.Minimum)
  3313  	return nil
  3314  }
  3315  
  3316  // GoogleCloudDiscoveryengineV1ListConversationsResponse: Response for
  3317  // ListConversations method.
  3318  type GoogleCloudDiscoveryengineV1ListConversationsResponse struct {
  3319  	// Conversations: All the Conversations for a given data store.
  3320  	Conversations []*GoogleCloudDiscoveryengineV1Conversation `json:"conversations,omitempty"`
  3321  	// NextPageToken: Pagination token, if not returned indicates the last page.
  3322  	NextPageToken string `json:"nextPageToken,omitempty"`
  3323  
  3324  	// ServerResponse contains the HTTP response code and headers from the server.
  3325  	googleapi.ServerResponse `json:"-"`
  3326  	// ForceSendFields is a list of field names (e.g. "Conversations") to
  3327  	// unconditionally include in API requests. By default, fields with empty or
  3328  	// default values are omitted from API requests. See
  3329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3330  	// details.
  3331  	ForceSendFields []string `json:"-"`
  3332  	// NullFields is a list of field names (e.g. "Conversations") to include in API
  3333  	// requests with the JSON null value. By default, fields with empty values are
  3334  	// omitted from API requests. See
  3335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3336  	NullFields []string `json:"-"`
  3337  }
  3338  
  3339  func (s *GoogleCloudDiscoveryengineV1ListConversationsResponse) MarshalJSON() ([]byte, error) {
  3340  	type NoMethod GoogleCloudDiscoveryengineV1ListConversationsResponse
  3341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3342  }
  3343  
  3344  // GoogleCloudDiscoveryengineV1ListDataStoresResponse: Response message for
  3345  // DataStoreService.ListDataStores method.
  3346  type GoogleCloudDiscoveryengineV1ListDataStoresResponse struct {
  3347  	// DataStores: All the customer's DataStores.
  3348  	DataStores []*GoogleCloudDiscoveryengineV1DataStore `json:"dataStores,omitempty"`
  3349  	// NextPageToken: A token that can be sent as ListDataStoresRequest.page_token
  3350  	// to retrieve the next page. If this field is omitted, there are no subsequent
  3351  	// pages.
  3352  	NextPageToken string `json:"nextPageToken,omitempty"`
  3353  
  3354  	// ServerResponse contains the HTTP response code and headers from the server.
  3355  	googleapi.ServerResponse `json:"-"`
  3356  	// ForceSendFields is a list of field names (e.g. "DataStores") to
  3357  	// unconditionally include in API requests. By default, fields with empty or
  3358  	// default values are omitted from API requests. See
  3359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3360  	// details.
  3361  	ForceSendFields []string `json:"-"`
  3362  	// NullFields is a list of field names (e.g. "DataStores") to include in API
  3363  	// requests with the JSON null value. By default, fields with empty values are
  3364  	// omitted from API requests. See
  3365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3366  	NullFields []string `json:"-"`
  3367  }
  3368  
  3369  func (s *GoogleCloudDiscoveryengineV1ListDataStoresResponse) MarshalJSON() ([]byte, error) {
  3370  	type NoMethod GoogleCloudDiscoveryengineV1ListDataStoresResponse
  3371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3372  }
  3373  
  3374  // GoogleCloudDiscoveryengineV1ListDocumentsResponse: Response message for
  3375  // DocumentService.ListDocuments method.
  3376  type GoogleCloudDiscoveryengineV1ListDocumentsResponse struct {
  3377  	// Documents: The Documents.
  3378  	Documents []*GoogleCloudDiscoveryengineV1Document `json:"documents,omitempty"`
  3379  	// NextPageToken: A token that can be sent as ListDocumentsRequest.page_token
  3380  	// to retrieve the next page. If this field is omitted, there are no subsequent
  3381  	// pages.
  3382  	NextPageToken string `json:"nextPageToken,omitempty"`
  3383  
  3384  	// ServerResponse contains the HTTP response code and headers from the server.
  3385  	googleapi.ServerResponse `json:"-"`
  3386  	// ForceSendFields is a list of field names (e.g. "Documents") to
  3387  	// unconditionally include in API requests. By default, fields with empty or
  3388  	// default values are omitted from API requests. See
  3389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3390  	// details.
  3391  	ForceSendFields []string `json:"-"`
  3392  	// NullFields is a list of field names (e.g. "Documents") to include in API
  3393  	// requests with the JSON null value. By default, fields with empty values are
  3394  	// omitted from API requests. See
  3395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3396  	NullFields []string `json:"-"`
  3397  }
  3398  
  3399  func (s *GoogleCloudDiscoveryengineV1ListDocumentsResponse) MarshalJSON() ([]byte, error) {
  3400  	type NoMethod GoogleCloudDiscoveryengineV1ListDocumentsResponse
  3401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3402  }
  3403  
  3404  // GoogleCloudDiscoveryengineV1ListEnginesResponse: Response message for
  3405  // EngineService.ListEngines method.
  3406  type GoogleCloudDiscoveryengineV1ListEnginesResponse struct {
  3407  	// Engines: All the customer's Engines.
  3408  	Engines []*GoogleCloudDiscoveryengineV1Engine `json:"engines,omitempty"`
  3409  	// NextPageToken: Not supported.
  3410  	NextPageToken string `json:"nextPageToken,omitempty"`
  3411  
  3412  	// ServerResponse contains the HTTP response code and headers from the server.
  3413  	googleapi.ServerResponse `json:"-"`
  3414  	// ForceSendFields is a list of field names (e.g. "Engines") to unconditionally
  3415  	// include in API requests. By default, fields with empty or default values are
  3416  	// omitted from API requests. See
  3417  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3418  	// details.
  3419  	ForceSendFields []string `json:"-"`
  3420  	// NullFields is a list of field names (e.g. "Engines") to include in API
  3421  	// requests with the JSON null value. By default, fields with empty values are
  3422  	// omitted from API requests. See
  3423  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3424  	NullFields []string `json:"-"`
  3425  }
  3426  
  3427  func (s *GoogleCloudDiscoveryengineV1ListEnginesResponse) MarshalJSON() ([]byte, error) {
  3428  	type NoMethod GoogleCloudDiscoveryengineV1ListEnginesResponse
  3429  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3430  }
  3431  
  3432  // GoogleCloudDiscoveryengineV1ListSchemasResponse: Response message for
  3433  // SchemaService.ListSchemas method.
  3434  type GoogleCloudDiscoveryengineV1ListSchemasResponse struct {
  3435  	// NextPageToken: A token that can be sent as ListSchemasRequest.page_token to
  3436  	// retrieve the next page. If this field is omitted, there are no subsequent
  3437  	// pages.
  3438  	NextPageToken string `json:"nextPageToken,omitempty"`
  3439  	// Schemas: The Schemas.
  3440  	Schemas []*GoogleCloudDiscoveryengineV1Schema `json:"schemas,omitempty"`
  3441  
  3442  	// ServerResponse contains the HTTP response code and headers from the server.
  3443  	googleapi.ServerResponse `json:"-"`
  3444  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3445  	// unconditionally include in API requests. By default, fields with empty or
  3446  	// default values are omitted from API requests. See
  3447  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3448  	// details.
  3449  	ForceSendFields []string `json:"-"`
  3450  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3451  	// requests with the JSON null value. By default, fields with empty values are
  3452  	// omitted from API requests. See
  3453  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3454  	NullFields []string `json:"-"`
  3455  }
  3456  
  3457  func (s *GoogleCloudDiscoveryengineV1ListSchemasResponse) MarshalJSON() ([]byte, error) {
  3458  	type NoMethod GoogleCloudDiscoveryengineV1ListSchemasResponse
  3459  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3460  }
  3461  
  3462  // GoogleCloudDiscoveryengineV1ListTargetSitesResponse: Response message for
  3463  // SiteSearchEngineService.ListTargetSites method.
  3464  type GoogleCloudDiscoveryengineV1ListTargetSitesResponse struct {
  3465  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  3466  	// page. If this field is omitted, there are no subsequent pages.
  3467  	NextPageToken string `json:"nextPageToken,omitempty"`
  3468  	// TargetSites: List of TargetSites.
  3469  	TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
  3470  	// TotalSize: The total number of items matching the request. This will always
  3471  	// be populated in the response.
  3472  	TotalSize int64 `json:"totalSize,omitempty"`
  3473  
  3474  	// ServerResponse contains the HTTP response code and headers from the server.
  3475  	googleapi.ServerResponse `json:"-"`
  3476  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3477  	// unconditionally include in API requests. By default, fields with empty or
  3478  	// default values are omitted from API requests. See
  3479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3480  	// details.
  3481  	ForceSendFields []string `json:"-"`
  3482  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3483  	// requests with the JSON null value. By default, fields with empty values are
  3484  	// omitted from API requests. See
  3485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3486  	NullFields []string `json:"-"`
  3487  }
  3488  
  3489  func (s *GoogleCloudDiscoveryengineV1ListTargetSitesResponse) MarshalJSON() ([]byte, error) {
  3490  	type NoMethod GoogleCloudDiscoveryengineV1ListTargetSitesResponse
  3491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3492  }
  3493  
  3494  // GoogleCloudDiscoveryengineV1MediaInfo: Media-specific user event
  3495  // information.
  3496  type GoogleCloudDiscoveryengineV1MediaInfo struct {
  3497  	// MediaProgressDuration: The media progress time in seconds, if applicable.
  3498  	// For example, if the end user has finished 90 seconds of a playback video,
  3499  	// then MediaInfo.media_progress_duration.seconds should be set to 90.
  3500  	MediaProgressDuration string `json:"mediaProgressDuration,omitempty"`
  3501  	// MediaProgressPercentage: Media progress should be computed using only the
  3502  	// media_progress_duration relative to the media total length. This value must
  3503  	// be between `[0, 1.0]` inclusive. If this is not a playback or the progress
  3504  	// cannot be computed (e.g. ongoing livestream), this field should be unset.
  3505  	MediaProgressPercentage float64 `json:"mediaProgressPercentage,omitempty"`
  3506  	// ForceSendFields is a list of field names (e.g. "MediaProgressDuration") to
  3507  	// unconditionally include in API requests. By default, fields with empty or
  3508  	// default values are omitted from API requests. See
  3509  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3510  	// details.
  3511  	ForceSendFields []string `json:"-"`
  3512  	// NullFields is a list of field names (e.g. "MediaProgressDuration") to
  3513  	// include in API requests with the JSON null value. By default, fields with
  3514  	// empty values are omitted from API requests. See
  3515  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3516  	NullFields []string `json:"-"`
  3517  }
  3518  
  3519  func (s *GoogleCloudDiscoveryengineV1MediaInfo) MarshalJSON() ([]byte, error) {
  3520  	type NoMethod GoogleCloudDiscoveryengineV1MediaInfo
  3521  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3522  }
  3523  
  3524  func (s *GoogleCloudDiscoveryengineV1MediaInfo) UnmarshalJSON(data []byte) error {
  3525  	type NoMethod GoogleCloudDiscoveryengineV1MediaInfo
  3526  	var s1 struct {
  3527  		MediaProgressPercentage gensupport.JSONFloat64 `json:"mediaProgressPercentage"`
  3528  		*NoMethod
  3529  	}
  3530  	s1.NoMethod = (*NoMethod)(s)
  3531  	if err := json.Unmarshal(data, &s1); err != nil {
  3532  		return err
  3533  	}
  3534  	s.MediaProgressPercentage = float64(s1.MediaProgressPercentage)
  3535  	return nil
  3536  }
  3537  
  3538  // GoogleCloudDiscoveryengineV1PageInfo: Detailed page information.
  3539  type GoogleCloudDiscoveryengineV1PageInfo struct {
  3540  	// PageCategory: The most specific category associated with a category page. To
  3541  	// represent full path of category, use '>' sign to separate different
  3542  	// hierarchies. If '>' is part of the category name, replace it with other
  3543  	// character(s). Category pages include special pages such as sales or
  3544  	// promotions. For instance, a special sale page may have the category
  3545  	// hierarchy: "pageCategory" : "Sales > 2017 Black Friday Deals". Required
  3546  	// for `view-category-page` events. Other event types should not set this
  3547  	// field. Otherwise, an `INVALID_ARGUMENT` error is returned.
  3548  	PageCategory string `json:"pageCategory,omitempty"`
  3549  	// PageviewId: A unique ID of a web page view. This should be kept the same for
  3550  	// all user events triggered from the same pageview. For example, an item
  3551  	// detail page view could trigger multiple events as the user is browsing the
  3552  	// page. The `pageview_id` property should be kept the same for all these
  3553  	// events so that they can be grouped together properly. When using the client
  3554  	// side event reporting with JavaScript pixel and Google Tag Manager, this
  3555  	// value is filled in automatically.
  3556  	PageviewId string `json:"pageviewId,omitempty"`
  3557  	// ReferrerUri: The referrer URL of the current page. When using the client
  3558  	// side event reporting with JavaScript pixel and Google Tag Manager, this
  3559  	// value is filled in automatically. However, some browser privacy restrictions
  3560  	// may cause this field to be empty.
  3561  	ReferrerUri string `json:"referrerUri,omitempty"`
  3562  	// Uri: Complete URL (window.location.href) of the user's current page. When
  3563  	// using the client side event reporting with JavaScript pixel and Google Tag
  3564  	// Manager, this value is filled in automatically. Maximum length 5,000
  3565  	// characters.
  3566  	Uri string `json:"uri,omitempty"`
  3567  	// ForceSendFields is a list of field names (e.g. "PageCategory") to
  3568  	// unconditionally include in API requests. By default, fields with empty or
  3569  	// default values are omitted from API requests. See
  3570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3571  	// details.
  3572  	ForceSendFields []string `json:"-"`
  3573  	// NullFields is a list of field names (e.g. "PageCategory") to include in API
  3574  	// requests with the JSON null value. By default, fields with empty values are
  3575  	// omitted from API requests. See
  3576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3577  	NullFields []string `json:"-"`
  3578  }
  3579  
  3580  func (s *GoogleCloudDiscoveryengineV1PageInfo) MarshalJSON() ([]byte, error) {
  3581  	type NoMethod GoogleCloudDiscoveryengineV1PageInfo
  3582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3583  }
  3584  
  3585  // GoogleCloudDiscoveryengineV1PanelInfo: Detailed panel information associated
  3586  // with a user event.
  3587  type GoogleCloudDiscoveryengineV1PanelInfo struct {
  3588  	// DisplayName: The display name of the panel.
  3589  	DisplayName string `json:"displayName,omitempty"`
  3590  	// PanelId: Required. The panel ID.
  3591  	PanelId string `json:"panelId,omitempty"`
  3592  	// PanelPosition: The ordered position of the panel, if shown to the user with
  3593  	// other panels. If set, then total_panels must also be set.
  3594  	PanelPosition int64 `json:"panelPosition,omitempty"`
  3595  	// TotalPanels: The total number of panels, including this one, shown to the
  3596  	// user. Must be set if panel_position is set.
  3597  	TotalPanels int64 `json:"totalPanels,omitempty"`
  3598  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3599  	// unconditionally include in API requests. By default, fields with empty or
  3600  	// default values are omitted from API requests. See
  3601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3602  	// details.
  3603  	ForceSendFields []string `json:"-"`
  3604  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  3605  	// requests with the JSON null value. By default, fields with empty values are
  3606  	// omitted from API requests. See
  3607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3608  	NullFields []string `json:"-"`
  3609  }
  3610  
  3611  func (s *GoogleCloudDiscoveryengineV1PanelInfo) MarshalJSON() ([]byte, error) {
  3612  	type NoMethod GoogleCloudDiscoveryengineV1PanelInfo
  3613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3614  }
  3615  
  3616  // GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata: Metadata related to the
  3617  // progress of the PurgeDocuments operation. This will be returned by the
  3618  // google.longrunning.Operation.metadata field.
  3619  type GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata struct {
  3620  	// CreateTime: Operation create time.
  3621  	CreateTime string `json:"createTime,omitempty"`
  3622  	// FailureCount: Count of entries that encountered errors while processing.
  3623  	FailureCount int64 `json:"failureCount,omitempty,string"`
  3624  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  3625  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  3626  	// SuccessCount: Count of entries that were deleted successfully.
  3627  	SuccessCount int64 `json:"successCount,omitempty,string"`
  3628  	// UpdateTime: Operation last update time. If the operation is done, this is
  3629  	// also the finish time.
  3630  	UpdateTime string `json:"updateTime,omitempty"`
  3631  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3632  	// unconditionally include in API requests. By default, fields with empty or
  3633  	// default values are omitted from API requests. See
  3634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3635  	// details.
  3636  	ForceSendFields []string `json:"-"`
  3637  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3638  	// requests with the JSON null value. By default, fields with empty values are
  3639  	// omitted from API requests. See
  3640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3641  	NullFields []string `json:"-"`
  3642  }
  3643  
  3644  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  3645  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
  3646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3647  }
  3648  
  3649  // GoogleCloudDiscoveryengineV1PurgeDocumentsRequest: Request message for
  3650  // DocumentService.PurgeDocuments method.
  3651  type GoogleCloudDiscoveryengineV1PurgeDocumentsRequest struct {
  3652  	// Filter: Required. Filter matching documents to purge. Only currently
  3653  	// supported value is `*` (all items).
  3654  	Filter string `json:"filter,omitempty"`
  3655  	// Force: Actually performs the purge. If `force` is set to false, return the
  3656  	// expected purge count without deleting any documents.
  3657  	Force bool `json:"force,omitempty"`
  3658  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  3659  	// include in API requests. By default, fields with empty or default values are
  3660  	// omitted from API requests. See
  3661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3662  	// details.
  3663  	ForceSendFields []string `json:"-"`
  3664  	// NullFields is a list of field names (e.g. "Filter") to include in API
  3665  	// requests with the JSON null value. By default, fields with empty values are
  3666  	// omitted from API requests. See
  3667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3668  	NullFields []string `json:"-"`
  3669  }
  3670  
  3671  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest) MarshalJSON() ([]byte, error) {
  3672  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsRequest
  3673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3674  }
  3675  
  3676  // GoogleCloudDiscoveryengineV1PurgeDocumentsResponse: Response message for
  3677  // DocumentService.PurgeDocuments method. If the long running operation is
  3678  // successfully done, then this message is returned by the
  3679  // google.longrunning.Operations.response field.
  3680  type GoogleCloudDiscoveryengineV1PurgeDocumentsResponse struct {
  3681  	// PurgeCount: The total count of documents purged as a result of the
  3682  	// operation.
  3683  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  3684  	// PurgeSample: A sample of document names that will be deleted. Only populated
  3685  	// if `force` is set to false. A max of 100 names will be returned and the
  3686  	// names are chosen at random.
  3687  	PurgeSample []string `json:"purgeSample,omitempty"`
  3688  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  3689  	// unconditionally include in API requests. By default, fields with empty or
  3690  	// default values are omitted from API requests. See
  3691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3692  	// details.
  3693  	ForceSendFields []string `json:"-"`
  3694  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  3695  	// requests with the JSON null value. By default, fields with empty values are
  3696  	// omitted from API requests. See
  3697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3698  	NullFields []string `json:"-"`
  3699  }
  3700  
  3701  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  3702  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
  3703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3704  }
  3705  
  3706  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata: Metadata
  3707  // related to the progress of the PurgeSuggestionDenyListEntries operation.
  3708  // This is returned by the google.longrunning.Operation.metadata field.
  3709  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata struct {
  3710  	// CreateTime: Operation create time.
  3711  	CreateTime string `json:"createTime,omitempty"`
  3712  	// UpdateTime: Operation last update time. If the operation is done, this is
  3713  	// also the finish time.
  3714  	UpdateTime string `json:"updateTime,omitempty"`
  3715  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3716  	// unconditionally include in API requests. By default, fields with empty or
  3717  	// default values are omitted from API requests. See
  3718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3719  	// details.
  3720  	ForceSendFields []string `json:"-"`
  3721  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3722  	// requests with the JSON null value. By default, fields with empty values are
  3723  	// omitted from API requests. See
  3724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3725  	NullFields []string `json:"-"`
  3726  }
  3727  
  3728  func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  3729  	type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata
  3730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3731  }
  3732  
  3733  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest: Request
  3734  // message for CompletionService.PurgeSuggestionDenyListEntries method.
  3735  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest struct {
  3736  }
  3737  
  3738  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse: Response
  3739  // message for CompletionService.PurgeSuggestionDenyListEntries method.
  3740  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse struct {
  3741  	// ErrorSamples: A sample of errors encountered while processing the request.
  3742  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  3743  	// PurgeCount: Number of suggestion deny list entries purged.
  3744  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  3745  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  3746  	// unconditionally include in API requests. By default, fields with empty or
  3747  	// default values are omitted from API requests. See
  3748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3749  	// details.
  3750  	ForceSendFields []string `json:"-"`
  3751  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  3752  	// requests with the JSON null value. By default, fields with empty values are
  3753  	// omitted from API requests. See
  3754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3755  	NullFields []string `json:"-"`
  3756  }
  3757  
  3758  func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  3759  	type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse
  3760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3761  }
  3762  
  3763  // GoogleCloudDiscoveryengineV1RecommendRequest: Request message for Recommend
  3764  // method.
  3765  type GoogleCloudDiscoveryengineV1RecommendRequest struct {
  3766  	// Filter: Filter for restricting recommendation results with a length limit of
  3767  	// 5,000 characters. Currently, only filter expressions on the `filter_tags`
  3768  	// attribute is supported. Examples: * `(filter_tags: ANY("Red", "Blue") OR
  3769  	// filter_tags: ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND
  3770  	// NOT (filter_tags: ANY("Green"))` If `attributeFilteringSyntax` is set to
  3771  	// true under the `params` field, then attribute-based expressions are expected
  3772  	// instead of the above described tag-based syntax. Examples: * (launguage:
  3773  	// ANY("en", "es")) AND NOT (categories: ANY("Movie")) * (available: true) AND
  3774  	// (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) If your filter
  3775  	// blocks all results, the API will return generic (unfiltered) popular
  3776  	// Documents. If you only want results strictly matching the filters, set
  3777  	// `strictFiltering` to True in RecommendRequest.params to receive empty
  3778  	// results instead. Note that the API will never return Documents with
  3779  	// `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
  3780  	Filter string `json:"filter,omitempty"`
  3781  	// PageSize: Maximum number of results to return. Set this property to the
  3782  	// number of recommendation results needed. If zero, the service will choose a
  3783  	// reasonable default. The maximum allowed value is 100. Values above 100 will
  3784  	// be coerced to 100.
  3785  	PageSize int64 `json:"pageSize,omitempty"`
  3786  	// Params: Additional domain specific parameters for the recommendations.
  3787  	// Allowed values: * `returnDocument`: Boolean. If set to true, the associated
  3788  	// Document object will be returned in
  3789  	// RecommendResponse.RecommendationResult.document. * `returnScore`: Boolean.
  3790  	// If set to true, the recommendation 'score' corresponding to each returned
  3791  	// Document will be set in RecommendResponse.RecommendationResult.metadata. The
  3792  	// given 'score' indicates the probability of a Document conversion given the
  3793  	// user's context and history. * `strictFiltering`: Boolean. True by default.
  3794  	// If set to false, the service will return generic (unfiltered) popular
  3795  	// Documents instead of empty if your filter blocks all recommendation results.
  3796  	// * `diversityLevel`: String. Default empty. If set to be non-empty, then it
  3797  	// needs to be one of: * `no-diversity` * `low-diversity` * `medium-diversity`
  3798  	// * `high-diversity` * `auto-diversity` This gives request-level control and
  3799  	// adjusts recommendation results based on Document category. *
  3800  	// `attributeFilteringSyntax`: Boolean. False by default. If set to true, the
  3801  	// `filter` field is interpreted according to the new, attribute-based syntax.
  3802  	Params googleapi.RawMessage `json:"params,omitempty"`
  3803  	// UserEvent: Required. Context about the user, what they are looking at and
  3804  	// what action they took to trigger the Recommend request. Note that this user
  3805  	// event detail won't be ingested to userEvent logs. Thus, a separate userEvent
  3806  	// write request is required for event logging. Don't set
  3807  	// UserEvent.user_pseudo_id or UserEvent.user_info.user_id to the same fixed ID
  3808  	// for different users. If you are trying to receive non-personalized
  3809  	// recommendations (not recommended; this can negatively impact model
  3810  	// performance), instead set UserEvent.user_pseudo_id to a random unique ID and
  3811  	// leave UserEvent.user_info.user_id unset.
  3812  	UserEvent *GoogleCloudDiscoveryengineV1UserEvent `json:"userEvent,omitempty"`
  3813  	// UserLabels: The user labels applied to a resource must meet the following
  3814  	// requirements: * Each resource can have multiple labels, up to a maximum of
  3815  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  3816  	// character and a maximum length of 63 characters and cannot be empty. Values
  3817  	// can be empty and have a maximum length of 63 characters. * Keys and values
  3818  	// can contain only lowercase letters, numeric characters, underscores, and
  3819  	// dashes. All characters must use UTF-8 encoding, and international characters
  3820  	// are allowed. * The key portion of a label must be unique. However, you can
  3821  	// use the same key with multiple resources. * Keys must start with a lowercase
  3822  	// letter or international character. See Requirements for labels
  3823  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  3824  	// for more details.
  3825  	UserLabels map[string]string `json:"userLabels,omitempty"`
  3826  	// ValidateOnly: Use validate only mode for this recommendation query. If set
  3827  	// to true, a fake model will be used that returns arbitrary Document IDs. Note
  3828  	// that the validate only mode should only be used for testing the API, or if
  3829  	// the model is not ready.
  3830  	ValidateOnly bool `json:"validateOnly,omitempty"`
  3831  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  3832  	// include in API requests. By default, fields with empty or default values are
  3833  	// omitted from API requests. See
  3834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3835  	// details.
  3836  	ForceSendFields []string `json:"-"`
  3837  	// NullFields is a list of field names (e.g. "Filter") to include in API
  3838  	// requests with the JSON null value. By default, fields with empty values are
  3839  	// omitted from API requests. See
  3840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3841  	NullFields []string `json:"-"`
  3842  }
  3843  
  3844  func (s *GoogleCloudDiscoveryengineV1RecommendRequest) MarshalJSON() ([]byte, error) {
  3845  	type NoMethod GoogleCloudDiscoveryengineV1RecommendRequest
  3846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3847  }
  3848  
  3849  // GoogleCloudDiscoveryengineV1RecommendResponse: Response message for
  3850  // Recommend method.
  3851  type GoogleCloudDiscoveryengineV1RecommendResponse struct {
  3852  	// AttributionToken: A unique attribution token. This should be included in the
  3853  	// UserEvent logs resulting from this recommendation, which enables accurate
  3854  	// attribution of recommendation model performance.
  3855  	AttributionToken string `json:"attributionToken,omitempty"`
  3856  	// MissingIds: IDs of documents in the request that were missing from the
  3857  	// default Branch associated with the requested ServingConfig.
  3858  	MissingIds []string `json:"missingIds,omitempty"`
  3859  	// Results: A list of recommended Documents. The order represents the ranking
  3860  	// (from the most relevant Document to the least).
  3861  	Results []*GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult `json:"results,omitempty"`
  3862  	// ValidateOnly: True if RecommendRequest.validate_only was set.
  3863  	ValidateOnly bool `json:"validateOnly,omitempty"`
  3864  
  3865  	// ServerResponse contains the HTTP response code and headers from the server.
  3866  	googleapi.ServerResponse `json:"-"`
  3867  	// ForceSendFields is a list of field names (e.g. "AttributionToken") to
  3868  	// unconditionally include in API requests. By default, fields with empty or
  3869  	// default values are omitted from API requests. See
  3870  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3871  	// details.
  3872  	ForceSendFields []string `json:"-"`
  3873  	// NullFields is a list of field names (e.g. "AttributionToken") to include in
  3874  	// API requests with the JSON null value. By default, fields with empty values
  3875  	// are omitted from API requests. See
  3876  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3877  	NullFields []string `json:"-"`
  3878  }
  3879  
  3880  func (s *GoogleCloudDiscoveryengineV1RecommendResponse) MarshalJSON() ([]byte, error) {
  3881  	type NoMethod GoogleCloudDiscoveryengineV1RecommendResponse
  3882  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3883  }
  3884  
  3885  // GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult:
  3886  // RecommendationResult represents a generic recommendation result with
  3887  // associated metadata.
  3888  type GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult struct {
  3889  	// Document: Set if `returnDocument` is set to true in RecommendRequest.params.
  3890  	Document *GoogleCloudDiscoveryengineV1Document `json:"document,omitempty"`
  3891  	// Id: Resource ID of the recommended Document.
  3892  	Id string `json:"id,omitempty"`
  3893  	// Metadata: Additional Document metadata / annotations. Possible values: *
  3894  	// `score`: Recommendation score in double value. Is set if `returnScore` is
  3895  	// set to true in RecommendRequest.params.
  3896  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3897  	// ForceSendFields is a list of field names (e.g. "Document") to
  3898  	// unconditionally include in API requests. By default, fields with empty or
  3899  	// default values are omitted from API requests. See
  3900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3901  	// details.
  3902  	ForceSendFields []string `json:"-"`
  3903  	// NullFields is a list of field names (e.g. "Document") to include in API
  3904  	// requests with the JSON null value. By default, fields with empty values are
  3905  	// omitted from API requests. See
  3906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3907  	NullFields []string `json:"-"`
  3908  }
  3909  
  3910  func (s *GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult) MarshalJSON() ([]byte, error) {
  3911  	type NoMethod GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult
  3912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3913  }
  3914  
  3915  // GoogleCloudDiscoveryengineV1RecrawlUrisRequest: Request message for
  3916  // SiteSearchEngineService.RecrawlUris method.
  3917  type GoogleCloudDiscoveryengineV1RecrawlUrisRequest struct {
  3918  	// Uris: Required. List of URIs to crawl. At most 10K URIs are supported,
  3919  	// otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at
  3920  	// least one TargetSite in `site_search_engine`.
  3921  	Uris []string `json:"uris,omitempty"`
  3922  	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
  3923  	// include in API requests. By default, fields with empty or default values are
  3924  	// omitted from API requests. See
  3925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3926  	// details.
  3927  	ForceSendFields []string `json:"-"`
  3928  	// NullFields is a list of field names (e.g. "Uris") to include in API requests
  3929  	// with the JSON null value. By default, fields with empty values are omitted
  3930  	// from API requests. See
  3931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3932  	NullFields []string `json:"-"`
  3933  }
  3934  
  3935  func (s *GoogleCloudDiscoveryengineV1RecrawlUrisRequest) MarshalJSON() ([]byte, error) {
  3936  	type NoMethod GoogleCloudDiscoveryengineV1RecrawlUrisRequest
  3937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3938  }
  3939  
  3940  // GoogleCloudDiscoveryengineV1Reply: Defines a reply message to user.
  3941  type GoogleCloudDiscoveryengineV1Reply struct {
  3942  	// Summary: Summary based on search results.
  3943  	Summary *GoogleCloudDiscoveryengineV1SearchResponseSummary `json:"summary,omitempty"`
  3944  	// ForceSendFields is a list of field names (e.g. "Summary") to unconditionally
  3945  	// include in API requests. By default, fields with empty or default values are
  3946  	// omitted from API requests. See
  3947  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3948  	// details.
  3949  	ForceSendFields []string `json:"-"`
  3950  	// NullFields is a list of field names (e.g. "Summary") to include in API
  3951  	// requests with the JSON null value. By default, fields with empty values are
  3952  	// omitted from API requests. See
  3953  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3954  	NullFields []string `json:"-"`
  3955  }
  3956  
  3957  func (s *GoogleCloudDiscoveryengineV1Reply) MarshalJSON() ([]byte, error) {
  3958  	type NoMethod GoogleCloudDiscoveryengineV1Reply
  3959  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3960  }
  3961  
  3962  // GoogleCloudDiscoveryengineV1Schema: Defines the structure and layout of a
  3963  // type of document data.
  3964  type GoogleCloudDiscoveryengineV1Schema struct {
  3965  	// JsonSchema: The JSON representation of the schema.
  3966  	JsonSchema string `json:"jsonSchema,omitempty"`
  3967  	// Name: Immutable. The full resource name of the schema, in the format of
  3968  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  3969  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  3970  	// with a length limit of 1024 characters.
  3971  	Name string `json:"name,omitempty"`
  3972  	// StructSchema: The structured representation of the schema.
  3973  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  3974  
  3975  	// ServerResponse contains the HTTP response code and headers from the server.
  3976  	googleapi.ServerResponse `json:"-"`
  3977  	// ForceSendFields is a list of field names (e.g. "JsonSchema") to
  3978  	// unconditionally include in API requests. By default, fields with empty or
  3979  	// default values are omitted from API requests. See
  3980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3981  	// details.
  3982  	ForceSendFields []string `json:"-"`
  3983  	// NullFields is a list of field names (e.g. "JsonSchema") to include in API
  3984  	// requests with the JSON null value. By default, fields with empty values are
  3985  	// omitted from API requests. See
  3986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3987  	NullFields []string `json:"-"`
  3988  }
  3989  
  3990  func (s *GoogleCloudDiscoveryengineV1Schema) MarshalJSON() ([]byte, error) {
  3991  	type NoMethod GoogleCloudDiscoveryengineV1Schema
  3992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3993  }
  3994  
  3995  // GoogleCloudDiscoveryengineV1SearchInfo: Detailed search information.
  3996  type GoogleCloudDiscoveryengineV1SearchInfo struct {
  3997  	// Offset: An integer that specifies the current offset for pagination (the
  3998  	// 0-indexed starting location, amongst the products deemed by the API as
  3999  	// relevant). See SearchRequest.offset for definition. If this field is
  4000  	// negative, an `INVALID_ARGUMENT` is returned. This can only be set for
  4001  	// `search` events. Other event types should not set this field. Otherwise, an
  4002  	// `INVALID_ARGUMENT` error is returned.
  4003  	Offset int64 `json:"offset,omitempty"`
  4004  	// OrderBy: The order in which products are returned, if applicable. See
  4005  	// SearchRequest.order_by for definition and syntax. The value must be a UTF-8
  4006  	// encoded string with a length limit of 1,000 characters. Otherwise, an
  4007  	// `INVALID_ARGUMENT` error is returned. This can only be set for `search`
  4008  	// events. Other event types should not set this field. Otherwise, an
  4009  	// `INVALID_ARGUMENT` error is returned.
  4010  	OrderBy string `json:"orderBy,omitempty"`
  4011  	// SearchQuery: The user's search query. See SearchRequest.query for
  4012  	// definition. The value must be a UTF-8 encoded string with a length limit of
  4013  	// 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At
  4014  	// least one of search_query or PageInfo.page_category is required for `search`
  4015  	// events. Other event types should not set this field. Otherwise, an
  4016  	// `INVALID_ARGUMENT` error is returned.
  4017  	SearchQuery string `json:"searchQuery,omitempty"`
  4018  	// ForceSendFields is a list of field names (e.g. "Offset") to unconditionally
  4019  	// include in API requests. By default, fields with empty or default values are
  4020  	// omitted from API requests. See
  4021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4022  	// details.
  4023  	ForceSendFields []string `json:"-"`
  4024  	// NullFields is a list of field names (e.g. "Offset") to include in API
  4025  	// requests with the JSON null value. By default, fields with empty values are
  4026  	// omitted from API requests. See
  4027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4028  	NullFields []string `json:"-"`
  4029  }
  4030  
  4031  func (s *GoogleCloudDiscoveryengineV1SearchInfo) MarshalJSON() ([]byte, error) {
  4032  	type NoMethod GoogleCloudDiscoveryengineV1SearchInfo
  4033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4034  }
  4035  
  4036  // GoogleCloudDiscoveryengineV1SearchRequest: Request message for
  4037  // SearchService.Search method.
  4038  type GoogleCloudDiscoveryengineV1SearchRequest struct {
  4039  	// BoostSpec: Boost specification to boost certain documents. For more
  4040  	// information on boosting, see Boosting
  4041  	// (https://cloud.google.com/retail/docs/boosting#boost)
  4042  	BoostSpec *GoogleCloudDiscoveryengineV1SearchRequestBoostSpec `json:"boostSpec,omitempty"`
  4043  	// Branch: The branch resource name, such as
  4044  	// `projects/*/locations/global/collections/default_collection/dataStores/defaul
  4045  	// t_data_store/branches/0`. Use `default_branch` as the branch ID or leave
  4046  	// this field empty, to search documents under the default branch.
  4047  	Branch string `json:"branch,omitempty"`
  4048  	// CanonicalFilter: The default filter that is applied when a user performs a
  4049  	// search without checking any filters on the search page. The filter applied
  4050  	// to every search request when quality improvement such as query expansion is
  4051  	// needed. In the case a query does not have a sufficient amount of results
  4052  	// this filter will be used to determine whether or not to enable the query
  4053  	// expansion flow. The original filter will still be used for the query
  4054  	// expanded search. This field is strongly recommended to achieve high search
  4055  	// quality. For more information about filter syntax, see SearchRequest.filter.
  4056  	CanonicalFilter string `json:"canonicalFilter,omitempty"`
  4057  	// ContentSearchSpec: A specification for configuring the behavior of content
  4058  	// search.
  4059  	ContentSearchSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
  4060  	// DataStoreSpecs: A list of data store specs to apply on a search call.
  4061  	DataStoreSpecs []*GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"`
  4062  	// FacetSpecs: Facet specifications for faceted search. If empty, no facets are
  4063  	// returned. A maximum of 100 values are allowed. Otherwise, an
  4064  	// `INVALID_ARGUMENT` error is returned.
  4065  	FacetSpecs []*GoogleCloudDiscoveryengineV1SearchRequestFacetSpec `json:"facetSpecs,omitempty"`
  4066  	// Filter: The filter syntax consists of an expression language for
  4067  	// constructing a predicate from one or more fields of the documents being
  4068  	// filtered. Filter expression is case-sensitive. If this field is
  4069  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  4070  	// Search is done by mapping the LHS filter key to a key property defined in
  4071  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  4072  	// their schema. For example a media customer might have a field 'name' in
  4073  	// their schema. In this case the filter would look like this: filter -->
  4074  	// name:'ANY("king kong")' For more information about filtering including
  4075  	// syntax and filter operators, see Filter
  4076  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  4077  	Filter string `json:"filter,omitempty"`
  4078  	// ImageQuery: Raw image query.
  4079  	ImageQuery *GoogleCloudDiscoveryengineV1SearchRequestImageQuery `json:"imageQuery,omitempty"`
  4080  	// Offset: A 0-indexed integer that specifies the current offset (that is,
  4081  	// starting result location, amongst the Documents deemed by the API as
  4082  	// relevant) in search results. This field is only considered if page_token is
  4083  	// unset. If this field is negative, an `INVALID_ARGUMENT` is returned.
  4084  	Offset int64 `json:"offset,omitempty"`
  4085  	// OrderBy: The order in which documents are returned. Documents can be ordered
  4086  	// by a field in an Document object. Leave it unset if ordered by relevance.
  4087  	// `order_by` expression is case-sensitive. For more information on ordering
  4088  	// for retail search, see Ordering
  4089  	// (https://cloud.google.com/retail/docs/filter-and-order#order) If this field
  4090  	// is unrecognizable, an `INVALID_ARGUMENT` is returned.
  4091  	OrderBy string `json:"orderBy,omitempty"`
  4092  	// PageSize: Maximum number of Documents to return. The maximum allowed value
  4093  	// depends on the data type. Values above the maximum value are coerced to the
  4094  	// maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. *
  4095  	// Websites with advanced indexing: Default `25`, Maximum `50`. * Other:
  4096  	// Default `50`, Maximum `100`. If this field is negative, an
  4097  	// `INVALID_ARGUMENT` is returned.
  4098  	PageSize int64 `json:"pageSize,omitempty"`
  4099  	// PageToken: A page token received from a previous SearchService.Search call.
  4100  	// Provide this to retrieve the subsequent page. When paginating, all other
  4101  	// parameters provided to SearchService.Search must match the call that
  4102  	// provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
  4103  	PageToken string `json:"pageToken,omitempty"`
  4104  	// Params: Additional search parameters. For public website search only,
  4105  	// supported values are: * `user_country_code`: string. Default empty. If set
  4106  	// to non-empty, results are restricted or boosted based on the location
  4107  	// provided. Example: user_country_code: "au" For available codes see Country
  4108  	// Codes
  4109  	// (https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
  4110  	// * `search_type`: double. Default empty. Enables non-webpage searching
  4111  	// depending on the value. The only valid non-default value is 1, which enables
  4112  	// image searching. Example: search_type: 1
  4113  	Params googleapi.RawMessage `json:"params,omitempty"`
  4114  	// Query: Raw search query.
  4115  	Query string `json:"query,omitempty"`
  4116  	// QueryExpansionSpec: The query expansion specification that specifies the
  4117  	// conditions under which query expansion occurs.
  4118  	QueryExpansionSpec *GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec `json:"queryExpansionSpec,omitempty"`
  4119  	// SafeSearch: Whether to turn on safe search. This is only supported for
  4120  	// website search.
  4121  	SafeSearch bool `json:"safeSearch,omitempty"`
  4122  	// SpellCorrectionSpec: The spell correction specification that specifies the
  4123  	// mode under which spell correction takes effect.
  4124  	SpellCorrectionSpec *GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"`
  4125  	// UserInfo: Information about the end user. Highly recommended for analytics.
  4126  	// UserInfo.user_agent is used to deduce `device_type` for analytics.
  4127  	UserInfo *GoogleCloudDiscoveryengineV1UserInfo `json:"userInfo,omitempty"`
  4128  	// UserLabels: The user labels applied to a resource must meet the following
  4129  	// requirements: * Each resource can have multiple labels, up to a maximum of
  4130  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  4131  	// character and a maximum length of 63 characters and cannot be empty. Values
  4132  	// can be empty and have a maximum length of 63 characters. * Keys and values
  4133  	// can contain only lowercase letters, numeric characters, underscores, and
  4134  	// dashes. All characters must use UTF-8 encoding, and international characters
  4135  	// are allowed. * The key portion of a label must be unique. However, you can
  4136  	// use the same key with multiple resources. * Keys must start with a lowercase
  4137  	// letter or international character. See Google Cloud Document
  4138  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  4139  	// for more details.
  4140  	UserLabels map[string]string `json:"userLabels,omitempty"`
  4141  	// UserPseudoId: A unique identifier for tracking visitors. For example, this
  4142  	// could be implemented with an HTTP cookie, which should be able to uniquely
  4143  	// identify a visitor on a single device. This unique identifier should not
  4144  	// change if the visitor logs in or out of the website. This field should NOT
  4145  	// have a fixed value such as `unknown_visitor`. This should be the same
  4146  	// identifier as UserEvent.user_pseudo_id and
  4147  	// CompleteQueryRequest.user_pseudo_id The field must be a UTF-8 encoded string
  4148  	// with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT`
  4149  	// error is returned.
  4150  	UserPseudoId string `json:"userPseudoId,omitempty"`
  4151  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  4152  	// unconditionally include in API requests. By default, fields with empty or
  4153  	// default values are omitted from API requests. See
  4154  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4155  	// details.
  4156  	ForceSendFields []string `json:"-"`
  4157  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  4158  	// requests with the JSON null value. By default, fields with empty values are
  4159  	// omitted from API requests. See
  4160  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4161  	NullFields []string `json:"-"`
  4162  }
  4163  
  4164  func (s *GoogleCloudDiscoveryengineV1SearchRequest) MarshalJSON() ([]byte, error) {
  4165  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequest
  4166  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4167  }
  4168  
  4169  // GoogleCloudDiscoveryengineV1SearchRequestBoostSpec: Boost specification to
  4170  // boost certain documents.
  4171  type GoogleCloudDiscoveryengineV1SearchRequestBoostSpec struct {
  4172  	// ConditionBoostSpecs: Condition boost specifications. If a document matches
  4173  	// multiple conditions in the specifictions, boost scores from these
  4174  	// specifications are all applied and combined in a non-linear way. Maximum
  4175  	// number of specifications is 20.
  4176  	ConditionBoostSpecs []*GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
  4177  	// ForceSendFields is a list of field names (e.g. "ConditionBoostSpecs") to
  4178  	// unconditionally include in API requests. By default, fields with empty or
  4179  	// default values are omitted from API requests. See
  4180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4181  	// details.
  4182  	ForceSendFields []string `json:"-"`
  4183  	// NullFields is a list of field names (e.g. "ConditionBoostSpecs") to include
  4184  	// in API requests with the JSON null value. By default, fields with empty
  4185  	// values are omitted from API requests. See
  4186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4187  	NullFields []string `json:"-"`
  4188  }
  4189  
  4190  func (s *GoogleCloudDiscoveryengineV1SearchRequestBoostSpec) MarshalJSON() ([]byte, error) {
  4191  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestBoostSpec
  4192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4193  }
  4194  
  4195  // GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec: Boost
  4196  // applies to documents which match a condition.
  4197  type GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec struct {
  4198  	// Boost: Strength of the condition boost, which should be in [-1, 1]. Negative
  4199  	// boost means demotion. Default is 0.0. Setting to 1.0 gives the document a
  4200  	// big promotion. However, it does not necessarily mean that the boosted
  4201  	// document will be the top result at all times, nor that other documents will
  4202  	// be excluded. Results could still be shown even when none of them matches the
  4203  	// condition. And results that are significantly more relevant to the search
  4204  	// query can still trump your heavily favored but irrelevant documents. Setting
  4205  	// to -1.0 gives the document a big demotion. However, results that are deeply
  4206  	// relevant might still be shown. The document will have an upstream battle to
  4207  	// get a fairly high ranking, but it is not blocked out completely. Setting to
  4208  	// 0.0 means no boost applied. The boosting condition is ignored. Only one of
  4209  	// the (condition, boost) combination or the boost_control_spec below are set.
  4210  	// If both are set then the global boost is ignored and the more fine-grained
  4211  	// boost_control_spec is applied.
  4212  	Boost float64 `json:"boost,omitempty"`
  4213  	// Condition: An expression which specifies a boost condition. The syntax and
  4214  	// supported fields are the same as a filter expression. See
  4215  	// SearchRequest.filter for detail syntax and limitations. Examples: * To boost
  4216  	// documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue":
  4217  	// `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
  4218  	Condition string `json:"condition,omitempty"`
  4219  	// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
  4220  	// include in API requests. By default, fields with empty or default values are
  4221  	// omitted from API requests. See
  4222  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4223  	// details.
  4224  	ForceSendFields []string `json:"-"`
  4225  	// NullFields is a list of field names (e.g. "Boost") to include in API
  4226  	// requests with the JSON null value. By default, fields with empty values are
  4227  	// omitted from API requests. See
  4228  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4229  	NullFields []string `json:"-"`
  4230  }
  4231  
  4232  func (s *GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
  4233  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec
  4234  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4235  }
  4236  
  4237  func (s *GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
  4238  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec
  4239  	var s1 struct {
  4240  		Boost gensupport.JSONFloat64 `json:"boost"`
  4241  		*NoMethod
  4242  	}
  4243  	s1.NoMethod = (*NoMethod)(s)
  4244  	if err := json.Unmarshal(data, &s1); err != nil {
  4245  		return err
  4246  	}
  4247  	s.Boost = float64(s1.Boost)
  4248  	return nil
  4249  }
  4250  
  4251  // GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec: A specification
  4252  // for configuring the behavior of content search.
  4253  type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec struct {
  4254  	// ExtractiveContentSpec: If there is no extractive_content_spec provided,
  4255  	// there will be no extractive answer in the search response.
  4256  	ExtractiveContentSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec `json:"extractiveContentSpec,omitempty"`
  4257  	// SnippetSpec: If `snippetSpec` is not specified, snippets are not included in
  4258  	// the search response.
  4259  	SnippetSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec `json:"snippetSpec,omitempty"`
  4260  	// SummarySpec: If `summarySpec` is not specified, summaries are not included
  4261  	// in the search response.
  4262  	SummarySpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
  4263  	// ForceSendFields is a list of field names (e.g. "ExtractiveContentSpec") to
  4264  	// unconditionally include in API requests. By default, fields with empty or
  4265  	// default values are omitted from API requests. See
  4266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4267  	// details.
  4268  	ForceSendFields []string `json:"-"`
  4269  	// NullFields is a list of field names (e.g. "ExtractiveContentSpec") to
  4270  	// include in API requests with the JSON null value. By default, fields with
  4271  	// empty values are omitted from API requests. See
  4272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4273  	NullFields []string `json:"-"`
  4274  }
  4275  
  4276  func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec) MarshalJSON() ([]byte, error) {
  4277  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec
  4278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4279  }
  4280  
  4281  // GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSp
  4282  // ec: A specification for configuring the extractive content in a search
  4283  // response.
  4284  type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec struct {
  4285  	// MaxExtractiveAnswerCount: The maximum number of extractive answers returned
  4286  	// in each search result. An extractive answer is a verbatim answer extracted
  4287  	// from the original document, which provides a precise and contextually
  4288  	// relevant answer to the search query. If the number of matching answers is
  4289  	// less than the `max_extractive_answer_count`, return all of the answers.
  4290  	// Otherwise, return the `max_extractive_answer_count`. At most five answers
  4291  	// are returned for each SearchResult.
  4292  	MaxExtractiveAnswerCount int64 `json:"maxExtractiveAnswerCount,omitempty"`
  4293  	// MaxExtractiveSegmentCount: The max number of extractive segments returned in
  4294  	// each search result. Only applied if the DataStore is set to
  4295  	// DataStore.ContentConfig.CONTENT_REQUIRED or DataStore.solution_types is
  4296  	// SOLUTION_TYPE_CHAT. An extractive segment is a text segment extracted from
  4297  	// the original document that is relevant to the search query, and, in general,
  4298  	// more verbose than an extractive answer. The segment could then be used as
  4299  	// input for LLMs to generate summaries and answers. If the number of matching
  4300  	// segments is less than `max_extractive_segment_count`, return all of the
  4301  	// segments. Otherwise, return the `max_extractive_segment_count`.
  4302  	MaxExtractiveSegmentCount int64 `json:"maxExtractiveSegmentCount,omitempty"`
  4303  	// NumNextSegments: Return at most `num_next_segments` segments after each
  4304  	// selected segments.
  4305  	NumNextSegments int64 `json:"numNextSegments,omitempty"`
  4306  	// NumPreviousSegments: Specifies whether to also include the adjacent from
  4307  	// each selected segments. Return at most `num_previous_segments` segments
  4308  	// before each selected segments.
  4309  	NumPreviousSegments int64 `json:"numPreviousSegments,omitempty"`
  4310  	// ReturnExtractiveSegmentScore: Specifies whether to return the confidence
  4311  	// score from the extractive segments in each search result. This feature is
  4312  	// available only for new or allowlisted data stores. To allowlist your data
  4313  	// store, contact your Customer Engineer. The default value is `false`.
  4314  	ReturnExtractiveSegmentScore bool `json:"returnExtractiveSegmentScore,omitempty"`
  4315  	// ForceSendFields is a list of field names (e.g. "MaxExtractiveAnswerCount")
  4316  	// to unconditionally include in API requests. By default, fields with empty or
  4317  	// default values are omitted from API requests. See
  4318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4319  	// details.
  4320  	ForceSendFields []string `json:"-"`
  4321  	// NullFields is a list of field names (e.g. "MaxExtractiveAnswerCount") to
  4322  	// include in API requests with the JSON null value. By default, fields with
  4323  	// empty values are omitted from API requests. See
  4324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4325  	NullFields []string `json:"-"`
  4326  }
  4327  
  4328  func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec) MarshalJSON() ([]byte, error) {
  4329  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec
  4330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4331  }
  4332  
  4333  // GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec: A
  4334  // specification for configuring snippets in a search response.
  4335  type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec struct {
  4336  	// MaxSnippetCount: [DEPRECATED] This field is deprecated. To control snippet
  4337  	// return, use `return_snippet` field. For backwards compatibility, we will
  4338  	// return snippet if max_snippet_count > 0.
  4339  	MaxSnippetCount int64 `json:"maxSnippetCount,omitempty"`
  4340  	// ReferenceOnly: [DEPRECATED] This field is deprecated and will have no affect
  4341  	// on the snippet.
  4342  	ReferenceOnly bool `json:"referenceOnly,omitempty"`
  4343  	// ReturnSnippet: If `true`, then return snippet. If no snippet can be
  4344  	// generated, we return "No snippet is available for this page." A
  4345  	// `snippet_status` with `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be
  4346  	// returned.
  4347  	ReturnSnippet bool `json:"returnSnippet,omitempty"`
  4348  	// ForceSendFields is a list of field names (e.g. "MaxSnippetCount") to
  4349  	// unconditionally include in API requests. By default, fields with empty or
  4350  	// default values are omitted from API requests. See
  4351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4352  	// details.
  4353  	ForceSendFields []string `json:"-"`
  4354  	// NullFields is a list of field names (e.g. "MaxSnippetCount") to include in
  4355  	// API requests with the JSON null value. By default, fields with empty values
  4356  	// are omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4358  	NullFields []string `json:"-"`
  4359  }
  4360  
  4361  func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec) MarshalJSON() ([]byte, error) {
  4362  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec
  4363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4364  }
  4365  
  4366  // GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec: A
  4367  // specification for configuring a summary returned in a search response.
  4368  type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec struct {
  4369  	// IgnoreAdversarialQuery: Specifies whether to filter out adversarial queries.
  4370  	// The default value is `false`. Google employs search-query classification to
  4371  	// detect adversarial queries. No summary is returned if the search query is
  4372  	// classified as an adversarial query. For example, a user might ask a question
  4373  	// regarding negative comments about the company or submit a query designed to
  4374  	// generate unsafe, policy-violating output. If this field is set to `true`, we
  4375  	// skip generating summaries for adversarial queries and return fallback
  4376  	// messages instead.
  4377  	IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
  4378  	// IgnoreNonSummarySeekingQuery: Specifies whether to filter out queries that
  4379  	// are not summary-seeking. The default value is `false`. Google employs
  4380  	// search-query classification to detect summary-seeking queries. No summary is
  4381  	// returned if the search query is classified as a non-summary seeking query.
  4382  	// For example, `why is the sky blue` and `Who is the best soccer player in the
  4383  	// world?` are summary-seeking queries, but `SFO airport` and `world cup 2026`
  4384  	// are not. They are most likely navigational queries. If this field is set to
  4385  	// `true`, we skip generating summaries for non-summary seeking queries and
  4386  	// return fallback messages instead.
  4387  	IgnoreNonSummarySeekingQuery bool `json:"ignoreNonSummarySeekingQuery,omitempty"`
  4388  	// IncludeCitations: Specifies whether to include citations in the summary. The
  4389  	// default value is `false`. When this field is set to `true`, summaries
  4390  	// include in-line citation numbers. Example summary including citations:
  4391  	// BigQuery is Google Cloud's fully managed and completely serverless
  4392  	// enterprise data warehouse [1]. BigQuery supports all data types, works
  4393  	// across clouds, and has built-in machine learning and business intelligence,
  4394  	// all within a unified platform [2, 3]. The citation numbers refer to the
  4395  	// returned search results and are 1-indexed. For example, [1] means that the
  4396  	// sentence is attributed to the first search result. [2, 3] means that the
  4397  	// sentence is attributed to both the second and third search results.
  4398  	IncludeCitations bool `json:"includeCitations,omitempty"`
  4399  	// LanguageCode: Language code for Summary. Use language tags defined by BCP47
  4400  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an
  4401  	// experimental feature.
  4402  	LanguageCode string `json:"languageCode,omitempty"`
  4403  	// ModelPromptSpec: If specified, the spec will be used to modify the prompt
  4404  	// provided to the LLM.
  4405  	ModelPromptSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec `json:"modelPromptSpec,omitempty"`
  4406  	// ModelSpec: If specified, the spec will be used to modify the model
  4407  	// specification provided to the LLM.
  4408  	ModelSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec `json:"modelSpec,omitempty"`
  4409  	// SummaryResultCount: The number of top results to generate the summary from.
  4410  	// If the number of results returned is less than `summaryResultCount`, the
  4411  	// summary is generated from all of the results. At most 10 results for
  4412  	// documents mode, or 50 for chunks mode, can be used to generate a summary.
  4413  	// The chunks mode is used when
  4414  	// SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
  4415  	SummaryResultCount int64 `json:"summaryResultCount,omitempty"`
  4416  	// UseSemanticChunks: If true, answer will be generated from most relevant
  4417  	// chunks from top search results. This feature will improve summary quality.
  4418  	// Note that with this feature enabled, not all top search results will be
  4419  	// referenced and included in the reference list, so the citation source index
  4420  	// only points to the search results listed in the reference list.
  4421  	UseSemanticChunks bool `json:"useSemanticChunks,omitempty"`
  4422  	// ForceSendFields is a list of field names (e.g. "IgnoreAdversarialQuery") to
  4423  	// unconditionally include in API requests. By default, fields with empty or
  4424  	// default values are omitted from API requests. See
  4425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4426  	// details.
  4427  	ForceSendFields []string `json:"-"`
  4428  	// NullFields is a list of field names (e.g. "IgnoreAdversarialQuery") to
  4429  	// include in API requests with the JSON null value. By default, fields with
  4430  	// empty values are omitted from API requests. See
  4431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4432  	NullFields []string `json:"-"`
  4433  }
  4434  
  4435  func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec) MarshalJSON() ([]byte, error) {
  4436  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec
  4437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4438  }
  4439  
  4440  // GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPro
  4441  // mptSpec: Specification of the prompt to use with the model.
  4442  type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec struct {
  4443  	// Preamble: Text at the beginning of the prompt that instructs the assistant.
  4444  	// Examples are available in the user guide.
  4445  	Preamble string `json:"preamble,omitempty"`
  4446  	// ForceSendFields is a list of field names (e.g. "Preamble") to
  4447  	// unconditionally include in API requests. By default, fields with empty or
  4448  	// default values are omitted from API requests. See
  4449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4450  	// details.
  4451  	ForceSendFields []string `json:"-"`
  4452  	// NullFields is a list of field names (e.g. "Preamble") to include in API
  4453  	// requests with the JSON null value. By default, fields with empty values are
  4454  	// omitted from API requests. See
  4455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4456  	NullFields []string `json:"-"`
  4457  }
  4458  
  4459  func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec) MarshalJSON() ([]byte, error) {
  4460  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec
  4461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4462  }
  4463  
  4464  // GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpe
  4465  // c: Specification of the model.
  4466  type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec struct {
  4467  	// Version: The model version used to generate the summary. Supported values
  4468  	// are: * `stable`: string. Default value when no value is specified. Uses a
  4469  	// generally available, fine-tuned model. For more information, see Answer
  4470  	// generation model versions and lifecycle
  4471  	// (https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
  4472  	// * `preview`: string. (Public preview) Uses a preview model. For more
  4473  	// information, see Answer generation model versions and lifecycle
  4474  	// (https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
  4475  	Version string `json:"version,omitempty"`
  4476  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  4477  	// include in API requests. By default, fields with empty or default values are
  4478  	// omitted from API requests. See
  4479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4480  	// details.
  4481  	ForceSendFields []string `json:"-"`
  4482  	// NullFields is a list of field names (e.g. "Version") to include in API
  4483  	// requests with the JSON null value. By default, fields with empty values are
  4484  	// omitted from API requests. See
  4485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4486  	NullFields []string `json:"-"`
  4487  }
  4488  
  4489  func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec) MarshalJSON() ([]byte, error) {
  4490  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec
  4491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4492  }
  4493  
  4494  // GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec: A struct to define
  4495  // data stores to filter on in a search call.
  4496  type GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec struct {
  4497  	// DataStore: Required. Full resource name of DataStore, such as
  4498  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  4499  	// es/{data_store_id}`.
  4500  	DataStore string `json:"dataStore,omitempty"`
  4501  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  4502  	// unconditionally include in API requests. By default, fields with empty or
  4503  	// default values are omitted from API requests. See
  4504  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4505  	// details.
  4506  	ForceSendFields []string `json:"-"`
  4507  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  4508  	// requests with the JSON null value. By default, fields with empty values are
  4509  	// omitted from API requests. See
  4510  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4511  	NullFields []string `json:"-"`
  4512  }
  4513  
  4514  func (s *GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) {
  4515  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec
  4516  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4517  }
  4518  
  4519  // GoogleCloudDiscoveryengineV1SearchRequestFacetSpec: A facet specification to
  4520  // perform faceted search.
  4521  type GoogleCloudDiscoveryengineV1SearchRequestFacetSpec struct {
  4522  	// EnableDynamicPosition: Enables dynamic position for this facet. If set to
  4523  	// true, the position of this facet among all facets in the response is
  4524  	// determined automatically. If dynamic facets are enabled, it is ordered
  4525  	// together. If set to false, the position of this facet in the response is the
  4526  	// same as in the request, and it is ranked before the facets with dynamic
  4527  	// position enable and all dynamic facets. For example, you may always want to
  4528  	// have rating facet returned in the response, but it's not necessarily to
  4529  	// always display the rating facet at the top. In that case, you can set
  4530  	// enable_dynamic_position to true so that the position of rating facet in
  4531  	// response is determined automatically. Another example, assuming you have the
  4532  	// following facets in the request: * "rating", enable_dynamic_position = true
  4533  	// * "price", enable_dynamic_position = false * "brands",
  4534  	// enable_dynamic_position = false And also you have a dynamic facets enabled,
  4535  	// which generates a facet `gender`. Then the final order of the facets in the
  4536  	// response can be ("price", "brands", "rating", "gender") or ("price",
  4537  	// "brands", "gender", "rating") depends on how API orders "gender" and
  4538  	// "rating" facets. However, notice that "price" and "brands" are always ranked
  4539  	// at first and second position because their enable_dynamic_position is false.
  4540  	EnableDynamicPosition bool `json:"enableDynamicPosition,omitempty"`
  4541  	// ExcludedFilterKeys: List of keys to exclude when faceting. By default,
  4542  	// FacetKey.key is not excluded from the filter unless it is listed in this
  4543  	// field. Listing a facet key in this field allows its values to appear as
  4544  	// facet results, even when they are filtered out of search results. Using this
  4545  	// field does not affect what search results are returned. For example, suppose
  4546  	// there are 100 documents with the color facet "Red" and 200 documents with
  4547  	// the color facet "Blue". A query containing the filter "color:ANY("Red")" and
  4548  	// having "color" as FacetKey.key would by default return only "Red" documents
  4549  	// in the search results, and also return "Red" with count 100 as the only
  4550  	// color facet. Although there are also blue documents available, "Blue" would
  4551  	// not be shown as an available facet value. If "color" is listed in
  4552  	// "excludedFilterKeys", then the query returns the facet values "Red" with
  4553  	// count 100 and "Blue" with count 200, because the "color" key is now excluded
  4554  	// from the filter. Because this field doesn't affect search results, the
  4555  	// search results are still correctly filtered to return only "Red" documents.
  4556  	// A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error
  4557  	// is returned.
  4558  	ExcludedFilterKeys []string `json:"excludedFilterKeys,omitempty"`
  4559  	// FacetKey: Required. The facet key specification.
  4560  	FacetKey *GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey `json:"facetKey,omitempty"`
  4561  	// Limit: Maximum of facet values that should be returned for this facet. If
  4562  	// unspecified, defaults to 20. The maximum allowed value is 300. Values above
  4563  	// 300 are coerced to 300. If this field is negative, an `INVALID_ARGUMENT` is
  4564  	// returned.
  4565  	Limit int64 `json:"limit,omitempty"`
  4566  	// ForceSendFields is a list of field names (e.g. "EnableDynamicPosition") to
  4567  	// unconditionally include in API requests. By default, fields with empty or
  4568  	// default values are omitted from API requests. See
  4569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4570  	// details.
  4571  	ForceSendFields []string `json:"-"`
  4572  	// NullFields is a list of field names (e.g. "EnableDynamicPosition") to
  4573  	// include in API requests with the JSON null value. By default, fields with
  4574  	// empty values are omitted from API requests. See
  4575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4576  	NullFields []string `json:"-"`
  4577  }
  4578  
  4579  func (s *GoogleCloudDiscoveryengineV1SearchRequestFacetSpec) MarshalJSON() ([]byte, error) {
  4580  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestFacetSpec
  4581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4582  }
  4583  
  4584  // GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey: Specifies how a
  4585  // facet is computed.
  4586  type GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey struct {
  4587  	// CaseInsensitive: True to make facet keys case insensitive when getting
  4588  	// faceting values with prefixes or contains; false otherwise.
  4589  	CaseInsensitive bool `json:"caseInsensitive,omitempty"`
  4590  	// Contains: Only get facet values that contains the given strings. For
  4591  	// example, suppose "category" has three values "Action > 2022", "Action >
  4592  	// 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the "category" facet
  4593  	// only contains "Action > 2022" and "Sci-Fi > 2022". Only supported on textual
  4594  	// fields. Maximum is 10.
  4595  	Contains []string `json:"contains,omitempty"`
  4596  	// Intervals: Set only if values should be bucketed into intervals. Must be set
  4597  	// for facets with numerical values. Must not be set for facet with text
  4598  	// values. Maximum number of intervals is 30.
  4599  	Intervals []*GoogleCloudDiscoveryengineV1Interval `json:"intervals,omitempty"`
  4600  	// Key: Required. Supported textual and numerical facet keys in Document
  4601  	// object, over which the facet values are computed. Facet key is
  4602  	// case-sensitive.
  4603  	Key string `json:"key,omitempty"`
  4604  	// OrderBy: The order in which documents are returned. Allowed values are: *
  4605  	// "count desc", which means order by SearchResponse.Facet.values.count
  4606  	// descending. * "value desc", which means order by
  4607  	// SearchResponse.Facet.values.value descending. Only applies to textual
  4608  	// facets. If not set, textual values are sorted in natural order
  4609  	// (https://en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are
  4610  	// sorted in the order given by FacetSpec.FacetKey.intervals.
  4611  	OrderBy string `json:"orderBy,omitempty"`
  4612  	// Prefixes: Only get facet values that start with the given string prefix. For
  4613  	// example, suppose "category" has three values "Action > 2022", "Action >
  4614  	// 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the "category"
  4615  	// facet only contains "Action > 2022" and "Action > 2021". Only supported on
  4616  	// textual fields. Maximum is 10.
  4617  	Prefixes []string `json:"prefixes,omitempty"`
  4618  	// RestrictedValues: Only get facet for the given restricted values. Only
  4619  	// supported on textual fields. For example, suppose "category" has three
  4620  	// values "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
  4621  	// "restricted_values" to "Action > 2022", the "category" facet only contains
  4622  	// "Action > 2022". Only supported on textual fields. Maximum is 10.
  4623  	RestrictedValues []string `json:"restrictedValues,omitempty"`
  4624  	// ForceSendFields is a list of field names (e.g. "CaseInsensitive") to
  4625  	// unconditionally include in API requests. By default, fields with empty or
  4626  	// default values are omitted from API requests. See
  4627  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4628  	// details.
  4629  	ForceSendFields []string `json:"-"`
  4630  	// NullFields is a list of field names (e.g. "CaseInsensitive") to include in
  4631  	// API requests with the JSON null value. By default, fields with empty values
  4632  	// are omitted from API requests. See
  4633  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4634  	NullFields []string `json:"-"`
  4635  }
  4636  
  4637  func (s *GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey) MarshalJSON() ([]byte, error) {
  4638  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey
  4639  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4640  }
  4641  
  4642  // GoogleCloudDiscoveryengineV1SearchRequestImageQuery: Specifies the image
  4643  // query input.
  4644  type GoogleCloudDiscoveryengineV1SearchRequestImageQuery struct {
  4645  	// ImageBytes: Base64 encoded image bytes. Supported image formats: JPEG, PNG,
  4646  	// and BMP.
  4647  	ImageBytes string `json:"imageBytes,omitempty"`
  4648  	// ForceSendFields is a list of field names (e.g. "ImageBytes") to
  4649  	// unconditionally include in API requests. By default, fields with empty or
  4650  	// default values are omitted from API requests. See
  4651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4652  	// details.
  4653  	ForceSendFields []string `json:"-"`
  4654  	// NullFields is a list of field names (e.g. "ImageBytes") to include in API
  4655  	// requests with the JSON null value. By default, fields with empty values are
  4656  	// omitted from API requests. See
  4657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4658  	NullFields []string `json:"-"`
  4659  }
  4660  
  4661  func (s *GoogleCloudDiscoveryengineV1SearchRequestImageQuery) MarshalJSON() ([]byte, error) {
  4662  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestImageQuery
  4663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4664  }
  4665  
  4666  // GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec: Specification
  4667  // to determine under which conditions query expansion should occur.
  4668  type GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec struct {
  4669  	// Condition: The condition under which query expansion should occur. Default
  4670  	// to Condition.DISABLED.
  4671  	//
  4672  	// Possible values:
  4673  	//   "CONDITION_UNSPECIFIED" - Unspecified query expansion condition. In this
  4674  	// case, server behavior defaults to Condition.DISABLED.
  4675  	//   "DISABLED" - Disabled query expansion. Only the exact search query is
  4676  	// used, even if SearchResponse.total_size is zero.
  4677  	//   "AUTO" - Automatic query expansion built by the Search API.
  4678  	Condition string `json:"condition,omitempty"`
  4679  	// PinUnexpandedResults: Whether to pin unexpanded results. If this field is
  4680  	// set to true, unexpanded products are always at the top of the search
  4681  	// results, followed by the expanded results.
  4682  	PinUnexpandedResults bool `json:"pinUnexpandedResults,omitempty"`
  4683  	// ForceSendFields is a list of field names (e.g. "Condition") to
  4684  	// unconditionally include in API requests. By default, fields with empty or
  4685  	// default values are omitted from API requests. See
  4686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4687  	// details.
  4688  	ForceSendFields []string `json:"-"`
  4689  	// NullFields is a list of field names (e.g. "Condition") to include in API
  4690  	// requests with the JSON null value. By default, fields with empty values are
  4691  	// omitted from API requests. See
  4692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4693  	NullFields []string `json:"-"`
  4694  }
  4695  
  4696  func (s *GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec) MarshalJSON() ([]byte, error) {
  4697  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec
  4698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4699  }
  4700  
  4701  // GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec: The
  4702  // specification for query spell correction.
  4703  type GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec struct {
  4704  	// Mode: The mode under which spell correction should take effect to replace
  4705  	// the original search query. Default to Mode.AUTO.
  4706  	//
  4707  	// Possible values:
  4708  	//   "MODE_UNSPECIFIED" - Unspecified spell correction mode. In this case,
  4709  	// server behavior defaults to Mode.AUTO.
  4710  	//   "SUGGESTION_ONLY" - Search API will try to find a spell suggestion if
  4711  	// there is any and put in the SearchResponse.corrected_query. The spell
  4712  	// suggestion will not be used as the search query.
  4713  	//   "AUTO" - Automatic spell correction built by the Search API. Search will
  4714  	// be based on the corrected query if found.
  4715  	Mode string `json:"mode,omitempty"`
  4716  	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
  4717  	// include in API requests. By default, fields with empty or default values are
  4718  	// omitted from API requests. See
  4719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4720  	// details.
  4721  	ForceSendFields []string `json:"-"`
  4722  	// NullFields is a list of field names (e.g. "Mode") to include in API requests
  4723  	// with the JSON null value. By default, fields with empty values are omitted
  4724  	// from API requests. See
  4725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4726  	NullFields []string `json:"-"`
  4727  }
  4728  
  4729  func (s *GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec) MarshalJSON() ([]byte, error) {
  4730  	type NoMethod GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec
  4731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4732  }
  4733  
  4734  // GoogleCloudDiscoveryengineV1SearchResponse: Response message for
  4735  // SearchService.Search method.
  4736  type GoogleCloudDiscoveryengineV1SearchResponse struct {
  4737  	// AttributionToken: A unique search token. This should be included in the
  4738  	// UserEvent logs resulting from this search, which enables accurate
  4739  	// attribution of search model performance.
  4740  	AttributionToken string `json:"attributionToken,omitempty"`
  4741  	// CorrectedQuery: Contains the spell corrected query, if found. If the spell
  4742  	// correction type is AUTOMATIC, then the search results are based on
  4743  	// corrected_query. Otherwise the original query is used for search.
  4744  	CorrectedQuery string `json:"correctedQuery,omitempty"`
  4745  	// Facets: Results of facets requested by user.
  4746  	Facets []*GoogleCloudDiscoveryengineV1SearchResponseFacet `json:"facets,omitempty"`
  4747  	// NextPageToken: A token that can be sent as SearchRequest.page_token to
  4748  	// retrieve the next page. If this field is omitted, there are no subsequent
  4749  	// pages.
  4750  	NextPageToken string `json:"nextPageToken,omitempty"`
  4751  	// QueryExpansionInfo: Query expansion information for the returned results.
  4752  	QueryExpansionInfo *GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo `json:"queryExpansionInfo,omitempty"`
  4753  	// RedirectUri: The URI of a customer-defined redirect page. If redirect action
  4754  	// is triggered, no search is performed, and only redirect_uri and
  4755  	// attribution_token are set in the response.
  4756  	RedirectUri string `json:"redirectUri,omitempty"`
  4757  	// Results: A list of matched documents. The order represents the ranking.
  4758  	Results []*GoogleCloudDiscoveryengineV1SearchResponseSearchResult `json:"results,omitempty"`
  4759  	// Summary: A summary as part of the search results. This field is only
  4760  	// returned if SearchRequest.ContentSearchSpec.summary_spec is set.
  4761  	Summary *GoogleCloudDiscoveryengineV1SearchResponseSummary `json:"summary,omitempty"`
  4762  	// TotalSize: The estimated total count of matched items irrespective of
  4763  	// pagination. The count of results returned by pagination may be less than the
  4764  	// total_size that matches.
  4765  	TotalSize int64 `json:"totalSize,omitempty"`
  4766  
  4767  	// ServerResponse contains the HTTP response code and headers from the server.
  4768  	googleapi.ServerResponse `json:"-"`
  4769  	// ForceSendFields is a list of field names (e.g. "AttributionToken") to
  4770  	// unconditionally include in API requests. By default, fields with empty or
  4771  	// default values are omitted from API requests. See
  4772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4773  	// details.
  4774  	ForceSendFields []string `json:"-"`
  4775  	// NullFields is a list of field names (e.g. "AttributionToken") to include in
  4776  	// API requests with the JSON null value. By default, fields with empty values
  4777  	// are omitted from API requests. See
  4778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4779  	NullFields []string `json:"-"`
  4780  }
  4781  
  4782  func (s *GoogleCloudDiscoveryengineV1SearchResponse) MarshalJSON() ([]byte, error) {
  4783  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponse
  4784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4785  }
  4786  
  4787  // GoogleCloudDiscoveryengineV1SearchResponseFacet: A facet result.
  4788  type GoogleCloudDiscoveryengineV1SearchResponseFacet struct {
  4789  	// DynamicFacet: Whether the facet is dynamically generated.
  4790  	DynamicFacet bool `json:"dynamicFacet,omitempty"`
  4791  	// Key: The key for this facet. E.g., "colors" or "price". It matches
  4792  	// SearchRequest.FacetSpec.FacetKey.key.
  4793  	Key string `json:"key,omitempty"`
  4794  	// Values: The facet values for this field.
  4795  	Values []*GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue `json:"values,omitempty"`
  4796  	// ForceSendFields is a list of field names (e.g. "DynamicFacet") to
  4797  	// unconditionally include in API requests. By default, fields with empty or
  4798  	// default values are omitted from API requests. See
  4799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4800  	// details.
  4801  	ForceSendFields []string `json:"-"`
  4802  	// NullFields is a list of field names (e.g. "DynamicFacet") to include in API
  4803  	// requests with the JSON null value. By default, fields with empty values are
  4804  	// omitted from API requests. See
  4805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4806  	NullFields []string `json:"-"`
  4807  }
  4808  
  4809  func (s *GoogleCloudDiscoveryengineV1SearchResponseFacet) MarshalJSON() ([]byte, error) {
  4810  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseFacet
  4811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4812  }
  4813  
  4814  // GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue: A facet value
  4815  // which contains value names and their count.
  4816  type GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue struct {
  4817  	// Count: Number of items that have this facet value.
  4818  	Count int64 `json:"count,omitempty,string"`
  4819  	// Interval: Interval value for a facet, such as 10, 20) for facet "price". It
  4820  	// matches [SearchRequest.FacetSpec.FacetKey.intervals.
  4821  	Interval *GoogleCloudDiscoveryengineV1Interval `json:"interval,omitempty"`
  4822  	// Value: Text value of a facet, such as "Black" for facet "colors".
  4823  	Value string `json:"value,omitempty"`
  4824  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  4825  	// include in API requests. By default, fields with empty or default values are
  4826  	// omitted from API requests. See
  4827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4828  	// details.
  4829  	ForceSendFields []string `json:"-"`
  4830  	// NullFields is a list of field names (e.g. "Count") to include in API
  4831  	// requests with the JSON null value. By default, fields with empty values are
  4832  	// omitted from API requests. See
  4833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4834  	NullFields []string `json:"-"`
  4835  }
  4836  
  4837  func (s *GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue) MarshalJSON() ([]byte, error) {
  4838  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue
  4839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4840  }
  4841  
  4842  // GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo: Information
  4843  // describing query expansion including whether expansion has occurred.
  4844  type GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo struct {
  4845  	// ExpandedQuery: Bool describing whether query expansion has occurred.
  4846  	ExpandedQuery bool `json:"expandedQuery,omitempty"`
  4847  	// PinnedResultCount: Number of pinned results. This field will only be set
  4848  	// when expansion happens and
  4849  	// SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
  4850  	PinnedResultCount int64 `json:"pinnedResultCount,omitempty,string"`
  4851  	// ForceSendFields is a list of field names (e.g. "ExpandedQuery") to
  4852  	// unconditionally include in API requests. By default, fields with empty or
  4853  	// default values are omitted from API requests. See
  4854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4855  	// details.
  4856  	ForceSendFields []string `json:"-"`
  4857  	// NullFields is a list of field names (e.g. "ExpandedQuery") to include in API
  4858  	// requests with the JSON null value. By default, fields with empty values are
  4859  	// omitted from API requests. See
  4860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4861  	NullFields []string `json:"-"`
  4862  }
  4863  
  4864  func (s *GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo) MarshalJSON() ([]byte, error) {
  4865  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
  4866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4867  }
  4868  
  4869  // GoogleCloudDiscoveryengineV1SearchResponseSearchResult: Represents the
  4870  // search results.
  4871  type GoogleCloudDiscoveryengineV1SearchResponseSearchResult struct {
  4872  	// Document: The document data snippet in the search response. Only fields that
  4873  	// are marked as retrievable are populated.
  4874  	Document *GoogleCloudDiscoveryengineV1Document `json:"document,omitempty"`
  4875  	// Id: Document.id of the searched Document.
  4876  	Id string `json:"id,omitempty"`
  4877  	// ForceSendFields is a list of field names (e.g. "Document") to
  4878  	// unconditionally include in API requests. By default, fields with empty or
  4879  	// default values are omitted from API requests. See
  4880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4881  	// details.
  4882  	ForceSendFields []string `json:"-"`
  4883  	// NullFields is a list of field names (e.g. "Document") to include in API
  4884  	// requests with the JSON null value. By default, fields with empty values are
  4885  	// omitted from API requests. See
  4886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4887  	NullFields []string `json:"-"`
  4888  }
  4889  
  4890  func (s *GoogleCloudDiscoveryengineV1SearchResponseSearchResult) MarshalJSON() ([]byte, error) {
  4891  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSearchResult
  4892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4893  }
  4894  
  4895  // GoogleCloudDiscoveryengineV1SearchResponseSummary: Summary of the top N
  4896  // search result specified by the summary spec.
  4897  type GoogleCloudDiscoveryengineV1SearchResponseSummary struct {
  4898  	// SafetyAttributes: A collection of Safety Attribute categories and their
  4899  	// associated confidence scores.
  4900  	SafetyAttributes *GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes `json:"safetyAttributes,omitempty"`
  4901  	// SummarySkippedReasons: Additional summary-skipped reasons. This provides the
  4902  	// reason for ignored cases. If nothing is skipped, this field is not set.
  4903  	//
  4904  	// Possible values:
  4905  	//   "SUMMARY_SKIPPED_REASON_UNSPECIFIED" - Default value. The summary skipped
  4906  	// reason is not specified.
  4907  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case. Only
  4908  	// populated when SummarySpec.ignore_adversarial_query is set to `true`.
  4909  	//   "NON_SUMMARY_SEEKING_QUERY_IGNORED" - The non-summary seeking query
  4910  	// ignored case. Only populated when
  4911  	// SummarySpec.ignore_non_summary_seeking_query is set to `true`.
  4912  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
  4913  	// Google skips the summary if there are no high-relevance search results. For
  4914  	// example, the data store contains facts about company A but the user query is
  4915  	// asking questions about company B.
  4916  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
  4917  	// skips the summary if there is a potential policy violation detected. This
  4918  	// includes content that may be violent or toxic.
  4919  	//   "LLM_ADDON_NOT_ENABLED" - The LLM addon not enabled case. Google skips the
  4920  	// summary if the LLM addon is not enabled.
  4921  	SummarySkippedReasons []string `json:"summarySkippedReasons,omitempty"`
  4922  	// SummaryText: The summary content.
  4923  	SummaryText string `json:"summaryText,omitempty"`
  4924  	// SummaryWithMetadata: Summary with metadata information.
  4925  	SummaryWithMetadata *GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata `json:"summaryWithMetadata,omitempty"`
  4926  	// ForceSendFields is a list of field names (e.g. "SafetyAttributes") to
  4927  	// unconditionally include in API requests. By default, fields with empty or
  4928  	// default values are omitted from API requests. See
  4929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4930  	// details.
  4931  	ForceSendFields []string `json:"-"`
  4932  	// NullFields is a list of field names (e.g. "SafetyAttributes") to include in
  4933  	// API requests with the JSON null value. By default, fields with empty values
  4934  	// are omitted from API requests. See
  4935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4936  	NullFields []string `json:"-"`
  4937  }
  4938  
  4939  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummary) MarshalJSON() ([]byte, error) {
  4940  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummary
  4941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4942  }
  4943  
  4944  // GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation: Citation info for
  4945  // a segment.
  4946  type GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation struct {
  4947  	// EndIndex: End of the attributed segment, exclusive.
  4948  	EndIndex int64 `json:"endIndex,omitempty,string"`
  4949  	// Sources: Citation sources for the attributed segment.
  4950  	Sources []*GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource `json:"sources,omitempty"`
  4951  	// StartIndex: Index indicates the start of the segment, measured in
  4952  	// bytes/unicode.
  4953  	StartIndex int64 `json:"startIndex,omitempty,string"`
  4954  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  4955  	// unconditionally include in API requests. By default, fields with empty or
  4956  	// default values are omitted from API requests. See
  4957  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4958  	// details.
  4959  	ForceSendFields []string `json:"-"`
  4960  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  4961  	// requests with the JSON null value. By default, fields with empty values are
  4962  	// omitted from API requests. See
  4963  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4964  	NullFields []string `json:"-"`
  4965  }
  4966  
  4967  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation) MarshalJSON() ([]byte, error) {
  4968  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation
  4969  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4970  }
  4971  
  4972  // GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata: Citation
  4973  // metadata.
  4974  type GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata struct {
  4975  	// Citations: Citations for segments.
  4976  	Citations []*GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation `json:"citations,omitempty"`
  4977  	// ForceSendFields is a list of field names (e.g. "Citations") to
  4978  	// unconditionally include in API requests. By default, fields with empty or
  4979  	// default values are omitted from API requests. See
  4980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4981  	// details.
  4982  	ForceSendFields []string `json:"-"`
  4983  	// NullFields is a list of field names (e.g. "Citations") to include in API
  4984  	// requests with the JSON null value. By default, fields with empty values are
  4985  	// omitted from API requests. See
  4986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4987  	NullFields []string `json:"-"`
  4988  }
  4989  
  4990  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata) MarshalJSON() ([]byte, error) {
  4991  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata
  4992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4993  }
  4994  
  4995  // GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource: Citation
  4996  // source.
  4997  type GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource struct {
  4998  	// ReferenceIndex: Document reference index from
  4999  	// SummaryWithMetadata.references. It is 0-indexed and the value will be zero
  5000  	// if the reference_index is not set explicitly.
  5001  	ReferenceIndex int64 `json:"referenceIndex,omitempty,string"`
  5002  	// ForceSendFields is a list of field names (e.g. "ReferenceIndex") to
  5003  	// unconditionally include in API requests. By default, fields with empty or
  5004  	// default values are omitted from API requests. See
  5005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5006  	// details.
  5007  	ForceSendFields []string `json:"-"`
  5008  	// NullFields is a list of field names (e.g. "ReferenceIndex") to include in
  5009  	// API requests with the JSON null value. By default, fields with empty values
  5010  	// are omitted from API requests. See
  5011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5012  	NullFields []string `json:"-"`
  5013  }
  5014  
  5015  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource) MarshalJSON() ([]byte, error) {
  5016  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource
  5017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5018  }
  5019  
  5020  // GoogleCloudDiscoveryengineV1SearchResponseSummaryReference: Document
  5021  // reference.
  5022  type GoogleCloudDiscoveryengineV1SearchResponseSummaryReference struct {
  5023  	// ChunkContents: List of cited chunk contents derived from document content.
  5024  	ChunkContents []*GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent `json:"chunkContents,omitempty"`
  5025  	// Document: Required. Document.name of the document. Full resource name of the
  5026  	// referenced document, in the format
  5027  	// `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
  5028  	Document string `json:"document,omitempty"`
  5029  	// Title: Title of the document.
  5030  	Title string `json:"title,omitempty"`
  5031  	// Uri: Cloud Storage or HTTP uri for the document.
  5032  	Uri string `json:"uri,omitempty"`
  5033  	// ForceSendFields is a list of field names (e.g. "ChunkContents") to
  5034  	// unconditionally include in API requests. By default, fields with empty or
  5035  	// default values are omitted from API requests. See
  5036  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5037  	// details.
  5038  	ForceSendFields []string `json:"-"`
  5039  	// NullFields is a list of field names (e.g. "ChunkContents") to include in API
  5040  	// requests with the JSON null value. By default, fields with empty values are
  5041  	// omitted from API requests. See
  5042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5043  	NullFields []string `json:"-"`
  5044  }
  5045  
  5046  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryReference) MarshalJSON() ([]byte, error) {
  5047  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryReference
  5048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5049  }
  5050  
  5051  // GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent:
  5052  // Chunk content.
  5053  type GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent struct {
  5054  	// Content: Chunk textual content.
  5055  	Content string `json:"content,omitempty"`
  5056  	// PageIdentifier: Page identifier.
  5057  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  5058  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5059  	// include in API requests. By default, fields with empty or default values are
  5060  	// omitted from API requests. See
  5061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5062  	// details.
  5063  	ForceSendFields []string `json:"-"`
  5064  	// NullFields is a list of field names (e.g. "Content") to include in API
  5065  	// requests with the JSON null value. By default, fields with empty values are
  5066  	// omitted from API requests. See
  5067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5068  	NullFields []string `json:"-"`
  5069  }
  5070  
  5071  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent) MarshalJSON() ([]byte, error) {
  5072  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent
  5073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5074  }
  5075  
  5076  // GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes: Safety
  5077  // Attribute categories and their associated confidence scores.
  5078  type GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes struct {
  5079  	// Categories: The display names of Safety Attribute categories associated with
  5080  	// the generated content. Order matches the Scores.
  5081  	Categories []string `json:"categories,omitempty"`
  5082  	// Scores: The confidence scores of the each category, higher value means
  5083  	// higher confidence. Order matches the Categories.
  5084  	Scores []float64 `json:"scores,omitempty"`
  5085  	// ForceSendFields is a list of field names (e.g. "Categories") to
  5086  	// unconditionally include in API requests. By default, fields with empty or
  5087  	// default values are omitted from API requests. See
  5088  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5089  	// details.
  5090  	ForceSendFields []string `json:"-"`
  5091  	// NullFields is a list of field names (e.g. "Categories") to include in API
  5092  	// requests with the JSON null value. By default, fields with empty values are
  5093  	// omitted from API requests. See
  5094  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5095  	NullFields []string `json:"-"`
  5096  }
  5097  
  5098  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes) MarshalJSON() ([]byte, error) {
  5099  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
  5100  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5101  }
  5102  
  5103  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes) UnmarshalJSON(data []byte) error {
  5104  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
  5105  	var s1 struct {
  5106  		Scores []gensupport.JSONFloat64 `json:"scores"`
  5107  		*NoMethod
  5108  	}
  5109  	s1.NoMethod = (*NoMethod)(s)
  5110  	if err := json.Unmarshal(data, &s1); err != nil {
  5111  		return err
  5112  	}
  5113  	s.Scores = make([]float64, len(s1.Scores))
  5114  	for i := range s1.Scores {
  5115  		s.Scores[i] = float64(s1.Scores[i])
  5116  	}
  5117  	return nil
  5118  }
  5119  
  5120  // GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata:
  5121  // Summary with metadata information.
  5122  type GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata struct {
  5123  	// CitationMetadata: Citation metadata for given summary.
  5124  	CitationMetadata *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata `json:"citationMetadata,omitempty"`
  5125  	// References: Document References.
  5126  	References []*GoogleCloudDiscoveryengineV1SearchResponseSummaryReference `json:"references,omitempty"`
  5127  	// Summary: Summary text with no citation information.
  5128  	Summary string `json:"summary,omitempty"`
  5129  	// ForceSendFields is a list of field names (e.g. "CitationMetadata") to
  5130  	// unconditionally include in API requests. By default, fields with empty or
  5131  	// default values are omitted from API requests. See
  5132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5133  	// details.
  5134  	ForceSendFields []string `json:"-"`
  5135  	// NullFields is a list of field names (e.g. "CitationMetadata") to include in
  5136  	// API requests with the JSON null value. By default, fields with empty values
  5137  	// are omitted from API requests. See
  5138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5139  	NullFields []string `json:"-"`
  5140  }
  5141  
  5142  func (s *GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata) MarshalJSON() ([]byte, error) {
  5143  	type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata
  5144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5145  }
  5146  
  5147  // GoogleCloudDiscoveryengineV1SiteSearchEngine: SiteSearchEngine captures
  5148  // DataStore level site search persisting configurations. It is a singleton
  5149  // value per data store.
  5150  type GoogleCloudDiscoveryengineV1SiteSearchEngine struct {
  5151  	// Name: The fully qualified resource name of the site search engine. Format:
  5152  	// `projects/*/locations/*/dataStores/*/siteSearchEngine`
  5153  	Name string `json:"name,omitempty"`
  5154  
  5155  	// ServerResponse contains the HTTP response code and headers from the server.
  5156  	googleapi.ServerResponse `json:"-"`
  5157  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  5158  	// include in API requests. By default, fields with empty or default values are
  5159  	// omitted from API requests. See
  5160  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5161  	// details.
  5162  	ForceSendFields []string `json:"-"`
  5163  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  5164  	// with the JSON null value. By default, fields with empty values are omitted
  5165  	// from API requests. See
  5166  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5167  	NullFields []string `json:"-"`
  5168  }
  5169  
  5170  func (s *GoogleCloudDiscoveryengineV1SiteSearchEngine) MarshalJSON() ([]byte, error) {
  5171  	type NoMethod GoogleCloudDiscoveryengineV1SiteSearchEngine
  5172  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5173  }
  5174  
  5175  // GoogleCloudDiscoveryengineV1SiteVerificationInfo: Verification information
  5176  // for target sites in advanced site search.
  5177  type GoogleCloudDiscoveryengineV1SiteVerificationInfo struct {
  5178  	// SiteVerificationState: Site verification state indicating the ownership and
  5179  	// validity.
  5180  	//
  5181  	// Possible values:
  5182  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
  5183  	//   "VERIFIED" - Site ownership verified.
  5184  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
  5185  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
  5186  	// opens to all.
  5187  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
  5188  	// VerifyTime: Latest site verification time.
  5189  	VerifyTime string `json:"verifyTime,omitempty"`
  5190  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
  5191  	// unconditionally include in API requests. By default, fields with empty or
  5192  	// default values are omitted from API requests. See
  5193  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5194  	// details.
  5195  	ForceSendFields []string `json:"-"`
  5196  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
  5197  	// include in API requests with the JSON null value. By default, fields with
  5198  	// empty values are omitted from API requests. See
  5199  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5200  	NullFields []string `json:"-"`
  5201  }
  5202  
  5203  func (s *GoogleCloudDiscoveryengineV1SiteVerificationInfo) MarshalJSON() ([]byte, error) {
  5204  	type NoMethod GoogleCloudDiscoveryengineV1SiteVerificationInfo
  5205  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5206  }
  5207  
  5208  // GoogleCloudDiscoveryengineV1SpannerSource: The Spanner source for importing
  5209  // data
  5210  type GoogleCloudDiscoveryengineV1SpannerSource struct {
  5211  	// DatabaseId: Required. The database ID of the source Spanner table.
  5212  	DatabaseId string `json:"databaseId,omitempty"`
  5213  	// EnableDataBoost: Whether to apply data boost on Spanner export. Enabling
  5214  	// this option will incur additional cost. More info can be found here
  5215  	// (https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
  5216  	EnableDataBoost bool `json:"enableDataBoost,omitempty"`
  5217  	// InstanceId: Required. The instance ID of the source Spanner table.
  5218  	InstanceId string `json:"instanceId,omitempty"`
  5219  	// ProjectId: The project ID that the Spanner source is in with a length limit
  5220  	// of 128 characters. If not specified, inherits the project ID from the parent
  5221  	// request.
  5222  	ProjectId string `json:"projectId,omitempty"`
  5223  	// TableId: Required. The table name of the Spanner database that needs to be
  5224  	// imported.
  5225  	TableId string `json:"tableId,omitempty"`
  5226  	// ForceSendFields is a list of field names (e.g. "DatabaseId") to
  5227  	// unconditionally include in API requests. By default, fields with empty or
  5228  	// default values are omitted from API requests. See
  5229  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5230  	// details.
  5231  	ForceSendFields []string `json:"-"`
  5232  	// NullFields is a list of field names (e.g. "DatabaseId") to include in API
  5233  	// requests with the JSON null value. By default, fields with empty values are
  5234  	// omitted from API requests. See
  5235  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5236  	NullFields []string `json:"-"`
  5237  }
  5238  
  5239  func (s *GoogleCloudDiscoveryengineV1SpannerSource) MarshalJSON() ([]byte, error) {
  5240  	type NoMethod GoogleCloudDiscoveryengineV1SpannerSource
  5241  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5242  }
  5243  
  5244  // GoogleCloudDiscoveryengineV1SuggestionDenyListEntry: Suggestion deny list
  5245  // entry identifying the phrase to block from suggestions and the applied
  5246  // operation for the phrase.
  5247  type GoogleCloudDiscoveryengineV1SuggestionDenyListEntry struct {
  5248  	// BlockPhrase: Required. Phrase to block from suggestions served. Can be
  5249  	// maximum 125 characters.
  5250  	BlockPhrase string `json:"blockPhrase,omitempty"`
  5251  	// MatchOperator: Required. The match operator to apply for this phrase.
  5252  	// Whether to block the exact phrase, or block any suggestions containing this
  5253  	// phrase.
  5254  	//
  5255  	// Possible values:
  5256  	//   "MATCH_OPERATOR_UNSPECIFIED" - Default value. Should not be used
  5257  	//   "EXACT_MATCH" - If the suggestion is an exact match to the block_phrase,
  5258  	// then block it.
  5259  	//   "CONTAINS" - If the suggestion contains the block_phrase, then block it.
  5260  	MatchOperator string `json:"matchOperator,omitempty"`
  5261  	// ForceSendFields is a list of field names (e.g. "BlockPhrase") to
  5262  	// unconditionally include in API requests. By default, fields with empty or
  5263  	// default values are omitted from API requests. See
  5264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5265  	// details.
  5266  	ForceSendFields []string `json:"-"`
  5267  	// NullFields is a list of field names (e.g. "BlockPhrase") to include in API
  5268  	// requests with the JSON null value. By default, fields with empty values are
  5269  	// omitted from API requests. See
  5270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5271  	NullFields []string `json:"-"`
  5272  }
  5273  
  5274  func (s *GoogleCloudDiscoveryengineV1SuggestionDenyListEntry) MarshalJSON() ([]byte, error) {
  5275  	type NoMethod GoogleCloudDiscoveryengineV1SuggestionDenyListEntry
  5276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5277  }
  5278  
  5279  // GoogleCloudDiscoveryengineV1TargetSite: A target site for the
  5280  // SiteSearchEngine.
  5281  type GoogleCloudDiscoveryengineV1TargetSite struct {
  5282  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
  5283  	// include all pages whose address contains the provided_uri_pattern. If set to
  5284  	// true, an uri_pattern is generated to try to be an exact match of the
  5285  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
  5286  	// is a specific one. provided_uri_pattern is always normalized to generate the
  5287  	// URI pattern to be used by the search engine.
  5288  	ExactMatch bool `json:"exactMatch,omitempty"`
  5289  	// FailureReason: Output only. Failure reason.
  5290  	FailureReason *GoogleCloudDiscoveryengineV1TargetSiteFailureReason `json:"failureReason,omitempty"`
  5291  	// GeneratedUriPattern: Output only. This is system-generated based on the
  5292  	// provided_uri_pattern.
  5293  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
  5294  	// IndexingStatus: Output only. Indexing status.
  5295  	//
  5296  	// Possible values:
  5297  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
  5298  	//   "PENDING" - The target site is in the update queue and will be picked up
  5299  	// by indexing pipeline.
  5300  	//   "FAILED" - The target site fails to be indexed.
  5301  	//   "SUCCEEDED" - The target site has been indexed.
  5302  	//   "DELETING" - The previously indexed target site has been marked to be
  5303  	// deleted. This is a transitioning state which will resulted in either: 1.
  5304  	// target site deleted if unindexing is successful; 2. state reverts to
  5305  	// SUCCEEDED if the unindexing fails.
  5306  	IndexingStatus string `json:"indexingStatus,omitempty"`
  5307  	// Name: Output only. The fully qualified resource name of the target site.
  5308  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  5309  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
  5310  	// `target_site_id` is system-generated.
  5311  	Name string `json:"name,omitempty"`
  5312  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
  5313  	// which the `generated_uri_pattern` is generated.
  5314  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  5315  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
  5316  	RootDomainUri string `json:"rootDomainUri,omitempty"`
  5317  	// SiteVerificationInfo: Output only. Site ownership and validity verification
  5318  	// status.
  5319  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1SiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
  5320  	// Type: The type of the target site, e.g., whether the site is to be included
  5321  	// or excluded.
  5322  	//
  5323  	// Possible values:
  5324  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
  5325  	// defaults to Type.INCLUDE.
  5326  	//   "INCLUDE" - Include the target site.
  5327  	//   "EXCLUDE" - Exclude the target site.
  5328  	Type string `json:"type,omitempty"`
  5329  	// UpdateTime: Output only. The target site's last updated time.
  5330  	UpdateTime string `json:"updateTime,omitempty"`
  5331  
  5332  	// ServerResponse contains the HTTP response code and headers from the server.
  5333  	googleapi.ServerResponse `json:"-"`
  5334  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  5335  	// unconditionally include in API requests. By default, fields with empty or
  5336  	// default values are omitted from API requests. See
  5337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5338  	// details.
  5339  	ForceSendFields []string `json:"-"`
  5340  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  5341  	// requests with the JSON null value. By default, fields with empty values are
  5342  	// omitted from API requests. See
  5343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5344  	NullFields []string `json:"-"`
  5345  }
  5346  
  5347  func (s *GoogleCloudDiscoveryengineV1TargetSite) MarshalJSON() ([]byte, error) {
  5348  	type NoMethod GoogleCloudDiscoveryengineV1TargetSite
  5349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5350  }
  5351  
  5352  // GoogleCloudDiscoveryengineV1TargetSiteFailureReason: Site search indexing
  5353  // failure reasons.
  5354  type GoogleCloudDiscoveryengineV1TargetSiteFailureReason struct {
  5355  	// QuotaFailure: Failed due to insufficient quota.
  5356  	QuotaFailure *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
  5357  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
  5358  	// unconditionally include in API requests. By default, fields with empty or
  5359  	// default values are omitted from API requests. See
  5360  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5361  	// details.
  5362  	ForceSendFields []string `json:"-"`
  5363  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
  5364  	// requests with the JSON null value. By default, fields with empty values are
  5365  	// omitted from API requests. See
  5366  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5367  	NullFields []string `json:"-"`
  5368  }
  5369  
  5370  func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReason) MarshalJSON() ([]byte, error) {
  5371  	type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReason
  5372  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5373  }
  5374  
  5375  // GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure: Failed due
  5376  // to insufficient quota.
  5377  type GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure struct {
  5378  	// TotalRequiredQuota: This number is an estimation on how much total quota
  5379  	// this project needs to successfully complete indexing.
  5380  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
  5381  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
  5382  	// unconditionally include in API requests. By default, fields with empty or
  5383  	// default values are omitted from API requests. See
  5384  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5385  	// details.
  5386  	ForceSendFields []string `json:"-"`
  5387  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
  5388  	// in API requests with the JSON null value. By default, fields with empty
  5389  	// values are omitted from API requests. See
  5390  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5391  	NullFields []string `json:"-"`
  5392  }
  5393  
  5394  func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
  5395  	type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure
  5396  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5397  }
  5398  
  5399  // GoogleCloudDiscoveryengineV1TextInput: Defines text input.
  5400  type GoogleCloudDiscoveryengineV1TextInput struct {
  5401  	// Context: Conversation context of the input.
  5402  	Context *GoogleCloudDiscoveryengineV1ConversationContext `json:"context,omitempty"`
  5403  	// Input: Text input.
  5404  	Input string `json:"input,omitempty"`
  5405  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
  5406  	// include in API requests. By default, fields with empty or default values are
  5407  	// omitted from API requests. See
  5408  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5409  	// details.
  5410  	ForceSendFields []string `json:"-"`
  5411  	// NullFields is a list of field names (e.g. "Context") to include in API
  5412  	// requests with the JSON null value. By default, fields with empty values are
  5413  	// omitted from API requests. See
  5414  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5415  	NullFields []string `json:"-"`
  5416  }
  5417  
  5418  func (s *GoogleCloudDiscoveryengineV1TextInput) MarshalJSON() ([]byte, error) {
  5419  	type NoMethod GoogleCloudDiscoveryengineV1TextInput
  5420  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5421  }
  5422  
  5423  // GoogleCloudDiscoveryengineV1TransactionInfo: A transaction represents the
  5424  // entire purchase transaction.
  5425  type GoogleCloudDiscoveryengineV1TransactionInfo struct {
  5426  	// Cost: All the costs associated with the products. These can be manufacturing
  5427  	// costs, shipping expenses not borne by the end user, or any other costs, such
  5428  	// that: * Profit = value - tax - cost
  5429  	Cost float64 `json:"cost,omitempty"`
  5430  	// Currency: Required. Currency code. Use three-character ISO-4217 code.
  5431  	Currency string `json:"currency,omitempty"`
  5432  	// DiscountValue: The total discount(s) value applied to this transaction. This
  5433  	// figure should be excluded from TransactionInfo.value For example, if a user
  5434  	// paid TransactionInfo.value amount, then nominal (pre-discount) value of the
  5435  	// transaction is the sum of TransactionInfo.value and
  5436  	// TransactionInfo.discount_value This means that profit is calculated the same
  5437  	// way, regardless of the discount value, and that
  5438  	// TransactionInfo.discount_value can be larger than TransactionInfo.value: *
  5439  	// Profit = value - tax - cost
  5440  	DiscountValue float64 `json:"discountValue,omitempty"`
  5441  	// Tax: All the taxes associated with the transaction.
  5442  	Tax float64 `json:"tax,omitempty"`
  5443  	// TransactionId: The transaction ID with a length limit of 128 characters.
  5444  	TransactionId string `json:"transactionId,omitempty"`
  5445  	// Value: Required. Total non-zero value associated with the transaction. This
  5446  	// value may include shipping, tax, or other adjustments to the total value
  5447  	// that you want to include.
  5448  	Value float64 `json:"value,omitempty"`
  5449  	// ForceSendFields is a list of field names (e.g. "Cost") to unconditionally
  5450  	// include in API requests. By default, fields with empty or default values are
  5451  	// omitted from API requests. See
  5452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5453  	// details.
  5454  	ForceSendFields []string `json:"-"`
  5455  	// NullFields is a list of field names (e.g. "Cost") to include in API requests
  5456  	// with the JSON null value. By default, fields with empty values are omitted
  5457  	// from API requests. See
  5458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5459  	NullFields []string `json:"-"`
  5460  }
  5461  
  5462  func (s *GoogleCloudDiscoveryengineV1TransactionInfo) MarshalJSON() ([]byte, error) {
  5463  	type NoMethod GoogleCloudDiscoveryengineV1TransactionInfo
  5464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5465  }
  5466  
  5467  func (s *GoogleCloudDiscoveryengineV1TransactionInfo) UnmarshalJSON(data []byte) error {
  5468  	type NoMethod GoogleCloudDiscoveryengineV1TransactionInfo
  5469  	var s1 struct {
  5470  		Cost          gensupport.JSONFloat64 `json:"cost"`
  5471  		DiscountValue gensupport.JSONFloat64 `json:"discountValue"`
  5472  		Tax           gensupport.JSONFloat64 `json:"tax"`
  5473  		Value         gensupport.JSONFloat64 `json:"value"`
  5474  		*NoMethod
  5475  	}
  5476  	s1.NoMethod = (*NoMethod)(s)
  5477  	if err := json.Unmarshal(data, &s1); err != nil {
  5478  		return err
  5479  	}
  5480  	s.Cost = float64(s1.Cost)
  5481  	s.DiscountValue = float64(s1.DiscountValue)
  5482  	s.Tax = float64(s1.Tax)
  5483  	s.Value = float64(s1.Value)
  5484  	return nil
  5485  }
  5486  
  5487  // GoogleCloudDiscoveryengineV1UpdateSchemaMetadata: Metadata for UpdateSchema
  5488  // LRO.
  5489  type GoogleCloudDiscoveryengineV1UpdateSchemaMetadata struct {
  5490  	// CreateTime: Operation create time.
  5491  	CreateTime string `json:"createTime,omitempty"`
  5492  	// UpdateTime: Operation last update time. If the operation is done, this is
  5493  	// also the finish time.
  5494  	UpdateTime string `json:"updateTime,omitempty"`
  5495  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5496  	// unconditionally include in API requests. By default, fields with empty or
  5497  	// default values are omitted from API requests. See
  5498  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5499  	// details.
  5500  	ForceSendFields []string `json:"-"`
  5501  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5502  	// requests with the JSON null value. By default, fields with empty values are
  5503  	// omitted from API requests. See
  5504  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5505  	NullFields []string `json:"-"`
  5506  }
  5507  
  5508  func (s *GoogleCloudDiscoveryengineV1UpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
  5509  	type NoMethod GoogleCloudDiscoveryengineV1UpdateSchemaMetadata
  5510  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5511  }
  5512  
  5513  // GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata: Metadata related to
  5514  // the progress of the SiteSearchEngineService.UpdateTargetSite operation. This
  5515  // will be returned by the google.longrunning.Operation.metadata field.
  5516  type GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata struct {
  5517  	// CreateTime: Operation create time.
  5518  	CreateTime string `json:"createTime,omitempty"`
  5519  	// UpdateTime: Operation last update time. If the operation is done, this is
  5520  	// also the finish time.
  5521  	UpdateTime string `json:"updateTime,omitempty"`
  5522  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5523  	// unconditionally include in API requests. By default, fields with empty or
  5524  	// default values are omitted from API requests. See
  5525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5526  	// details.
  5527  	ForceSendFields []string `json:"-"`
  5528  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5529  	// requests with the JSON null value. By default, fields with empty values are
  5530  	// omitted from API requests. See
  5531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5532  	NullFields []string `json:"-"`
  5533  }
  5534  
  5535  func (s *GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  5536  	type NoMethod GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata
  5537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5538  }
  5539  
  5540  // GoogleCloudDiscoveryengineV1UserEvent: UserEvent captures all metadata
  5541  // information Discovery Engine API needs to know about how end users interact
  5542  // with customers' website.
  5543  type GoogleCloudDiscoveryengineV1UserEvent struct {
  5544  	// Attributes: Extra user event features to include in the recommendation
  5545  	// model. These attributes must NOT contain data that needs to be parsed or
  5546  	// processed further, e.g. JSON or other encodings. If you provide custom
  5547  	// attributes for ingested user events, also include them in the user events
  5548  	// that you associate with prediction requests. Custom attribute formatting
  5549  	// must be consistent between imported events and events provided with
  5550  	// prediction requests. This lets the Discovery Engine API use those custom
  5551  	// attributes when training models and serving predictions, which helps improve
  5552  	// recommendation quality. This field needs to pass all below criteria,
  5553  	// otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8
  5554  	// encoded string with a length limit of 5,000 characters. * For text
  5555  	// attributes, at most 400 values are allowed. Empty values are not allowed.
  5556  	// Each value must be a UTF-8 encoded string with a length limit of 256
  5557  	// characters. * For number attributes, at most 400 values are allowed. For
  5558  	// product recommendations, an example of extra user information is
  5559  	// `traffic_channel`, which is how a user arrives at the site. Users can arrive
  5560  	// at the site by coming to the site directly, coming through Google search, or
  5561  	// in other ways.
  5562  	Attributes map[string]GoogleCloudDiscoveryengineV1CustomAttribute `json:"attributes,omitempty"`
  5563  	// AttributionToken: Token to attribute an API response to user action(s) to
  5564  	// trigger the event. Highly recommended for user events that are the result of
  5565  	// RecommendationService.Recommend. This field enables accurate attribution of
  5566  	// recommendation model performance. The value must be one of: *
  5567  	// RecommendResponse.attribution_token for events that are the result of
  5568  	// RecommendationService.Recommend. * SearchResponse.attribution_token for
  5569  	// events that are the result of SearchService.Search. This token enables us to
  5570  	// accurately attribute page view or conversion completion back to the event
  5571  	// and the particular predict response containing this clicked/purchased
  5572  	// product. If user clicks on product K in the recommendation results, pass
  5573  	// RecommendResponse.attribution_token as a URL parameter to product K's page.
  5574  	// When recording events on product K's page, log the
  5575  	// RecommendResponse.attribution_token to this field.
  5576  	AttributionToken string `json:"attributionToken,omitempty"`
  5577  	// CompletionInfo: CompletionService.CompleteQuery details related to the
  5578  	// event. This field should be set for `search` event when autocomplete
  5579  	// function is enabled and the user clicks a suggestion for search.
  5580  	CompletionInfo *GoogleCloudDiscoveryengineV1CompletionInfo `json:"completionInfo,omitempty"`
  5581  	// DirectUserRequest: Should set to true if the request is made directly from
  5582  	// the end user, in which case the UserEvent.user_info.user_agent can be
  5583  	// populated from the HTTP request. This flag should be set only if the API
  5584  	// request is made directly from the end user such as a mobile app (and not if
  5585  	// a gateway or a server is processing and pushing the user events). This
  5586  	// should not be set when using the JavaScript tag in
  5587  	// UserEventService.CollectUserEvent.
  5588  	DirectUserRequest bool `json:"directUserRequest,omitempty"`
  5589  	// Documents: List of Documents associated with this user event. This field is
  5590  	// optional except for the following event types: * `view-item` * `add-to-cart`
  5591  	// * `purchase` * `media-play` * `media-complete` In a `search` event, this
  5592  	// field represents the documents returned to the end user on the current page
  5593  	// (the end user may have not finished browsing the whole page yet). When a new
  5594  	// page is returned to the end user, after pagination/filtering/ordering even
  5595  	// for the same query, a new `search` event with different UserEvent.documents
  5596  	// is desired.
  5597  	Documents []*GoogleCloudDiscoveryengineV1DocumentInfo `json:"documents,omitempty"`
  5598  	// EventTime: Only required for UserEventService.ImportUserEvents method.
  5599  	// Timestamp of when the user event happened.
  5600  	EventTime string `json:"eventTime,omitempty"`
  5601  	// EventType: Required. User event type. Allowed values are: Generic values: *
  5602  	// `search`: Search for Documents. * `view-item`: Detailed page view of a
  5603  	// Document. * `view-item-list`: View of a panel or ordered list of Documents.
  5604  	// * `view-home-page`: View of the home page. * `view-category-page`: View of a
  5605  	// category page, e.g. Home > Men > Jeans Retail-related values: *
  5606  	// `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping *
  5607  	// `purchase`: Purchase an item(s) Media-related values: * `media-play`:
  5608  	// Start/resume watching a video, playing a song, etc. * `media-complete`:
  5609  	// Finished or stopped midway through a video, song, etc.
  5610  	EventType string `json:"eventType,omitempty"`
  5611  	// Filter: The filter syntax consists of an expression language for
  5612  	// constructing a predicate from one or more fields of the documents being
  5613  	// filtered. One example is for `search` events, the associated SearchRequest
  5614  	// may contain a filter expression in SearchRequest.filter conforming to
  5615  	// https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events
  5616  	// that are generated from a RecommendRequest, this field may be populated
  5617  	// directly from RecommendRequest.filter conforming to
  5618  	// https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded
  5619  	// string with a length limit of 1,000 characters. Otherwise, an
  5620  	// `INVALID_ARGUMENT` error is returned.
  5621  	Filter string `json:"filter,omitempty"`
  5622  	// MediaInfo: Media-specific info.
  5623  	MediaInfo *GoogleCloudDiscoveryengineV1MediaInfo `json:"mediaInfo,omitempty"`
  5624  	// PageInfo: Page metadata such as categories and other critical information
  5625  	// for certain event types such as `view-category-page`.
  5626  	PageInfo *GoogleCloudDiscoveryengineV1PageInfo `json:"pageInfo,omitempty"`
  5627  	// Panel: Panel metadata associated with this user event.
  5628  	Panel *GoogleCloudDiscoveryengineV1PanelInfo `json:"panel,omitempty"`
  5629  	// PromotionIds: The promotion IDs if this is an event associated with
  5630  	// promotions. Currently, this field is restricted to at most one ID.
  5631  	PromotionIds []string `json:"promotionIds,omitempty"`
  5632  	// SearchInfo: SearchService.Search details related to the event. This field
  5633  	// should be set for `search` event.
  5634  	SearchInfo *GoogleCloudDiscoveryengineV1SearchInfo `json:"searchInfo,omitempty"`
  5635  	// SessionId: A unique identifier for tracking a visitor session with a length
  5636  	// limit of 128 bytes. A session is an aggregation of an end user behavior in a
  5637  	// time span. A general guideline to populate the session_id: 1. If user has no
  5638  	// activity for 30 min, a new session_id should be assigned. 2. The session_id
  5639  	// should be unique across users, suggest use uuid or add
  5640  	// UserEvent.user_pseudo_id as prefix.
  5641  	SessionId string `json:"sessionId,omitempty"`
  5642  	// TagIds: A list of identifiers for the independent experiment groups this
  5643  	// user event belongs to. This is used to distinguish between user events
  5644  	// associated with different experiment setups on the customer end.
  5645  	TagIds []string `json:"tagIds,omitempty"`
  5646  	// TransactionInfo: The transaction metadata (if any) associated with this user
  5647  	// event.
  5648  	TransactionInfo *GoogleCloudDiscoveryengineV1TransactionInfo `json:"transactionInfo,omitempty"`
  5649  	// UserInfo: Information about the end user.
  5650  	UserInfo *GoogleCloudDiscoveryengineV1UserInfo `json:"userInfo,omitempty"`
  5651  	// UserPseudoId: Required. A unique identifier for tracking visitors. For
  5652  	// example, this could be implemented with an HTTP cookie, which should be able
  5653  	// to uniquely identify a visitor on a single device. This unique identifier
  5654  	// should not change if the visitor log in/out of the website. Do not set the
  5655  	// field to the same fixed ID for different users. This mixes the event history
  5656  	// of those users together, which results in degraded model quality. The field
  5657  	// must be a UTF-8 encoded string with a length limit of 128 characters.
  5658  	// Otherwise, an `INVALID_ARGUMENT` error is returned. The field should not
  5659  	// contain PII or user-data. We recommend to use Google Analytics Client ID
  5660  	// (https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
  5661  	// for this field.
  5662  	UserPseudoId string `json:"userPseudoId,omitempty"`
  5663  
  5664  	// ServerResponse contains the HTTP response code and headers from the server.
  5665  	googleapi.ServerResponse `json:"-"`
  5666  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  5667  	// unconditionally include in API requests. By default, fields with empty or
  5668  	// default values are omitted from API requests. See
  5669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5670  	// details.
  5671  	ForceSendFields []string `json:"-"`
  5672  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  5673  	// requests with the JSON null value. By default, fields with empty values are
  5674  	// omitted from API requests. See
  5675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5676  	NullFields []string `json:"-"`
  5677  }
  5678  
  5679  func (s *GoogleCloudDiscoveryengineV1UserEvent) MarshalJSON() ([]byte, error) {
  5680  	type NoMethod GoogleCloudDiscoveryengineV1UserEvent
  5681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5682  }
  5683  
  5684  // GoogleCloudDiscoveryengineV1UserInfo: Information of an end user.
  5685  type GoogleCloudDiscoveryengineV1UserInfo struct {
  5686  	// UserAgent: User agent as included in the HTTP header. The field must be a
  5687  	// UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an
  5688  	// `INVALID_ARGUMENT` error is returned. This should not be set when using the
  5689  	// client side event reporting with GTM or JavaScript tag in
  5690  	// UserEventService.CollectUserEvent or if UserEvent.direct_user_request is
  5691  	// set.
  5692  	UserAgent string `json:"userAgent,omitempty"`
  5693  	// UserId: Highly recommended for logged-in users. Unique identifier for
  5694  	// logged-in user, such as a user name. Don't set for anonymous users. Always
  5695  	// use a hashed value for this ID. Don't set the field to the same fixed ID for
  5696  	// different users. This mixes the event history of those users together, which
  5697  	// results in degraded model quality. The field must be a UTF-8 encoded string
  5698  	// with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT`
  5699  	// error is returned.
  5700  	UserId string `json:"userId,omitempty"`
  5701  	// ForceSendFields is a list of field names (e.g. "UserAgent") to
  5702  	// unconditionally include in API requests. By default, fields with empty or
  5703  	// default values are omitted from API requests. See
  5704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5705  	// details.
  5706  	ForceSendFields []string `json:"-"`
  5707  	// NullFields is a list of field names (e.g. "UserAgent") to include in API
  5708  	// requests with the JSON null value. By default, fields with empty values are
  5709  	// omitted from API requests. See
  5710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5711  	NullFields []string `json:"-"`
  5712  }
  5713  
  5714  func (s *GoogleCloudDiscoveryengineV1UserInfo) MarshalJSON() ([]byte, error) {
  5715  	type NoMethod GoogleCloudDiscoveryengineV1UserInfo
  5716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5717  }
  5718  
  5719  // GoogleCloudDiscoveryengineV1alphaAclConfig: Access Control Configuration.
  5720  type GoogleCloudDiscoveryengineV1alphaAclConfig struct {
  5721  	// IdpConfig: Identity provider config.
  5722  	IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
  5723  	// Name: Immutable. The full resource name of the acl configuration. Format:
  5724  	// `projects/{project}/locations/{location}/aclConfig`. This field must be a
  5725  	// UTF-8 encoded string with a length limit of 1024 characters.
  5726  	Name string `json:"name,omitempty"`
  5727  	// ForceSendFields is a list of field names (e.g. "IdpConfig") to
  5728  	// unconditionally include in API requests. By default, fields with empty or
  5729  	// default values are omitted from API requests. See
  5730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5731  	// details.
  5732  	ForceSendFields []string `json:"-"`
  5733  	// NullFields is a list of field names (e.g. "IdpConfig") to include in API
  5734  	// requests with the JSON null value. By default, fields with empty values are
  5735  	// omitted from API requests. See
  5736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5737  	NullFields []string `json:"-"`
  5738  }
  5739  
  5740  func (s *GoogleCloudDiscoveryengineV1alphaAclConfig) MarshalJSON() ([]byte, error) {
  5741  	type NoMethod GoogleCloudDiscoveryengineV1alphaAclConfig
  5742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5743  }
  5744  
  5745  // GoogleCloudDiscoveryengineV1alphaAnswer: Defines an answer.
  5746  type GoogleCloudDiscoveryengineV1alphaAnswer struct {
  5747  	// AnswerSkippedReasons: Additional answer-skipped reasons. This provides the
  5748  	// reason for ignored cases. If nothing is skipped, this field is not set.
  5749  	//
  5750  	// Possible values:
  5751  	//   "ANSWER_SKIPPED_REASON_UNSPECIFIED" - Default value. The answer skipped
  5752  	// reason is not specified.
  5753  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case.
  5754  	//   "NON_ANSWER_SEEKING_QUERY_IGNORED" - The non-answer seeking query ignored
  5755  	// case.
  5756  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
  5757  	// Google skips the answer if there are no high-relevance search results.
  5758  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
  5759  	// skips the answer if there is a potential policy violation detected. This
  5760  	// includes content that may be violent or toxic.
  5761  	AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
  5762  	// AnswerText: The textual answer.
  5763  	AnswerText string `json:"answerText,omitempty"`
  5764  	// Citations: Citations.
  5765  	Citations []*GoogleCloudDiscoveryengineV1alphaAnswerCitation `json:"citations,omitempty"`
  5766  	// CompleteTime: Output only. Answer completed timestamp.
  5767  	CompleteTime string `json:"completeTime,omitempty"`
  5768  	// CreateTime: Output only. Answer creation timestamp.
  5769  	CreateTime string `json:"createTime,omitempty"`
  5770  	// Name: Immutable. Fully qualified name
  5771  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
  5772  	// }/sessions/*/answers/*`
  5773  	Name string `json:"name,omitempty"`
  5774  	// QueryUnderstandingInfo: Query understanding information.
  5775  	QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
  5776  	// References: References.
  5777  	References []*GoogleCloudDiscoveryengineV1alphaAnswerReference `json:"references,omitempty"`
  5778  	// RelatedQuestions: Suggested related questions.
  5779  	RelatedQuestions []string `json:"relatedQuestions,omitempty"`
  5780  	// State: The state of the answer generation.
  5781  	//
  5782  	// Possible values:
  5783  	//   "STATE_UNSPECIFIED" - Unknown.
  5784  	//   "IN_PROGRESS" - Answer generation is currently in progress.
  5785  	//   "FAILED" - Answer generation currently failed.
  5786  	//   "SUCCEEDED" - Answer generation has succeeded.
  5787  	State string `json:"state,omitempty"`
  5788  	// Steps: Answer generation steps.
  5789  	Steps []*GoogleCloudDiscoveryengineV1alphaAnswerStep `json:"steps,omitempty"`
  5790  	// ForceSendFields is a list of field names (e.g. "AnswerSkippedReasons") to
  5791  	// unconditionally include in API requests. By default, fields with empty or
  5792  	// default values are omitted from API requests. See
  5793  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5794  	// details.
  5795  	ForceSendFields []string `json:"-"`
  5796  	// NullFields is a list of field names (e.g. "AnswerSkippedReasons") to include
  5797  	// in API requests with the JSON null value. By default, fields with empty
  5798  	// values are omitted from API requests. See
  5799  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5800  	NullFields []string `json:"-"`
  5801  }
  5802  
  5803  func (s *GoogleCloudDiscoveryengineV1alphaAnswer) MarshalJSON() ([]byte, error) {
  5804  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswer
  5805  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5806  }
  5807  
  5808  // GoogleCloudDiscoveryengineV1alphaAnswerCitation: Citation info for a
  5809  // segment.
  5810  type GoogleCloudDiscoveryengineV1alphaAnswerCitation struct {
  5811  	// EndIndex: End of the attributed segment, exclusive.
  5812  	EndIndex int64 `json:"endIndex,omitempty,string"`
  5813  	// Sources: Citation sources for the attributed segment.
  5814  	Sources []*GoogleCloudDiscoveryengineV1alphaAnswerCitationSource `json:"sources,omitempty"`
  5815  	// StartIndex: Index indicates the start of the segment, measured in bytes
  5816  	// (UTF-8 unicode).
  5817  	StartIndex int64 `json:"startIndex,omitempty,string"`
  5818  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  5819  	// unconditionally include in API requests. By default, fields with empty or
  5820  	// default values are omitted from API requests. See
  5821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5822  	// details.
  5823  	ForceSendFields []string `json:"-"`
  5824  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  5825  	// requests with the JSON null value. By default, fields with empty values are
  5826  	// omitted from API requests. See
  5827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5828  	NullFields []string `json:"-"`
  5829  }
  5830  
  5831  func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitation) MarshalJSON() ([]byte, error) {
  5832  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitation
  5833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5834  }
  5835  
  5836  // GoogleCloudDiscoveryengineV1alphaAnswerCitationSource: Citation source.
  5837  type GoogleCloudDiscoveryengineV1alphaAnswerCitationSource struct {
  5838  	// ReferenceId: ID of the citation source.
  5839  	ReferenceId string `json:"referenceId,omitempty"`
  5840  	// ForceSendFields is a list of field names (e.g. "ReferenceId") to
  5841  	// unconditionally include in API requests. By default, fields with empty or
  5842  	// default values are omitted from API requests. See
  5843  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5844  	// details.
  5845  	ForceSendFields []string `json:"-"`
  5846  	// NullFields is a list of field names (e.g. "ReferenceId") to include in API
  5847  	// requests with the JSON null value. By default, fields with empty values are
  5848  	// omitted from API requests. See
  5849  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5850  	NullFields []string `json:"-"`
  5851  }
  5852  
  5853  func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([]byte, error) {
  5854  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitationSource
  5855  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5856  }
  5857  
  5858  // GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo: Query
  5859  // understanding information.
  5860  type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo struct {
  5861  	// QueryClassificationInfo: Query classification information.
  5862  	QueryClassificationInfo []*GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
  5863  	// ForceSendFields is a list of field names (e.g. "QueryClassificationInfo") to
  5864  	// unconditionally include in API requests. By default, fields with empty or
  5865  	// default values are omitted from API requests. See
  5866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5867  	// details.
  5868  	ForceSendFields []string `json:"-"`
  5869  	// NullFields is a list of field names (e.g. "QueryClassificationInfo") to
  5870  	// include in API requests with the JSON null value. By default, fields with
  5871  	// empty values are omitted from API requests. See
  5872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5873  	NullFields []string `json:"-"`
  5874  }
  5875  
  5876  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
  5877  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
  5878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5879  }
  5880  
  5881  // GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificat
  5882  // ionInfo: Query classification information.
  5883  type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
  5884  	// Positive: Classification output.
  5885  	Positive bool `json:"positive,omitempty"`
  5886  	// Type: Query classification type.
  5887  	//
  5888  	// Possible values:
  5889  	//   "TYPE_UNSPECIFIED" - Unspecified query classification type.
  5890  	//   "ADVERSARIAL_QUERY" - Adversarial query classification type.
  5891  	//   "NON_ANSWER_SEEKING_QUERY" - Non-answer-seeking query classification type.
  5892  	Type string `json:"type,omitempty"`
  5893  	// ForceSendFields is a list of field names (e.g. "Positive") to
  5894  	// unconditionally include in API requests. By default, fields with empty or
  5895  	// default values are omitted from API requests. See
  5896  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5897  	// details.
  5898  	ForceSendFields []string `json:"-"`
  5899  	// NullFields is a list of field names (e.g. "Positive") to include in API
  5900  	// requests with the JSON null value. By default, fields with empty values are
  5901  	// omitted from API requests. See
  5902  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5903  	NullFields []string `json:"-"`
  5904  }
  5905  
  5906  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
  5907  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo
  5908  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5909  }
  5910  
  5911  // GoogleCloudDiscoveryengineV1alphaAnswerReference: Reference.
  5912  type GoogleCloudDiscoveryengineV1alphaAnswerReference struct {
  5913  	// ChunkInfo: Chunk information.
  5914  	ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
  5915  	// UnstructuredDocumentInfo: Unstructured document information.
  5916  	UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
  5917  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  5918  	// unconditionally include in API requests. By default, fields with empty or
  5919  	// default values are omitted from API requests. See
  5920  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5921  	// details.
  5922  	ForceSendFields []string `json:"-"`
  5923  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  5924  	// requests with the JSON null value. By default, fields with empty values are
  5925  	// omitted from API requests. See
  5926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5927  	NullFields []string `json:"-"`
  5928  }
  5929  
  5930  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReference) MarshalJSON() ([]byte, error) {
  5931  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReference
  5932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5933  }
  5934  
  5935  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo: Chunk
  5936  // information.
  5937  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo struct {
  5938  	// Chunk: Chunk resource name.
  5939  	Chunk string `json:"chunk,omitempty"`
  5940  	// Content: Chunk textual content.
  5941  	Content string `json:"content,omitempty"`
  5942  	// DocumentMetadata: Document metadata.
  5943  	DocumentMetadata *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
  5944  	// RelevanceScore: Relevance score.
  5945  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  5946  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  5947  	// include in API requests. By default, fields with empty or default values are
  5948  	// omitted from API requests. See
  5949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5950  	// details.
  5951  	ForceSendFields []string `json:"-"`
  5952  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  5953  	// requests with the JSON null value. By default, fields with empty values are
  5954  	// omitted from API requests. See
  5955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5956  	NullFields []string `json:"-"`
  5957  }
  5958  
  5959  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
  5960  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
  5961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5962  }
  5963  
  5964  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
  5965  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
  5966  	var s1 struct {
  5967  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  5968  		*NoMethod
  5969  	}
  5970  	s1.NoMethod = (*NoMethod)(s)
  5971  	if err := json.Unmarshal(data, &s1); err != nil {
  5972  		return err
  5973  	}
  5974  	s.RelevanceScore = float64(s1.RelevanceScore)
  5975  	return nil
  5976  }
  5977  
  5978  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata:
  5979  // Document metadata.
  5980  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata struct {
  5981  	// Document: Document resource name.
  5982  	Document string `json:"document,omitempty"`
  5983  	// PageIdentifier: Page identifier.
  5984  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  5985  	// Title: Title.
  5986  	Title string `json:"title,omitempty"`
  5987  	// Uri: URI for the document.
  5988  	Uri string `json:"uri,omitempty"`
  5989  	// ForceSendFields is a list of field names (e.g. "Document") to
  5990  	// unconditionally include in API requests. By default, fields with empty or
  5991  	// default values are omitted from API requests. See
  5992  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5993  	// details.
  5994  	ForceSendFields []string `json:"-"`
  5995  	// NullFields is a list of field names (e.g. "Document") to include in API
  5996  	// requests with the JSON null value. By default, fields with empty values are
  5997  	// omitted from API requests. See
  5998  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5999  	NullFields []string `json:"-"`
  6000  }
  6001  
  6002  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
  6003  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata
  6004  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6005  }
  6006  
  6007  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo:
  6008  // Unstructured document information.
  6009  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo struct {
  6010  	// ChunkContents: List of cited chunk contents derived from document content.
  6011  	ChunkContents []*GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
  6012  	// Document: Document resource name.
  6013  	Document string `json:"document,omitempty"`
  6014  	// Title: Title.
  6015  	Title string `json:"title,omitempty"`
  6016  	// Uri: URI for the document.
  6017  	Uri string `json:"uri,omitempty"`
  6018  	// ForceSendFields is a list of field names (e.g. "ChunkContents") to
  6019  	// unconditionally include in API requests. By default, fields with empty or
  6020  	// default values are omitted from API requests. See
  6021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6022  	// details.
  6023  	ForceSendFields []string `json:"-"`
  6024  	// NullFields is a list of field names (e.g. "ChunkContents") to include in API
  6025  	// requests with the JSON null value. By default, fields with empty values are
  6026  	// omitted from API requests. See
  6027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6028  	NullFields []string `json:"-"`
  6029  }
  6030  
  6031  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
  6032  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo
  6033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6034  }
  6035  
  6036  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunk
  6037  // Content: Chunk content.
  6038  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
  6039  	// Content: Chunk textual content.
  6040  	Content string `json:"content,omitempty"`
  6041  	// PageIdentifier: Page identifier.
  6042  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  6043  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  6044  	// include in API requests. By default, fields with empty or default values are
  6045  	// omitted from API requests. See
  6046  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6047  	// details.
  6048  	ForceSendFields []string `json:"-"`
  6049  	// NullFields is a list of field names (e.g. "Content") to include in API
  6050  	// requests with the JSON null value. By default, fields with empty values are
  6051  	// omitted from API requests. See
  6052  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6053  	NullFields []string `json:"-"`
  6054  }
  6055  
  6056  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
  6057  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
  6058  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6059  }
  6060  
  6061  // GoogleCloudDiscoveryengineV1alphaAnswerStep: Step information.
  6062  type GoogleCloudDiscoveryengineV1alphaAnswerStep struct {
  6063  	// Actions: Actions.
  6064  	Actions []*GoogleCloudDiscoveryengineV1alphaAnswerStepAction `json:"actions,omitempty"`
  6065  	// Description: The description of the step.
  6066  	Description string `json:"description,omitempty"`
  6067  	// State: The state of the step.
  6068  	//
  6069  	// Possible values:
  6070  	//   "STATE_UNSPECIFIED" - Unknown.
  6071  	//   "IN_PROGRESS" - Step is currently in progress.
  6072  	//   "FAILED" - Step currently failed.
  6073  	//   "SUCCEEDED" - Step has succeeded.
  6074  	State string `json:"state,omitempty"`
  6075  	// Thought: The thought of the step.
  6076  	Thought string `json:"thought,omitempty"`
  6077  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  6078  	// include in API requests. By default, fields with empty or default values are
  6079  	// omitted from API requests. See
  6080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6081  	// details.
  6082  	ForceSendFields []string `json:"-"`
  6083  	// NullFields is a list of field names (e.g. "Actions") to include in API
  6084  	// requests with the JSON null value. By default, fields with empty values are
  6085  	// omitted from API requests. See
  6086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6087  	NullFields []string `json:"-"`
  6088  }
  6089  
  6090  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStep) MarshalJSON() ([]byte, error) {
  6091  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStep
  6092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6093  }
  6094  
  6095  // GoogleCloudDiscoveryengineV1alphaAnswerStepAction: Action.
  6096  type GoogleCloudDiscoveryengineV1alphaAnswerStepAction struct {
  6097  	// Observation: Observation.
  6098  	Observation *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation `json:"observation,omitempty"`
  6099  	// SearchAction: Search action.
  6100  	SearchAction *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
  6101  	// ForceSendFields is a list of field names (e.g. "Observation") to
  6102  	// unconditionally include in API requests. By default, fields with empty or
  6103  	// default values are omitted from API requests. See
  6104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6105  	// details.
  6106  	ForceSendFields []string `json:"-"`
  6107  	// NullFields is a list of field names (e.g. "Observation") to include in API
  6108  	// requests with the JSON null value. By default, fields with empty values are
  6109  	// omitted from API requests. See
  6110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6111  	NullFields []string `json:"-"`
  6112  }
  6113  
  6114  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepAction) MarshalJSON() ([]byte, error) {
  6115  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepAction
  6116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6117  }
  6118  
  6119  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation: Observation.
  6120  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation struct {
  6121  	// SearchResults: Search results observed by the search action, it can be
  6122  	// snippets info or chunk info, depending on the citation type set by the user.
  6123  	SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
  6124  	// ForceSendFields is a list of field names (e.g. "SearchResults") to
  6125  	// unconditionally include in API requests. By default, fields with empty or
  6126  	// default values are omitted from API requests. See
  6127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6128  	// details.
  6129  	ForceSendFields []string `json:"-"`
  6130  	// NullFields is a list of field names (e.g. "SearchResults") to include in API
  6131  	// requests with the JSON null value. By default, fields with empty values are
  6132  	// omitted from API requests. See
  6133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6134  	NullFields []string `json:"-"`
  6135  }
  6136  
  6137  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
  6138  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation
  6139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6140  }
  6141  
  6142  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult struct {
  6143  	// ChunkInfo: If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
  6144  	// populate chunk info.
  6145  	ChunkInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
  6146  	// Document: Document resource name.
  6147  	Document string `json:"document,omitempty"`
  6148  	// SnippetInfo: If citation_type is DOCUMENT_LEVEL_CITATION, populate document
  6149  	// level snippets.
  6150  	SnippetInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
  6151  	// Title: Title.
  6152  	Title string `json:"title,omitempty"`
  6153  	// Uri: URI for the document.
  6154  	Uri string `json:"uri,omitempty"`
  6155  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  6156  	// unconditionally include in API requests. By default, fields with empty or
  6157  	// default values are omitted from API requests. See
  6158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6159  	// details.
  6160  	ForceSendFields []string `json:"-"`
  6161  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  6162  	// requests with the JSON null value. By default, fields with empty values are
  6163  	// omitted from API requests. See
  6164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6165  	NullFields []string `json:"-"`
  6166  }
  6167  
  6168  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
  6169  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult
  6170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6171  }
  6172  
  6173  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunk
  6174  // Info: Chunk information.
  6175  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo struct {
  6176  	// Chunk: Chunk resource name.
  6177  	Chunk string `json:"chunk,omitempty"`
  6178  	// Content: Chunk textual content.
  6179  	Content string `json:"content,omitempty"`
  6180  	// RelevanceScore: Relevance score.
  6181  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  6182  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  6183  	// include in API requests. By default, fields with empty or default values are
  6184  	// omitted from API requests. See
  6185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6186  	// details.
  6187  	ForceSendFields []string `json:"-"`
  6188  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  6189  	// requests with the JSON null value. By default, fields with empty values are
  6190  	// omitted from API requests. See
  6191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6192  	NullFields []string `json:"-"`
  6193  }
  6194  
  6195  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
  6196  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
  6197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6198  }
  6199  
  6200  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
  6201  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
  6202  	var s1 struct {
  6203  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  6204  		*NoMethod
  6205  	}
  6206  	s1.NoMethod = (*NoMethod)(s)
  6207  	if err := json.Unmarshal(data, &s1); err != nil {
  6208  		return err
  6209  	}
  6210  	s.RelevanceScore = float64(s1.RelevanceScore)
  6211  	return nil
  6212  }
  6213  
  6214  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnipp
  6215  // etInfo: Snippet information.
  6216  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo struct {
  6217  	// Snippet: Snippet content.
  6218  	Snippet string `json:"snippet,omitempty"`
  6219  	// SnippetStatus: Status of the snippet defined by the search team.
  6220  	SnippetStatus string `json:"snippetStatus,omitempty"`
  6221  	// ForceSendFields is a list of field names (e.g. "Snippet") to unconditionally
  6222  	// include in API requests. By default, fields with empty or default values are
  6223  	// omitted from API requests. See
  6224  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6225  	// details.
  6226  	ForceSendFields []string `json:"-"`
  6227  	// NullFields is a list of field names (e.g. "Snippet") to include in API
  6228  	// requests with the JSON null value. By default, fields with empty values are
  6229  	// omitted from API requests. See
  6230  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6231  	NullFields []string `json:"-"`
  6232  }
  6233  
  6234  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
  6235  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
  6236  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6237  }
  6238  
  6239  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction: Search
  6240  // action.
  6241  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction struct {
  6242  	// Query: The query to search.
  6243  	Query string `json:"query,omitempty"`
  6244  	// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
  6245  	// include in API requests. By default, fields with empty or default values are
  6246  	// omitted from API requests. See
  6247  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6248  	// details.
  6249  	ForceSendFields []string `json:"-"`
  6250  	// NullFields is a list of field names (e.g. "Query") to include in API
  6251  	// requests with the JSON null value. By default, fields with empty values are
  6252  	// omitted from API requests. See
  6253  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6254  	NullFields []string `json:"-"`
  6255  }
  6256  
  6257  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
  6258  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
  6259  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6260  }
  6261  
  6262  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata: Metadata
  6263  // related to the progress of the
  6264  // SiteSearchEngineService.BatchCreateTargetSites operation. This will be
  6265  // returned by the google.longrunning.Operation.metadata field.
  6266  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata struct {
  6267  	// CreateTime: Operation create time.
  6268  	CreateTime string `json:"createTime,omitempty"`
  6269  	// UpdateTime: Operation last update time. If the operation is done, this is
  6270  	// also the finish time.
  6271  	UpdateTime string `json:"updateTime,omitempty"`
  6272  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6273  	// unconditionally include in API requests. By default, fields with empty or
  6274  	// default values are omitted from API requests. See
  6275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6276  	// details.
  6277  	ForceSendFields []string `json:"-"`
  6278  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6279  	// requests with the JSON null value. By default, fields with empty values are
  6280  	// omitted from API requests. See
  6281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6282  	NullFields []string `json:"-"`
  6283  }
  6284  
  6285  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  6286  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata
  6287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6288  }
  6289  
  6290  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse: Response
  6291  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  6292  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse struct {
  6293  	// TargetSites: TargetSites created.
  6294  	TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
  6295  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  6296  	// unconditionally include in API requests. By default, fields with empty or
  6297  	// default values are omitted from API requests. See
  6298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6299  	// details.
  6300  	ForceSendFields []string `json:"-"`
  6301  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  6302  	// requests with the JSON null value. By default, fields with empty values are
  6303  	// omitted from API requests. See
  6304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6305  	NullFields []string `json:"-"`
  6306  }
  6307  
  6308  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  6309  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
  6310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6311  }
  6312  
  6313  // GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata: Metadata related
  6314  // to the progress of the DataStoreService.CreateDataStore operation. This will
  6315  // be returned by the google.longrunning.Operation.metadata field.
  6316  type GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata struct {
  6317  	// CreateTime: Operation create time.
  6318  	CreateTime string `json:"createTime,omitempty"`
  6319  	// UpdateTime: Operation last update time. If the operation is done, this is
  6320  	// also the finish time.
  6321  	UpdateTime string `json:"updateTime,omitempty"`
  6322  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6323  	// unconditionally include in API requests. By default, fields with empty or
  6324  	// default values are omitted from API requests. See
  6325  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6326  	// details.
  6327  	ForceSendFields []string `json:"-"`
  6328  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6329  	// requests with the JSON null value. By default, fields with empty values are
  6330  	// omitted from API requests. See
  6331  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6332  	NullFields []string `json:"-"`
  6333  }
  6334  
  6335  func (s *GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  6336  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata
  6337  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6338  }
  6339  
  6340  // GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata: Metadata related to
  6341  // the progress of the EngineService.CreateEngine operation. This will be
  6342  // returned by the google.longrunning.Operation.metadata field.
  6343  type GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata struct {
  6344  	// CreateTime: Operation create time.
  6345  	CreateTime string `json:"createTime,omitempty"`
  6346  	// UpdateTime: Operation last update time. If the operation is done, this is
  6347  	// also the finish time.
  6348  	UpdateTime string `json:"updateTime,omitempty"`
  6349  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6350  	// unconditionally include in API requests. By default, fields with empty or
  6351  	// default values are omitted from API requests. See
  6352  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6353  	// details.
  6354  	ForceSendFields []string `json:"-"`
  6355  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6356  	// requests with the JSON null value. By default, fields with empty values are
  6357  	// omitted from API requests. See
  6358  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6359  	NullFields []string `json:"-"`
  6360  }
  6361  
  6362  func (s *GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
  6363  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata
  6364  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6365  }
  6366  
  6367  // GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata: Metadata for Create
  6368  // Schema LRO.
  6369  type GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata struct {
  6370  	// CreateTime: Operation create time.
  6371  	CreateTime string `json:"createTime,omitempty"`
  6372  	// UpdateTime: Operation last update time. If the operation is done, this is
  6373  	// also the finish time.
  6374  	UpdateTime string `json:"updateTime,omitempty"`
  6375  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6376  	// unconditionally include in API requests. By default, fields with empty or
  6377  	// default values are omitted from API requests. See
  6378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6379  	// details.
  6380  	ForceSendFields []string `json:"-"`
  6381  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6382  	// requests with the JSON null value. By default, fields with empty values are
  6383  	// omitted from API requests. See
  6384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6385  	NullFields []string `json:"-"`
  6386  }
  6387  
  6388  func (s *GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  6389  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata
  6390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6391  }
  6392  
  6393  // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata: Metadata related
  6394  // to the progress of the SiteSearchEngineService.CreateTargetSite operation.
  6395  // This will be returned by the google.longrunning.Operation.metadata field.
  6396  type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata struct {
  6397  	// CreateTime: Operation create time.
  6398  	CreateTime string `json:"createTime,omitempty"`
  6399  	// UpdateTime: Operation last update time. If the operation is done, this is
  6400  	// also the finish time.
  6401  	UpdateTime string `json:"updateTime,omitempty"`
  6402  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6403  	// unconditionally include in API requests. By default, fields with empty or
  6404  	// default values are omitted from API requests. See
  6405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6406  	// details.
  6407  	ForceSendFields []string `json:"-"`
  6408  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6409  	// requests with the JSON null value. By default, fields with empty values are
  6410  	// omitted from API requests. See
  6411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6412  	NullFields []string `json:"-"`
  6413  }
  6414  
  6415  func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  6416  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
  6417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6418  }
  6419  
  6420  // GoogleCloudDiscoveryengineV1alphaCustomTuningModel: Metadata that describes
  6421  // a custom tuned model.
  6422  type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct {
  6423  	// CreateTime: Timestamp the Model was created at.
  6424  	CreateTime string `json:"createTime,omitempty"`
  6425  	// DisplayName: The display name of the model.
  6426  	DisplayName string `json:"displayName,omitempty"`
  6427  	// ModelState: The state that the model is in (e.g.`TRAINING` or
  6428  	// `TRAINING_FAILED`).
  6429  	//
  6430  	// Possible values:
  6431  	//   "MODEL_STATE_UNSPECIFIED"
  6432  	//   "TRAINING_PAUSED" - The model is in a paused training state.
  6433  	//   "TRAINING" - The model is currently training.
  6434  	//   "TRAINING_COMPLETE" - The model has successfully completed training.
  6435  	//   "READY_FOR_SERVING" - The model is ready for serving.
  6436  	//   "TRAINING_FAILED" - The model training failed.
  6437  	ModelState   string `json:"modelState,omitempty"`
  6438  	ModelVersion int64  `json:"modelVersion,omitempty,string"`
  6439  	// Name: Required. The fully qualified resource name of the model. Format:
  6440  	// `projects/{project_number}/locations/{location}/collections/{collection}/data
  6441  	// Stores/{data_store}/customTuningModels/{custom_tuning_model}` model must be
  6442  	// an alpha-numerical string with limit of 40 characters.
  6443  	Name string `json:"name,omitempty"`
  6444  	// TrainingStartTime: Timestamp the model training was initiated.
  6445  	TrainingStartTime string `json:"trainingStartTime,omitempty"`
  6446  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6447  	// unconditionally include in API requests. By default, fields with empty or
  6448  	// default values are omitted from API requests. See
  6449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6450  	// details.
  6451  	ForceSendFields []string `json:"-"`
  6452  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6453  	// requests with the JSON null value. By default, fields with empty values are
  6454  	// omitted from API requests. See
  6455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6456  	NullFields []string `json:"-"`
  6457  }
  6458  
  6459  func (s *GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byte, error) {
  6460  	type NoMethod GoogleCloudDiscoveryengineV1alphaCustomTuningModel
  6461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6462  }
  6463  
  6464  // GoogleCloudDiscoveryengineV1alphaDataStore: DataStore captures global
  6465  // settings and configs at the DataStore level.
  6466  type GoogleCloudDiscoveryengineV1alphaDataStore struct {
  6467  	// AclEnabled: Immutable. Whether data in the DataStore has ACL information. If
  6468  	// set to `true`, the source data must have ACL. ACL will be ingested when data
  6469  	// is ingested by DocumentService.ImportDocuments methods. When ACL is enabled
  6470  	// for the DataStore, Document can't be accessed by calling
  6471  	// DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL
  6472  	// is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE`
  6473  	// content config.
  6474  	AclEnabled bool `json:"aclEnabled,omitempty"`
  6475  	// ContentConfig: Immutable. The content config of the data store. If this
  6476  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  6477  	//
  6478  	// Possible values:
  6479  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  6480  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  6481  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  6482  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  6483  	ContentConfig string `json:"contentConfig,omitempty"`
  6484  	// CreateTime: Output only. Timestamp the DataStore was created at.
  6485  	CreateTime string `json:"createTime,omitempty"`
  6486  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  6487  	// this data store.
  6488  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  6489  	// DisplayName: Required. The data store display name. This field must be a
  6490  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  6491  	// INVALID_ARGUMENT error is returned.
  6492  	DisplayName string `json:"displayName,omitempty"`
  6493  	// DocumentProcessingConfig: Configuration for Document understanding and
  6494  	// enrichment.
  6495  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  6496  	// IdpConfig: Output only. Data store level identity provider config.
  6497  	IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
  6498  	// IndustryVertical: Immutable. The industry vertical that the data store
  6499  	// registers.
  6500  	//
  6501  	// Possible values:
  6502  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  6503  	//   "GENERIC" - The generic vertical for documents that are not specific to
  6504  	// any industry vertical.
  6505  	//   "MEDIA" - The media industry vertical.
  6506  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  6507  	IndustryVertical string `json:"industryVertical,omitempty"`
  6508  	// Name: Immutable. The full resource name of the data store. Format:
  6509  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  6510  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  6511  	// limit of 1024 characters.
  6512  	Name string `json:"name,omitempty"`
  6513  	// SolutionTypes: The solutions that the data store enrolls. Available
  6514  	// solutions for each industry_vertical: * `MEDIA`:
  6515  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  6516  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  6517  	// enrolled.
  6518  	//
  6519  	// Possible values:
  6520  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  6521  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  6522  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  6523  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  6524  	// agent.
  6525  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  6526  	// Generative Chat agent. It's used for Generative chat engine only, the
  6527  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  6528  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  6529  	// StartingSchema: The start schema to use for this DataStore when provisioning
  6530  	// it. If unset, a default vertical specialized schema will be used. This field
  6531  	// is only used by CreateDataStore API, and will be ignored if used in other
  6532  	// APIs. This field will be omitted from all API responses including
  6533  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  6534  	// SchemaService.GetSchema API instead. The provided schema will be validated
  6535  	// against certain rules on schema. Learn more from this doc
  6536  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  6537  	StartingSchema *GoogleCloudDiscoveryengineV1alphaSchema `json:"startingSchema,omitempty"`
  6538  	// ForceSendFields is a list of field names (e.g. "AclEnabled") to
  6539  	// unconditionally include in API requests. By default, fields with empty or
  6540  	// default values are omitted from API requests. See
  6541  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6542  	// details.
  6543  	ForceSendFields []string `json:"-"`
  6544  	// NullFields is a list of field names (e.g. "AclEnabled") to include in API
  6545  	// requests with the JSON null value. By default, fields with empty values are
  6546  	// omitted from API requests. See
  6547  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6548  	NullFields []string `json:"-"`
  6549  }
  6550  
  6551  func (s *GoogleCloudDiscoveryengineV1alphaDataStore) MarshalJSON() ([]byte, error) {
  6552  	type NoMethod GoogleCloudDiscoveryengineV1alphaDataStore
  6553  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6554  }
  6555  
  6556  // GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata: Metadata related
  6557  // to the progress of the DataStoreService.DeleteDataStore operation. This will
  6558  // be returned by the google.longrunning.Operation.metadata field.
  6559  type GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata struct {
  6560  	// CreateTime: Operation create time.
  6561  	CreateTime string `json:"createTime,omitempty"`
  6562  	// UpdateTime: Operation last update time. If the operation is done, this is
  6563  	// also the finish time.
  6564  	UpdateTime string `json:"updateTime,omitempty"`
  6565  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6566  	// unconditionally include in API requests. By default, fields with empty or
  6567  	// default values are omitted from API requests. See
  6568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6569  	// details.
  6570  	ForceSendFields []string `json:"-"`
  6571  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6572  	// requests with the JSON null value. By default, fields with empty values are
  6573  	// omitted from API requests. See
  6574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6575  	NullFields []string `json:"-"`
  6576  }
  6577  
  6578  func (s *GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  6579  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata
  6580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6581  }
  6582  
  6583  // GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata: Metadata related to
  6584  // the progress of the EngineService.DeleteEngine operation. This will be
  6585  // returned by the google.longrunning.Operation.metadata field.
  6586  type GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata struct {
  6587  	// CreateTime: Operation create time.
  6588  	CreateTime string `json:"createTime,omitempty"`
  6589  	// UpdateTime: Operation last update time. If the operation is done, this is
  6590  	// also the finish time.
  6591  	UpdateTime string `json:"updateTime,omitempty"`
  6592  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6593  	// unconditionally include in API requests. By default, fields with empty or
  6594  	// default values are omitted from API requests. See
  6595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6596  	// details.
  6597  	ForceSendFields []string `json:"-"`
  6598  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6599  	// requests with the JSON null value. By default, fields with empty values are
  6600  	// omitted from API requests. See
  6601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6602  	NullFields []string `json:"-"`
  6603  }
  6604  
  6605  func (s *GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  6606  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata
  6607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6608  }
  6609  
  6610  // GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata: Metadata for
  6611  // DeleteSchema LRO.
  6612  type GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata struct {
  6613  	// CreateTime: Operation create time.
  6614  	CreateTime string `json:"createTime,omitempty"`
  6615  	// UpdateTime: Operation last update time. If the operation is done, this is
  6616  	// also the finish time.
  6617  	UpdateTime string `json:"updateTime,omitempty"`
  6618  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6619  	// unconditionally include in API requests. By default, fields with empty or
  6620  	// default values are omitted from API requests. See
  6621  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6622  	// details.
  6623  	ForceSendFields []string `json:"-"`
  6624  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6625  	// requests with the JSON null value. By default, fields with empty values are
  6626  	// omitted from API requests. See
  6627  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6628  	NullFields []string `json:"-"`
  6629  }
  6630  
  6631  func (s *GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  6632  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
  6633  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6634  }
  6635  
  6636  // GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata: Metadata related
  6637  // to the progress of the SiteSearchEngineService.DeleteTargetSite operation.
  6638  // This will be returned by the google.longrunning.Operation.metadata field.
  6639  type GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata struct {
  6640  	// CreateTime: Operation create time.
  6641  	CreateTime string `json:"createTime,omitempty"`
  6642  	// UpdateTime: Operation last update time. If the operation is done, this is
  6643  	// also the finish time.
  6644  	UpdateTime string `json:"updateTime,omitempty"`
  6645  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6646  	// unconditionally include in API requests. By default, fields with empty or
  6647  	// default values are omitted from API requests. See
  6648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6649  	// details.
  6650  	ForceSendFields []string `json:"-"`
  6651  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6652  	// requests with the JSON null value. By default, fields with empty values are
  6653  	// omitted from API requests. See
  6654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6655  	NullFields []string `json:"-"`
  6656  }
  6657  
  6658  func (s *GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  6659  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata
  6660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6661  }
  6662  
  6663  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata: Metadata
  6664  // related to the progress of the
  6665  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  6666  // returned by the google.longrunning.Operation.metadata field.
  6667  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata struct {
  6668  	// CreateTime: Operation create time.
  6669  	CreateTime string `json:"createTime,omitempty"`
  6670  	// UpdateTime: Operation last update time. If the operation is done, this is
  6671  	// also the finish time.
  6672  	UpdateTime string `json:"updateTime,omitempty"`
  6673  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6674  	// unconditionally include in API requests. By default, fields with empty or
  6675  	// default values are omitted from API requests. See
  6676  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6677  	// details.
  6678  	ForceSendFields []string `json:"-"`
  6679  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6680  	// requests with the JSON null value. By default, fields with empty values are
  6681  	// omitted from API requests. See
  6682  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6683  	NullFields []string `json:"-"`
  6684  }
  6685  
  6686  func (s *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  6687  	type NoMethod GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
  6688  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6689  }
  6690  
  6691  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse: Response
  6692  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  6693  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse struct {
  6694  }
  6695  
  6696  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig: A singleton
  6697  // resource of DataStore. It's empty when DataStore is created, which defaults
  6698  // to digital parser. The first call to
  6699  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  6700  // config.
  6701  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct {
  6702  	// ChunkingConfig: Whether chunking mode is enabled.
  6703  	ChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig `json:"chunkingConfig,omitempty"`
  6704  	// DefaultParsingConfig: Configurations for default Document parser. If not
  6705  	// specified, we will configure it as default DigitalParsingConfig, and the
  6706  	// default parsing config will be applied to all file types for Document
  6707  	// parsing.
  6708  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  6709  	// Name: The full resource name of the Document Processing Config. Format:
  6710  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  6711  	Name string `json:"name,omitempty"`
  6712  	// ParsingConfigOverrides: Map from file type to override the default parsing
  6713  	// configuration based on the file type. Supported keys: * `pdf`: Override
  6714  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  6715  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  6716  	// digital parsing and or layout parsing are supported. * `docx`: Override
  6717  	// parsing config for DOCX files, only digital parsing and or layout parsing
  6718  	// are supported.
  6719  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  6720  	// ForceSendFields is a list of field names (e.g. "ChunkingConfig") to
  6721  	// unconditionally include in API requests. By default, fields with empty or
  6722  	// default values are omitted from API requests. See
  6723  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6724  	// details.
  6725  	ForceSendFields []string `json:"-"`
  6726  	// NullFields is a list of field names (e.g. "ChunkingConfig") to include in
  6727  	// API requests with the JSON null value. By default, fields with empty values
  6728  	// are omitted from API requests. See
  6729  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6730  	NullFields []string `json:"-"`
  6731  }
  6732  
  6733  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  6734  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
  6735  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6736  }
  6737  
  6738  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig:
  6739  // Configuration for chunking config.
  6740  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig struct {
  6741  	// LayoutBasedChunkingConfig: Configuration for the layout based chunking.
  6742  	LayoutBasedChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig `json:"layoutBasedChunkingConfig,omitempty"`
  6743  	// ForceSendFields is a list of field names (e.g. "LayoutBasedChunkingConfig")
  6744  	// to unconditionally include in API requests. By default, fields with empty or
  6745  	// default values are omitted from API requests. See
  6746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6747  	// details.
  6748  	ForceSendFields []string `json:"-"`
  6749  	// NullFields is a list of field names (e.g. "LayoutBasedChunkingConfig") to
  6750  	// include in API requests with the JSON null value. By default, fields with
  6751  	// empty values are omitted from API requests. See
  6752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6753  	NullFields []string `json:"-"`
  6754  }
  6755  
  6756  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig) MarshalJSON() ([]byte, error) {
  6757  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
  6758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6759  }
  6760  
  6761  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayout
  6762  // BasedChunkingConfig: Configuration for the layout based chunking.
  6763  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig struct {
  6764  	// ChunkSize: The token size limit for each chunk. Supported values: 100-500
  6765  	// (inclusive). Default value: 500.
  6766  	ChunkSize int64 `json:"chunkSize,omitempty"`
  6767  	// IncludeAncestorHeadings: Whether to include appending different levels of
  6768  	// headings to chunks from the middle of the document to prevent context loss.
  6769  	// Default value: False.
  6770  	IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
  6771  	// ForceSendFields is a list of field names (e.g. "ChunkSize") to
  6772  	// unconditionally include in API requests. By default, fields with empty or
  6773  	// default values are omitted from API requests. See
  6774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6775  	// details.
  6776  	ForceSendFields []string `json:"-"`
  6777  	// NullFields is a list of field names (e.g. "ChunkSize") to include in API
  6778  	// requests with the JSON null value. By default, fields with empty values are
  6779  	// omitted from API requests. See
  6780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6781  	NullFields []string `json:"-"`
  6782  }
  6783  
  6784  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig) MarshalJSON() ([]byte, error) {
  6785  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
  6786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6787  }
  6788  
  6789  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig:
  6790  // Related configurations applied to a specific type of document parser.
  6791  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig struct {
  6792  	// DigitalParsingConfig: Configurations applied to digital parser.
  6793  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  6794  	// LayoutParsingConfig: Configurations applied to layout parser.
  6795  	LayoutParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig `json:"layoutParsingConfig,omitempty"`
  6796  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  6797  	// applies to PDFs.
  6798  	OcrParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  6799  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  6800  	// unconditionally include in API requests. By default, fields with empty or
  6801  	// default values are omitted from API requests. See
  6802  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6803  	// details.
  6804  	ForceSendFields []string `json:"-"`
  6805  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  6806  	// in API requests with the JSON null value. By default, fields with empty
  6807  	// values are omitted from API requests. See
  6808  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6809  	NullFields []string `json:"-"`
  6810  }
  6811  
  6812  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  6813  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
  6814  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6815  }
  6816  
  6817  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigital
  6818  // ParsingConfig: The digital parsing configurations for documents.
  6819  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  6820  }
  6821  
  6822  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutP
  6823  // arsingConfig: The layout parsing configurations for documents.
  6824  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig struct {
  6825  }
  6826  
  6827  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrPars
  6828  // ingConfig: The OCR parsing configurations for documents.
  6829  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  6830  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  6831  	// additional enhanced document elements processing, please switch to
  6832  	// `layout_parsing_config`.
  6833  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  6834  	// UseNativeText: If true, will use native text instead of OCR text on pages
  6835  	// containing native text.
  6836  	UseNativeText bool `json:"useNativeText,omitempty"`
  6837  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  6838  	// to unconditionally include in API requests. By default, fields with empty or
  6839  	// default values are omitted from API requests. See
  6840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6841  	// details.
  6842  	ForceSendFields []string `json:"-"`
  6843  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  6844  	// include in API requests with the JSON null value. By default, fields with
  6845  	// empty values are omitted from API requests. See
  6846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6847  	NullFields []string `json:"-"`
  6848  }
  6849  
  6850  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  6851  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
  6852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6853  }
  6854  
  6855  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata: Metadata
  6856  // related to the progress of the
  6857  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  6858  // returned by the google.longrunning.Operation.metadata field.
  6859  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata struct {
  6860  	// CreateTime: Operation create time.
  6861  	CreateTime string `json:"createTime,omitempty"`
  6862  	// UpdateTime: Operation last update time. If the operation is done, this is
  6863  	// also the finish time.
  6864  	UpdateTime string `json:"updateTime,omitempty"`
  6865  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6866  	// unconditionally include in API requests. By default, fields with empty or
  6867  	// default values are omitted from API requests. See
  6868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6869  	// details.
  6870  	ForceSendFields []string `json:"-"`
  6871  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6872  	// requests with the JSON null value. By default, fields with empty values are
  6873  	// omitted from API requests. See
  6874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6875  	NullFields []string `json:"-"`
  6876  }
  6877  
  6878  func (s *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  6879  	type NoMethod GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
  6880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6881  }
  6882  
  6883  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse: Response
  6884  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  6885  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct {
  6886  }
  6887  
  6888  // GoogleCloudDiscoveryengineV1alphaEngine: Metadata that describes the
  6889  // training and serving parameters of an Engine.
  6890  type GoogleCloudDiscoveryengineV1alphaEngine struct {
  6891  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  6892  	// solution_type is SOLUTION_TYPE_CHAT.
  6893  	ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  6894  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  6895  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  6896  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  6897  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  6898  	CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
  6899  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  6900  	CreateTime string `json:"createTime,omitempty"`
  6901  	// DataStoreIds: The data stores associated with this engine. For
  6902  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  6903  	// can only associate with at most one data store. If solution_type is
  6904  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  6905  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  6906  	// id must be provided as the system will use it for necessary initializations.
  6907  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  6908  	// DisplayName: Required. The display name of the engine. Should be human
  6909  	// readable. UTF-8 encoded string with limit of 1024 characters.
  6910  	DisplayName string `json:"displayName,omitempty"`
  6911  	// IndustryVertical: The industry vertical that the engine registers. The
  6912  	// restriction of the Engine industry vertical is based on DataStore: If
  6913  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  6914  	// of the DataStore liniked to the engine.
  6915  	//
  6916  	// Possible values:
  6917  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  6918  	//   "GENERIC" - The generic vertical for documents that are not specific to
  6919  	// any industry vertical.
  6920  	//   "MEDIA" - The media industry vertical.
  6921  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  6922  	IndustryVertical string `json:"industryVertical,omitempty"`
  6923  	// MediaRecommendationEngineConfig: Configurations for the Media Engine. Only
  6924  	// applicable on the data stores with solution_type
  6925  	// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
  6926  	MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
  6927  	// Name: Immutable. The fully qualified resource name of the engine. This field
  6928  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  6929  	// Format:
  6930  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  6931  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  6932  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  6933  	Name string `json:"name,omitempty"`
  6934  	// RecommendationMetadata: Output only. Additional information of a
  6935  	// recommendation engine. Only applicable if solution_type is
  6936  	// SOLUTION_TYPE_RECOMMENDATION.
  6937  	RecommendationMetadata *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata `json:"recommendationMetadata,omitempty"`
  6938  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  6939  	// solution_type is SOLUTION_TYPE_SEARCH.
  6940  	SearchEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  6941  	// SimilarDocumentsConfig: Additional config specs for a `similar-items`
  6942  	// engine.
  6943  	SimilarDocumentsConfig *GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig `json:"similarDocumentsConfig,omitempty"`
  6944  	// SolutionType: Required. The solutions of the engine.
  6945  	//
  6946  	// Possible values:
  6947  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  6948  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  6949  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  6950  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  6951  	// agent.
  6952  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  6953  	// Generative Chat agent. It's used for Generative chat engine only, the
  6954  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  6955  	SolutionType string `json:"solutionType,omitempty"`
  6956  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  6957  	// updated.
  6958  	UpdateTime string `json:"updateTime,omitempty"`
  6959  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  6960  	// unconditionally include in API requests. By default, fields with empty or
  6961  	// default values are omitted from API requests. See
  6962  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6963  	// details.
  6964  	ForceSendFields []string `json:"-"`
  6965  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  6966  	// API requests with the JSON null value. By default, fields with empty values
  6967  	// are omitted from API requests. See
  6968  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6969  	NullFields []string `json:"-"`
  6970  }
  6971  
  6972  func (s *GoogleCloudDiscoveryengineV1alphaEngine) MarshalJSON() ([]byte, error) {
  6973  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngine
  6974  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6975  }
  6976  
  6977  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig: Configurations for
  6978  // a Chat Engine.
  6979  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig struct {
  6980  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  6981  	// is associated to this Engine. Note that these configurations are one-time
  6982  	// consumed by and passed to Dialogflow service. It means they cannot be
  6983  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  6984  	// after engine creation.
  6985  	AgentCreationConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  6986  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  6987  	// link to this Chat Engine. Customers can either provide
  6988  	// `agent_creation_config` to create agent or provide an agent name that links
  6989  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  6990  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  6991  	// Dialogflow service. It means they cannot be retrieved using
  6992  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  6993  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  6994  	// association after Engine is created.
  6995  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  6996  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  6997  	// unconditionally include in API requests. By default, fields with empty or
  6998  	// default values are omitted from API requests. See
  6999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7000  	// details.
  7001  	ForceSendFields []string `json:"-"`
  7002  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  7003  	// in API requests with the JSON null value. By default, fields with empty
  7004  	// values are omitted from API requests. See
  7005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7006  	NullFields []string `json:"-"`
  7007  }
  7008  
  7009  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  7010  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig
  7011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7012  }
  7013  
  7014  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig:
  7015  // Configurations for generating a Dialogflow agent. Note that these
  7016  // configurations are one-time consumed by and passed to Dialogflow service. It
  7017  // means they cannot be retrieved using EngineService.GetEngine or
  7018  // EngineService.ListEngines API after engine creation.
  7019  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig struct {
  7020  	// Business: Name of the company, organization or other entity that the agent
  7021  	// represents. Used for knowledge connector LLM prompt and for knowledge
  7022  	// search.
  7023  	Business string `json:"business,omitempty"`
  7024  	// DefaultLanguageCode: Required. The default language of the agent as a
  7025  	// language tag. See Language Support
  7026  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  7027  	// the currently supported language codes.
  7028  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  7029  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  7030  	// If not provided, us Engine will create Agent using us-central-1 by default;
  7031  	// eu Engine will create Agent using eu-west-1 by default.
  7032  	Location string `json:"location,omitempty"`
  7033  	// TimeZone: Required. The time zone of the agent from the time zone database
  7034  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  7035  	TimeZone string `json:"timeZone,omitempty"`
  7036  	// ForceSendFields is a list of field names (e.g. "Business") to
  7037  	// unconditionally include in API requests. By default, fields with empty or
  7038  	// default values are omitted from API requests. See
  7039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7040  	// details.
  7041  	ForceSendFields []string `json:"-"`
  7042  	// NullFields is a list of field names (e.g. "Business") to include in API
  7043  	// requests with the JSON null value. By default, fields with empty values are
  7044  	// omitted from API requests. See
  7045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7046  	NullFields []string `json:"-"`
  7047  }
  7048  
  7049  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  7050  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig
  7051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7052  }
  7053  
  7054  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata: Additional
  7055  // information of a Chat Engine. Fields in this message are output only.
  7056  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata struct {
  7057  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  7058  	// Engine refers to. Format: `projects//locations//agents/`.
  7059  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  7060  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  7061  	// unconditionally include in API requests. By default, fields with empty or
  7062  	// default values are omitted from API requests. See
  7063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7064  	// details.
  7065  	ForceSendFields []string `json:"-"`
  7066  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  7067  	// API requests with the JSON null value. By default, fields with empty values
  7068  	// are omitted from API requests. See
  7069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7070  	NullFields []string `json:"-"`
  7071  }
  7072  
  7073  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  7074  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata
  7075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7076  }
  7077  
  7078  // GoogleCloudDiscoveryengineV1alphaEngineCommonConfig: Common configurations
  7079  // for an Engine.
  7080  type GoogleCloudDiscoveryengineV1alphaEngineCommonConfig struct {
  7081  	// CompanyName: Immutable. The name of the company, business or entity that is
  7082  	// associated with the engine. Setting this may help improve LLM related
  7083  	// features.
  7084  	CompanyName string `json:"companyName,omitempty"`
  7085  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  7086  	// unconditionally include in API requests. By default, fields with empty or
  7087  	// default values are omitted from API requests. See
  7088  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7089  	// details.
  7090  	ForceSendFields []string `json:"-"`
  7091  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  7092  	// requests with the JSON null value. By default, fields with empty values are
  7093  	// omitted from API requests. See
  7094  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7095  	NullFields []string `json:"-"`
  7096  }
  7097  
  7098  func (s *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]byte, error) {
  7099  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineCommonConfig
  7100  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7101  }
  7102  
  7103  // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig:
  7104  // Additional config specs for a Media Recommendation engine.
  7105  type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct {
  7106  	// OptimizationObjective: The optimization objective. e.g., `cvr`. This field
  7107  	// together with optimization_objective describe engine metadata to use to
  7108  	// control engine training and serving. Currently supported values: `ctr`,
  7109  	// `cvr`. If not specified, we choose default based on engine type. Default
  7110  	// depends on type of recommendation: `recommended-for-you` => `ctr`
  7111  	// `others-you-may-like` => `ctr`
  7112  	OptimizationObjective string `json:"optimizationObjective,omitempty"`
  7113  	// OptimizationObjectiveConfig: Name and value of the custom threshold for cvr
  7114  	// optimization_objective. For target_field `watch-time`, target_field_value
  7115  	// must be an integer value indicating the media progress time in seconds
  7116  	// between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field
  7117  	// `watch-percentage`, the target_field_value must be a valid float value
  7118  	// between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5).
  7119  	OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"`
  7120  	// TrainingState: The training state that the engine is in (e.g. `TRAINING` or
  7121  	// `PAUSED`). Since part of the cost of running the service is frequency of
  7122  	// training - this can be used to determine when to train engine in order to
  7123  	// control cost. If not specified: the default value for `CreateEngine` method
  7124  	// is `TRAINING`. The default value for `UpdateEngine` method is to keep the
  7125  	// state the same as before.
  7126  	//
  7127  	// Possible values:
  7128  	//   "TRAINING_STATE_UNSPECIFIED" - Unspecified training state.
  7129  	//   "PAUSED" - The engine training is paused.
  7130  	//   "TRAINING" - The engine is training.
  7131  	TrainingState string `json:"trainingState,omitempty"`
  7132  	// Type: Required. The type of engine. e.g., `recommended-for-you`. This field
  7133  	// together with optimization_objective describe engine metadata to use to
  7134  	// control engine training and serving. Currently supported values:
  7135  	// `recommended-for-you`, `others-you-may-like`, `more-like-this`,
  7136  	// `most-popular-items`.
  7137  	Type string `json:"type,omitempty"`
  7138  	// ForceSendFields is a list of field names (e.g. "OptimizationObjective") to
  7139  	// unconditionally include in API requests. By default, fields with empty or
  7140  	// default values are omitted from API requests. See
  7141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7142  	// details.
  7143  	ForceSendFields []string `json:"-"`
  7144  	// NullFields is a list of field names (e.g. "OptimizationObjective") to
  7145  	// include in API requests with the JSON null value. By default, fields with
  7146  	// empty values are omitted from API requests. See
  7147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7148  	NullFields []string `json:"-"`
  7149  }
  7150  
  7151  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) {
  7152  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig
  7153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7154  }
  7155  
  7156  // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimiz
  7157  // ationObjectiveConfig: Custom threshold for `cvr` optimization_objective.
  7158  type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct {
  7159  	// TargetField: Required. The name of the field to target. Currently supported
  7160  	// values: `watch-percentage`, `watch-time`.
  7161  	TargetField string `json:"targetField,omitempty"`
  7162  	// TargetFieldValueFloat: Required. The threshold to be applied to the target
  7163  	// (e.g., 0.5).
  7164  	TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"`
  7165  	// ForceSendFields is a list of field names (e.g. "TargetField") to
  7166  	// unconditionally include in API requests. By default, fields with empty or
  7167  	// default values are omitted from API requests. See
  7168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7169  	// details.
  7170  	ForceSendFields []string `json:"-"`
  7171  	// NullFields is a list of field names (e.g. "TargetField") to include in API
  7172  	// requests with the JSON null value. By default, fields with empty values are
  7173  	// omitted from API requests. See
  7174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7175  	NullFields []string `json:"-"`
  7176  }
  7177  
  7178  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) {
  7179  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
  7180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7181  }
  7182  
  7183  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error {
  7184  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
  7185  	var s1 struct {
  7186  		TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"`
  7187  		*NoMethod
  7188  	}
  7189  	s1.NoMethod = (*NoMethod)(s)
  7190  	if err := json.Unmarshal(data, &s1); err != nil {
  7191  		return err
  7192  	}
  7193  	s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat)
  7194  	return nil
  7195  }
  7196  
  7197  // GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata: Additional
  7198  // information of a recommendation engine.
  7199  type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct {
  7200  	// DataState: Output only. The state of data requirements for this engine:
  7201  	// `DATA_OK` and `DATA_ERROR`. Engine cannot be trained if the data is in
  7202  	// `DATA_ERROR` state. Engine can have `DATA_ERROR` state even if serving state
  7203  	// is `ACTIVE`: engines were trained successfully before, but cannot be
  7204  	// refreshed because the underlying engine no longer has sufficient data for
  7205  	// training.
  7206  	//
  7207  	// Possible values:
  7208  	//   "DATA_STATE_UNSPECIFIED" - Unspecified default value, should never be
  7209  	// explicitly set.
  7210  	//   "DATA_OK" - The engine has sufficient training data.
  7211  	//   "DATA_ERROR" - The engine does not have sufficient training data. Error
  7212  	// messages can be queried via Stackdriver.
  7213  	DataState string `json:"dataState,omitempty"`
  7214  	// LastTuneTime: Output only. The timestamp when the latest successful tune
  7215  	// finished. Only applicable on Media Recommendation engines.
  7216  	LastTuneTime string `json:"lastTuneTime,omitempty"`
  7217  	// ServingState: Output only. The serving state of the engine: `ACTIVE`,
  7218  	// `NOT_ACTIVE`.
  7219  	//
  7220  	// Possible values:
  7221  	//   "SERVING_STATE_UNSPECIFIED" - Unspecified serving state.
  7222  	//   "INACTIVE" - The engine is not serving.
  7223  	//   "ACTIVE" - The engine is serving and can be queried.
  7224  	//   "TUNED" - The engine is trained on tuned hyperparameters and can be
  7225  	// queried.
  7226  	ServingState string `json:"servingState,omitempty"`
  7227  	// TuningOperation: Output only. The latest tune operation id associated with
  7228  	// the engine. Only applicable on Media Recommendation engines. If present,
  7229  	// this operation id can be used to determine if there is an ongoing tune for
  7230  	// this engine. To check the operation status, send the GetOperation request
  7231  	// with this operation id in the engine resource format. If no tuning has
  7232  	// happened for this engine, the string is empty.
  7233  	TuningOperation string `json:"tuningOperation,omitempty"`
  7234  	// ForceSendFields is a list of field names (e.g. "DataState") to
  7235  	// unconditionally include in API requests. By default, fields with empty or
  7236  	// default values are omitted from API requests. See
  7237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7238  	// details.
  7239  	ForceSendFields []string `json:"-"`
  7240  	// NullFields is a list of field names (e.g. "DataState") to include in API
  7241  	// requests with the JSON null value. By default, fields with empty values are
  7242  	// omitted from API requests. See
  7243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7244  	NullFields []string `json:"-"`
  7245  }
  7246  
  7247  func (s *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJSON() ([]byte, error) {
  7248  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata
  7249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7250  }
  7251  
  7252  // GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig: Configurations
  7253  // for a Search Engine.
  7254  type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct {
  7255  	// SearchAddOns: The add-on that this search engine enables.
  7256  	//
  7257  	// Possible values:
  7258  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  7259  	// This is invalid to use.
  7260  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  7261  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  7262  	// SearchTier: The search feature tier of this engine. Different tiers might
  7263  	// have different pricing. To learn more, check the pricing documentation.
  7264  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  7265  	//
  7266  	// Possible values:
  7267  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  7268  	// This is invalid to use.
  7269  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  7270  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  7271  	SearchTier string `json:"searchTier,omitempty"`
  7272  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  7273  	// unconditionally include in API requests. By default, fields with empty or
  7274  	// default values are omitted from API requests. See
  7275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7276  	// details.
  7277  	ForceSendFields []string `json:"-"`
  7278  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  7279  	// requests with the JSON null value. By default, fields with empty values are
  7280  	// omitted from API requests. See
  7281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7282  	NullFields []string `json:"-"`
  7283  }
  7284  
  7285  func (s *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  7286  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig
  7287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7288  }
  7289  
  7290  // GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig:
  7291  // Additional config specs for a `similar-items` engine.
  7292  type GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig struct {
  7293  }
  7294  
  7295  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata: Metadata related
  7296  // to the progress of the EstimateDataSize operation. This is returned by the
  7297  // google.longrunning.Operation.metadata field.
  7298  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata struct {
  7299  	// CreateTime: Operation create time.
  7300  	CreateTime string `json:"createTime,omitempty"`
  7301  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7302  	// unconditionally include in API requests. By default, fields with empty or
  7303  	// default values are omitted from API requests. See
  7304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7305  	// details.
  7306  	ForceSendFields []string `json:"-"`
  7307  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7308  	// requests with the JSON null value. By default, fields with empty values are
  7309  	// omitted from API requests. See
  7310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7311  	NullFields []string `json:"-"`
  7312  }
  7313  
  7314  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata) MarshalJSON() ([]byte, error) {
  7315  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
  7316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7317  }
  7318  
  7319  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse: Response of the
  7320  // EstimateDataSize request. If the long running operation was successful, then
  7321  // this message is returned by the google.longrunning.Operations.response field
  7322  // if the operation was successful.
  7323  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse struct {
  7324  	// DataSizeBytes: Data size in terms of bytes.
  7325  	DataSizeBytes int64 `json:"dataSizeBytes,omitempty,string"`
  7326  	// DocumentCount: Total number of documents.
  7327  	DocumentCount int64 `json:"documentCount,omitempty,string"`
  7328  	// ForceSendFields is a list of field names (e.g. "DataSizeBytes") to
  7329  	// unconditionally include in API requests. By default, fields with empty or
  7330  	// default values are omitted from API requests. See
  7331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7332  	// details.
  7333  	ForceSendFields []string `json:"-"`
  7334  	// NullFields is a list of field names (e.g. "DataSizeBytes") to include in API
  7335  	// requests with the JSON null value. By default, fields with empty values are
  7336  	// omitted from API requests. See
  7337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7338  	NullFields []string `json:"-"`
  7339  }
  7340  
  7341  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse) MarshalJSON() ([]byte, error) {
  7342  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
  7343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7344  }
  7345  
  7346  // GoogleCloudDiscoveryengineV1alphaFieldConfig: Configurations for fields of a
  7347  // schema. For example, configuring a field is indexable, or searchable.
  7348  type GoogleCloudDiscoveryengineV1alphaFieldConfig struct {
  7349  	// AdvancedSiteSearchDataSources: If this field is set, only the corresponding
  7350  	// source will be indexed for this field. Otherwise, the values from different
  7351  	// sources are merged. Assuming a page with `` in meta tag, and `` in page map:
  7352  	// if this enum is set to METATAGS, we will only index ``; if this enum is not
  7353  	// set, we will merge them and index ``.
  7354  	//
  7355  	// Possible values:
  7356  	//   "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED" - Value used when unset.
  7357  	//   "METATAGS" - Retrieve value from meta tag.
  7358  	//   "PAGEMAP" - Retrieve value from page map.
  7359  	AdvancedSiteSearchDataSources []string `json:"advancedSiteSearchDataSources,omitempty"`
  7360  	// CompletableOption: If completable_option is COMPLETABLE_ENABLED, field
  7361  	// values are directly used and returned as suggestions for Autocomplete in
  7362  	// CompletionService.CompleteQuery. If completable_option is unset, the server
  7363  	// behavior defaults to COMPLETABLE_DISABLED for fields that support setting
  7364  	// completable options, which are just `string` fields. For those fields that
  7365  	// do not support setting completable options, the server will skip completable
  7366  	// option setting, and setting completable_option for those fields will throw
  7367  	// `INVALID_ARGUMENT` error.
  7368  	//
  7369  	// Possible values:
  7370  	//   "COMPLETABLE_OPTION_UNSPECIFIED" - Value used when unset.
  7371  	//   "COMPLETABLE_ENABLED" - Completable option enabled for a schema field.
  7372  	//   "COMPLETABLE_DISABLED" - Completable option disabled for a schema field.
  7373  	CompletableOption string `json:"completableOption,omitempty"`
  7374  	// DynamicFacetableOption: If dynamic_facetable_option is
  7375  	// DYNAMIC_FACETABLE_ENABLED, field values are available for dynamic facet.
  7376  	// Could only be DYNAMIC_FACETABLE_DISABLED if FieldConfig.indexable_option is
  7377  	// INDEXABLE_DISABLED. Otherwise, an `INVALID_ARGUMENT` error will be returned.
  7378  	// If dynamic_facetable_option is unset, the server behavior defaults to
  7379  	// DYNAMIC_FACETABLE_DISABLED for fields that support setting dynamic facetable
  7380  	// options. For those fields that do not support setting dynamic facetable
  7381  	// options, such as `object` and `boolean`, the server will skip dynamic
  7382  	// facetable option setting, and setting dynamic_facetable_option for those
  7383  	// fields will throw `INVALID_ARGUMENT` error.
  7384  	//
  7385  	// Possible values:
  7386  	//   "DYNAMIC_FACETABLE_OPTION_UNSPECIFIED" - Value used when unset.
  7387  	//   "DYNAMIC_FACETABLE_ENABLED" - Dynamic facetable option enabled for a
  7388  	// schema field.
  7389  	//   "DYNAMIC_FACETABLE_DISABLED" - Dynamic facetable option disabled for a
  7390  	// schema field.
  7391  	DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"`
  7392  	// FieldPath: Required. Field path of the schema field. For example: `title`,
  7393  	// `description`, `release_info.release_year`.
  7394  	FieldPath string `json:"fieldPath,omitempty"`
  7395  	// FieldType: Output only. Raw type of the field.
  7396  	//
  7397  	// Possible values:
  7398  	//   "FIELD_TYPE_UNSPECIFIED" - Field type is unspecified.
  7399  	//   "OBJECT" - Field value type is Object.
  7400  	//   "STRING" - Field value type is String.
  7401  	//   "NUMBER" - Field value type is Number.
  7402  	//   "INTEGER" - Field value type is Integer.
  7403  	//   "BOOLEAN" - Field value type is Boolean.
  7404  	//   "GEOLOCATION" - Field value type is Geolocation. Geolocation is expressed
  7405  	// as an object with the following keys: * `id`: a string representing the
  7406  	// location id * `longitude`: a number representing the longitude coordinate of
  7407  	// the location * `latitude`: a number repesenting the latitude coordinate of
  7408  	// the location * `address`: a string representing the full address of the
  7409  	// location `latitude` and `longitude` must always be provided together. At
  7410  	// least one of a) `address` or b) `latitude`-`longitude` pair must be
  7411  	// provided.
  7412  	//   "DATETIME" - Field value type is Datetime. Datetime can be expressed as
  7413  	// either: * a number representing milliseconds-since-the-epoch * a string
  7414  	// representing milliseconds-since-the-epoch. e.g. "1420070400001" * a string
  7415  	// representing the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date or
  7416  	// date and time. e.g. "2015-01-01" or "2015-01-01T12:10:30Z"
  7417  	FieldType string `json:"fieldType,omitempty"`
  7418  	// IndexableOption: If indexable_option is INDEXABLE_ENABLED, field values are
  7419  	// indexed so that it can be filtered or faceted in SearchService.Search. If
  7420  	// indexable_option is unset, the server behavior defaults to
  7421  	// INDEXABLE_DISABLED for fields that support setting indexable options. For
  7422  	// those fields that do not support setting indexable options, such as `object`
  7423  	// and `boolean` and key properties, the server will skip indexable_option
  7424  	// setting, and setting indexable_option for those fields will throw
  7425  	// `INVALID_ARGUMENT` error.
  7426  	//
  7427  	// Possible values:
  7428  	//   "INDEXABLE_OPTION_UNSPECIFIED" - Value used when unset.
  7429  	//   "INDEXABLE_ENABLED" - Indexable option enabled for a schema field.
  7430  	//   "INDEXABLE_DISABLED" - Indexable option disabled for a schema field.
  7431  	IndexableOption string `json:"indexableOption,omitempty"`
  7432  	// KeyPropertyType: Output only. Type of the key property that this field is
  7433  	// mapped to. Empty string if this is not annotated as mapped to a key
  7434  	// property. Example types are `title`, `description`. Full list is defined by
  7435  	// `keyPropertyMapping` in the schema field annotation. If the schema field has
  7436  	// a `KeyPropertyMapping` annotation, `indexable_option` and
  7437  	// `searchable_option` of this field cannot be modified.
  7438  	KeyPropertyType string `json:"keyPropertyType,omitempty"`
  7439  	// RecsFilterableOption: If recs_filterable_option is FILTERABLE_ENABLED, field
  7440  	// values are filterable by filter expression in
  7441  	// RecommendationService.Recommend. If FILTERABLE_ENABLED but the field type is
  7442  	// numerical, field values are not filterable by text queries in
  7443  	// RecommendationService.Recommend. Only textual fields are supported. If
  7444  	// recs_filterable_option is unset, the default setting is FILTERABLE_DISABLED
  7445  	// for fields that support setting filterable options. When a field set to
  7446  	// [FILTERABLE_DISABLED] is filtered, a warning is generated and an empty
  7447  	// result is returned.
  7448  	//
  7449  	// Possible values:
  7450  	//   "FILTERABLE_OPTION_UNSPECIFIED" - Value used when unset.
  7451  	//   "FILTERABLE_ENABLED" - Filterable option enabled for a schema field.
  7452  	//   "FILTERABLE_DISABLED" - Filterable option disabled for a schema field.
  7453  	RecsFilterableOption string `json:"recsFilterableOption,omitempty"`
  7454  	// RetrievableOption: If retrievable_option is RETRIEVABLE_ENABLED, field
  7455  	// values are included in the search results. If retrievable_option is unset,
  7456  	// the server behavior defaults to RETRIEVABLE_DISABLED for fields that support
  7457  	// setting retrievable options. For those fields that do not support setting
  7458  	// retrievable options, such as `object` and `boolean`, the server will skip
  7459  	// retrievable option setting, and setting retrievable_option for those fields
  7460  	// will throw `INVALID_ARGUMENT` error.
  7461  	//
  7462  	// Possible values:
  7463  	//   "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset.
  7464  	//   "RETRIEVABLE_ENABLED" - Retrievable option enabled for a schema field.
  7465  	//   "RETRIEVABLE_DISABLED" - Retrievable option disabled for a schema field.
  7466  	RetrievableOption string `json:"retrievableOption,omitempty"`
  7467  	// SearchableOption: If searchable_option is SEARCHABLE_ENABLED, field values
  7468  	// are searchable by text queries in SearchService.Search. If
  7469  	// SEARCHABLE_ENABLED but field type is numerical, field values will not be
  7470  	// searchable by text queries in SearchService.Search, as there are no text
  7471  	// values associated to numerical fields. If searchable_option is unset, the
  7472  	// server behavior defaults to SEARCHABLE_DISABLED for fields that support
  7473  	// setting searchable options. Only `string` fields that have no key property
  7474  	// mapping support setting searchable_option. For those fields that do not
  7475  	// support setting searchable options, the server will skip searchable option
  7476  	// setting, and setting searchable_option for those fields will throw
  7477  	// `INVALID_ARGUMENT` error.
  7478  	//
  7479  	// Possible values:
  7480  	//   "SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset.
  7481  	//   "SEARCHABLE_ENABLED" - Searchable option enabled for a schema field.
  7482  	//   "SEARCHABLE_DISABLED" - Searchable option disabled for a schema field.
  7483  	SearchableOption string `json:"searchableOption,omitempty"`
  7484  	// ForceSendFields is a list of field names (e.g.
  7485  	// "AdvancedSiteSearchDataSources") to unconditionally include in API requests.
  7486  	// By default, fields with empty or default values are omitted from API
  7487  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  7488  	// for more details.
  7489  	ForceSendFields []string `json:"-"`
  7490  	// NullFields is a list of field names (e.g. "AdvancedSiteSearchDataSources")
  7491  	// to include in API requests with the JSON null value. By default, fields with
  7492  	// empty values are omitted from API requests. See
  7493  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7494  	NullFields []string `json:"-"`
  7495  }
  7496  
  7497  func (s *GoogleCloudDiscoveryengineV1alphaFieldConfig) MarshalJSON() ([]byte, error) {
  7498  	type NoMethod GoogleCloudDiscoveryengineV1alphaFieldConfig
  7499  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7500  }
  7501  
  7502  // GoogleCloudDiscoveryengineV1alphaIdpConfig: Identity Provider Config.
  7503  type GoogleCloudDiscoveryengineV1alphaIdpConfig struct {
  7504  	// ExternalIdpConfig: External Identity provider config.
  7505  	ExternalIdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig `json:"externalIdpConfig,omitempty"`
  7506  	// IdpType: Identity provider type configured.
  7507  	//
  7508  	// Possible values:
  7509  	//   "IDP_TYPE_UNSPECIFIED" - Default value. ACL search not enabled.
  7510  	//   "GSUITE" - Google 1P provider.
  7511  	//   "THIRD_PARTY" - Third party provider.
  7512  	IdpType string `json:"idpType,omitempty"`
  7513  	// ForceSendFields is a list of field names (e.g. "ExternalIdpConfig") to
  7514  	// unconditionally include in API requests. By default, fields with empty or
  7515  	// default values are omitted from API requests. See
  7516  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7517  	// details.
  7518  	ForceSendFields []string `json:"-"`
  7519  	// NullFields is a list of field names (e.g. "ExternalIdpConfig") to include in
  7520  	// API requests with the JSON null value. By default, fields with empty values
  7521  	// are omitted from API requests. See
  7522  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7523  	NullFields []string `json:"-"`
  7524  }
  7525  
  7526  func (s *GoogleCloudDiscoveryengineV1alphaIdpConfig) MarshalJSON() ([]byte, error) {
  7527  	type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfig
  7528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7529  }
  7530  
  7531  // GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig: Third party IDP
  7532  // Config.
  7533  type GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig struct {
  7534  	// WorkforcePoolName: Workforce pool name. Example:
  7535  	// "locations/global/workforcePools/pool_id"
  7536  	WorkforcePoolName string `json:"workforcePoolName,omitempty"`
  7537  	// ForceSendFields is a list of field names (e.g. "WorkforcePoolName") to
  7538  	// unconditionally include in API requests. By default, fields with empty or
  7539  	// default values are omitted from API requests. See
  7540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7541  	// details.
  7542  	ForceSendFields []string `json:"-"`
  7543  	// NullFields is a list of field names (e.g. "WorkforcePoolName") to include in
  7544  	// API requests with the JSON null value. By default, fields with empty values
  7545  	// are omitted from API requests. See
  7546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7547  	NullFields []string `json:"-"`
  7548  }
  7549  
  7550  func (s *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig) MarshalJSON() ([]byte, error) {
  7551  	type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig
  7552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7553  }
  7554  
  7555  // GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata: Metadata related
  7556  // to the progress of the ImportDocuments operation. This is returned by the
  7557  // google.longrunning.Operation.metadata field.
  7558  type GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata struct {
  7559  	// CreateTime: Operation create time.
  7560  	CreateTime string `json:"createTime,omitempty"`
  7561  	// FailureCount: Count of entries that encountered errors while processing.
  7562  	FailureCount int64 `json:"failureCount,omitempty,string"`
  7563  	// SuccessCount: Count of entries that were processed successfully.
  7564  	SuccessCount int64 `json:"successCount,omitempty,string"`
  7565  	// TotalCount: Total count of entries that were processed.
  7566  	TotalCount int64 `json:"totalCount,omitempty,string"`
  7567  	// UpdateTime: Operation last update time. If the operation is done, this is
  7568  	// also the finish time.
  7569  	UpdateTime string `json:"updateTime,omitempty"`
  7570  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7571  	// unconditionally include in API requests. By default, fields with empty or
  7572  	// default values are omitted from API requests. See
  7573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7574  	// details.
  7575  	ForceSendFields []string `json:"-"`
  7576  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7577  	// requests with the JSON null value. By default, fields with empty values are
  7578  	// omitted from API requests. See
  7579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7580  	NullFields []string `json:"-"`
  7581  }
  7582  
  7583  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  7584  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
  7585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7586  }
  7587  
  7588  // GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse: Response of the
  7589  // ImportDocumentsRequest. If the long running operation is done, then this
  7590  // message is returned by the google.longrunning.Operations.response field if
  7591  // the operation was successful.
  7592  type GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse struct {
  7593  	// ErrorConfig: Echoes the destination for the complete errors in the request
  7594  	// if set.
  7595  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  7596  	// ErrorSamples: A sample of errors encountered while processing the request.
  7597  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  7598  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  7599  	// unconditionally include in API requests. By default, fields with empty or
  7600  	// default values are omitted from API requests. See
  7601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7602  	// details.
  7603  	ForceSendFields []string `json:"-"`
  7604  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  7605  	// requests with the JSON null value. By default, fields with empty values are
  7606  	// omitted from API requests. See
  7607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7608  	NullFields []string `json:"-"`
  7609  }
  7610  
  7611  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  7612  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
  7613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7614  }
  7615  
  7616  // GoogleCloudDiscoveryengineV1alphaImportErrorConfig: Configuration of
  7617  // destination for Import related errors.
  7618  type GoogleCloudDiscoveryengineV1alphaImportErrorConfig struct {
  7619  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  7620  	// existing Cloud Storage directory. Import errors are written to sharded files
  7621  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  7622  	// message.
  7623  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  7624  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  7625  	// unconditionally include in API requests. By default, fields with empty or
  7626  	// default values are omitted from API requests. See
  7627  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7628  	// details.
  7629  	ForceSendFields []string `json:"-"`
  7630  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  7631  	// requests with the JSON null value. By default, fields with empty values are
  7632  	// omitted from API requests. See
  7633  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7634  	NullFields []string `json:"-"`
  7635  }
  7636  
  7637  func (s *GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byte, error) {
  7638  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportErrorConfig
  7639  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7640  }
  7641  
  7642  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata:
  7643  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  7644  // operation. This is returned by the google.longrunning.Operation.metadata
  7645  // field.
  7646  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata struct {
  7647  	// CreateTime: Operation create time.
  7648  	CreateTime string `json:"createTime,omitempty"`
  7649  	// UpdateTime: Operation last update time. If the operation is done, this is
  7650  	// also the finish time.
  7651  	UpdateTime string `json:"updateTime,omitempty"`
  7652  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7653  	// unconditionally include in API requests. By default, fields with empty or
  7654  	// default values are omitted from API requests. See
  7655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7656  	// details.
  7657  	ForceSendFields []string `json:"-"`
  7658  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7659  	// requests with the JSON null value. By default, fields with empty values are
  7660  	// omitted from API requests. See
  7661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7662  	NullFields []string `json:"-"`
  7663  }
  7664  
  7665  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  7666  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
  7667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7668  }
  7669  
  7670  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse:
  7671  // Response message for CompletionService.ImportSuggestionDenyListEntries
  7672  // method.
  7673  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse struct {
  7674  	// ErrorSamples: A sample of errors encountered while processing the request.
  7675  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  7676  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  7677  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  7678  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  7679  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  7680  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  7681  	// unconditionally include in API requests. By default, fields with empty or
  7682  	// default values are omitted from API requests. See
  7683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7684  	// details.
  7685  	ForceSendFields []string `json:"-"`
  7686  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  7687  	// requests with the JSON null value. By default, fields with empty values are
  7688  	// omitted from API requests. See
  7689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7690  	NullFields []string `json:"-"`
  7691  }
  7692  
  7693  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  7694  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
  7695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7696  }
  7697  
  7698  // GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata: Metadata related
  7699  // to the progress of the Import operation. This is returned by the
  7700  // google.longrunning.Operation.metadata field.
  7701  type GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata struct {
  7702  	// CreateTime: Operation create time.
  7703  	CreateTime string `json:"createTime,omitempty"`
  7704  	// FailureCount: Count of entries that encountered errors while processing.
  7705  	FailureCount int64 `json:"failureCount,omitempty,string"`
  7706  	// SuccessCount: Count of entries that were processed successfully.
  7707  	SuccessCount int64 `json:"successCount,omitempty,string"`
  7708  	// UpdateTime: Operation last update time. If the operation is done, this is
  7709  	// also the finish time.
  7710  	UpdateTime string `json:"updateTime,omitempty"`
  7711  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7712  	// unconditionally include in API requests. By default, fields with empty or
  7713  	// default values are omitted from API requests. See
  7714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7715  	// details.
  7716  	ForceSendFields []string `json:"-"`
  7717  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7718  	// requests with the JSON null value. By default, fields with empty values are
  7719  	// omitted from API requests. See
  7720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7721  	NullFields []string `json:"-"`
  7722  }
  7723  
  7724  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  7725  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
  7726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7727  }
  7728  
  7729  // GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse: Response of the
  7730  // ImportUserEventsRequest. If the long running operation was successful, then
  7731  // this message is returned by the google.longrunning.Operations.response field
  7732  // if the operation was successful.
  7733  type GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse struct {
  7734  	// ErrorConfig: Echoes the destination for the complete errors if this field
  7735  	// was set in the request.
  7736  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  7737  	// ErrorSamples: A sample of errors encountered while processing the request.
  7738  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  7739  	// JoinedEventsCount: Count of user events imported with complete existing
  7740  	// Documents.
  7741  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  7742  	// UnjoinedEventsCount: Count of user events imported, but with Document
  7743  	// information not found in the existing Branch.
  7744  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  7745  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  7746  	// unconditionally include in API requests. By default, fields with empty or
  7747  	// default values are omitted from API requests. See
  7748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7749  	// details.
  7750  	ForceSendFields []string `json:"-"`
  7751  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  7752  	// requests with the JSON null value. By default, fields with empty values are
  7753  	// omitted from API requests. See
  7754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7755  	NullFields []string `json:"-"`
  7756  }
  7757  
  7758  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  7759  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
  7760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7761  }
  7762  
  7763  // GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse: Response message
  7764  // for SearchTuningService.ListCustomModels method.
  7765  type GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse struct {
  7766  	// Models: List of custom tuning models.
  7767  	Models []*GoogleCloudDiscoveryengineV1alphaCustomTuningModel `json:"models,omitempty"`
  7768  	// ForceSendFields is a list of field names (e.g. "Models") to unconditionally
  7769  	// include in API requests. By default, fields with empty or default values are
  7770  	// omitted from API requests. See
  7771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7772  	// details.
  7773  	ForceSendFields []string `json:"-"`
  7774  	// NullFields is a list of field names (e.g. "Models") to include in API
  7775  	// requests with the JSON null value. By default, fields with empty values are
  7776  	// omitted from API requests. See
  7777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7778  	NullFields []string `json:"-"`
  7779  }
  7780  
  7781  func (s *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
  7782  	type NoMethod GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
  7783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7784  }
  7785  
  7786  // GoogleCloudDiscoveryengineV1alphaProject: Metadata and configurations for a
  7787  // Google Cloud project in the service.
  7788  type GoogleCloudDiscoveryengineV1alphaProject struct {
  7789  	// CreateTime: Output only. The timestamp when this project is created.
  7790  	CreateTime string `json:"createTime,omitempty"`
  7791  	// Name: Output only. Full resource name of the project, for example
  7792  	// `projects/{project_number}`. Note that when making requests, project number
  7793  	// and project id are both acceptable, but the server will always respond in
  7794  	// project number.
  7795  	Name string `json:"name,omitempty"`
  7796  	// ProvisionCompletionTime: Output only. The timestamp when this project is
  7797  	// successfully provisioned. Empty value means this project is still
  7798  	// provisioning and is not ready for use.
  7799  	ProvisionCompletionTime string `json:"provisionCompletionTime,omitempty"`
  7800  	// ServiceTermsMap: Output only. A map of terms of services. The key is the
  7801  	// `id` of ServiceTerms.
  7802  	ServiceTermsMap map[string]GoogleCloudDiscoveryengineV1alphaProjectServiceTerms `json:"serviceTermsMap,omitempty"`
  7803  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7804  	// unconditionally include in API requests. By default, fields with empty or
  7805  	// default values are omitted from API requests. See
  7806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7807  	// details.
  7808  	ForceSendFields []string `json:"-"`
  7809  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7810  	// requests with the JSON null value. By default, fields with empty values are
  7811  	// omitted from API requests. See
  7812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7813  	NullFields []string `json:"-"`
  7814  }
  7815  
  7816  func (s *GoogleCloudDiscoveryengineV1alphaProject) MarshalJSON() ([]byte, error) {
  7817  	type NoMethod GoogleCloudDiscoveryengineV1alphaProject
  7818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7819  }
  7820  
  7821  // GoogleCloudDiscoveryengineV1alphaProjectServiceTerms: Metadata about the
  7822  // terms of service.
  7823  type GoogleCloudDiscoveryengineV1alphaProjectServiceTerms struct {
  7824  	// AcceptTime: The last time when the project agreed to the terms of service.
  7825  	AcceptTime string `json:"acceptTime,omitempty"`
  7826  	// DeclineTime: The last time when the project declined or revoked the
  7827  	// agreement to terms of service.
  7828  	DeclineTime string `json:"declineTime,omitempty"`
  7829  	// Id: The unique identifier of this terms of service. Available terms: *
  7830  	// `GA_DATA_USE_TERMS`: Terms for data use
  7831  	// (https://cloud.google.com/retail/data-use-terms). When using this as `id`,
  7832  	// the acceptable version to provide is `2022-11-23`.
  7833  	Id string `json:"id,omitempty"`
  7834  	// State: Whether the project has accepted/rejected the service terms or it is
  7835  	// still pending.
  7836  	//
  7837  	// Possible values:
  7838  	//   "STATE_UNSPECIFIED" - The default value of the enum. This value is not
  7839  	// actually used.
  7840  	//   "TERMS_ACCEPTED" - The project has given consent to the terms of service.
  7841  	//   "TERMS_PENDING" - The project is pending to review and accept the terms of
  7842  	// service.
  7843  	//   "TERMS_DECLINED" - The project has declined or revoked the agreement to
  7844  	// terms of service.
  7845  	State string `json:"state,omitempty"`
  7846  	// Version: The version string of the terms of service. For acceptable values,
  7847  	// see the comments for id above.
  7848  	Version string `json:"version,omitempty"`
  7849  	// ForceSendFields is a list of field names (e.g. "AcceptTime") to
  7850  	// unconditionally include in API requests. By default, fields with empty or
  7851  	// default values are omitted from API requests. See
  7852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7853  	// details.
  7854  	ForceSendFields []string `json:"-"`
  7855  	// NullFields is a list of field names (e.g. "AcceptTime") to include in API
  7856  	// requests with the JSON null value. By default, fields with empty values are
  7857  	// omitted from API requests. See
  7858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7859  	NullFields []string `json:"-"`
  7860  }
  7861  
  7862  func (s *GoogleCloudDiscoveryengineV1alphaProjectServiceTerms) MarshalJSON() ([]byte, error) {
  7863  	type NoMethod GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
  7864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7865  }
  7866  
  7867  // GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata: Metadata
  7868  // associated with a project provision operation.
  7869  type GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata struct {
  7870  }
  7871  
  7872  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata: Metadata related to
  7873  // the progress of the PurgeDocuments operation. This will be returned by the
  7874  // google.longrunning.Operation.metadata field.
  7875  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata struct {
  7876  	// CreateTime: Operation create time.
  7877  	CreateTime string `json:"createTime,omitempty"`
  7878  	// FailureCount: Count of entries that encountered errors while processing.
  7879  	FailureCount int64 `json:"failureCount,omitempty,string"`
  7880  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  7881  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  7882  	// SuccessCount: Count of entries that were deleted successfully.
  7883  	SuccessCount int64 `json:"successCount,omitempty,string"`
  7884  	// UpdateTime: Operation last update time. If the operation is done, this is
  7885  	// also the finish time.
  7886  	UpdateTime string `json:"updateTime,omitempty"`
  7887  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7888  	// unconditionally include in API requests. By default, fields with empty or
  7889  	// default values are omitted from API requests. See
  7890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7891  	// details.
  7892  	ForceSendFields []string `json:"-"`
  7893  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7894  	// requests with the JSON null value. By default, fields with empty values are
  7895  	// omitted from API requests. See
  7896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7897  	NullFields []string `json:"-"`
  7898  }
  7899  
  7900  func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  7901  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
  7902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7903  }
  7904  
  7905  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse: Response message
  7906  // for DocumentService.PurgeDocuments method. If the long running operation is
  7907  // successfully done, then this message is returned by the
  7908  // google.longrunning.Operations.response field.
  7909  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse struct {
  7910  	// PurgeCount: The total count of documents purged as a result of the
  7911  	// operation.
  7912  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  7913  	// PurgeSample: A sample of document names that will be deleted. Only populated
  7914  	// if `force` is set to false. A max of 100 names will be returned and the
  7915  	// names are chosen at random.
  7916  	PurgeSample []string `json:"purgeSample,omitempty"`
  7917  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  7918  	// unconditionally include in API requests. By default, fields with empty or
  7919  	// default values are omitted from API requests. See
  7920  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7921  	// details.
  7922  	ForceSendFields []string `json:"-"`
  7923  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  7924  	// requests with the JSON null value. By default, fields with empty values are
  7925  	// omitted from API requests. See
  7926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7927  	NullFields []string `json:"-"`
  7928  }
  7929  
  7930  func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  7931  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
  7932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7933  }
  7934  
  7935  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata:
  7936  // Metadata related to the progress of the PurgeSuggestionDenyListEntries
  7937  // operation. This is returned by the google.longrunning.Operation.metadata
  7938  // field.
  7939  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata struct {
  7940  	// CreateTime: Operation create time.
  7941  	CreateTime string `json:"createTime,omitempty"`
  7942  	// UpdateTime: Operation last update time. If the operation is done, this is
  7943  	// also the finish time.
  7944  	UpdateTime string `json:"updateTime,omitempty"`
  7945  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7946  	// unconditionally include in API requests. By default, fields with empty or
  7947  	// default values are omitted from API requests. See
  7948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7949  	// details.
  7950  	ForceSendFields []string `json:"-"`
  7951  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7952  	// requests with the JSON null value. By default, fields with empty values are
  7953  	// omitted from API requests. See
  7954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7955  	NullFields []string `json:"-"`
  7956  }
  7957  
  7958  func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  7959  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata
  7960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7961  }
  7962  
  7963  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse:
  7964  // Response message for CompletionService.PurgeSuggestionDenyListEntries
  7965  // method.
  7966  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse struct {
  7967  	// ErrorSamples: A sample of errors encountered while processing the request.
  7968  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  7969  	// PurgeCount: Number of suggestion deny list entries purged.
  7970  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  7971  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  7972  	// unconditionally include in API requests. By default, fields with empty or
  7973  	// default values are omitted from API requests. See
  7974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7975  	// details.
  7976  	ForceSendFields []string `json:"-"`
  7977  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  7978  	// requests with the JSON null value. By default, fields with empty values are
  7979  	// omitted from API requests. See
  7980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7981  	NullFields []string `json:"-"`
  7982  }
  7983  
  7984  func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  7985  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse
  7986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7987  }
  7988  
  7989  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata: Metadata related
  7990  // to the progress of the PurgeUserEvents operation. This will be returned by
  7991  // the google.longrunning.Operation.metadata field.
  7992  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct {
  7993  	// CreateTime: Operation create time.
  7994  	CreateTime string `json:"createTime,omitempty"`
  7995  	// FailureCount: Count of entries that encountered errors while processing.
  7996  	FailureCount int64 `json:"failureCount,omitempty,string"`
  7997  	// SuccessCount: Count of entries that were deleted successfully.
  7998  	SuccessCount int64 `json:"successCount,omitempty,string"`
  7999  	// UpdateTime: Operation last update time. If the operation is done, this is
  8000  	// also the finish time.
  8001  	UpdateTime string `json:"updateTime,omitempty"`
  8002  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8003  	// unconditionally include in API requests. By default, fields with empty or
  8004  	// default values are omitted from API requests. See
  8005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8006  	// details.
  8007  	ForceSendFields []string `json:"-"`
  8008  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8009  	// requests with the JSON null value. By default, fields with empty values are
  8010  	// omitted from API requests. See
  8011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8012  	NullFields []string `json:"-"`
  8013  }
  8014  
  8015  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) {
  8016  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
  8017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8018  }
  8019  
  8020  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse: Response of the
  8021  // PurgeUserEventsRequest. If the long running operation is successfully done,
  8022  // then this message is returned by the google.longrunning.Operations.response
  8023  // field.
  8024  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct {
  8025  	// PurgeCount: The total count of events purged as a result of the operation.
  8026  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  8027  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  8028  	// unconditionally include in API requests. By default, fields with empty or
  8029  	// default values are omitted from API requests. See
  8030  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8031  	// details.
  8032  	ForceSendFields []string `json:"-"`
  8033  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  8034  	// requests with the JSON null value. By default, fields with empty values are
  8035  	// omitted from API requests. See
  8036  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8037  	NullFields []string `json:"-"`
  8038  }
  8039  
  8040  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) {
  8041  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
  8042  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8043  }
  8044  
  8045  // GoogleCloudDiscoveryengineV1alphaQuery: Defines a user inputed query.
  8046  type GoogleCloudDiscoveryengineV1alphaQuery struct {
  8047  	// QueryId: Unique Id for the query.
  8048  	QueryId string `json:"queryId,omitempty"`
  8049  	// Text: Plain text.
  8050  	Text string `json:"text,omitempty"`
  8051  	// ForceSendFields is a list of field names (e.g. "QueryId") to unconditionally
  8052  	// include in API requests. By default, fields with empty or default values are
  8053  	// omitted from API requests. See
  8054  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8055  	// details.
  8056  	ForceSendFields []string `json:"-"`
  8057  	// NullFields is a list of field names (e.g. "QueryId") to include in API
  8058  	// requests with the JSON null value. By default, fields with empty values are
  8059  	// omitted from API requests. See
  8060  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8061  	NullFields []string `json:"-"`
  8062  }
  8063  
  8064  func (s *GoogleCloudDiscoveryengineV1alphaQuery) MarshalJSON() ([]byte, error) {
  8065  	type NoMethod GoogleCloudDiscoveryengineV1alphaQuery
  8066  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8067  }
  8068  
  8069  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata: Metadata related to
  8070  // the progress of the SiteSearchEngineService.RecrawlUris operation. This will
  8071  // be returned by the google.longrunning.Operation.metadata field.
  8072  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct {
  8073  	// CreateTime: Operation create time.
  8074  	CreateTime string `json:"createTime,omitempty"`
  8075  	// InvalidUris: Unique URIs in the request that don't match any TargetSite in
  8076  	// the DataStore, only match TargetSites that haven't been fully indexed, or
  8077  	// match a TargetSite with type EXCLUDE.
  8078  	InvalidUris []string `json:"invalidUris,omitempty"`
  8079  	// PendingCount: Total number of URIs that have yet to be crawled.
  8080  	PendingCount int64 `json:"pendingCount,omitempty"`
  8081  	// QuotaExceededCount: Total number of URIs that were rejected due to
  8082  	// insufficient indexing resources.
  8083  	QuotaExceededCount int64 `json:"quotaExceededCount,omitempty"`
  8084  	// SuccessCount: Total number of URIs that have been crawled so far.
  8085  	SuccessCount int64 `json:"successCount,omitempty"`
  8086  	// UpdateTime: Operation last update time. If the operation is done, this is
  8087  	// also the finish time.
  8088  	UpdateTime string `json:"updateTime,omitempty"`
  8089  	// ValidUrisCount: Total number of unique URIs in the request that are not in
  8090  	// invalid_uris.
  8091  	ValidUrisCount int64 `json:"validUrisCount,omitempty"`
  8092  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8093  	// unconditionally include in API requests. By default, fields with empty or
  8094  	// default values are omitted from API requests. See
  8095  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8096  	// details.
  8097  	ForceSendFields []string `json:"-"`
  8098  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8099  	// requests with the JSON null value. By default, fields with empty values are
  8100  	// omitted from API requests. See
  8101  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8102  	NullFields []string `json:"-"`
  8103  }
  8104  
  8105  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata) MarshalJSON() ([]byte, error) {
  8106  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
  8107  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8108  }
  8109  
  8110  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse: Response message for
  8111  // SiteSearchEngineService.RecrawlUris method.
  8112  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse struct {
  8113  	// FailedUris: URIs that were not crawled before the LRO terminated.
  8114  	FailedUris []string `json:"failedUris,omitempty"`
  8115  	// FailureSamples: Details for a sample of up to 10 `failed_uris`.
  8116  	FailureSamples []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo `json:"failureSamples,omitempty"`
  8117  	// ForceSendFields is a list of field names (e.g. "FailedUris") to
  8118  	// unconditionally include in API requests. By default, fields with empty or
  8119  	// default values are omitted from API requests. See
  8120  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8121  	// details.
  8122  	ForceSendFields []string `json:"-"`
  8123  	// NullFields is a list of field names (e.g. "FailedUris") to include in API
  8124  	// requests with the JSON null value. By default, fields with empty values are
  8125  	// omitted from API requests. See
  8126  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8127  	NullFields []string `json:"-"`
  8128  }
  8129  
  8130  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse) MarshalJSON() ([]byte, error) {
  8131  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
  8132  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8133  }
  8134  
  8135  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo: Details
  8136  // about why a particular URI failed to be crawled. Each FailureInfo contains
  8137  // one FailureReason per CorpusType.
  8138  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo struct {
  8139  	// FailureReasons: List of failure reasons by corpus type (e.g. desktop,
  8140  	// mobile).
  8141  	FailureReasons []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason `json:"failureReasons,omitempty"`
  8142  	// Uri: URI that failed to be crawled.
  8143  	Uri string `json:"uri,omitempty"`
  8144  	// ForceSendFields is a list of field names (e.g. "FailureReasons") to
  8145  	// unconditionally include in API requests. By default, fields with empty or
  8146  	// default values are omitted from API requests. See
  8147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8148  	// details.
  8149  	ForceSendFields []string `json:"-"`
  8150  	// NullFields is a list of field names (e.g. "FailureReasons") to include in
  8151  	// API requests with the JSON null value. By default, fields with empty values
  8152  	// are omitted from API requests. See
  8153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8154  	NullFields []string `json:"-"`
  8155  }
  8156  
  8157  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo) MarshalJSON() ([]byte, error) {
  8158  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
  8159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8160  }
  8161  
  8162  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason:
  8163  //
  8164  //	Details about why crawling failed for a particular CorpusType, e.g.,
  8165  //
  8166  // DESKTOP and MOBILE crawling may fail for different reasons.
  8167  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason struct {
  8168  	// CorpusType: DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
  8169  	//
  8170  	// Possible values:
  8171  	//   "CORPUS_TYPE_UNSPECIFIED" - Default value.
  8172  	//   "DESKTOP" - Denotes a crawling attempt for the desktop version of a page.
  8173  	//   "MOBILE" - Denotes a crawling attempt for the mobile version of a page.
  8174  	CorpusType string `json:"corpusType,omitempty"`
  8175  	// ErrorMessage: Reason why the URI was not crawled.
  8176  	ErrorMessage string `json:"errorMessage,omitempty"`
  8177  	// ForceSendFields is a list of field names (e.g. "CorpusType") to
  8178  	// unconditionally include in API requests. By default, fields with empty or
  8179  	// default values are omitted from API requests. See
  8180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8181  	// details.
  8182  	ForceSendFields []string `json:"-"`
  8183  	// NullFields is a list of field names (e.g. "CorpusType") to include in API
  8184  	// requests with the JSON null value. By default, fields with empty values are
  8185  	// omitted from API requests. See
  8186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8187  	NullFields []string `json:"-"`
  8188  }
  8189  
  8190  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason) MarshalJSON() ([]byte, error) {
  8191  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
  8192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8193  }
  8194  
  8195  // GoogleCloudDiscoveryengineV1alphaSchema: Defines the structure and layout of
  8196  // a type of document data.
  8197  type GoogleCloudDiscoveryengineV1alphaSchema struct {
  8198  	// FieldConfigs: Output only. Configurations for fields of the schema.
  8199  	FieldConfigs []*GoogleCloudDiscoveryengineV1alphaFieldConfig `json:"fieldConfigs,omitempty"`
  8200  	// JsonSchema: The JSON representation of the schema.
  8201  	JsonSchema string `json:"jsonSchema,omitempty"`
  8202  	// Name: Immutable. The full resource name of the schema, in the format of
  8203  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  8204  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  8205  	// with a length limit of 1024 characters.
  8206  	Name string `json:"name,omitempty"`
  8207  	// StructSchema: The structured representation of the schema.
  8208  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  8209  	// ForceSendFields is a list of field names (e.g. "FieldConfigs") to
  8210  	// unconditionally include in API requests. By default, fields with empty or
  8211  	// default values are omitted from API requests. See
  8212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8213  	// details.
  8214  	ForceSendFields []string `json:"-"`
  8215  	// NullFields is a list of field names (e.g. "FieldConfigs") to include in API
  8216  	// requests with the JSON null value. By default, fields with empty values are
  8217  	// omitted from API requests. See
  8218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8219  	NullFields []string `json:"-"`
  8220  }
  8221  
  8222  func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) {
  8223  	type NoMethod GoogleCloudDiscoveryengineV1alphaSchema
  8224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8225  }
  8226  
  8227  // GoogleCloudDiscoveryengineV1alphaSession: External session proto definition.
  8228  type GoogleCloudDiscoveryengineV1alphaSession struct {
  8229  	// EndTime: Output only. The time the session finished.
  8230  	EndTime string `json:"endTime,omitempty"`
  8231  	// Name: Immutable. Fully qualified name
  8232  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
  8233  	// }/sessions/*`
  8234  	Name string `json:"name,omitempty"`
  8235  	// StartTime: Output only. The time the session started.
  8236  	StartTime string `json:"startTime,omitempty"`
  8237  	// State: The state of the session.
  8238  	//
  8239  	// Possible values:
  8240  	//   "STATE_UNSPECIFIED" - State is unspecified.
  8241  	//   "IN_PROGRESS" - The session is currently open.
  8242  	State string `json:"state,omitempty"`
  8243  	// Turns: Turns.
  8244  	Turns []*GoogleCloudDiscoveryengineV1alphaSessionTurn `json:"turns,omitempty"`
  8245  	// UserPseudoId: A unique identifier for tracking users.
  8246  	UserPseudoId string `json:"userPseudoId,omitempty"`
  8247  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  8248  	// include in API requests. By default, fields with empty or default values are
  8249  	// omitted from API requests. See
  8250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8251  	// details.
  8252  	ForceSendFields []string `json:"-"`
  8253  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  8254  	// requests with the JSON null value. By default, fields with empty values are
  8255  	// omitted from API requests. See
  8256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8257  	NullFields []string `json:"-"`
  8258  }
  8259  
  8260  func (s *GoogleCloudDiscoveryengineV1alphaSession) MarshalJSON() ([]byte, error) {
  8261  	type NoMethod GoogleCloudDiscoveryengineV1alphaSession
  8262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8263  }
  8264  
  8265  // GoogleCloudDiscoveryengineV1alphaSessionTurn: Represents a turn, including a
  8266  // query from the user and a answer from service.
  8267  type GoogleCloudDiscoveryengineV1alphaSessionTurn struct {
  8268  	// Answer: The resource name of the answer to the user query.
  8269  	Answer string `json:"answer,omitempty"`
  8270  	// Query: The user query.
  8271  	Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
  8272  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  8273  	// include in API requests. By default, fields with empty or default values are
  8274  	// omitted from API requests. See
  8275  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8276  	// details.
  8277  	ForceSendFields []string `json:"-"`
  8278  	// NullFields is a list of field names (e.g. "Answer") to include in API
  8279  	// requests with the JSON null value. By default, fields with empty values are
  8280  	// omitted from API requests. See
  8281  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8282  	NullFields []string `json:"-"`
  8283  }
  8284  
  8285  func (s *GoogleCloudDiscoveryengineV1alphaSessionTurn) MarshalJSON() ([]byte, error) {
  8286  	type NoMethod GoogleCloudDiscoveryengineV1alphaSessionTurn
  8287  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8288  }
  8289  
  8290  // GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo: Verification
  8291  // information for target sites in advanced site search.
  8292  type GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo struct {
  8293  	// SiteVerificationState: Site verification state indicating the ownership and
  8294  	// validity.
  8295  	//
  8296  	// Possible values:
  8297  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
  8298  	//   "VERIFIED" - Site ownership verified.
  8299  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
  8300  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
  8301  	// opens to all.
  8302  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
  8303  	// VerifyTime: Latest site verification time.
  8304  	VerifyTime string `json:"verifyTime,omitempty"`
  8305  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
  8306  	// unconditionally include in API requests. By default, fields with empty or
  8307  	// default values are omitted from API requests. See
  8308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8309  	// details.
  8310  	ForceSendFields []string `json:"-"`
  8311  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
  8312  	// include in API requests with the JSON null value. By default, fields with
  8313  	// empty values are omitted from API requests. See
  8314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8315  	NullFields []string `json:"-"`
  8316  }
  8317  
  8318  func (s *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
  8319  	type NoMethod GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
  8320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8321  }
  8322  
  8323  // GoogleCloudDiscoveryengineV1alphaTargetSite: A target site for the
  8324  // SiteSearchEngine.
  8325  type GoogleCloudDiscoveryengineV1alphaTargetSite struct {
  8326  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
  8327  	// include all pages whose address contains the provided_uri_pattern. If set to
  8328  	// true, an uri_pattern is generated to try to be an exact match of the
  8329  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
  8330  	// is a specific one. provided_uri_pattern is always normalized to generate the
  8331  	// URI pattern to be used by the search engine.
  8332  	ExactMatch bool `json:"exactMatch,omitempty"`
  8333  	// FailureReason: Output only. Failure reason.
  8334  	FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"`
  8335  	// GeneratedUriPattern: Output only. This is system-generated based on the
  8336  	// provided_uri_pattern.
  8337  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
  8338  	// IndexingStatus: Output only. Indexing status.
  8339  	//
  8340  	// Possible values:
  8341  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
  8342  	//   "PENDING" - The target site is in the update queue and will be picked up
  8343  	// by indexing pipeline.
  8344  	//   "FAILED" - The target site fails to be indexed.
  8345  	//   "SUCCEEDED" - The target site has been indexed.
  8346  	//   "DELETING" - The previously indexed target site has been marked to be
  8347  	// deleted. This is a transitioning state which will resulted in either: 1.
  8348  	// target site deleted if unindexing is successful; 2. state reverts to
  8349  	// SUCCEEDED if the unindexing fails.
  8350  	IndexingStatus string `json:"indexingStatus,omitempty"`
  8351  	// Name: Output only. The fully qualified resource name of the target site.
  8352  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  8353  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
  8354  	// `target_site_id` is system-generated.
  8355  	Name string `json:"name,omitempty"`
  8356  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
  8357  	// which the `generated_uri_pattern` is generated.
  8358  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  8359  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
  8360  	RootDomainUri string `json:"rootDomainUri,omitempty"`
  8361  	// SiteVerificationInfo: Output only. Site ownership and validity verification
  8362  	// status.
  8363  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
  8364  	// Type: The type of the target site, e.g., whether the site is to be included
  8365  	// or excluded.
  8366  	//
  8367  	// Possible values:
  8368  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
  8369  	// defaults to Type.INCLUDE.
  8370  	//   "INCLUDE" - Include the target site.
  8371  	//   "EXCLUDE" - Exclude the target site.
  8372  	Type string `json:"type,omitempty"`
  8373  	// UpdateTime: Output only. The target site's last updated time.
  8374  	UpdateTime string `json:"updateTime,omitempty"`
  8375  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  8376  	// unconditionally include in API requests. By default, fields with empty or
  8377  	// default values are omitted from API requests. See
  8378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8379  	// details.
  8380  	ForceSendFields []string `json:"-"`
  8381  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  8382  	// requests with the JSON null value. By default, fields with empty values are
  8383  	// omitted from API requests. See
  8384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8385  	NullFields []string `json:"-"`
  8386  }
  8387  
  8388  func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, error) {
  8389  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSite
  8390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8391  }
  8392  
  8393  // GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason: Site search
  8394  // indexing failure reasons.
  8395  type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct {
  8396  	// QuotaFailure: Failed due to insufficient quota.
  8397  	QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
  8398  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
  8399  	// unconditionally include in API requests. By default, fields with empty or
  8400  	// default values are omitted from API requests. See
  8401  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8402  	// details.
  8403  	ForceSendFields []string `json:"-"`
  8404  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
  8405  	// requests with the JSON null value. By default, fields with empty values are
  8406  	// omitted from API requests. See
  8407  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8408  	NullFields []string `json:"-"`
  8409  }
  8410  
  8411  func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
  8412  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason
  8413  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8414  }
  8415  
  8416  // GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure: Failed
  8417  // due to insufficient quota.
  8418  type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct {
  8419  	// TotalRequiredQuota: This number is an estimation on how much total quota
  8420  	// this project needs to successfully complete indexing.
  8421  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
  8422  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
  8423  	// unconditionally include in API requests. By default, fields with empty or
  8424  	// default values are omitted from API requests. See
  8425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8426  	// details.
  8427  	ForceSendFields []string `json:"-"`
  8428  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
  8429  	// in API requests with the JSON null value. By default, fields with empty
  8430  	// values are omitted from API requests. See
  8431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8432  	NullFields []string `json:"-"`
  8433  }
  8434  
  8435  func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
  8436  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure
  8437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8438  }
  8439  
  8440  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata: Metadata related
  8441  // to the progress of the TrainCustomModel operation. This is returned by the
  8442  // google.longrunning.Operation.metadata field.
  8443  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata struct {
  8444  	// CreateTime: Operation create time.
  8445  	CreateTime string `json:"createTime,omitempty"`
  8446  	// UpdateTime: Operation last update time. If the operation is done, this is
  8447  	// also the finish time.
  8448  	UpdateTime string `json:"updateTime,omitempty"`
  8449  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8450  	// unconditionally include in API requests. By default, fields with empty or
  8451  	// default values are omitted from API requests. See
  8452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8453  	// details.
  8454  	ForceSendFields []string `json:"-"`
  8455  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8456  	// requests with the JSON null value. By default, fields with empty values are
  8457  	// omitted from API requests. See
  8458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8459  	NullFields []string `json:"-"`
  8460  }
  8461  
  8462  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
  8463  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
  8464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8465  }
  8466  
  8467  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse: Response of the
  8468  // TrainCustomModelRequest. This message is returned by the
  8469  // google.longrunning.Operations.response field.
  8470  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse struct {
  8471  	// ErrorConfig: Echoes the destination for the complete errors in the request
  8472  	// if set.
  8473  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  8474  	// ErrorSamples: A sample of errors encountered while processing the data.
  8475  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  8476  	// Metrics: The metrics of the trained model.
  8477  	Metrics map[string]float64 `json:"metrics,omitempty"`
  8478  	// ModelName: Fully qualified name of the CustomTuningModel.
  8479  	ModelName string `json:"modelName,omitempty"`
  8480  	// ModelStatus: The trained model status. Possible values are: * **bad-data**:
  8481  	// The training data quality is bad. * **no-improvement**: Tuning didn't
  8482  	// improve performance. Won't deploy. * **in-progress**: Model training job
  8483  	// creation is in progress. * **training**: Model is actively training. *
  8484  	// **evaluating**: The model is evaluating trained metrics. * **indexing**: The
  8485  	// model trained metrics are indexing. * **ready**: The model is ready for
  8486  	// serving.
  8487  	ModelStatus string `json:"modelStatus,omitempty"`
  8488  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  8489  	// unconditionally include in API requests. By default, fields with empty or
  8490  	// default values are omitted from API requests. See
  8491  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8492  	// details.
  8493  	ForceSendFields []string `json:"-"`
  8494  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  8495  	// requests with the JSON null value. By default, fields with empty values are
  8496  	// omitted from API requests. See
  8497  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8498  	NullFields []string `json:"-"`
  8499  }
  8500  
  8501  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
  8502  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
  8503  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8504  }
  8505  
  8506  // GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata: Metadata associated
  8507  // with a tune operation.
  8508  type GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata struct {
  8509  	// Engine: Required. The resource name of the engine that this tune applies to.
  8510  	// Format:
  8511  	// `projects/{project_number}/locations/{location_id}/collections/{collection_id
  8512  	// }/engines/{engine_id}`
  8513  	Engine string `json:"engine,omitempty"`
  8514  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
  8515  	// include in API requests. By default, fields with empty or default values are
  8516  	// omitted from API requests. See
  8517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8518  	// details.
  8519  	ForceSendFields []string `json:"-"`
  8520  	// NullFields is a list of field names (e.g. "Engine") to include in API
  8521  	// requests with the JSON null value. By default, fields with empty values are
  8522  	// omitted from API requests. See
  8523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8524  	NullFields []string `json:"-"`
  8525  }
  8526  
  8527  func (s *GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
  8528  	type NoMethod GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata
  8529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8530  }
  8531  
  8532  // GoogleCloudDiscoveryengineV1alphaTuneEngineResponse: Response associated
  8533  // with a tune operation.
  8534  type GoogleCloudDiscoveryengineV1alphaTuneEngineResponse struct {
  8535  }
  8536  
  8537  // GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata: Metadata for
  8538  // UpdateSchema LRO.
  8539  type GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata struct {
  8540  	// CreateTime: Operation create time.
  8541  	CreateTime string `json:"createTime,omitempty"`
  8542  	// UpdateTime: Operation last update time. If the operation is done, this is
  8543  	// also the finish time.
  8544  	UpdateTime string `json:"updateTime,omitempty"`
  8545  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8546  	// unconditionally include in API requests. By default, fields with empty or
  8547  	// default values are omitted from API requests. See
  8548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8549  	// details.
  8550  	ForceSendFields []string `json:"-"`
  8551  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8552  	// requests with the JSON null value. By default, fields with empty values are
  8553  	// omitted from API requests. See
  8554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8555  	NullFields []string `json:"-"`
  8556  }
  8557  
  8558  func (s *GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
  8559  	type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
  8560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8561  }
  8562  
  8563  // GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata: Metadata related
  8564  // to the progress of the SiteSearchEngineService.UpdateTargetSite operation.
  8565  // This will be returned by the google.longrunning.Operation.metadata field.
  8566  type GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata struct {
  8567  	// CreateTime: Operation create time.
  8568  	CreateTime string `json:"createTime,omitempty"`
  8569  	// UpdateTime: Operation last update time. If the operation is done, this is
  8570  	// also the finish time.
  8571  	UpdateTime string `json:"updateTime,omitempty"`
  8572  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8573  	// unconditionally include in API requests. By default, fields with empty or
  8574  	// default values are omitted from API requests. See
  8575  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8576  	// details.
  8577  	ForceSendFields []string `json:"-"`
  8578  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8579  	// requests with the JSON null value. By default, fields with empty values are
  8580  	// omitted from API requests. See
  8581  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8582  	NullFields []string `json:"-"`
  8583  }
  8584  
  8585  func (s *GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  8586  	type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata
  8587  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8588  }
  8589  
  8590  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata: Metadata
  8591  // related to the progress of the
  8592  // SiteSearchEngineService.BatchCreateTargetSites operation. This will be
  8593  // returned by the google.longrunning.Operation.metadata field.
  8594  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata struct {
  8595  	// CreateTime: Operation create time.
  8596  	CreateTime string `json:"createTime,omitempty"`
  8597  	// UpdateTime: Operation last update time. If the operation is done, this is
  8598  	// also the finish time.
  8599  	UpdateTime string `json:"updateTime,omitempty"`
  8600  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8601  	// unconditionally include in API requests. By default, fields with empty or
  8602  	// default values are omitted from API requests. See
  8603  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8604  	// details.
  8605  	ForceSendFields []string `json:"-"`
  8606  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8607  	// requests with the JSON null value. By default, fields with empty values are
  8608  	// omitted from API requests. See
  8609  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8610  	NullFields []string `json:"-"`
  8611  }
  8612  
  8613  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  8614  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata
  8615  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8616  }
  8617  
  8618  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse: Response
  8619  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  8620  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse struct {
  8621  	// TargetSites: TargetSites created.
  8622  	TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
  8623  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  8624  	// unconditionally include in API requests. By default, fields with empty or
  8625  	// default values are omitted from API requests. See
  8626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8627  	// details.
  8628  	ForceSendFields []string `json:"-"`
  8629  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  8630  	// requests with the JSON null value. By default, fields with empty values are
  8631  	// omitted from API requests. See
  8632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8633  	NullFields []string `json:"-"`
  8634  }
  8635  
  8636  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  8637  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse
  8638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8639  }
  8640  
  8641  // GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata: Metadata related to
  8642  // the progress of the DataStoreService.CreateDataStore operation. This will be
  8643  // returned by the google.longrunning.Operation.metadata field.
  8644  type GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata struct {
  8645  	// CreateTime: Operation create time.
  8646  	CreateTime string `json:"createTime,omitempty"`
  8647  	// UpdateTime: Operation last update time. If the operation is done, this is
  8648  	// also the finish time.
  8649  	UpdateTime string `json:"updateTime,omitempty"`
  8650  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8651  	// unconditionally include in API requests. By default, fields with empty or
  8652  	// default values are omitted from API requests. See
  8653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8654  	// details.
  8655  	ForceSendFields []string `json:"-"`
  8656  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8657  	// requests with the JSON null value. By default, fields with empty values are
  8658  	// omitted from API requests. See
  8659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8660  	NullFields []string `json:"-"`
  8661  }
  8662  
  8663  func (s *GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  8664  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata
  8665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8666  }
  8667  
  8668  // GoogleCloudDiscoveryengineV1betaCreateEngineMetadata: Metadata related to
  8669  // the progress of the EngineService.CreateEngine operation. This will be
  8670  // returned by the google.longrunning.Operation.metadata field.
  8671  type GoogleCloudDiscoveryengineV1betaCreateEngineMetadata struct {
  8672  	// CreateTime: Operation create time.
  8673  	CreateTime string `json:"createTime,omitempty"`
  8674  	// UpdateTime: Operation last update time. If the operation is done, this is
  8675  	// also the finish time.
  8676  	UpdateTime string `json:"updateTime,omitempty"`
  8677  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8678  	// unconditionally include in API requests. By default, fields with empty or
  8679  	// default values are omitted from API requests. See
  8680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8681  	// details.
  8682  	ForceSendFields []string `json:"-"`
  8683  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8684  	// requests with the JSON null value. By default, fields with empty values are
  8685  	// omitted from API requests. See
  8686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8687  	NullFields []string `json:"-"`
  8688  }
  8689  
  8690  func (s *GoogleCloudDiscoveryengineV1betaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
  8691  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateEngineMetadata
  8692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8693  }
  8694  
  8695  // GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata: Metadata for Create
  8696  // Schema LRO.
  8697  type GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata struct {
  8698  	// CreateTime: Operation create time.
  8699  	CreateTime string `json:"createTime,omitempty"`
  8700  	// UpdateTime: Operation last update time. If the operation is done, this is
  8701  	// also the finish time.
  8702  	UpdateTime string `json:"updateTime,omitempty"`
  8703  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8704  	// unconditionally include in API requests. By default, fields with empty or
  8705  	// default values are omitted from API requests. See
  8706  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8707  	// details.
  8708  	ForceSendFields []string `json:"-"`
  8709  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8710  	// requests with the JSON null value. By default, fields with empty values are
  8711  	// omitted from API requests. See
  8712  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8713  	NullFields []string `json:"-"`
  8714  }
  8715  
  8716  func (s *GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  8717  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata
  8718  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8719  }
  8720  
  8721  // GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata: Metadata related
  8722  // to the progress of the SiteSearchEngineService.CreateTargetSite operation.
  8723  // This will be returned by the google.longrunning.Operation.metadata field.
  8724  type GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata struct {
  8725  	// CreateTime: Operation create time.
  8726  	CreateTime string `json:"createTime,omitempty"`
  8727  	// UpdateTime: Operation last update time. If the operation is done, this is
  8728  	// also the finish time.
  8729  	UpdateTime string `json:"updateTime,omitempty"`
  8730  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8731  	// unconditionally include in API requests. By default, fields with empty or
  8732  	// default values are omitted from API requests. See
  8733  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8734  	// details.
  8735  	ForceSendFields []string `json:"-"`
  8736  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8737  	// requests with the JSON null value. By default, fields with empty values are
  8738  	// omitted from API requests. See
  8739  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8740  	NullFields []string `json:"-"`
  8741  }
  8742  
  8743  func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  8744  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata
  8745  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8746  }
  8747  
  8748  // GoogleCloudDiscoveryengineV1betaCustomTuningModel: Metadata that describes a
  8749  // custom tuned model.
  8750  type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct {
  8751  	// CreateTime: Timestamp the Model was created at.
  8752  	CreateTime string `json:"createTime,omitempty"`
  8753  	// DisplayName: The display name of the model.
  8754  	DisplayName string `json:"displayName,omitempty"`
  8755  	// ModelState: The state that the model is in (e.g.`TRAINING` or
  8756  	// `TRAINING_FAILED`).
  8757  	//
  8758  	// Possible values:
  8759  	//   "MODEL_STATE_UNSPECIFIED"
  8760  	//   "TRAINING_PAUSED" - The model is in a paused training state.
  8761  	//   "TRAINING" - The model is currently training.
  8762  	//   "TRAINING_COMPLETE" - The model has successfully completed training.
  8763  	//   "READY_FOR_SERVING" - The model is ready for serving.
  8764  	//   "TRAINING_FAILED" - The model training failed.
  8765  	ModelState   string `json:"modelState,omitempty"`
  8766  	ModelVersion int64  `json:"modelVersion,omitempty,string"`
  8767  	// Name: Required. The fully qualified resource name of the model. Format:
  8768  	// `projects/{project_number}/locations/{location}/collections/{collection}/data
  8769  	// Stores/{data_store}/customTuningModels/{custom_tuning_model}` model must be
  8770  	// an alpha-numerical string with limit of 40 characters.
  8771  	Name string `json:"name,omitempty"`
  8772  	// TrainingStartTime: Timestamp the model training was initiated.
  8773  	TrainingStartTime string `json:"trainingStartTime,omitempty"`
  8774  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8775  	// unconditionally include in API requests. By default, fields with empty or
  8776  	// default values are omitted from API requests. See
  8777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8778  	// details.
  8779  	ForceSendFields []string `json:"-"`
  8780  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8781  	// requests with the JSON null value. By default, fields with empty values are
  8782  	// omitted from API requests. See
  8783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8784  	NullFields []string `json:"-"`
  8785  }
  8786  
  8787  func (s *GoogleCloudDiscoveryengineV1betaCustomTuningModel) MarshalJSON() ([]byte, error) {
  8788  	type NoMethod GoogleCloudDiscoveryengineV1betaCustomTuningModel
  8789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8790  }
  8791  
  8792  // GoogleCloudDiscoveryengineV1betaDataStore: DataStore captures global
  8793  // settings and configs at the DataStore level.
  8794  type GoogleCloudDiscoveryengineV1betaDataStore struct {
  8795  	// ContentConfig: Immutable. The content config of the data store. If this
  8796  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  8797  	//
  8798  	// Possible values:
  8799  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  8800  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  8801  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  8802  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  8803  	ContentConfig string `json:"contentConfig,omitempty"`
  8804  	// CreateTime: Output only. Timestamp the DataStore was created at.
  8805  	CreateTime string `json:"createTime,omitempty"`
  8806  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  8807  	// this data store.
  8808  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  8809  	// DisplayName: Required. The data store display name. This field must be a
  8810  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  8811  	// INVALID_ARGUMENT error is returned.
  8812  	DisplayName string `json:"displayName,omitempty"`
  8813  	// DocumentProcessingConfig: Configuration for Document understanding and
  8814  	// enrichment.
  8815  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  8816  	// IndustryVertical: Immutable. The industry vertical that the data store
  8817  	// registers.
  8818  	//
  8819  	// Possible values:
  8820  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  8821  	//   "GENERIC" - The generic vertical for documents that are not specific to
  8822  	// any industry vertical.
  8823  	//   "MEDIA" - The media industry vertical.
  8824  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  8825  	IndustryVertical string `json:"industryVertical,omitempty"`
  8826  	// Name: Immutable. The full resource name of the data store. Format:
  8827  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  8828  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  8829  	// limit of 1024 characters.
  8830  	Name string `json:"name,omitempty"`
  8831  	// SolutionTypes: The solutions that the data store enrolls. Available
  8832  	// solutions for each industry_vertical: * `MEDIA`:
  8833  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  8834  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  8835  	// enrolled.
  8836  	//
  8837  	// Possible values:
  8838  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  8839  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  8840  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  8841  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  8842  	// agent.
  8843  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  8844  	// Generative Chat agent. It's used for Generative chat engine only, the
  8845  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  8846  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  8847  	// StartingSchema: The start schema to use for this DataStore when provisioning
  8848  	// it. If unset, a default vertical specialized schema will be used. This field
  8849  	// is only used by CreateDataStore API, and will be ignored if used in other
  8850  	// APIs. This field will be omitted from all API responses including
  8851  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  8852  	// SchemaService.GetSchema API instead. The provided schema will be validated
  8853  	// against certain rules on schema. Learn more from this doc
  8854  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  8855  	StartingSchema *GoogleCloudDiscoveryengineV1betaSchema `json:"startingSchema,omitempty"`
  8856  	// ForceSendFields is a list of field names (e.g. "ContentConfig") to
  8857  	// unconditionally include in API requests. By default, fields with empty or
  8858  	// default values are omitted from API requests. See
  8859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8860  	// details.
  8861  	ForceSendFields []string `json:"-"`
  8862  	// NullFields is a list of field names (e.g. "ContentConfig") to include in API
  8863  	// requests with the JSON null value. By default, fields with empty values are
  8864  	// omitted from API requests. See
  8865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8866  	NullFields []string `json:"-"`
  8867  }
  8868  
  8869  func (s *GoogleCloudDiscoveryengineV1betaDataStore) MarshalJSON() ([]byte, error) {
  8870  	type NoMethod GoogleCloudDiscoveryengineV1betaDataStore
  8871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8872  }
  8873  
  8874  // GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata: Metadata related to
  8875  // the progress of the DataStoreService.DeleteDataStore operation. This will be
  8876  // returned by the google.longrunning.Operation.metadata field.
  8877  type GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata struct {
  8878  	// CreateTime: Operation create time.
  8879  	CreateTime string `json:"createTime,omitempty"`
  8880  	// UpdateTime: Operation last update time. If the operation is done, this is
  8881  	// also the finish time.
  8882  	UpdateTime string `json:"updateTime,omitempty"`
  8883  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8884  	// unconditionally include in API requests. By default, fields with empty or
  8885  	// default values are omitted from API requests. See
  8886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8887  	// details.
  8888  	ForceSendFields []string `json:"-"`
  8889  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8890  	// requests with the JSON null value. By default, fields with empty values are
  8891  	// omitted from API requests. See
  8892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8893  	NullFields []string `json:"-"`
  8894  }
  8895  
  8896  func (s *GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  8897  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata
  8898  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8899  }
  8900  
  8901  // GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata: Metadata related to
  8902  // the progress of the EngineService.DeleteEngine operation. This will be
  8903  // returned by the google.longrunning.Operation.metadata field.
  8904  type GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata struct {
  8905  	// CreateTime: Operation create time.
  8906  	CreateTime string `json:"createTime,omitempty"`
  8907  	// UpdateTime: Operation last update time. If the operation is done, this is
  8908  	// also the finish time.
  8909  	UpdateTime string `json:"updateTime,omitempty"`
  8910  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8911  	// unconditionally include in API requests. By default, fields with empty or
  8912  	// default values are omitted from API requests. See
  8913  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8914  	// details.
  8915  	ForceSendFields []string `json:"-"`
  8916  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8917  	// requests with the JSON null value. By default, fields with empty values are
  8918  	// omitted from API requests. See
  8919  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8920  	NullFields []string `json:"-"`
  8921  }
  8922  
  8923  func (s *GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  8924  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata
  8925  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8926  }
  8927  
  8928  // GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata: Metadata for
  8929  // DeleteSchema LRO.
  8930  type GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata struct {
  8931  	// CreateTime: Operation create time.
  8932  	CreateTime string `json:"createTime,omitempty"`
  8933  	// UpdateTime: Operation last update time. If the operation is done, this is
  8934  	// also the finish time.
  8935  	UpdateTime string `json:"updateTime,omitempty"`
  8936  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8937  	// unconditionally include in API requests. By default, fields with empty or
  8938  	// default values are omitted from API requests. See
  8939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8940  	// details.
  8941  	ForceSendFields []string `json:"-"`
  8942  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8943  	// requests with the JSON null value. By default, fields with empty values are
  8944  	// omitted from API requests. See
  8945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8946  	NullFields []string `json:"-"`
  8947  }
  8948  
  8949  func (s *GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  8950  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
  8951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8952  }
  8953  
  8954  // GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata: Metadata related
  8955  // to the progress of the SiteSearchEngineService.DeleteTargetSite operation.
  8956  // This will be returned by the google.longrunning.Operation.metadata field.
  8957  type GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata struct {
  8958  	// CreateTime: Operation create time.
  8959  	CreateTime string `json:"createTime,omitempty"`
  8960  	// UpdateTime: Operation last update time. If the operation is done, this is
  8961  	// also the finish time.
  8962  	UpdateTime string `json:"updateTime,omitempty"`
  8963  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8964  	// unconditionally include in API requests. By default, fields with empty or
  8965  	// default values are omitted from API requests. See
  8966  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8967  	// details.
  8968  	ForceSendFields []string `json:"-"`
  8969  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8970  	// requests with the JSON null value. By default, fields with empty values are
  8971  	// omitted from API requests. See
  8972  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8973  	NullFields []string `json:"-"`
  8974  }
  8975  
  8976  func (s *GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  8977  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata
  8978  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8979  }
  8980  
  8981  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata: Metadata
  8982  // related to the progress of the
  8983  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  8984  // returned by the google.longrunning.Operation.metadata field.
  8985  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata struct {
  8986  	// CreateTime: Operation create time.
  8987  	CreateTime string `json:"createTime,omitempty"`
  8988  	// UpdateTime: Operation last update time. If the operation is done, this is
  8989  	// also the finish time.
  8990  	UpdateTime string `json:"updateTime,omitempty"`
  8991  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8992  	// unconditionally include in API requests. By default, fields with empty or
  8993  	// default values are omitted from API requests. See
  8994  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8995  	// details.
  8996  	ForceSendFields []string `json:"-"`
  8997  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8998  	// requests with the JSON null value. By default, fields with empty values are
  8999  	// omitted from API requests. See
  9000  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9001  	NullFields []string `json:"-"`
  9002  }
  9003  
  9004  func (s *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  9005  	type NoMethod GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata
  9006  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9007  }
  9008  
  9009  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse: Response
  9010  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  9011  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse struct {
  9012  }
  9013  
  9014  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig: A singleton
  9015  // resource of DataStore. It's empty when DataStore is created, which defaults
  9016  // to digital parser. The first call to
  9017  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  9018  // config.
  9019  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig struct {
  9020  	// DefaultParsingConfig: Configurations for default Document parser. If not
  9021  	// specified, we will configure it as default DigitalParsingConfig, and the
  9022  	// default parsing config will be applied to all file types for Document
  9023  	// parsing.
  9024  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  9025  	// Name: The full resource name of the Document Processing Config. Format:
  9026  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  9027  	Name string `json:"name,omitempty"`
  9028  	// ParsingConfigOverrides: Map from file type to override the default parsing
  9029  	// configuration based on the file type. Supported keys: * `pdf`: Override
  9030  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  9031  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  9032  	// digital parsing and or layout parsing are supported. * `docx`: Override
  9033  	// parsing config for DOCX files, only digital parsing and or layout parsing
  9034  	// are supported.
  9035  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  9036  	// ForceSendFields is a list of field names (e.g. "DefaultParsingConfig") to
  9037  	// unconditionally include in API requests. By default, fields with empty or
  9038  	// default values are omitted from API requests. See
  9039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9040  	// details.
  9041  	ForceSendFields []string `json:"-"`
  9042  	// NullFields is a list of field names (e.g. "DefaultParsingConfig") to include
  9043  	// in API requests with the JSON null value. By default, fields with empty
  9044  	// values are omitted from API requests. See
  9045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9046  	NullFields []string `json:"-"`
  9047  }
  9048  
  9049  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  9050  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
  9051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9052  }
  9053  
  9054  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig:
  9055  // Related configurations applied to a specific type of document parser.
  9056  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig struct {
  9057  	// DigitalParsingConfig: Configurations applied to digital parser.
  9058  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  9059  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  9060  	// applies to PDFs.
  9061  	OcrParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  9062  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  9063  	// unconditionally include in API requests. By default, fields with empty or
  9064  	// default values are omitted from API requests. See
  9065  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9066  	// details.
  9067  	ForceSendFields []string `json:"-"`
  9068  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  9069  	// in API requests with the JSON null value. By default, fields with empty
  9070  	// values are omitted from API requests. See
  9071  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9072  	NullFields []string `json:"-"`
  9073  }
  9074  
  9075  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  9076  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
  9077  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9078  }
  9079  
  9080  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalP
  9081  // arsingConfig: The digital parsing configurations for documents.
  9082  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  9083  }
  9084  
  9085  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsi
  9086  // ngConfig: The OCR parsing configurations for documents.
  9087  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  9088  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  9089  	// additional enhanced document elements processing, please switch to
  9090  	// `layout_parsing_config`.
  9091  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  9092  	// UseNativeText: If true, will use native text instead of OCR text on pages
  9093  	// containing native text.
  9094  	UseNativeText bool `json:"useNativeText,omitempty"`
  9095  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  9096  	// to unconditionally include in API requests. By default, fields with empty or
  9097  	// default values are omitted from API requests. See
  9098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9099  	// details.
  9100  	ForceSendFields []string `json:"-"`
  9101  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  9102  	// include in API requests with the JSON null value. By default, fields with
  9103  	// empty values are omitted from API requests. See
  9104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9105  	NullFields []string `json:"-"`
  9106  }
  9107  
  9108  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  9109  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
  9110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9111  }
  9112  
  9113  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata: Metadata
  9114  // related to the progress of the
  9115  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  9116  // returned by the google.longrunning.Operation.metadata field.
  9117  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata struct {
  9118  	// CreateTime: Operation create time.
  9119  	CreateTime string `json:"createTime,omitempty"`
  9120  	// UpdateTime: Operation last update time. If the operation is done, this is
  9121  	// also the finish time.
  9122  	UpdateTime string `json:"updateTime,omitempty"`
  9123  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9124  	// unconditionally include in API requests. By default, fields with empty or
  9125  	// default values are omitted from API requests. See
  9126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9127  	// details.
  9128  	ForceSendFields []string `json:"-"`
  9129  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9130  	// requests with the JSON null value. By default, fields with empty values are
  9131  	// omitted from API requests. See
  9132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9133  	NullFields []string `json:"-"`
  9134  }
  9135  
  9136  func (s *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  9137  	type NoMethod GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
  9138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9139  }
  9140  
  9141  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse: Response
  9142  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  9143  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse struct {
  9144  }
  9145  
  9146  // GoogleCloudDiscoveryengineV1betaEngine: Metadata that describes the training
  9147  // and serving parameters of an Engine.
  9148  type GoogleCloudDiscoveryengineV1betaEngine struct {
  9149  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  9150  	// solution_type is SOLUTION_TYPE_CHAT.
  9151  	ChatEngineConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  9152  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  9153  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  9154  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  9155  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  9156  	CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
  9157  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  9158  	CreateTime string `json:"createTime,omitempty"`
  9159  	// DataStoreIds: The data stores associated with this engine. For
  9160  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  9161  	// can only associate with at most one data store. If solution_type is
  9162  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  9163  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  9164  	// id must be provided as the system will use it for necessary initializations.
  9165  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  9166  	// DisplayName: Required. The display name of the engine. Should be human
  9167  	// readable. UTF-8 encoded string with limit of 1024 characters.
  9168  	DisplayName string `json:"displayName,omitempty"`
  9169  	// IndustryVertical: The industry vertical that the engine registers. The
  9170  	// restriction of the Engine industry vertical is based on DataStore: If
  9171  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  9172  	// of the DataStore liniked to the engine.
  9173  	//
  9174  	// Possible values:
  9175  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  9176  	//   "GENERIC" - The generic vertical for documents that are not specific to
  9177  	// any industry vertical.
  9178  	//   "MEDIA" - The media industry vertical.
  9179  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  9180  	IndustryVertical string `json:"industryVertical,omitempty"`
  9181  	// Name: Immutable. The fully qualified resource name of the engine. This field
  9182  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  9183  	// Format:
  9184  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  9185  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  9186  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  9187  	Name string `json:"name,omitempty"`
  9188  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  9189  	// solution_type is SOLUTION_TYPE_SEARCH.
  9190  	SearchEngineConfig *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  9191  	// SolutionType: Required. The solutions of the engine.
  9192  	//
  9193  	// Possible values:
  9194  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  9195  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  9196  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  9197  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  9198  	// agent.
  9199  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  9200  	// Generative Chat agent. It's used for Generative chat engine only, the
  9201  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  9202  	SolutionType string `json:"solutionType,omitempty"`
  9203  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  9204  	// updated.
  9205  	UpdateTime string `json:"updateTime,omitempty"`
  9206  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  9207  	// unconditionally include in API requests. By default, fields with empty or
  9208  	// default values are omitted from API requests. See
  9209  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9210  	// details.
  9211  	ForceSendFields []string `json:"-"`
  9212  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  9213  	// API requests with the JSON null value. By default, fields with empty values
  9214  	// are omitted from API requests. See
  9215  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9216  	NullFields []string `json:"-"`
  9217  }
  9218  
  9219  func (s *GoogleCloudDiscoveryengineV1betaEngine) MarshalJSON() ([]byte, error) {
  9220  	type NoMethod GoogleCloudDiscoveryengineV1betaEngine
  9221  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9222  }
  9223  
  9224  // GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig: Configurations for a
  9225  // Chat Engine.
  9226  type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig struct {
  9227  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  9228  	// is associated to this Engine. Note that these configurations are one-time
  9229  	// consumed by and passed to Dialogflow service. It means they cannot be
  9230  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  9231  	// after engine creation.
  9232  	AgentCreationConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  9233  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  9234  	// link to this Chat Engine. Customers can either provide
  9235  	// `agent_creation_config` to create agent or provide an agent name that links
  9236  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  9237  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  9238  	// Dialogflow service. It means they cannot be retrieved using
  9239  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  9240  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  9241  	// association after Engine is created.
  9242  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  9243  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  9244  	// unconditionally include in API requests. By default, fields with empty or
  9245  	// default values are omitted from API requests. See
  9246  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9247  	// details.
  9248  	ForceSendFields []string `json:"-"`
  9249  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  9250  	// in API requests with the JSON null value. By default, fields with empty
  9251  	// values are omitted from API requests. See
  9252  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9253  	NullFields []string `json:"-"`
  9254  }
  9255  
  9256  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  9257  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig
  9258  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9259  }
  9260  
  9261  // GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig:
  9262  // Configurations for generating a Dialogflow agent. Note that these
  9263  // configurations are one-time consumed by and passed to Dialogflow service. It
  9264  // means they cannot be retrieved using EngineService.GetEngine or
  9265  // EngineService.ListEngines API after engine creation.
  9266  type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig struct {
  9267  	// Business: Name of the company, organization or other entity that the agent
  9268  	// represents. Used for knowledge connector LLM prompt and for knowledge
  9269  	// search.
  9270  	Business string `json:"business,omitempty"`
  9271  	// DefaultLanguageCode: Required. The default language of the agent as a
  9272  	// language tag. See Language Support
  9273  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  9274  	// the currently supported language codes.
  9275  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  9276  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  9277  	// If not provided, us Engine will create Agent using us-central-1 by default;
  9278  	// eu Engine will create Agent using eu-west-1 by default.
  9279  	Location string `json:"location,omitempty"`
  9280  	// TimeZone: Required. The time zone of the agent from the time zone database
  9281  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  9282  	TimeZone string `json:"timeZone,omitempty"`
  9283  	// ForceSendFields is a list of field names (e.g. "Business") to
  9284  	// unconditionally include in API requests. By default, fields with empty or
  9285  	// default values are omitted from API requests. See
  9286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9287  	// details.
  9288  	ForceSendFields []string `json:"-"`
  9289  	// NullFields is a list of field names (e.g. "Business") to include in API
  9290  	// requests with the JSON null value. By default, fields with empty values are
  9291  	// omitted from API requests. See
  9292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9293  	NullFields []string `json:"-"`
  9294  }
  9295  
  9296  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  9297  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig
  9298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9299  }
  9300  
  9301  // GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata: Additional
  9302  // information of a Chat Engine. Fields in this message are output only.
  9303  type GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata struct {
  9304  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  9305  	// Engine refers to. Format: `projects//locations//agents/`.
  9306  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  9307  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  9308  	// unconditionally include in API requests. By default, fields with empty or
  9309  	// default values are omitted from API requests. See
  9310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9311  	// details.
  9312  	ForceSendFields []string `json:"-"`
  9313  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  9314  	// API requests with the JSON null value. By default, fields with empty values
  9315  	// are omitted from API requests. See
  9316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9317  	NullFields []string `json:"-"`
  9318  }
  9319  
  9320  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  9321  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata
  9322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9323  }
  9324  
  9325  // GoogleCloudDiscoveryengineV1betaEngineCommonConfig: Common configurations
  9326  // for an Engine.
  9327  type GoogleCloudDiscoveryengineV1betaEngineCommonConfig struct {
  9328  	// CompanyName: Immutable. The name of the company, business or entity that is
  9329  	// associated with the engine. Setting this may help improve LLM related
  9330  	// features.
  9331  	CompanyName string `json:"companyName,omitempty"`
  9332  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  9333  	// unconditionally include in API requests. By default, fields with empty or
  9334  	// default values are omitted from API requests. See
  9335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9336  	// details.
  9337  	ForceSendFields []string `json:"-"`
  9338  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  9339  	// requests with the JSON null value. By default, fields with empty values are
  9340  	// omitted from API requests. See
  9341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9342  	NullFields []string `json:"-"`
  9343  }
  9344  
  9345  func (s *GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byte, error) {
  9346  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineCommonConfig
  9347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9348  }
  9349  
  9350  // GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig: Configurations for
  9351  // a Search Engine.
  9352  type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct {
  9353  	// SearchAddOns: The add-on that this search engine enables.
  9354  	//
  9355  	// Possible values:
  9356  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  9357  	// This is invalid to use.
  9358  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  9359  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  9360  	// SearchTier: The search feature tier of this engine. Different tiers might
  9361  	// have different pricing. To learn more, check the pricing documentation.
  9362  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  9363  	//
  9364  	// Possible values:
  9365  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  9366  	// This is invalid to use.
  9367  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  9368  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  9369  	SearchTier string `json:"searchTier,omitempty"`
  9370  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  9371  	// unconditionally include in API requests. By default, fields with empty or
  9372  	// default values are omitted from API requests. See
  9373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9374  	// details.
  9375  	ForceSendFields []string `json:"-"`
  9376  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  9377  	// requests with the JSON null value. By default, fields with empty values are
  9378  	// omitted from API requests. See
  9379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9380  	NullFields []string `json:"-"`
  9381  }
  9382  
  9383  func (s *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  9384  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig
  9385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9386  }
  9387  
  9388  // GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata: Metadata related to
  9389  // the progress of the ImportDocuments operation. This is returned by the
  9390  // google.longrunning.Operation.metadata field.
  9391  type GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata struct {
  9392  	// CreateTime: Operation create time.
  9393  	CreateTime string `json:"createTime,omitempty"`
  9394  	// FailureCount: Count of entries that encountered errors while processing.
  9395  	FailureCount int64 `json:"failureCount,omitempty,string"`
  9396  	// SuccessCount: Count of entries that were processed successfully.
  9397  	SuccessCount int64 `json:"successCount,omitempty,string"`
  9398  	// TotalCount: Total count of entries that were processed.
  9399  	TotalCount int64 `json:"totalCount,omitempty,string"`
  9400  	// UpdateTime: Operation last update time. If the operation is done, this is
  9401  	// also the finish time.
  9402  	UpdateTime string `json:"updateTime,omitempty"`
  9403  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9404  	// unconditionally include in API requests. By default, fields with empty or
  9405  	// default values are omitted from API requests. See
  9406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9407  	// details.
  9408  	ForceSendFields []string `json:"-"`
  9409  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9410  	// requests with the JSON null value. By default, fields with empty values are
  9411  	// omitted from API requests. See
  9412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9413  	NullFields []string `json:"-"`
  9414  }
  9415  
  9416  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  9417  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
  9418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9419  }
  9420  
  9421  // GoogleCloudDiscoveryengineV1betaImportDocumentsResponse: Response of the
  9422  // ImportDocumentsRequest. If the long running operation is done, then this
  9423  // message is returned by the google.longrunning.Operations.response field if
  9424  // the operation was successful.
  9425  type GoogleCloudDiscoveryengineV1betaImportDocumentsResponse struct {
  9426  	// ErrorConfig: Echoes the destination for the complete errors in the request
  9427  	// if set.
  9428  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  9429  	// ErrorSamples: A sample of errors encountered while processing the request.
  9430  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  9431  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  9432  	// unconditionally include in API requests. By default, fields with empty or
  9433  	// default values are omitted from API requests. See
  9434  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9435  	// details.
  9436  	ForceSendFields []string `json:"-"`
  9437  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  9438  	// requests with the JSON null value. By default, fields with empty values are
  9439  	// omitted from API requests. See
  9440  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9441  	NullFields []string `json:"-"`
  9442  }
  9443  
  9444  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  9445  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsResponse
  9446  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9447  }
  9448  
  9449  // GoogleCloudDiscoveryengineV1betaImportErrorConfig: Configuration of
  9450  // destination for Import related errors.
  9451  type GoogleCloudDiscoveryengineV1betaImportErrorConfig struct {
  9452  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  9453  	// existing Cloud Storage directory. Import errors are written to sharded files
  9454  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  9455  	// message.
  9456  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  9457  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  9458  	// unconditionally include in API requests. By default, fields with empty or
  9459  	// default values are omitted from API requests. See
  9460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9461  	// details.
  9462  	ForceSendFields []string `json:"-"`
  9463  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  9464  	// requests with the JSON null value. By default, fields with empty values are
  9465  	// omitted from API requests. See
  9466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9467  	NullFields []string `json:"-"`
  9468  }
  9469  
  9470  func (s *GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte, error) {
  9471  	type NoMethod GoogleCloudDiscoveryengineV1betaImportErrorConfig
  9472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9473  }
  9474  
  9475  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata:
  9476  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  9477  // operation. This is returned by the google.longrunning.Operation.metadata
  9478  // field.
  9479  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata struct {
  9480  	// CreateTime: Operation create time.
  9481  	CreateTime string `json:"createTime,omitempty"`
  9482  	// UpdateTime: Operation last update time. If the operation is done, this is
  9483  	// also the finish time.
  9484  	UpdateTime string `json:"updateTime,omitempty"`
  9485  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9486  	// unconditionally include in API requests. By default, fields with empty or
  9487  	// default values are omitted from API requests. See
  9488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9489  	// details.
  9490  	ForceSendFields []string `json:"-"`
  9491  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9492  	// requests with the JSON null value. By default, fields with empty values are
  9493  	// omitted from API requests. See
  9494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9495  	NullFields []string `json:"-"`
  9496  }
  9497  
  9498  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  9499  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata
  9500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9501  }
  9502  
  9503  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse:
  9504  // Response message for CompletionService.ImportSuggestionDenyListEntries
  9505  // method.
  9506  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse struct {
  9507  	// ErrorSamples: A sample of errors encountered while processing the request.
  9508  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  9509  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  9510  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  9511  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  9512  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  9513  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  9514  	// unconditionally include in API requests. By default, fields with empty or
  9515  	// default values are omitted from API requests. See
  9516  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9517  	// details.
  9518  	ForceSendFields []string `json:"-"`
  9519  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  9520  	// requests with the JSON null value. By default, fields with empty values are
  9521  	// omitted from API requests. See
  9522  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9523  	NullFields []string `json:"-"`
  9524  }
  9525  
  9526  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  9527  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse
  9528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9529  }
  9530  
  9531  // GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata: Metadata related
  9532  // to the progress of the Import operation. This is returned by the
  9533  // google.longrunning.Operation.metadata field.
  9534  type GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata struct {
  9535  	// CreateTime: Operation create time.
  9536  	CreateTime string `json:"createTime,omitempty"`
  9537  	// FailureCount: Count of entries that encountered errors while processing.
  9538  	FailureCount int64 `json:"failureCount,omitempty,string"`
  9539  	// SuccessCount: Count of entries that were processed successfully.
  9540  	SuccessCount int64 `json:"successCount,omitempty,string"`
  9541  	// UpdateTime: Operation last update time. If the operation is done, this is
  9542  	// also the finish time.
  9543  	UpdateTime string `json:"updateTime,omitempty"`
  9544  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9545  	// unconditionally include in API requests. By default, fields with empty or
  9546  	// default values are omitted from API requests. See
  9547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9548  	// details.
  9549  	ForceSendFields []string `json:"-"`
  9550  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9551  	// requests with the JSON null value. By default, fields with empty values are
  9552  	// omitted from API requests. See
  9553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9554  	NullFields []string `json:"-"`
  9555  }
  9556  
  9557  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  9558  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata
  9559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9560  }
  9561  
  9562  // GoogleCloudDiscoveryengineV1betaImportUserEventsResponse: Response of the
  9563  // ImportUserEventsRequest. If the long running operation was successful, then
  9564  // this message is returned by the google.longrunning.Operations.response field
  9565  // if the operation was successful.
  9566  type GoogleCloudDiscoveryengineV1betaImportUserEventsResponse struct {
  9567  	// ErrorConfig: Echoes the destination for the complete errors if this field
  9568  	// was set in the request.
  9569  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  9570  	// ErrorSamples: A sample of errors encountered while processing the request.
  9571  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  9572  	// JoinedEventsCount: Count of user events imported with complete existing
  9573  	// Documents.
  9574  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  9575  	// UnjoinedEventsCount: Count of user events imported, but with Document
  9576  	// information not found in the existing Branch.
  9577  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  9578  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  9579  	// unconditionally include in API requests. By default, fields with empty or
  9580  	// default values are omitted from API requests. See
  9581  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9582  	// details.
  9583  	ForceSendFields []string `json:"-"`
  9584  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  9585  	// requests with the JSON null value. By default, fields with empty values are
  9586  	// omitted from API requests. See
  9587  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9588  	NullFields []string `json:"-"`
  9589  }
  9590  
  9591  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  9592  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsResponse
  9593  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9594  }
  9595  
  9596  // GoogleCloudDiscoveryengineV1betaListCustomModelsResponse: Response message
  9597  // for SearchTuningService.ListCustomModels method.
  9598  type GoogleCloudDiscoveryengineV1betaListCustomModelsResponse struct {
  9599  	// Models: List of custom tuning models.
  9600  	Models []*GoogleCloudDiscoveryengineV1betaCustomTuningModel `json:"models,omitempty"`
  9601  	// ForceSendFields is a list of field names (e.g. "Models") to unconditionally
  9602  	// include in API requests. By default, fields with empty or default values are
  9603  	// omitted from API requests. See
  9604  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9605  	// details.
  9606  	ForceSendFields []string `json:"-"`
  9607  	// NullFields is a list of field names (e.g. "Models") to include in API
  9608  	// requests with the JSON null value. By default, fields with empty values are
  9609  	// omitted from API requests. See
  9610  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9611  	NullFields []string `json:"-"`
  9612  }
  9613  
  9614  func (s *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
  9615  	type NoMethod GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
  9616  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9617  }
  9618  
  9619  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata: Metadata related to
  9620  // the progress of the PurgeDocuments operation. This will be returned by the
  9621  // google.longrunning.Operation.metadata field.
  9622  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata struct {
  9623  	// CreateTime: Operation create time.
  9624  	CreateTime string `json:"createTime,omitempty"`
  9625  	// FailureCount: Count of entries that encountered errors while processing.
  9626  	FailureCount int64 `json:"failureCount,omitempty,string"`
  9627  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  9628  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  9629  	// SuccessCount: Count of entries that were deleted successfully.
  9630  	SuccessCount int64 `json:"successCount,omitempty,string"`
  9631  	// UpdateTime: Operation last update time. If the operation is done, this is
  9632  	// also the finish time.
  9633  	UpdateTime string `json:"updateTime,omitempty"`
  9634  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9635  	// unconditionally include in API requests. By default, fields with empty or
  9636  	// default values are omitted from API requests. See
  9637  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9638  	// details.
  9639  	ForceSendFields []string `json:"-"`
  9640  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9641  	// requests with the JSON null value. By default, fields with empty values are
  9642  	// omitted from API requests. See
  9643  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9644  	NullFields []string `json:"-"`
  9645  }
  9646  
  9647  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  9648  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
  9649  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9650  }
  9651  
  9652  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse: Response message for
  9653  // DocumentService.PurgeDocuments method. If the long running operation is
  9654  // successfully done, then this message is returned by the
  9655  // google.longrunning.Operations.response field.
  9656  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse struct {
  9657  	// PurgeCount: The total count of documents purged as a result of the
  9658  	// operation.
  9659  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  9660  	// PurgeSample: A sample of document names that will be deleted. Only populated
  9661  	// if `force` is set to false. A max of 100 names will be returned and the
  9662  	// names are chosen at random.
  9663  	PurgeSample []string `json:"purgeSample,omitempty"`
  9664  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  9665  	// unconditionally include in API requests. By default, fields with empty or
  9666  	// default values are omitted from API requests. See
  9667  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9668  	// details.
  9669  	ForceSendFields []string `json:"-"`
  9670  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  9671  	// requests with the JSON null value. By default, fields with empty values are
  9672  	// omitted from API requests. See
  9673  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9674  	NullFields []string `json:"-"`
  9675  }
  9676  
  9677  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  9678  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
  9679  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9680  }
  9681  
  9682  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata:
  9683  // Metadata related to the progress of the PurgeSuggestionDenyListEntries
  9684  // operation. This is returned by the google.longrunning.Operation.metadata
  9685  // field.
  9686  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata struct {
  9687  	// CreateTime: Operation create time.
  9688  	CreateTime string `json:"createTime,omitempty"`
  9689  	// UpdateTime: Operation last update time. If the operation is done, this is
  9690  	// also the finish time.
  9691  	UpdateTime string `json:"updateTime,omitempty"`
  9692  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9693  	// unconditionally include in API requests. By default, fields with empty or
  9694  	// default values are omitted from API requests. See
  9695  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9696  	// details.
  9697  	ForceSendFields []string `json:"-"`
  9698  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9699  	// requests with the JSON null value. By default, fields with empty values are
  9700  	// omitted from API requests. See
  9701  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9702  	NullFields []string `json:"-"`
  9703  }
  9704  
  9705  func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  9706  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata
  9707  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9708  }
  9709  
  9710  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse:
  9711  // Response message for CompletionService.PurgeSuggestionDenyListEntries
  9712  // method.
  9713  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse struct {
  9714  	// ErrorSamples: A sample of errors encountered while processing the request.
  9715  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  9716  	// PurgeCount: Number of suggestion deny list entries purged.
  9717  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  9718  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  9719  	// unconditionally include in API requests. By default, fields with empty or
  9720  	// default values are omitted from API requests. See
  9721  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9722  	// details.
  9723  	ForceSendFields []string `json:"-"`
  9724  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  9725  	// requests with the JSON null value. By default, fields with empty values are
  9726  	// omitted from API requests. See
  9727  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9728  	NullFields []string `json:"-"`
  9729  }
  9730  
  9731  func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  9732  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse
  9733  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9734  }
  9735  
  9736  // GoogleCloudDiscoveryengineV1betaSchema: Defines the structure and layout of
  9737  // a type of document data.
  9738  type GoogleCloudDiscoveryengineV1betaSchema struct {
  9739  	// JsonSchema: The JSON representation of the schema.
  9740  	JsonSchema string `json:"jsonSchema,omitempty"`
  9741  	// Name: Immutable. The full resource name of the schema, in the format of
  9742  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  9743  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  9744  	// with a length limit of 1024 characters.
  9745  	Name string `json:"name,omitempty"`
  9746  	// StructSchema: The structured representation of the schema.
  9747  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  9748  	// ForceSendFields is a list of field names (e.g. "JsonSchema") to
  9749  	// unconditionally include in API requests. By default, fields with empty or
  9750  	// default values are omitted from API requests. See
  9751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9752  	// details.
  9753  	ForceSendFields []string `json:"-"`
  9754  	// NullFields is a list of field names (e.g. "JsonSchema") to include in API
  9755  	// requests with the JSON null value. By default, fields with empty values are
  9756  	// omitted from API requests. See
  9757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9758  	NullFields []string `json:"-"`
  9759  }
  9760  
  9761  func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) {
  9762  	type NoMethod GoogleCloudDiscoveryengineV1betaSchema
  9763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9764  }
  9765  
  9766  // GoogleCloudDiscoveryengineV1betaSiteVerificationInfo: Verification
  9767  // information for target sites in advanced site search.
  9768  type GoogleCloudDiscoveryengineV1betaSiteVerificationInfo struct {
  9769  	// SiteVerificationState: Site verification state indicating the ownership and
  9770  	// validity.
  9771  	//
  9772  	// Possible values:
  9773  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
  9774  	//   "VERIFIED" - Site ownership verified.
  9775  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
  9776  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
  9777  	// opens to all.
  9778  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
  9779  	// VerifyTime: Latest site verification time.
  9780  	VerifyTime string `json:"verifyTime,omitempty"`
  9781  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
  9782  	// unconditionally include in API requests. By default, fields with empty or
  9783  	// default values are omitted from API requests. See
  9784  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9785  	// details.
  9786  	ForceSendFields []string `json:"-"`
  9787  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
  9788  	// include in API requests with the JSON null value. By default, fields with
  9789  	// empty values are omitted from API requests. See
  9790  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9791  	NullFields []string `json:"-"`
  9792  }
  9793  
  9794  func (s *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
  9795  	type NoMethod GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
  9796  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9797  }
  9798  
  9799  // GoogleCloudDiscoveryengineV1betaTargetSite: A target site for the
  9800  // SiteSearchEngine.
  9801  type GoogleCloudDiscoveryengineV1betaTargetSite struct {
  9802  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
  9803  	// include all pages whose address contains the provided_uri_pattern. If set to
  9804  	// true, an uri_pattern is generated to try to be an exact match of the
  9805  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
  9806  	// is a specific one. provided_uri_pattern is always normalized to generate the
  9807  	// URI pattern to be used by the search engine.
  9808  	ExactMatch bool `json:"exactMatch,omitempty"`
  9809  	// FailureReason: Output only. Failure reason.
  9810  	FailureReason *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason `json:"failureReason,omitempty"`
  9811  	// GeneratedUriPattern: Output only. This is system-generated based on the
  9812  	// provided_uri_pattern.
  9813  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
  9814  	// IndexingStatus: Output only. Indexing status.
  9815  	//
  9816  	// Possible values:
  9817  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
  9818  	//   "PENDING" - The target site is in the update queue and will be picked up
  9819  	// by indexing pipeline.
  9820  	//   "FAILED" - The target site fails to be indexed.
  9821  	//   "SUCCEEDED" - The target site has been indexed.
  9822  	//   "DELETING" - The previously indexed target site has been marked to be
  9823  	// deleted. This is a transitioning state which will resulted in either: 1.
  9824  	// target site deleted if unindexing is successful; 2. state reverts to
  9825  	// SUCCEEDED if the unindexing fails.
  9826  	IndexingStatus string `json:"indexingStatus,omitempty"`
  9827  	// Name: Output only. The fully qualified resource name of the target site.
  9828  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  9829  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
  9830  	// `target_site_id` is system-generated.
  9831  	Name string `json:"name,omitempty"`
  9832  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
  9833  	// which the `generated_uri_pattern` is generated.
  9834  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  9835  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
  9836  	RootDomainUri string `json:"rootDomainUri,omitempty"`
  9837  	// SiteVerificationInfo: Output only. Site ownership and validity verification
  9838  	// status.
  9839  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
  9840  	// Type: The type of the target site, e.g., whether the site is to be included
  9841  	// or excluded.
  9842  	//
  9843  	// Possible values:
  9844  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
  9845  	// defaults to Type.INCLUDE.
  9846  	//   "INCLUDE" - Include the target site.
  9847  	//   "EXCLUDE" - Exclude the target site.
  9848  	Type string `json:"type,omitempty"`
  9849  	// UpdateTime: Output only. The target site's last updated time.
  9850  	UpdateTime string `json:"updateTime,omitempty"`
  9851  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  9852  	// unconditionally include in API requests. By default, fields with empty or
  9853  	// default values are omitted from API requests. See
  9854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9855  	// details.
  9856  	ForceSendFields []string `json:"-"`
  9857  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  9858  	// requests with the JSON null value. By default, fields with empty values are
  9859  	// omitted from API requests. See
  9860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9861  	NullFields []string `json:"-"`
  9862  }
  9863  
  9864  func (s *GoogleCloudDiscoveryengineV1betaTargetSite) MarshalJSON() ([]byte, error) {
  9865  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSite
  9866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9867  }
  9868  
  9869  // GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason: Site search
  9870  // indexing failure reasons.
  9871  type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason struct {
  9872  	// QuotaFailure: Failed due to insufficient quota.
  9873  	QuotaFailure *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
  9874  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
  9875  	// unconditionally include in API requests. By default, fields with empty or
  9876  	// default values are omitted from API requests. See
  9877  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9878  	// details.
  9879  	ForceSendFields []string `json:"-"`
  9880  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
  9881  	// requests with the JSON null value. By default, fields with empty values are
  9882  	// omitted from API requests. See
  9883  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9884  	NullFields []string `json:"-"`
  9885  }
  9886  
  9887  func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
  9888  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason
  9889  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9890  }
  9891  
  9892  // GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure: Failed
  9893  // due to insufficient quota.
  9894  type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure struct {
  9895  	// TotalRequiredQuota: This number is an estimation on how much total quota
  9896  	// this project needs to successfully complete indexing.
  9897  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
  9898  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
  9899  	// unconditionally include in API requests. By default, fields with empty or
  9900  	// default values are omitted from API requests. See
  9901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9902  	// details.
  9903  	ForceSendFields []string `json:"-"`
  9904  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
  9905  	// in API requests with the JSON null value. By default, fields with empty
  9906  	// values are omitted from API requests. See
  9907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9908  	NullFields []string `json:"-"`
  9909  }
  9910  
  9911  func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
  9912  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure
  9913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9914  }
  9915  
  9916  // GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata: Metadata related
  9917  // to the progress of the TrainCustomModel operation. This is returned by the
  9918  // google.longrunning.Operation.metadata field.
  9919  type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct {
  9920  	// CreateTime: Operation create time.
  9921  	CreateTime string `json:"createTime,omitempty"`
  9922  	// UpdateTime: Operation last update time. If the operation is done, this is
  9923  	// also the finish time.
  9924  	UpdateTime string `json:"updateTime,omitempty"`
  9925  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9926  	// unconditionally include in API requests. By default, fields with empty or
  9927  	// default values are omitted from API requests. See
  9928  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9929  	// details.
  9930  	ForceSendFields []string `json:"-"`
  9931  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9932  	// requests with the JSON null value. By default, fields with empty values are
  9933  	// omitted from API requests. See
  9934  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9935  	NullFields []string `json:"-"`
  9936  }
  9937  
  9938  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
  9939  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
  9940  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9941  }
  9942  
  9943  // GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse: Response of the
  9944  // TrainCustomModelRequest. This message is returned by the
  9945  // google.longrunning.Operations.response field.
  9946  type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct {
  9947  	// ErrorConfig: Echoes the destination for the complete errors in the request
  9948  	// if set.
  9949  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  9950  	// ErrorSamples: A sample of errors encountered while processing the data.
  9951  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  9952  	// Metrics: The metrics of the trained model.
  9953  	Metrics map[string]float64 `json:"metrics,omitempty"`
  9954  	// ModelName: Fully qualified name of the CustomTuningModel.
  9955  	ModelName string `json:"modelName,omitempty"`
  9956  	// ModelStatus: The trained model status. Possible values are: * **bad-data**:
  9957  	// The training data quality is bad. * **no-improvement**: Tuning didn't
  9958  	// improve performance. Won't deploy. * **in-progress**: Model training job
  9959  	// creation is in progress. * **training**: Model is actively training. *
  9960  	// **evaluating**: The model is evaluating trained metrics. * **indexing**: The
  9961  	// model trained metrics are indexing. * **ready**: The model is ready for
  9962  	// serving.
  9963  	ModelStatus string `json:"modelStatus,omitempty"`
  9964  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  9965  	// unconditionally include in API requests. By default, fields with empty or
  9966  	// default values are omitted from API requests. See
  9967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9968  	// details.
  9969  	ForceSendFields []string `json:"-"`
  9970  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  9971  	// requests with the JSON null value. By default, fields with empty values are
  9972  	// omitted from API requests. See
  9973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9974  	NullFields []string `json:"-"`
  9975  }
  9976  
  9977  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
  9978  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
  9979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9980  }
  9981  
  9982  // GoogleCloudDiscoveryengineV1betaTuneEngineMetadata: Metadata associated with
  9983  // a tune operation.
  9984  type GoogleCloudDiscoveryengineV1betaTuneEngineMetadata struct {
  9985  	// Engine: Required. The resource name of the engine that this tune applies to.
  9986  	// Format:
  9987  	// `projects/{project_number}/locations/{location_id}/collections/{collection_id
  9988  	// }/engines/{engine_id}`
  9989  	Engine string `json:"engine,omitempty"`
  9990  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
  9991  	// include in API requests. By default, fields with empty or default values are
  9992  	// omitted from API requests. See
  9993  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9994  	// details.
  9995  	ForceSendFields []string `json:"-"`
  9996  	// NullFields is a list of field names (e.g. "Engine") to include in API
  9997  	// requests with the JSON null value. By default, fields with empty values are
  9998  	// omitted from API requests. See
  9999  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10000  	NullFields []string `json:"-"`
 10001  }
 10002  
 10003  func (s *GoogleCloudDiscoveryengineV1betaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
 10004  	type NoMethod GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
 10005  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10006  }
 10007  
 10008  // GoogleCloudDiscoveryengineV1betaTuneEngineResponse: Response associated with
 10009  // a tune operation.
 10010  type GoogleCloudDiscoveryengineV1betaTuneEngineResponse struct {
 10011  }
 10012  
 10013  // GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata: Metadata for
 10014  // UpdateSchema LRO.
 10015  type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct {
 10016  	// CreateTime: Operation create time.
 10017  	CreateTime string `json:"createTime,omitempty"`
 10018  	// UpdateTime: Operation last update time. If the operation is done, this is
 10019  	// also the finish time.
 10020  	UpdateTime string `json:"updateTime,omitempty"`
 10021  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10022  	// unconditionally include in API requests. By default, fields with empty or
 10023  	// default values are omitted from API requests. See
 10024  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10025  	// details.
 10026  	ForceSendFields []string `json:"-"`
 10027  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10028  	// requests with the JSON null value. By default, fields with empty values are
 10029  	// omitted from API requests. See
 10030  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10031  	NullFields []string `json:"-"`
 10032  }
 10033  
 10034  func (s *GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
 10035  	type NoMethod GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
 10036  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10037  }
 10038  
 10039  // GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata: Metadata related
 10040  // to the progress of the SiteSearchEngineService.UpdateTargetSite operation.
 10041  // This will be returned by the google.longrunning.Operation.metadata field.
 10042  type GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata struct {
 10043  	// CreateTime: Operation create time.
 10044  	CreateTime string `json:"createTime,omitempty"`
 10045  	// UpdateTime: Operation last update time. If the operation is done, this is
 10046  	// also the finish time.
 10047  	UpdateTime string `json:"updateTime,omitempty"`
 10048  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10049  	// unconditionally include in API requests. By default, fields with empty or
 10050  	// default values are omitted from API requests. See
 10051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10052  	// details.
 10053  	ForceSendFields []string `json:"-"`
 10054  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10055  	// requests with the JSON null value. By default, fields with empty values are
 10056  	// omitted from API requests. See
 10057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10058  	NullFields []string `json:"-"`
 10059  }
 10060  
 10061  func (s *GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 10062  	type NoMethod GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata
 10063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10064  }
 10065  
 10066  // GoogleLongrunningCancelOperationRequest: The request message for
 10067  // Operations.CancelOperation.
 10068  type GoogleLongrunningCancelOperationRequest struct {
 10069  }
 10070  
 10071  // GoogleLongrunningListOperationsResponse: The response message for
 10072  // Operations.ListOperations.
 10073  type GoogleLongrunningListOperationsResponse struct {
 10074  	// NextPageToken: The standard List next-page token.
 10075  	NextPageToken string `json:"nextPageToken,omitempty"`
 10076  	// Operations: A list of operations that matches the specified filter in the
 10077  	// request.
 10078  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 10079  
 10080  	// ServerResponse contains the HTTP response code and headers from the server.
 10081  	googleapi.ServerResponse `json:"-"`
 10082  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 10083  	// unconditionally include in API requests. By default, fields with empty or
 10084  	// default values are omitted from API requests. See
 10085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10086  	// details.
 10087  	ForceSendFields []string `json:"-"`
 10088  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 10089  	// requests with the JSON null value. By default, fields with empty values are
 10090  	// omitted from API requests. See
 10091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10092  	NullFields []string `json:"-"`
 10093  }
 10094  
 10095  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 10096  	type NoMethod GoogleLongrunningListOperationsResponse
 10097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10098  }
 10099  
 10100  // GoogleLongrunningOperation: This resource represents a long-running
 10101  // operation that is the result of a network API call.
 10102  type GoogleLongrunningOperation struct {
 10103  	// Done: If the value is `false`, it means the operation is still in progress.
 10104  	// If `true`, the operation is completed, and either `error` or `response` is
 10105  	// available.
 10106  	Done bool `json:"done,omitempty"`
 10107  	// Error: The error result of the operation in case of failure or cancellation.
 10108  	Error *GoogleRpcStatus `json:"error,omitempty"`
 10109  	// Metadata: Service-specific metadata associated with the operation. It
 10110  	// typically contains progress information and common metadata such as create
 10111  	// time. Some services might not provide such metadata. Any method that returns
 10112  	// a long-running operation should document the metadata type, if any.
 10113  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 10114  	// Name: The server-assigned name, which is only unique within the same service
 10115  	// that originally returns it. If you use the default HTTP mapping, the `name`
 10116  	// should be a resource name ending with `operations/{unique_id}`.
 10117  	Name string `json:"name,omitempty"`
 10118  	// Response: The normal, successful response of the operation. If the original
 10119  	// method returns no data on success, such as `Delete`, the response is
 10120  	// `google.protobuf.Empty`. If the original method is standard
 10121  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 10122  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 10123  	// original method name. For example, if the original method name is
 10124  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 10125  	Response googleapi.RawMessage `json:"response,omitempty"`
 10126  
 10127  	// ServerResponse contains the HTTP response code and headers from the server.
 10128  	googleapi.ServerResponse `json:"-"`
 10129  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 10130  	// include in API requests. By default, fields with empty or default values are
 10131  	// omitted from API requests. See
 10132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10133  	// details.
 10134  	ForceSendFields []string `json:"-"`
 10135  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 10136  	// with the JSON null value. By default, fields with empty values are omitted
 10137  	// from API requests. See
 10138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10139  	NullFields []string `json:"-"`
 10140  }
 10141  
 10142  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 10143  	type NoMethod GoogleLongrunningOperation
 10144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10145  }
 10146  
 10147  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 10148  // defining duplicated empty messages in your APIs. A typical example is to use
 10149  // it as the request or the response type of an API method. For instance:
 10150  // service Foo { rpc Bar(google.protobuf.Empty) returns
 10151  // (google.protobuf.Empty); }
 10152  type GoogleProtobufEmpty struct {
 10153  	// ServerResponse contains the HTTP response code and headers from the server.
 10154  	googleapi.ServerResponse `json:"-"`
 10155  }
 10156  
 10157  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 10158  // suitable for different programming environments, including REST APIs and RPC
 10159  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 10160  // contains three pieces of data: error code, error message, and error details.
 10161  // You can find out more about this error model and how to work with it in the
 10162  // API Design Guide (https://cloud.google.com/apis/design/errors).
 10163  type GoogleRpcStatus struct {
 10164  	// Code: The status code, which should be an enum value of google.rpc.Code.
 10165  	Code int64 `json:"code,omitempty"`
 10166  	// Details: A list of messages that carry the error details. There is a common
 10167  	// set of message types for APIs to use.
 10168  	Details []googleapi.RawMessage `json:"details,omitempty"`
 10169  	// Message: A developer-facing error message, which should be in English. Any
 10170  	// user-facing error message should be localized and sent in the
 10171  	// google.rpc.Status.details field, or localized by the client.
 10172  	Message string `json:"message,omitempty"`
 10173  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 10174  	// include in API requests. By default, fields with empty or default values are
 10175  	// omitted from API requests. See
 10176  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10177  	// details.
 10178  	ForceSendFields []string `json:"-"`
 10179  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 10180  	// with the JSON null value. By default, fields with empty values are omitted
 10181  	// from API requests. See
 10182  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10183  	NullFields []string `json:"-"`
 10184  }
 10185  
 10186  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 10187  	type NoMethod GoogleRpcStatus
 10188  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10189  }
 10190  
 10191  // GoogleTypeDate: Represents a whole or partial calendar date, such as a
 10192  // birthday. The time of day and time zone are either specified elsewhere or
 10193  // are insignificant. The date is relative to the Gregorian Calendar. This can
 10194  // represent one of the following: * A full date, with non-zero year, month,
 10195  // and day values. * A month and day, with a zero year (for example, an
 10196  // anniversary). * A year on its own, with a zero month and a zero day. * A
 10197  // year and month, with a zero day (for example, a credit card expiration
 10198  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
 10199  // google.protobuf.Timestamp
 10200  type GoogleTypeDate struct {
 10201  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
 10202  	// or 0 to specify a year by itself or a year and month where the day isn't
 10203  	// significant.
 10204  	Day int64 `json:"day,omitempty"`
 10205  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
 10206  	// a month and day.
 10207  	Month int64 `json:"month,omitempty"`
 10208  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
 10209  	// without a year.
 10210  	Year int64 `json:"year,omitempty"`
 10211  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
 10212  	// include in API requests. By default, fields with empty or default values are
 10213  	// omitted from API requests. See
 10214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10215  	// details.
 10216  	ForceSendFields []string `json:"-"`
 10217  	// NullFields is a list of field names (e.g. "Day") to include in API requests
 10218  	// with the JSON null value. By default, fields with empty values are omitted
 10219  	// from API requests. See
 10220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10221  	NullFields []string `json:"-"`
 10222  }
 10223  
 10224  func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
 10225  	type NoMethod GoogleTypeDate
 10226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10227  }
 10228  
 10229  type ProjectsLocationsCollectionsDataConnectorOperationsGetCall struct {
 10230  	s            *Service
 10231  	name         string
 10232  	urlParams_   gensupport.URLParams
 10233  	ifNoneMatch_ string
 10234  	ctx_         context.Context
 10235  	header_      http.Header
 10236  }
 10237  
 10238  // Get: Gets the latest state of a long-running operation. Clients can use this
 10239  // method to poll the operation result at intervals as recommended by the API
 10240  // service.
 10241  //
 10242  // - name: The name of the operation resource.
 10243  func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) Get(name string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 10244  	c := &ProjectsLocationsCollectionsDataConnectorOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10245  	c.name = name
 10246  	return c
 10247  }
 10248  
 10249  // Fields allows partial responses to be retrieved. See
 10250  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10251  // details.
 10252  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 10253  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10254  	return c
 10255  }
 10256  
 10257  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10258  // object's ETag matches the given value. This is useful for getting updates
 10259  // only after the object has changed since the last request.
 10260  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 10261  	c.ifNoneMatch_ = entityTag
 10262  	return c
 10263  }
 10264  
 10265  // Context sets the context to be used in this call's Do method.
 10266  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 10267  	c.ctx_ = ctx
 10268  	return c
 10269  }
 10270  
 10271  // Header returns a http.Header that can be modified by the caller to add
 10272  // headers to the request.
 10273  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Header() http.Header {
 10274  	if c.header_ == nil {
 10275  		c.header_ = make(http.Header)
 10276  	}
 10277  	return c.header_
 10278  }
 10279  
 10280  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 10281  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10282  	if c.ifNoneMatch_ != "" {
 10283  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10284  	}
 10285  	var body io.Reader = nil
 10286  	c.urlParams_.Set("alt", alt)
 10287  	c.urlParams_.Set("prettyPrint", "false")
 10288  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10289  	urls += "?" + c.urlParams_.Encode()
 10290  	req, err := http.NewRequest("GET", urls, body)
 10291  	if err != nil {
 10292  		return nil, err
 10293  	}
 10294  	req.Header = reqHeaders
 10295  	googleapi.Expand(req.URL, map[string]string{
 10296  		"name": c.name,
 10297  	})
 10298  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10299  }
 10300  
 10301  // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.get" call.
 10302  // Any non-2xx status code is an error. Response headers are in either
 10303  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10304  // returned at all) in error.(*googleapi.Error).Header. Use
 10305  // googleapi.IsNotModified to check whether the returned error was because
 10306  // http.StatusNotModified was returned.
 10307  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10308  	gensupport.SetOptions(c.urlParams_, opts...)
 10309  	res, err := c.doRequest("json")
 10310  	if res != nil && res.StatusCode == http.StatusNotModified {
 10311  		if res.Body != nil {
 10312  			res.Body.Close()
 10313  		}
 10314  		return nil, gensupport.WrapError(&googleapi.Error{
 10315  			Code:   res.StatusCode,
 10316  			Header: res.Header,
 10317  		})
 10318  	}
 10319  	if err != nil {
 10320  		return nil, err
 10321  	}
 10322  	defer googleapi.CloseBody(res)
 10323  	if err := googleapi.CheckResponse(res); err != nil {
 10324  		return nil, gensupport.WrapError(err)
 10325  	}
 10326  	ret := &GoogleLongrunningOperation{
 10327  		ServerResponse: googleapi.ServerResponse{
 10328  			Header:         res.Header,
 10329  			HTTPStatusCode: res.StatusCode,
 10330  		},
 10331  	}
 10332  	target := &ret
 10333  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10334  		return nil, err
 10335  	}
 10336  	return ret, nil
 10337  }
 10338  
 10339  type ProjectsLocationsCollectionsDataConnectorOperationsListCall struct {
 10340  	s            *Service
 10341  	name         string
 10342  	urlParams_   gensupport.URLParams
 10343  	ifNoneMatch_ string
 10344  	ctx_         context.Context
 10345  	header_      http.Header
 10346  }
 10347  
 10348  // List: Lists operations that match the specified filter in the request. If
 10349  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 10350  //
 10351  // - name: The name of the operation's parent resource.
 10352  func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) List(name string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10353  	c := &ProjectsLocationsCollectionsDataConnectorOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10354  	c.name = name
 10355  	return c
 10356  }
 10357  
 10358  // Filter sets the optional parameter "filter": The standard list filter.
 10359  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10360  	c.urlParams_.Set("filter", filter)
 10361  	return c
 10362  }
 10363  
 10364  // PageSize sets the optional parameter "pageSize": The standard list page
 10365  // size.
 10366  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10367  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10368  	return c
 10369  }
 10370  
 10371  // PageToken sets the optional parameter "pageToken": The standard list page
 10372  // token.
 10373  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10374  	c.urlParams_.Set("pageToken", pageToken)
 10375  	return c
 10376  }
 10377  
 10378  // Fields allows partial responses to be retrieved. See
 10379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10380  // details.
 10381  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10383  	return c
 10384  }
 10385  
 10386  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10387  // object's ETag matches the given value. This is useful for getting updates
 10388  // only after the object has changed since the last request.
 10389  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10390  	c.ifNoneMatch_ = entityTag
 10391  	return c
 10392  }
 10393  
 10394  // Context sets the context to be used in this call's Do method.
 10395  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 10396  	c.ctx_ = ctx
 10397  	return c
 10398  }
 10399  
 10400  // Header returns a http.Header that can be modified by the caller to add
 10401  // headers to the request.
 10402  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Header() http.Header {
 10403  	if c.header_ == nil {
 10404  		c.header_ = make(http.Header)
 10405  	}
 10406  	return c.header_
 10407  }
 10408  
 10409  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest(alt string) (*http.Response, error) {
 10410  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10411  	if c.ifNoneMatch_ != "" {
 10412  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10413  	}
 10414  	var body io.Reader = nil
 10415  	c.urlParams_.Set("alt", alt)
 10416  	c.urlParams_.Set("prettyPrint", "false")
 10417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 10418  	urls += "?" + c.urlParams_.Encode()
 10419  	req, err := http.NewRequest("GET", urls, body)
 10420  	if err != nil {
 10421  		return nil, err
 10422  	}
 10423  	req.Header = reqHeaders
 10424  	googleapi.Expand(req.URL, map[string]string{
 10425  		"name": c.name,
 10426  	})
 10427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10428  }
 10429  
 10430  // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.list" call.
 10431  // Any non-2xx status code is an error. Response headers are in either
 10432  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 10433  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10434  // googleapi.IsNotModified to check whether the returned error was because
 10435  // http.StatusNotModified was returned.
 10436  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 10437  	gensupport.SetOptions(c.urlParams_, opts...)
 10438  	res, err := c.doRequest("json")
 10439  	if res != nil && res.StatusCode == http.StatusNotModified {
 10440  		if res.Body != nil {
 10441  			res.Body.Close()
 10442  		}
 10443  		return nil, gensupport.WrapError(&googleapi.Error{
 10444  			Code:   res.StatusCode,
 10445  			Header: res.Header,
 10446  		})
 10447  	}
 10448  	if err != nil {
 10449  		return nil, err
 10450  	}
 10451  	defer googleapi.CloseBody(res)
 10452  	if err := googleapi.CheckResponse(res); err != nil {
 10453  		return nil, gensupport.WrapError(err)
 10454  	}
 10455  	ret := &GoogleLongrunningListOperationsResponse{
 10456  		ServerResponse: googleapi.ServerResponse{
 10457  			Header:         res.Header,
 10458  			HTTPStatusCode: res.StatusCode,
 10459  		},
 10460  	}
 10461  	target := &ret
 10462  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10463  		return nil, err
 10464  	}
 10465  	return ret, nil
 10466  }
 10467  
 10468  // Pages invokes f for each page of results.
 10469  // A non-nil error returned from f will halt the iteration.
 10470  // The provided context supersedes any context provided to the Context method.
 10471  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 10472  	c.ctx_ = ctx
 10473  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10474  	for {
 10475  		x, err := c.Do()
 10476  		if err != nil {
 10477  			return err
 10478  		}
 10479  		if err := f(x); err != nil {
 10480  			return err
 10481  		}
 10482  		if x.NextPageToken == "" {
 10483  			return nil
 10484  		}
 10485  		c.PageToken(x.NextPageToken)
 10486  	}
 10487  }
 10488  
 10489  type ProjectsLocationsCollectionsDataStoresCompleteQueryCall struct {
 10490  	s            *Service
 10491  	dataStore    string
 10492  	urlParams_   gensupport.URLParams
 10493  	ifNoneMatch_ string
 10494  	ctx_         context.Context
 10495  	header_      http.Header
 10496  }
 10497  
 10498  // CompleteQuery: Completes the specified user input with keyword suggestions.
 10499  //
 10500  //   - dataStore: The parent data store resource name for which the completion is
 10501  //     performed, such as
 10502  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 10503  //     ult_data_store`.
 10504  func (r *ProjectsLocationsCollectionsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10505  	c := &ProjectsLocationsCollectionsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10506  	c.dataStore = dataStore
 10507  	return c
 10508  }
 10509  
 10510  // IncludeTailSuggestions sets the optional parameter "includeTailSuggestions":
 10511  // Indicates if tail suggestions should be returned if there are no suggestions
 10512  // that match the full query. Even if set to true, if there are suggestions
 10513  // that match the full query, those are returned and no tail suggestions are
 10514  // returned.
 10515  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10516  	c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
 10517  	return c
 10518  }
 10519  
 10520  // Query sets the optional parameter "query": Required. The typeahead input
 10521  // used to fetch suggestions. Maximum length is 128 characters.
 10522  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10523  	c.urlParams_.Set("query", query)
 10524  	return c
 10525  }
 10526  
 10527  // QueryModel sets the optional parameter "queryModel": Specifies the
 10528  // autocomplete data model. This overrides any model specified in the
 10529  // Configuration > Autocomplete section of the Cloud console. Currently
 10530  // supported values: * `document` - Using suggestions generated from
 10531  // user-imported documents. * `search-history` - Using suggestions generated
 10532  // from the past history of SearchService.Search API calls. Do not use it when
 10533  // there is no traffic for Search API. * `user-event` - Using suggestions
 10534  // generated from user-imported search events. * `document-completable` - Using
 10535  // suggestions taken directly from user-imported document fields marked as
 10536  // completable. Default values: * `document` is the default model for regular
 10537  // dataStores. * `search-history` is the default model for site search
 10538  // dataStores.
 10539  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10540  	c.urlParams_.Set("queryModel", queryModel)
 10541  	return c
 10542  }
 10543  
 10544  // UserPseudoId sets the optional parameter "userPseudoId": A unique identifier
 10545  // for tracking visitors. For example, this could be implemented with an HTTP
 10546  // cookie, which should be able to uniquely identify a visitor on a single
 10547  // device. This unique identifier should not change if the visitor logs in or
 10548  // out of the website. This field should NOT have a fixed value such as
 10549  // `unknown_visitor`. This should be the same identifier as
 10550  // UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be
 10551  // a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 10552  // `INVALID_ARGUMENT` error is returned.
 10553  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10554  	c.urlParams_.Set("userPseudoId", userPseudoId)
 10555  	return c
 10556  }
 10557  
 10558  // Fields allows partial responses to be retrieved. See
 10559  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10560  // details.
 10561  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10562  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10563  	return c
 10564  }
 10565  
 10566  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10567  // object's ETag matches the given value. This is useful for getting updates
 10568  // only after the object has changed since the last request.
 10569  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10570  	c.ifNoneMatch_ = entityTag
 10571  	return c
 10572  }
 10573  
 10574  // Context sets the context to be used in this call's Do method.
 10575  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 10576  	c.ctx_ = ctx
 10577  	return c
 10578  }
 10579  
 10580  // Header returns a http.Header that can be modified by the caller to add
 10581  // headers to the request.
 10582  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Header() http.Header {
 10583  	if c.header_ == nil {
 10584  		c.header_ = make(http.Header)
 10585  	}
 10586  	return c.header_
 10587  }
 10588  
 10589  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
 10590  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10591  	if c.ifNoneMatch_ != "" {
 10592  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10593  	}
 10594  	var body io.Reader = nil
 10595  	c.urlParams_.Set("alt", alt)
 10596  	c.urlParams_.Set("prettyPrint", "false")
 10597  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataStore}:completeQuery")
 10598  	urls += "?" + c.urlParams_.Encode()
 10599  	req, err := http.NewRequest("GET", urls, body)
 10600  	if err != nil {
 10601  		return nil, err
 10602  	}
 10603  	req.Header = reqHeaders
 10604  	googleapi.Expand(req.URL, map[string]string{
 10605  		"dataStore": c.dataStore,
 10606  	})
 10607  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10608  }
 10609  
 10610  // Do executes the "discoveryengine.projects.locations.collections.dataStores.completeQuery" call.
 10611  // Any non-2xx status code is an error. Response headers are in either
 10612  // *GoogleCloudDiscoveryengineV1CompleteQueryResponse.ServerResponse.Header or
 10613  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 10614  // googleapi.IsNotModified to check whether the returned error was because
 10615  // http.StatusNotModified was returned.
 10616  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1CompleteQueryResponse, error) {
 10617  	gensupport.SetOptions(c.urlParams_, opts...)
 10618  	res, err := c.doRequest("json")
 10619  	if res != nil && res.StatusCode == http.StatusNotModified {
 10620  		if res.Body != nil {
 10621  			res.Body.Close()
 10622  		}
 10623  		return nil, gensupport.WrapError(&googleapi.Error{
 10624  			Code:   res.StatusCode,
 10625  			Header: res.Header,
 10626  		})
 10627  	}
 10628  	if err != nil {
 10629  		return nil, err
 10630  	}
 10631  	defer googleapi.CloseBody(res)
 10632  	if err := googleapi.CheckResponse(res); err != nil {
 10633  		return nil, gensupport.WrapError(err)
 10634  	}
 10635  	ret := &GoogleCloudDiscoveryengineV1CompleteQueryResponse{
 10636  		ServerResponse: googleapi.ServerResponse{
 10637  			Header:         res.Header,
 10638  			HTTPStatusCode: res.StatusCode,
 10639  		},
 10640  	}
 10641  	target := &ret
 10642  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10643  		return nil, err
 10644  	}
 10645  	return ret, nil
 10646  }
 10647  
 10648  type ProjectsLocationsCollectionsDataStoresCreateCall struct {
 10649  	s                                     *Service
 10650  	parent                                string
 10651  	googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
 10652  	urlParams_                            gensupport.URLParams
 10653  	ctx_                                  context.Context
 10654  	header_                               http.Header
 10655  }
 10656  
 10657  // Create: Creates a DataStore. DataStore is for storing Documents. To serve
 10658  // these documents for Search, or Recommendation use case, an Engine needs to
 10659  // be created separately.
 10660  //
 10661  //   - parent: The parent resource name, such as
 10662  //     `projects/{project}/locations/{location}/collections/{collection}`.
 10663  func (r *ProjectsLocationsCollectionsDataStoresService) Create(parent string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsCollectionsDataStoresCreateCall {
 10664  	c := &ProjectsLocationsCollectionsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10665  	c.parent = parent
 10666  	c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
 10667  	return c
 10668  }
 10669  
 10670  // CreateAdvancedSiteSearch sets the optional parameter
 10671  // "createAdvancedSiteSearch": A boolean flag indicating whether user want to
 10672  // directly create an advanced data store for site search. If the data store is
 10673  // not configured as site search (GENERIC vertical and PUBLIC_WEBSITE
 10674  // content_config), this flag will be ignored.
 10675  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsCollectionsDataStoresCreateCall {
 10676  	c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
 10677  	return c
 10678  }
 10679  
 10680  // DataStoreId sets the optional parameter "dataStoreId": Required. The ID to
 10681  // use for the DataStore, which will become the final component of the
 10682  // DataStore's resource name. This field must conform to RFC-1034
 10683  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 10684  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 10685  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsCollectionsDataStoresCreateCall {
 10686  	c.urlParams_.Set("dataStoreId", dataStoreId)
 10687  	return c
 10688  }
 10689  
 10690  // Fields allows partial responses to be retrieved. See
 10691  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10692  // details.
 10693  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCreateCall {
 10694  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10695  	return c
 10696  }
 10697  
 10698  // Context sets the context to be used in this call's Do method.
 10699  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCreateCall {
 10700  	c.ctx_ = ctx
 10701  	return c
 10702  }
 10703  
 10704  // Header returns a http.Header that can be modified by the caller to add
 10705  // headers to the request.
 10706  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Header() http.Header {
 10707  	if c.header_ == nil {
 10708  		c.header_ = make(http.Header)
 10709  	}
 10710  	return c.header_
 10711  }
 10712  
 10713  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 10714  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10715  	var body io.Reader = nil
 10716  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
 10717  	if err != nil {
 10718  		return nil, err
 10719  	}
 10720  	c.urlParams_.Set("alt", alt)
 10721  	c.urlParams_.Set("prettyPrint", "false")
 10722  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
 10723  	urls += "?" + c.urlParams_.Encode()
 10724  	req, err := http.NewRequest("POST", urls, body)
 10725  	if err != nil {
 10726  		return nil, err
 10727  	}
 10728  	req.Header = reqHeaders
 10729  	googleapi.Expand(req.URL, map[string]string{
 10730  		"parent": c.parent,
 10731  	})
 10732  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10733  }
 10734  
 10735  // Do executes the "discoveryengine.projects.locations.collections.dataStores.create" call.
 10736  // Any non-2xx status code is an error. Response headers are in either
 10737  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10738  // returned at all) in error.(*googleapi.Error).Header. Use
 10739  // googleapi.IsNotModified to check whether the returned error was because
 10740  // http.StatusNotModified was returned.
 10741  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10742  	gensupport.SetOptions(c.urlParams_, opts...)
 10743  	res, err := c.doRequest("json")
 10744  	if res != nil && res.StatusCode == http.StatusNotModified {
 10745  		if res.Body != nil {
 10746  			res.Body.Close()
 10747  		}
 10748  		return nil, gensupport.WrapError(&googleapi.Error{
 10749  			Code:   res.StatusCode,
 10750  			Header: res.Header,
 10751  		})
 10752  	}
 10753  	if err != nil {
 10754  		return nil, err
 10755  	}
 10756  	defer googleapi.CloseBody(res)
 10757  	if err := googleapi.CheckResponse(res); err != nil {
 10758  		return nil, gensupport.WrapError(err)
 10759  	}
 10760  	ret := &GoogleLongrunningOperation{
 10761  		ServerResponse: googleapi.ServerResponse{
 10762  			Header:         res.Header,
 10763  			HTTPStatusCode: res.StatusCode,
 10764  		},
 10765  	}
 10766  	target := &ret
 10767  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10768  		return nil, err
 10769  	}
 10770  	return ret, nil
 10771  }
 10772  
 10773  type ProjectsLocationsCollectionsDataStoresDeleteCall struct {
 10774  	s          *Service
 10775  	name       string
 10776  	urlParams_ gensupport.URLParams
 10777  	ctx_       context.Context
 10778  	header_    http.Header
 10779  }
 10780  
 10781  // Delete: Deletes a DataStore.
 10782  //
 10783  //   - name: Full resource name of DataStore, such as
 10784  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 10785  //     ores/{data_store_id}`. If the caller does not have permission to delete
 10786  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 10787  //     error is returned. If the DataStore to delete does not exist, a NOT_FOUND
 10788  //     error is returned.
 10789  func (r *ProjectsLocationsCollectionsDataStoresService) Delete(name string) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 10790  	c := &ProjectsLocationsCollectionsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10791  	c.name = name
 10792  	return c
 10793  }
 10794  
 10795  // Fields allows partial responses to be retrieved. See
 10796  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10797  // details.
 10798  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 10799  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10800  	return c
 10801  }
 10802  
 10803  // Context sets the context to be used in this call's Do method.
 10804  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 10805  	c.ctx_ = ctx
 10806  	return c
 10807  }
 10808  
 10809  // Header returns a http.Header that can be modified by the caller to add
 10810  // headers to the request.
 10811  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Header() http.Header {
 10812  	if c.header_ == nil {
 10813  		c.header_ = make(http.Header)
 10814  	}
 10815  	return c.header_
 10816  }
 10817  
 10818  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 10819  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10820  	var body io.Reader = nil
 10821  	c.urlParams_.Set("alt", alt)
 10822  	c.urlParams_.Set("prettyPrint", "false")
 10823  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10824  	urls += "?" + c.urlParams_.Encode()
 10825  	req, err := http.NewRequest("DELETE", urls, body)
 10826  	if err != nil {
 10827  		return nil, err
 10828  	}
 10829  	req.Header = reqHeaders
 10830  	googleapi.Expand(req.URL, map[string]string{
 10831  		"name": c.name,
 10832  	})
 10833  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10834  }
 10835  
 10836  // Do executes the "discoveryengine.projects.locations.collections.dataStores.delete" call.
 10837  // Any non-2xx status code is an error. Response headers are in either
 10838  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10839  // returned at all) in error.(*googleapi.Error).Header. Use
 10840  // googleapi.IsNotModified to check whether the returned error was because
 10841  // http.StatusNotModified was returned.
 10842  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10843  	gensupport.SetOptions(c.urlParams_, opts...)
 10844  	res, err := c.doRequest("json")
 10845  	if res != nil && res.StatusCode == http.StatusNotModified {
 10846  		if res.Body != nil {
 10847  			res.Body.Close()
 10848  		}
 10849  		return nil, gensupport.WrapError(&googleapi.Error{
 10850  			Code:   res.StatusCode,
 10851  			Header: res.Header,
 10852  		})
 10853  	}
 10854  	if err != nil {
 10855  		return nil, err
 10856  	}
 10857  	defer googleapi.CloseBody(res)
 10858  	if err := googleapi.CheckResponse(res); err != nil {
 10859  		return nil, gensupport.WrapError(err)
 10860  	}
 10861  	ret := &GoogleLongrunningOperation{
 10862  		ServerResponse: googleapi.ServerResponse{
 10863  			Header:         res.Header,
 10864  			HTTPStatusCode: res.StatusCode,
 10865  		},
 10866  	}
 10867  	target := &ret
 10868  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10869  		return nil, err
 10870  	}
 10871  	return ret, nil
 10872  }
 10873  
 10874  type ProjectsLocationsCollectionsDataStoresGetCall struct {
 10875  	s            *Service
 10876  	name         string
 10877  	urlParams_   gensupport.URLParams
 10878  	ifNoneMatch_ string
 10879  	ctx_         context.Context
 10880  	header_      http.Header
 10881  }
 10882  
 10883  // Get: Gets a DataStore.
 10884  //
 10885  //   - name: Full resource name of DataStore, such as
 10886  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 10887  //     ores/{data_store_id}`. If the caller does not have permission to access
 10888  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 10889  //     error is returned. If the requested DataStore does not exist, a NOT_FOUND
 10890  //     error is returned.
 10891  func (r *ProjectsLocationsCollectionsDataStoresService) Get(name string) *ProjectsLocationsCollectionsDataStoresGetCall {
 10892  	c := &ProjectsLocationsCollectionsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10893  	c.name = name
 10894  	return c
 10895  }
 10896  
 10897  // Fields allows partial responses to be retrieved. See
 10898  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10899  // details.
 10900  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetCall {
 10901  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10902  	return c
 10903  }
 10904  
 10905  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10906  // object's ETag matches the given value. This is useful for getting updates
 10907  // only after the object has changed since the last request.
 10908  func (c *ProjectsLocationsCollectionsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetCall {
 10909  	c.ifNoneMatch_ = entityTag
 10910  	return c
 10911  }
 10912  
 10913  // Context sets the context to be used in this call's Do method.
 10914  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetCall {
 10915  	c.ctx_ = ctx
 10916  	return c
 10917  }
 10918  
 10919  // Header returns a http.Header that can be modified by the caller to add
 10920  // headers to the request.
 10921  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Header() http.Header {
 10922  	if c.header_ == nil {
 10923  		c.header_ = make(http.Header)
 10924  	}
 10925  	return c.header_
 10926  }
 10927  
 10928  func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
 10929  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10930  	if c.ifNoneMatch_ != "" {
 10931  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10932  	}
 10933  	var body io.Reader = nil
 10934  	c.urlParams_.Set("alt", alt)
 10935  	c.urlParams_.Set("prettyPrint", "false")
 10936  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10937  	urls += "?" + c.urlParams_.Encode()
 10938  	req, err := http.NewRequest("GET", urls, body)
 10939  	if err != nil {
 10940  		return nil, err
 10941  	}
 10942  	req.Header = reqHeaders
 10943  	googleapi.Expand(req.URL, map[string]string{
 10944  		"name": c.name,
 10945  	})
 10946  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10947  }
 10948  
 10949  // Do executes the "discoveryengine.projects.locations.collections.dataStores.get" call.
 10950  // Any non-2xx status code is an error. Response headers are in either
 10951  // *GoogleCloudDiscoveryengineV1DataStore.ServerResponse.Header or (if a
 10952  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10953  // googleapi.IsNotModified to check whether the returned error was because
 10954  // http.StatusNotModified was returned.
 10955  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
 10956  	gensupport.SetOptions(c.urlParams_, opts...)
 10957  	res, err := c.doRequest("json")
 10958  	if res != nil && res.StatusCode == http.StatusNotModified {
 10959  		if res.Body != nil {
 10960  			res.Body.Close()
 10961  		}
 10962  		return nil, gensupport.WrapError(&googleapi.Error{
 10963  			Code:   res.StatusCode,
 10964  			Header: res.Header,
 10965  		})
 10966  	}
 10967  	if err != nil {
 10968  		return nil, err
 10969  	}
 10970  	defer googleapi.CloseBody(res)
 10971  	if err := googleapi.CheckResponse(res); err != nil {
 10972  		return nil, gensupport.WrapError(err)
 10973  	}
 10974  	ret := &GoogleCloudDiscoveryengineV1DataStore{
 10975  		ServerResponse: googleapi.ServerResponse{
 10976  			Header:         res.Header,
 10977  			HTTPStatusCode: res.StatusCode,
 10978  		},
 10979  	}
 10980  	target := &ret
 10981  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10982  		return nil, err
 10983  	}
 10984  	return ret, nil
 10985  }
 10986  
 10987  type ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall struct {
 10988  	s            *Service
 10989  	name         string
 10990  	urlParams_   gensupport.URLParams
 10991  	ifNoneMatch_ string
 10992  	ctx_         context.Context
 10993  	header_      http.Header
 10994  }
 10995  
 10996  // GetSiteSearchEngine: Gets the SiteSearchEngine.
 10997  //
 10998  //   - name: Resource name of SiteSearchEngine, such as
 10999  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11000  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 11001  //     to access the [SiteSearchEngine], regardless of whether or not it exists,
 11002  //     a PERMISSION_DENIED error is returned.
 11003  func (r *ProjectsLocationsCollectionsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 11004  	c := &ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11005  	c.name = name
 11006  	return c
 11007  }
 11008  
 11009  // Fields allows partial responses to be retrieved. See
 11010  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11011  // details.
 11012  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 11013  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11014  	return c
 11015  }
 11016  
 11017  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11018  // object's ETag matches the given value. This is useful for getting updates
 11019  // only after the object has changed since the last request.
 11020  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 11021  	c.ifNoneMatch_ = entityTag
 11022  	return c
 11023  }
 11024  
 11025  // Context sets the context to be used in this call's Do method.
 11026  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 11027  	c.ctx_ = ctx
 11028  	return c
 11029  }
 11030  
 11031  // Header returns a http.Header that can be modified by the caller to add
 11032  // headers to the request.
 11033  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Header() http.Header {
 11034  	if c.header_ == nil {
 11035  		c.header_ = make(http.Header)
 11036  	}
 11037  	return c.header_
 11038  }
 11039  
 11040  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
 11041  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11042  	if c.ifNoneMatch_ != "" {
 11043  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11044  	}
 11045  	var body io.Reader = nil
 11046  	c.urlParams_.Set("alt", alt)
 11047  	c.urlParams_.Set("prettyPrint", "false")
 11048  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11049  	urls += "?" + c.urlParams_.Encode()
 11050  	req, err := http.NewRequest("GET", urls, body)
 11051  	if err != nil {
 11052  		return nil, err
 11053  	}
 11054  	req.Header = reqHeaders
 11055  	googleapi.Expand(req.URL, map[string]string{
 11056  		"name": c.name,
 11057  	})
 11058  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11059  }
 11060  
 11061  // Do executes the "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine" call.
 11062  // Any non-2xx status code is an error. Response headers are in either
 11063  // *GoogleCloudDiscoveryengineV1SiteSearchEngine.ServerResponse.Header or (if a
 11064  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11065  // googleapi.IsNotModified to check whether the returned error was because
 11066  // http.StatusNotModified was returned.
 11067  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SiteSearchEngine, error) {
 11068  	gensupport.SetOptions(c.urlParams_, opts...)
 11069  	res, err := c.doRequest("json")
 11070  	if res != nil && res.StatusCode == http.StatusNotModified {
 11071  		if res.Body != nil {
 11072  			res.Body.Close()
 11073  		}
 11074  		return nil, gensupport.WrapError(&googleapi.Error{
 11075  			Code:   res.StatusCode,
 11076  			Header: res.Header,
 11077  		})
 11078  	}
 11079  	if err != nil {
 11080  		return nil, err
 11081  	}
 11082  	defer googleapi.CloseBody(res)
 11083  	if err := googleapi.CheckResponse(res); err != nil {
 11084  		return nil, gensupport.WrapError(err)
 11085  	}
 11086  	ret := &GoogleCloudDiscoveryengineV1SiteSearchEngine{
 11087  		ServerResponse: googleapi.ServerResponse{
 11088  			Header:         res.Header,
 11089  			HTTPStatusCode: res.StatusCode,
 11090  		},
 11091  	}
 11092  	target := &ret
 11093  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11094  		return nil, err
 11095  	}
 11096  	return ret, nil
 11097  }
 11098  
 11099  type ProjectsLocationsCollectionsDataStoresListCall struct {
 11100  	s            *Service
 11101  	parent       string
 11102  	urlParams_   gensupport.URLParams
 11103  	ifNoneMatch_ string
 11104  	ctx_         context.Context
 11105  	header_      http.Header
 11106  }
 11107  
 11108  // List: Lists all the DataStores associated with the project.
 11109  //
 11110  //   - parent: The parent branch resource name, such as
 11111  //     `projects/{project}/locations/{location}/collections/{collection_id}`. If
 11112  //     the caller does not have permission to list DataStores under this
 11113  //     location, regardless of whether or not this data store exists, a
 11114  //     PERMISSION_DENIED error is returned.
 11115  func (r *ProjectsLocationsCollectionsDataStoresService) List(parent string) *ProjectsLocationsCollectionsDataStoresListCall {
 11116  	c := &ProjectsLocationsCollectionsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11117  	c.parent = parent
 11118  	return c
 11119  }
 11120  
 11121  // Filter sets the optional parameter "filter": Filter by solution type . For
 11122  // example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
 11123  func (c *ProjectsLocationsCollectionsDataStoresListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresListCall {
 11124  	c.urlParams_.Set("filter", filter)
 11125  	return c
 11126  }
 11127  
 11128  // PageSize sets the optional parameter "pageSize": Maximum number of
 11129  // DataStores to return. If unspecified, defaults to 10. The maximum allowed
 11130  // value is 50. Values above 50 will be coerced to 50. If this field is
 11131  // negative, an INVALID_ARGUMENT is returned.
 11132  func (c *ProjectsLocationsCollectionsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresListCall {
 11133  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11134  	return c
 11135  }
 11136  
 11137  // PageToken sets the optional parameter "pageToken": A page token
 11138  // ListDataStoresResponse.next_page_token, received from a previous
 11139  // DataStoreService.ListDataStores call. Provide this to retrieve the
 11140  // subsequent page. When paginating, all other parameters provided to
 11141  // DataStoreService.ListDataStores must match the call that provided the page
 11142  // token. Otherwise, an INVALID_ARGUMENT error is returned.
 11143  func (c *ProjectsLocationsCollectionsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresListCall {
 11144  	c.urlParams_.Set("pageToken", pageToken)
 11145  	return c
 11146  }
 11147  
 11148  // Fields allows partial responses to be retrieved. See
 11149  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11150  // details.
 11151  func (c *ProjectsLocationsCollectionsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresListCall {
 11152  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11153  	return c
 11154  }
 11155  
 11156  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11157  // object's ETag matches the given value. This is useful for getting updates
 11158  // only after the object has changed since the last request.
 11159  func (c *ProjectsLocationsCollectionsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresListCall {
 11160  	c.ifNoneMatch_ = entityTag
 11161  	return c
 11162  }
 11163  
 11164  // Context sets the context to be used in this call's Do method.
 11165  func (c *ProjectsLocationsCollectionsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresListCall {
 11166  	c.ctx_ = ctx
 11167  	return c
 11168  }
 11169  
 11170  // Header returns a http.Header that can be modified by the caller to add
 11171  // headers to the request.
 11172  func (c *ProjectsLocationsCollectionsDataStoresListCall) Header() http.Header {
 11173  	if c.header_ == nil {
 11174  		c.header_ = make(http.Header)
 11175  	}
 11176  	return c.header_
 11177  }
 11178  
 11179  func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
 11180  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11181  	if c.ifNoneMatch_ != "" {
 11182  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11183  	}
 11184  	var body io.Reader = nil
 11185  	c.urlParams_.Set("alt", alt)
 11186  	c.urlParams_.Set("prettyPrint", "false")
 11187  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
 11188  	urls += "?" + c.urlParams_.Encode()
 11189  	req, err := http.NewRequest("GET", urls, body)
 11190  	if err != nil {
 11191  		return nil, err
 11192  	}
 11193  	req.Header = reqHeaders
 11194  	googleapi.Expand(req.URL, map[string]string{
 11195  		"parent": c.parent,
 11196  	})
 11197  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11198  }
 11199  
 11200  // Do executes the "discoveryengine.projects.locations.collections.dataStores.list" call.
 11201  // Any non-2xx status code is an error. Response headers are in either
 11202  // *GoogleCloudDiscoveryengineV1ListDataStoresResponse.ServerResponse.Header or
 11203  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 11204  // googleapi.IsNotModified to check whether the returned error was because
 11205  // http.StatusNotModified was returned.
 11206  func (c *ProjectsLocationsCollectionsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDataStoresResponse, error) {
 11207  	gensupport.SetOptions(c.urlParams_, opts...)
 11208  	res, err := c.doRequest("json")
 11209  	if res != nil && res.StatusCode == http.StatusNotModified {
 11210  		if res.Body != nil {
 11211  			res.Body.Close()
 11212  		}
 11213  		return nil, gensupport.WrapError(&googleapi.Error{
 11214  			Code:   res.StatusCode,
 11215  			Header: res.Header,
 11216  		})
 11217  	}
 11218  	if err != nil {
 11219  		return nil, err
 11220  	}
 11221  	defer googleapi.CloseBody(res)
 11222  	if err := googleapi.CheckResponse(res); err != nil {
 11223  		return nil, gensupport.WrapError(err)
 11224  	}
 11225  	ret := &GoogleCloudDiscoveryengineV1ListDataStoresResponse{
 11226  		ServerResponse: googleapi.ServerResponse{
 11227  			Header:         res.Header,
 11228  			HTTPStatusCode: res.StatusCode,
 11229  		},
 11230  	}
 11231  	target := &ret
 11232  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11233  		return nil, err
 11234  	}
 11235  	return ret, nil
 11236  }
 11237  
 11238  // Pages invokes f for each page of results.
 11239  // A non-nil error returned from f will halt the iteration.
 11240  // The provided context supersedes any context provided to the Context method.
 11241  func (c *ProjectsLocationsCollectionsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDataStoresResponse) error) error {
 11242  	c.ctx_ = ctx
 11243  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11244  	for {
 11245  		x, err := c.Do()
 11246  		if err != nil {
 11247  			return err
 11248  		}
 11249  		if err := f(x); err != nil {
 11250  			return err
 11251  		}
 11252  		if x.NextPageToken == "" {
 11253  			return nil
 11254  		}
 11255  		c.PageToken(x.NextPageToken)
 11256  	}
 11257  }
 11258  
 11259  type ProjectsLocationsCollectionsDataStoresPatchCall struct {
 11260  	s                                     *Service
 11261  	name                                  string
 11262  	googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
 11263  	urlParams_                            gensupport.URLParams
 11264  	ctx_                                  context.Context
 11265  	header_                               http.Header
 11266  }
 11267  
 11268  // Patch: Updates a DataStore
 11269  //
 11270  //   - name: Immutable. The full resource name of the data store. Format:
 11271  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 11272  //     ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
 11273  //     length limit of 1024 characters.
 11274  func (r *ProjectsLocationsCollectionsDataStoresService) Patch(name string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsCollectionsDataStoresPatchCall {
 11275  	c := &ProjectsLocationsCollectionsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11276  	c.name = name
 11277  	c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
 11278  	return c
 11279  }
 11280  
 11281  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 11282  // in the provided DataStore to update. If an unsupported or unknown field is
 11283  // provided, an INVALID_ARGUMENT error is returned.
 11284  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresPatchCall {
 11285  	c.urlParams_.Set("updateMask", updateMask)
 11286  	return c
 11287  }
 11288  
 11289  // Fields allows partial responses to be retrieved. See
 11290  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11291  // details.
 11292  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresPatchCall {
 11293  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11294  	return c
 11295  }
 11296  
 11297  // Context sets the context to be used in this call's Do method.
 11298  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresPatchCall {
 11299  	c.ctx_ = ctx
 11300  	return c
 11301  }
 11302  
 11303  // Header returns a http.Header that can be modified by the caller to add
 11304  // headers to the request.
 11305  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Header() http.Header {
 11306  	if c.header_ == nil {
 11307  		c.header_ = make(http.Header)
 11308  	}
 11309  	return c.header_
 11310  }
 11311  
 11312  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 11313  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11314  	var body io.Reader = nil
 11315  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
 11316  	if err != nil {
 11317  		return nil, err
 11318  	}
 11319  	c.urlParams_.Set("alt", alt)
 11320  	c.urlParams_.Set("prettyPrint", "false")
 11321  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11322  	urls += "?" + c.urlParams_.Encode()
 11323  	req, err := http.NewRequest("PATCH", urls, body)
 11324  	if err != nil {
 11325  		return nil, err
 11326  	}
 11327  	req.Header = reqHeaders
 11328  	googleapi.Expand(req.URL, map[string]string{
 11329  		"name": c.name,
 11330  	})
 11331  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11332  }
 11333  
 11334  // Do executes the "discoveryengine.projects.locations.collections.dataStores.patch" call.
 11335  // Any non-2xx status code is an error. Response headers are in either
 11336  // *GoogleCloudDiscoveryengineV1DataStore.ServerResponse.Header or (if a
 11337  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11338  // googleapi.IsNotModified to check whether the returned error was because
 11339  // http.StatusNotModified was returned.
 11340  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
 11341  	gensupport.SetOptions(c.urlParams_, opts...)
 11342  	res, err := c.doRequest("json")
 11343  	if res != nil && res.StatusCode == http.StatusNotModified {
 11344  		if res.Body != nil {
 11345  			res.Body.Close()
 11346  		}
 11347  		return nil, gensupport.WrapError(&googleapi.Error{
 11348  			Code:   res.StatusCode,
 11349  			Header: res.Header,
 11350  		})
 11351  	}
 11352  	if err != nil {
 11353  		return nil, err
 11354  	}
 11355  	defer googleapi.CloseBody(res)
 11356  	if err := googleapi.CheckResponse(res); err != nil {
 11357  		return nil, gensupport.WrapError(err)
 11358  	}
 11359  	ret := &GoogleCloudDiscoveryengineV1DataStore{
 11360  		ServerResponse: googleapi.ServerResponse{
 11361  			Header:         res.Header,
 11362  			HTTPStatusCode: res.StatusCode,
 11363  		},
 11364  	}
 11365  	target := &ret
 11366  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11367  		return nil, err
 11368  	}
 11369  	return ret, nil
 11370  }
 11371  
 11372  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall struct {
 11373  	s                                    *Service
 11374  	parent                               string
 11375  	googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
 11376  	urlParams_                           gensupport.URLParams
 11377  	ctx_                                 context.Context
 11378  	header_                              http.Header
 11379  }
 11380  
 11381  // Create: Creates a Document.
 11382  //
 11383  //   - parent: The parent resource name, such as
 11384  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11385  //     s/{data_store}/branches/{branch}`.
 11386  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 11387  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11388  	c.parent = parent
 11389  	c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
 11390  	return c
 11391  }
 11392  
 11393  // DocumentId sets the optional parameter "documentId": Required. The ID to use
 11394  // for the Document, which will become the final component of the
 11395  // Document.name. If the caller does not have permission to create the
 11396  // Document, regardless of whether or not it exists, a `PERMISSION_DENIED`
 11397  // error is returned. This field must be unique among all Documents with the
 11398  // same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field
 11399  // must conform to RFC-1034 (https://tools.ietf.org/html/rfc1034) standard with
 11400  // a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
 11401  // returned.
 11402  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 11403  	c.urlParams_.Set("documentId", documentId)
 11404  	return c
 11405  }
 11406  
 11407  // Fields allows partial responses to be retrieved. See
 11408  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11409  // details.
 11410  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 11411  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11412  	return c
 11413  }
 11414  
 11415  // Context sets the context to be used in this call's Do method.
 11416  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 11417  	c.ctx_ = ctx
 11418  	return c
 11419  }
 11420  
 11421  // Header returns a http.Header that can be modified by the caller to add
 11422  // headers to the request.
 11423  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
 11424  	if c.header_ == nil {
 11425  		c.header_ = make(http.Header)
 11426  	}
 11427  	return c.header_
 11428  }
 11429  
 11430  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 11431  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11432  	var body io.Reader = nil
 11433  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
 11434  	if err != nil {
 11435  		return nil, err
 11436  	}
 11437  	c.urlParams_.Set("alt", alt)
 11438  	c.urlParams_.Set("prettyPrint", "false")
 11439  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
 11440  	urls += "?" + c.urlParams_.Encode()
 11441  	req, err := http.NewRequest("POST", urls, body)
 11442  	if err != nil {
 11443  		return nil, err
 11444  	}
 11445  	req.Header = reqHeaders
 11446  	googleapi.Expand(req.URL, map[string]string{
 11447  		"parent": c.parent,
 11448  	})
 11449  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11450  }
 11451  
 11452  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.create" call.
 11453  // Any non-2xx status code is an error. Response headers are in either
 11454  // *GoogleCloudDiscoveryengineV1Document.ServerResponse.Header or (if a
 11455  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11456  // googleapi.IsNotModified to check whether the returned error was because
 11457  // http.StatusNotModified was returned.
 11458  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
 11459  	gensupport.SetOptions(c.urlParams_, opts...)
 11460  	res, err := c.doRequest("json")
 11461  	if res != nil && res.StatusCode == http.StatusNotModified {
 11462  		if res.Body != nil {
 11463  			res.Body.Close()
 11464  		}
 11465  		return nil, gensupport.WrapError(&googleapi.Error{
 11466  			Code:   res.StatusCode,
 11467  			Header: res.Header,
 11468  		})
 11469  	}
 11470  	if err != nil {
 11471  		return nil, err
 11472  	}
 11473  	defer googleapi.CloseBody(res)
 11474  	if err := googleapi.CheckResponse(res); err != nil {
 11475  		return nil, gensupport.WrapError(err)
 11476  	}
 11477  	ret := &GoogleCloudDiscoveryengineV1Document{
 11478  		ServerResponse: googleapi.ServerResponse{
 11479  			Header:         res.Header,
 11480  			HTTPStatusCode: res.StatusCode,
 11481  		},
 11482  	}
 11483  	target := &ret
 11484  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11485  		return nil, err
 11486  	}
 11487  	return ret, nil
 11488  }
 11489  
 11490  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall struct {
 11491  	s          *Service
 11492  	name       string
 11493  	urlParams_ gensupport.URLParams
 11494  	ctx_       context.Context
 11495  	header_    http.Header
 11496  }
 11497  
 11498  // Delete: Deletes a Document.
 11499  //
 11500  //   - name: Full resource name of Document, such as
 11501  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11502  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 11503  //     not have permission to delete the Document, regardless of whether or not
 11504  //     it exists, a `PERMISSION_DENIED` error is returned. If the Document to
 11505  //     delete does not exist, a `NOT_FOUND` error is returned.
 11506  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 11507  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11508  	c.name = name
 11509  	return c
 11510  }
 11511  
 11512  // Fields allows partial responses to be retrieved. See
 11513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11514  // details.
 11515  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 11516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11517  	return c
 11518  }
 11519  
 11520  // Context sets the context to be used in this call's Do method.
 11521  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 11522  	c.ctx_ = ctx
 11523  	return c
 11524  }
 11525  
 11526  // Header returns a http.Header that can be modified by the caller to add
 11527  // headers to the request.
 11528  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
 11529  	if c.header_ == nil {
 11530  		c.header_ = make(http.Header)
 11531  	}
 11532  	return c.header_
 11533  }
 11534  
 11535  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11537  	var body io.Reader = nil
 11538  	c.urlParams_.Set("alt", alt)
 11539  	c.urlParams_.Set("prettyPrint", "false")
 11540  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11541  	urls += "?" + c.urlParams_.Encode()
 11542  	req, err := http.NewRequest("DELETE", urls, body)
 11543  	if err != nil {
 11544  		return nil, err
 11545  	}
 11546  	req.Header = reqHeaders
 11547  	googleapi.Expand(req.URL, map[string]string{
 11548  		"name": c.name,
 11549  	})
 11550  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11551  }
 11552  
 11553  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete" call.
 11554  // Any non-2xx status code is an error. Response headers are in either
 11555  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11556  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11557  // check whether the returned error was because http.StatusNotModified was
 11558  // returned.
 11559  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11560  	gensupport.SetOptions(c.urlParams_, opts...)
 11561  	res, err := c.doRequest("json")
 11562  	if res != nil && res.StatusCode == http.StatusNotModified {
 11563  		if res.Body != nil {
 11564  			res.Body.Close()
 11565  		}
 11566  		return nil, gensupport.WrapError(&googleapi.Error{
 11567  			Code:   res.StatusCode,
 11568  			Header: res.Header,
 11569  		})
 11570  	}
 11571  	if err != nil {
 11572  		return nil, err
 11573  	}
 11574  	defer googleapi.CloseBody(res)
 11575  	if err := googleapi.CheckResponse(res); err != nil {
 11576  		return nil, gensupport.WrapError(err)
 11577  	}
 11578  	ret := &GoogleProtobufEmpty{
 11579  		ServerResponse: googleapi.ServerResponse{
 11580  			Header:         res.Header,
 11581  			HTTPStatusCode: res.StatusCode,
 11582  		},
 11583  	}
 11584  	target := &ret
 11585  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11586  		return nil, err
 11587  	}
 11588  	return ret, nil
 11589  }
 11590  
 11591  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall struct {
 11592  	s            *Service
 11593  	name         string
 11594  	urlParams_   gensupport.URLParams
 11595  	ifNoneMatch_ string
 11596  	ctx_         context.Context
 11597  	header_      http.Header
 11598  }
 11599  
 11600  // Get: Gets a Document.
 11601  //
 11602  //   - name: Full resource name of Document, such as
 11603  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11604  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 11605  //     not have permission to access the Document, regardless of whether or not
 11606  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 11607  //     Document does not exist, a `NOT_FOUND` error is returned.
 11608  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 11609  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11610  	c.name = name
 11611  	return c
 11612  }
 11613  
 11614  // Fields allows partial responses to be retrieved. See
 11615  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11616  // details.
 11617  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 11618  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11619  	return c
 11620  }
 11621  
 11622  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11623  // object's ETag matches the given value. This is useful for getting updates
 11624  // only after the object has changed since the last request.
 11625  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 11626  	c.ifNoneMatch_ = entityTag
 11627  	return c
 11628  }
 11629  
 11630  // Context sets the context to be used in this call's Do method.
 11631  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 11632  	c.ctx_ = ctx
 11633  	return c
 11634  }
 11635  
 11636  // Header returns a http.Header that can be modified by the caller to add
 11637  // headers to the request.
 11638  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Header() http.Header {
 11639  	if c.header_ == nil {
 11640  		c.header_ = make(http.Header)
 11641  	}
 11642  	return c.header_
 11643  }
 11644  
 11645  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 11646  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11647  	if c.ifNoneMatch_ != "" {
 11648  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11649  	}
 11650  	var body io.Reader = nil
 11651  	c.urlParams_.Set("alt", alt)
 11652  	c.urlParams_.Set("prettyPrint", "false")
 11653  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11654  	urls += "?" + c.urlParams_.Encode()
 11655  	req, err := http.NewRequest("GET", urls, body)
 11656  	if err != nil {
 11657  		return nil, err
 11658  	}
 11659  	req.Header = reqHeaders
 11660  	googleapi.Expand(req.URL, map[string]string{
 11661  		"name": c.name,
 11662  	})
 11663  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11664  }
 11665  
 11666  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.get" call.
 11667  // Any non-2xx status code is an error. Response headers are in either
 11668  // *GoogleCloudDiscoveryengineV1Document.ServerResponse.Header or (if a
 11669  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11670  // googleapi.IsNotModified to check whether the returned error was because
 11671  // http.StatusNotModified was returned.
 11672  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
 11673  	gensupport.SetOptions(c.urlParams_, opts...)
 11674  	res, err := c.doRequest("json")
 11675  	if res != nil && res.StatusCode == http.StatusNotModified {
 11676  		if res.Body != nil {
 11677  			res.Body.Close()
 11678  		}
 11679  		return nil, gensupport.WrapError(&googleapi.Error{
 11680  			Code:   res.StatusCode,
 11681  			Header: res.Header,
 11682  		})
 11683  	}
 11684  	if err != nil {
 11685  		return nil, err
 11686  	}
 11687  	defer googleapi.CloseBody(res)
 11688  	if err := googleapi.CheckResponse(res); err != nil {
 11689  		return nil, gensupport.WrapError(err)
 11690  	}
 11691  	ret := &GoogleCloudDiscoveryengineV1Document{
 11692  		ServerResponse: googleapi.ServerResponse{
 11693  			Header:         res.Header,
 11694  			HTTPStatusCode: res.StatusCode,
 11695  		},
 11696  	}
 11697  	target := &ret
 11698  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11699  		return nil, err
 11700  	}
 11701  	return ret, nil
 11702  }
 11703  
 11704  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall struct {
 11705  	s                                                  *Service
 11706  	parent                                             string
 11707  	googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest
 11708  	urlParams_                                         gensupport.URLParams
 11709  	ctx_                                               context.Context
 11710  	header_                                            http.Header
 11711  }
 11712  
 11713  // Import: Bulk import of multiple Documents. Request processing may be
 11714  // synchronous. Non-existing items will be created. Note: It is possible for a
 11715  // subset of the Documents to be successfully updated.
 11716  //
 11717  //   - parent: The parent branch resource name, such as
 11718  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11719  //     s/{data_store}/branches/{branch}`. Requires create/update permission.
 11720  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 11721  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11722  	c.parent = parent
 11723  	c.googleclouddiscoveryenginev1importdocumentsrequest = googleclouddiscoveryenginev1importdocumentsrequest
 11724  	return c
 11725  }
 11726  
 11727  // Fields allows partial responses to be retrieved. See
 11728  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11729  // details.
 11730  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 11731  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11732  	return c
 11733  }
 11734  
 11735  // Context sets the context to be used in this call's Do method.
 11736  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 11737  	c.ctx_ = ctx
 11738  	return c
 11739  }
 11740  
 11741  // Header returns a http.Header that can be modified by the caller to add
 11742  // headers to the request.
 11743  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Header() http.Header {
 11744  	if c.header_ == nil {
 11745  		c.header_ = make(http.Header)
 11746  	}
 11747  	return c.header_
 11748  }
 11749  
 11750  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 11751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11752  	var body io.Reader = nil
 11753  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importdocumentsrequest)
 11754  	if err != nil {
 11755  		return nil, err
 11756  	}
 11757  	c.urlParams_.Set("alt", alt)
 11758  	c.urlParams_.Set("prettyPrint", "false")
 11759  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:import")
 11760  	urls += "?" + c.urlParams_.Encode()
 11761  	req, err := http.NewRequest("POST", urls, body)
 11762  	if err != nil {
 11763  		return nil, err
 11764  	}
 11765  	req.Header = reqHeaders
 11766  	googleapi.Expand(req.URL, map[string]string{
 11767  		"parent": c.parent,
 11768  	})
 11769  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11770  }
 11771  
 11772  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.import" call.
 11773  // Any non-2xx status code is an error. Response headers are in either
 11774  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11775  // returned at all) in error.(*googleapi.Error).Header. Use
 11776  // googleapi.IsNotModified to check whether the returned error was because
 11777  // http.StatusNotModified was returned.
 11778  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11779  	gensupport.SetOptions(c.urlParams_, opts...)
 11780  	res, err := c.doRequest("json")
 11781  	if res != nil && res.StatusCode == http.StatusNotModified {
 11782  		if res.Body != nil {
 11783  			res.Body.Close()
 11784  		}
 11785  		return nil, gensupport.WrapError(&googleapi.Error{
 11786  			Code:   res.StatusCode,
 11787  			Header: res.Header,
 11788  		})
 11789  	}
 11790  	if err != nil {
 11791  		return nil, err
 11792  	}
 11793  	defer googleapi.CloseBody(res)
 11794  	if err := googleapi.CheckResponse(res); err != nil {
 11795  		return nil, gensupport.WrapError(err)
 11796  	}
 11797  	ret := &GoogleLongrunningOperation{
 11798  		ServerResponse: googleapi.ServerResponse{
 11799  			Header:         res.Header,
 11800  			HTTPStatusCode: res.StatusCode,
 11801  		},
 11802  	}
 11803  	target := &ret
 11804  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11805  		return nil, err
 11806  	}
 11807  	return ret, nil
 11808  }
 11809  
 11810  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall struct {
 11811  	s            *Service
 11812  	parent       string
 11813  	urlParams_   gensupport.URLParams
 11814  	ifNoneMatch_ string
 11815  	ctx_         context.Context
 11816  	header_      http.Header
 11817  }
 11818  
 11819  // List: Gets a list of Documents.
 11820  //
 11821  //   - parent: The parent branch resource name, such as
 11822  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11823  //     s/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID,
 11824  //     to list documents under the default branch. If the caller does not have
 11825  //     permission to list Documents under this branch, regardless of whether or
 11826  //     not this branch exists, a `PERMISSION_DENIED` error is returned.
 11827  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 11828  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11829  	c.parent = parent
 11830  	return c
 11831  }
 11832  
 11833  // PageSize sets the optional parameter "pageSize": Maximum number of Documents
 11834  // to return. If unspecified, defaults to 100. The maximum allowed value is
 11835  // 1000. Values above 1000 will be coerced to 1000. If this field is negative,
 11836  // an `INVALID_ARGUMENT` error is returned.
 11837  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 11838  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11839  	return c
 11840  }
 11841  
 11842  // PageToken sets the optional parameter "pageToken": A page token
 11843  // ListDocumentsResponse.next_page_token, received from a previous
 11844  // DocumentService.ListDocuments call. Provide this to retrieve the subsequent
 11845  // page. When paginating, all other parameters provided to
 11846  // DocumentService.ListDocuments must match the call that provided the page
 11847  // token. Otherwise, an `INVALID_ARGUMENT` error is returned.
 11848  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 11849  	c.urlParams_.Set("pageToken", pageToken)
 11850  	return c
 11851  }
 11852  
 11853  // Fields allows partial responses to be retrieved. See
 11854  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11855  // details.
 11856  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 11857  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11858  	return c
 11859  }
 11860  
 11861  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11862  // object's ETag matches the given value. This is useful for getting updates
 11863  // only after the object has changed since the last request.
 11864  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 11865  	c.ifNoneMatch_ = entityTag
 11866  	return c
 11867  }
 11868  
 11869  // Context sets the context to be used in this call's Do method.
 11870  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 11871  	c.ctx_ = ctx
 11872  	return c
 11873  }
 11874  
 11875  // Header returns a http.Header that can be modified by the caller to add
 11876  // headers to the request.
 11877  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Header() http.Header {
 11878  	if c.header_ == nil {
 11879  		c.header_ = make(http.Header)
 11880  	}
 11881  	return c.header_
 11882  }
 11883  
 11884  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 11885  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11886  	if c.ifNoneMatch_ != "" {
 11887  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11888  	}
 11889  	var body io.Reader = nil
 11890  	c.urlParams_.Set("alt", alt)
 11891  	c.urlParams_.Set("prettyPrint", "false")
 11892  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
 11893  	urls += "?" + c.urlParams_.Encode()
 11894  	req, err := http.NewRequest("GET", urls, body)
 11895  	if err != nil {
 11896  		return nil, err
 11897  	}
 11898  	req.Header = reqHeaders
 11899  	googleapi.Expand(req.URL, map[string]string{
 11900  		"parent": c.parent,
 11901  	})
 11902  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11903  }
 11904  
 11905  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.list" call.
 11906  // Any non-2xx status code is an error. Response headers are in either
 11907  // *GoogleCloudDiscoveryengineV1ListDocumentsResponse.ServerResponse.Header or
 11908  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 11909  // googleapi.IsNotModified to check whether the returned error was because
 11910  // http.StatusNotModified was returned.
 11911  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDocumentsResponse, error) {
 11912  	gensupport.SetOptions(c.urlParams_, opts...)
 11913  	res, err := c.doRequest("json")
 11914  	if res != nil && res.StatusCode == http.StatusNotModified {
 11915  		if res.Body != nil {
 11916  			res.Body.Close()
 11917  		}
 11918  		return nil, gensupport.WrapError(&googleapi.Error{
 11919  			Code:   res.StatusCode,
 11920  			Header: res.Header,
 11921  		})
 11922  	}
 11923  	if err != nil {
 11924  		return nil, err
 11925  	}
 11926  	defer googleapi.CloseBody(res)
 11927  	if err := googleapi.CheckResponse(res); err != nil {
 11928  		return nil, gensupport.WrapError(err)
 11929  	}
 11930  	ret := &GoogleCloudDiscoveryengineV1ListDocumentsResponse{
 11931  		ServerResponse: googleapi.ServerResponse{
 11932  			Header:         res.Header,
 11933  			HTTPStatusCode: res.StatusCode,
 11934  		},
 11935  	}
 11936  	target := &ret
 11937  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11938  		return nil, err
 11939  	}
 11940  	return ret, nil
 11941  }
 11942  
 11943  // Pages invokes f for each page of results.
 11944  // A non-nil error returned from f will halt the iteration.
 11945  // The provided context supersedes any context provided to the Context method.
 11946  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDocumentsResponse) error) error {
 11947  	c.ctx_ = ctx
 11948  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11949  	for {
 11950  		x, err := c.Do()
 11951  		if err != nil {
 11952  			return err
 11953  		}
 11954  		if err := f(x); err != nil {
 11955  			return err
 11956  		}
 11957  		if x.NextPageToken == "" {
 11958  			return nil
 11959  		}
 11960  		c.PageToken(x.NextPageToken)
 11961  	}
 11962  }
 11963  
 11964  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall struct {
 11965  	s                                    *Service
 11966  	name                                 string
 11967  	googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
 11968  	urlParams_                           gensupport.URLParams
 11969  	ctx_                                 context.Context
 11970  	header_                              http.Header
 11971  }
 11972  
 11973  // Patch: Updates a Document.
 11974  //
 11975  //   - name: Immutable. The full resource name of the document. Format:
 11976  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 11977  //     s/{data_store}/branches/{branch}/documents/{document_id}`. This field must
 11978  //     be a UTF-8 encoded string with a length limit of 1024 characters.
 11979  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 11980  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11981  	c.name = name
 11982  	c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
 11983  	return c
 11984  }
 11985  
 11986  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 11987  // the Document is not found, a new Document will be created.
 11988  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 11989  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 11990  	return c
 11991  }
 11992  
 11993  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 11994  // in the provided imported 'document' to update. If not set, will by default
 11995  // update all fields.
 11996  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 11997  	c.urlParams_.Set("updateMask", updateMask)
 11998  	return c
 11999  }
 12000  
 12001  // Fields allows partial responses to be retrieved. See
 12002  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12003  // details.
 12004  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 12005  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12006  	return c
 12007  }
 12008  
 12009  // Context sets the context to be used in this call's Do method.
 12010  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 12011  	c.ctx_ = ctx
 12012  	return c
 12013  }
 12014  
 12015  // Header returns a http.Header that can be modified by the caller to add
 12016  // headers to the request.
 12017  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
 12018  	if c.header_ == nil {
 12019  		c.header_ = make(http.Header)
 12020  	}
 12021  	return c.header_
 12022  }
 12023  
 12024  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 12025  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12026  	var body io.Reader = nil
 12027  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
 12028  	if err != nil {
 12029  		return nil, err
 12030  	}
 12031  	c.urlParams_.Set("alt", alt)
 12032  	c.urlParams_.Set("prettyPrint", "false")
 12033  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12034  	urls += "?" + c.urlParams_.Encode()
 12035  	req, err := http.NewRequest("PATCH", urls, body)
 12036  	if err != nil {
 12037  		return nil, err
 12038  	}
 12039  	req.Header = reqHeaders
 12040  	googleapi.Expand(req.URL, map[string]string{
 12041  		"name": c.name,
 12042  	})
 12043  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12044  }
 12045  
 12046  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch" call.
 12047  // Any non-2xx status code is an error. Response headers are in either
 12048  // *GoogleCloudDiscoveryengineV1Document.ServerResponse.Header or (if a
 12049  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12050  // googleapi.IsNotModified to check whether the returned error was because
 12051  // http.StatusNotModified was returned.
 12052  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
 12053  	gensupport.SetOptions(c.urlParams_, opts...)
 12054  	res, err := c.doRequest("json")
 12055  	if res != nil && res.StatusCode == http.StatusNotModified {
 12056  		if res.Body != nil {
 12057  			res.Body.Close()
 12058  		}
 12059  		return nil, gensupport.WrapError(&googleapi.Error{
 12060  			Code:   res.StatusCode,
 12061  			Header: res.Header,
 12062  		})
 12063  	}
 12064  	if err != nil {
 12065  		return nil, err
 12066  	}
 12067  	defer googleapi.CloseBody(res)
 12068  	if err := googleapi.CheckResponse(res); err != nil {
 12069  		return nil, gensupport.WrapError(err)
 12070  	}
 12071  	ret := &GoogleCloudDiscoveryengineV1Document{
 12072  		ServerResponse: googleapi.ServerResponse{
 12073  			Header:         res.Header,
 12074  			HTTPStatusCode: res.StatusCode,
 12075  		},
 12076  	}
 12077  	target := &ret
 12078  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12079  		return nil, err
 12080  	}
 12081  	return ret, nil
 12082  }
 12083  
 12084  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall struct {
 12085  	s                                                 *Service
 12086  	parent                                            string
 12087  	googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest
 12088  	urlParams_                                        gensupport.URLParams
 12089  	ctx_                                              context.Context
 12090  	header_                                           http.Header
 12091  }
 12092  
 12093  // Purge: Permanently deletes all selected Documents in a branch. This process
 12094  // is asynchronous. Depending on the number of Documents to be deleted, this
 12095  // operation can take hours to complete. Before the delete operation completes,
 12096  // some Documents might still be returned by DocumentService.GetDocument or
 12097  // DocumentService.ListDocuments. To get a list of the Documents to be deleted,
 12098  // set PurgeDocumentsRequest.force to false.
 12099  //
 12100  //   - parent: The parent resource name, such as
 12101  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 12102  //     s/{data_store}/branches/{branch}`.
 12103  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 12104  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12105  	c.parent = parent
 12106  	c.googleclouddiscoveryenginev1purgedocumentsrequest = googleclouddiscoveryenginev1purgedocumentsrequest
 12107  	return c
 12108  }
 12109  
 12110  // Fields allows partial responses to be retrieved. See
 12111  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12112  // details.
 12113  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 12114  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12115  	return c
 12116  }
 12117  
 12118  // Context sets the context to be used in this call's Do method.
 12119  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 12120  	c.ctx_ = ctx
 12121  	return c
 12122  }
 12123  
 12124  // Header returns a http.Header that can be modified by the caller to add
 12125  // headers to the request.
 12126  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
 12127  	if c.header_ == nil {
 12128  		c.header_ = make(http.Header)
 12129  	}
 12130  	return c.header_
 12131  }
 12132  
 12133  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
 12134  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12135  	var body io.Reader = nil
 12136  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgedocumentsrequest)
 12137  	if err != nil {
 12138  		return nil, err
 12139  	}
 12140  	c.urlParams_.Set("alt", alt)
 12141  	c.urlParams_.Set("prettyPrint", "false")
 12142  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:purge")
 12143  	urls += "?" + c.urlParams_.Encode()
 12144  	req, err := http.NewRequest("POST", urls, body)
 12145  	if err != nil {
 12146  		return nil, err
 12147  	}
 12148  	req.Header = reqHeaders
 12149  	googleapi.Expand(req.URL, map[string]string{
 12150  		"parent": c.parent,
 12151  	})
 12152  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12153  }
 12154  
 12155  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge" call.
 12156  // Any non-2xx status code is an error. Response headers are in either
 12157  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12158  // returned at all) in error.(*googleapi.Error).Header. Use
 12159  // googleapi.IsNotModified to check whether the returned error was because
 12160  // http.StatusNotModified was returned.
 12161  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12162  	gensupport.SetOptions(c.urlParams_, opts...)
 12163  	res, err := c.doRequest("json")
 12164  	if res != nil && res.StatusCode == http.StatusNotModified {
 12165  		if res.Body != nil {
 12166  			res.Body.Close()
 12167  		}
 12168  		return nil, gensupport.WrapError(&googleapi.Error{
 12169  			Code:   res.StatusCode,
 12170  			Header: res.Header,
 12171  		})
 12172  	}
 12173  	if err != nil {
 12174  		return nil, err
 12175  	}
 12176  	defer googleapi.CloseBody(res)
 12177  	if err := googleapi.CheckResponse(res); err != nil {
 12178  		return nil, gensupport.WrapError(err)
 12179  	}
 12180  	ret := &GoogleLongrunningOperation{
 12181  		ServerResponse: googleapi.ServerResponse{
 12182  			Header:         res.Header,
 12183  			HTTPStatusCode: res.StatusCode,
 12184  		},
 12185  	}
 12186  	target := &ret
 12187  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12188  		return nil, err
 12189  	}
 12190  	return ret, nil
 12191  }
 12192  
 12193  type ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall struct {
 12194  	s                                       *Service
 12195  	name                                    string
 12196  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 12197  	urlParams_                              gensupport.URLParams
 12198  	ctx_                                    context.Context
 12199  	header_                                 http.Header
 12200  }
 12201  
 12202  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 12203  // server makes a best effort to cancel the operation, but success is not
 12204  // guaranteed. If the server doesn't support this method, it returns
 12205  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 12206  // other methods to check whether the cancellation succeeded or whether the
 12207  // operation completed despite cancellation. On successful cancellation, the
 12208  // operation is not deleted; instead, it becomes an operation with an
 12209  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 12210  // `Code.CANCELLED`.
 12211  //
 12212  // - name: The name of the operation resource to be cancelled.
 12213  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 12214  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12215  	c.name = name
 12216  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 12217  	return c
 12218  }
 12219  
 12220  // Fields allows partial responses to be retrieved. See
 12221  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12222  // details.
 12223  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 12224  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12225  	return c
 12226  }
 12227  
 12228  // Context sets the context to be used in this call's Do method.
 12229  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 12230  	c.ctx_ = ctx
 12231  	return c
 12232  }
 12233  
 12234  // Header returns a http.Header that can be modified by the caller to add
 12235  // headers to the request.
 12236  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Header() http.Header {
 12237  	if c.header_ == nil {
 12238  		c.header_ = make(http.Header)
 12239  	}
 12240  	return c.header_
 12241  }
 12242  
 12243  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 12244  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12245  	var body io.Reader = nil
 12246  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 12247  	if err != nil {
 12248  		return nil, err
 12249  	}
 12250  	c.urlParams_.Set("alt", alt)
 12251  	c.urlParams_.Set("prettyPrint", "false")
 12252  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 12253  	urls += "?" + c.urlParams_.Encode()
 12254  	req, err := http.NewRequest("POST", urls, body)
 12255  	if err != nil {
 12256  		return nil, err
 12257  	}
 12258  	req.Header = reqHeaders
 12259  	googleapi.Expand(req.URL, map[string]string{
 12260  		"name": c.name,
 12261  	})
 12262  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12263  }
 12264  
 12265  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel" call.
 12266  // Any non-2xx status code is an error. Response headers are in either
 12267  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 12268  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12269  // check whether the returned error was because http.StatusNotModified was
 12270  // returned.
 12271  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 12272  	gensupport.SetOptions(c.urlParams_, opts...)
 12273  	res, err := c.doRequest("json")
 12274  	if res != nil && res.StatusCode == http.StatusNotModified {
 12275  		if res.Body != nil {
 12276  			res.Body.Close()
 12277  		}
 12278  		return nil, gensupport.WrapError(&googleapi.Error{
 12279  			Code:   res.StatusCode,
 12280  			Header: res.Header,
 12281  		})
 12282  	}
 12283  	if err != nil {
 12284  		return nil, err
 12285  	}
 12286  	defer googleapi.CloseBody(res)
 12287  	if err := googleapi.CheckResponse(res); err != nil {
 12288  		return nil, gensupport.WrapError(err)
 12289  	}
 12290  	ret := &GoogleProtobufEmpty{
 12291  		ServerResponse: googleapi.ServerResponse{
 12292  			Header:         res.Header,
 12293  			HTTPStatusCode: res.StatusCode,
 12294  		},
 12295  	}
 12296  	target := &ret
 12297  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12298  		return nil, err
 12299  	}
 12300  	return ret, nil
 12301  }
 12302  
 12303  type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct {
 12304  	s            *Service
 12305  	name         string
 12306  	urlParams_   gensupport.URLParams
 12307  	ifNoneMatch_ string
 12308  	ctx_         context.Context
 12309  	header_      http.Header
 12310  }
 12311  
 12312  // Get: Gets the latest state of a long-running operation. Clients can use this
 12313  // method to poll the operation result at intervals as recommended by the API
 12314  // service.
 12315  //
 12316  // - name: The name of the operation resource.
 12317  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 12318  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12319  	c.name = name
 12320  	return c
 12321  }
 12322  
 12323  // Fields allows partial responses to be retrieved. See
 12324  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12325  // details.
 12326  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 12327  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12328  	return c
 12329  }
 12330  
 12331  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12332  // object's ETag matches the given value. This is useful for getting updates
 12333  // only after the object has changed since the last request.
 12334  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 12335  	c.ifNoneMatch_ = entityTag
 12336  	return c
 12337  }
 12338  
 12339  // Context sets the context to be used in this call's Do method.
 12340  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 12341  	c.ctx_ = ctx
 12342  	return c
 12343  }
 12344  
 12345  // Header returns a http.Header that can be modified by the caller to add
 12346  // headers to the request.
 12347  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Header() http.Header {
 12348  	if c.header_ == nil {
 12349  		c.header_ = make(http.Header)
 12350  	}
 12351  	return c.header_
 12352  }
 12353  
 12354  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 12355  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12356  	if c.ifNoneMatch_ != "" {
 12357  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12358  	}
 12359  	var body io.Reader = nil
 12360  	c.urlParams_.Set("alt", alt)
 12361  	c.urlParams_.Set("prettyPrint", "false")
 12362  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12363  	urls += "?" + c.urlParams_.Encode()
 12364  	req, err := http.NewRequest("GET", urls, body)
 12365  	if err != nil {
 12366  		return nil, err
 12367  	}
 12368  	req.Header = reqHeaders
 12369  	googleapi.Expand(req.URL, map[string]string{
 12370  		"name": c.name,
 12371  	})
 12372  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12373  }
 12374  
 12375  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.get" call.
 12376  // Any non-2xx status code is an error. Response headers are in either
 12377  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12378  // returned at all) in error.(*googleapi.Error).Header. Use
 12379  // googleapi.IsNotModified to check whether the returned error was because
 12380  // http.StatusNotModified was returned.
 12381  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12382  	gensupport.SetOptions(c.urlParams_, opts...)
 12383  	res, err := c.doRequest("json")
 12384  	if res != nil && res.StatusCode == http.StatusNotModified {
 12385  		if res.Body != nil {
 12386  			res.Body.Close()
 12387  		}
 12388  		return nil, gensupport.WrapError(&googleapi.Error{
 12389  			Code:   res.StatusCode,
 12390  			Header: res.Header,
 12391  		})
 12392  	}
 12393  	if err != nil {
 12394  		return nil, err
 12395  	}
 12396  	defer googleapi.CloseBody(res)
 12397  	if err := googleapi.CheckResponse(res); err != nil {
 12398  		return nil, gensupport.WrapError(err)
 12399  	}
 12400  	ret := &GoogleLongrunningOperation{
 12401  		ServerResponse: googleapi.ServerResponse{
 12402  			Header:         res.Header,
 12403  			HTTPStatusCode: res.StatusCode,
 12404  		},
 12405  	}
 12406  	target := &ret
 12407  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12408  		return nil, err
 12409  	}
 12410  	return ret, nil
 12411  }
 12412  
 12413  type ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall struct {
 12414  	s            *Service
 12415  	name         string
 12416  	urlParams_   gensupport.URLParams
 12417  	ifNoneMatch_ string
 12418  	ctx_         context.Context
 12419  	header_      http.Header
 12420  }
 12421  
 12422  // List: Lists operations that match the specified filter in the request. If
 12423  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 12424  //
 12425  // - name: The name of the operation's parent resource.
 12426  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12427  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12428  	c.name = name
 12429  	return c
 12430  }
 12431  
 12432  // Filter sets the optional parameter "filter": The standard list filter.
 12433  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12434  	c.urlParams_.Set("filter", filter)
 12435  	return c
 12436  }
 12437  
 12438  // PageSize sets the optional parameter "pageSize": The standard list page
 12439  // size.
 12440  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12441  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12442  	return c
 12443  }
 12444  
 12445  // PageToken sets the optional parameter "pageToken": The standard list page
 12446  // token.
 12447  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12448  	c.urlParams_.Set("pageToken", pageToken)
 12449  	return c
 12450  }
 12451  
 12452  // Fields allows partial responses to be retrieved. See
 12453  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12454  // details.
 12455  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12456  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12457  	return c
 12458  }
 12459  
 12460  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12461  // object's ETag matches the given value. This is useful for getting updates
 12462  // only after the object has changed since the last request.
 12463  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12464  	c.ifNoneMatch_ = entityTag
 12465  	return c
 12466  }
 12467  
 12468  // Context sets the context to be used in this call's Do method.
 12469  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 12470  	c.ctx_ = ctx
 12471  	return c
 12472  }
 12473  
 12474  // Header returns a http.Header that can be modified by the caller to add
 12475  // headers to the request.
 12476  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Header() http.Header {
 12477  	if c.header_ == nil {
 12478  		c.header_ = make(http.Header)
 12479  	}
 12480  	return c.header_
 12481  }
 12482  
 12483  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 12484  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12485  	if c.ifNoneMatch_ != "" {
 12486  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12487  	}
 12488  	var body io.Reader = nil
 12489  	c.urlParams_.Set("alt", alt)
 12490  	c.urlParams_.Set("prettyPrint", "false")
 12491  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 12492  	urls += "?" + c.urlParams_.Encode()
 12493  	req, err := http.NewRequest("GET", urls, body)
 12494  	if err != nil {
 12495  		return nil, err
 12496  	}
 12497  	req.Header = reqHeaders
 12498  	googleapi.Expand(req.URL, map[string]string{
 12499  		"name": c.name,
 12500  	})
 12501  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12502  }
 12503  
 12504  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.list" call.
 12505  // Any non-2xx status code is an error. Response headers are in either
 12506  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 12507  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12508  // googleapi.IsNotModified to check whether the returned error was because
 12509  // http.StatusNotModified was returned.
 12510  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 12511  	gensupport.SetOptions(c.urlParams_, opts...)
 12512  	res, err := c.doRequest("json")
 12513  	if res != nil && res.StatusCode == http.StatusNotModified {
 12514  		if res.Body != nil {
 12515  			res.Body.Close()
 12516  		}
 12517  		return nil, gensupport.WrapError(&googleapi.Error{
 12518  			Code:   res.StatusCode,
 12519  			Header: res.Header,
 12520  		})
 12521  	}
 12522  	if err != nil {
 12523  		return nil, err
 12524  	}
 12525  	defer googleapi.CloseBody(res)
 12526  	if err := googleapi.CheckResponse(res); err != nil {
 12527  		return nil, gensupport.WrapError(err)
 12528  	}
 12529  	ret := &GoogleLongrunningListOperationsResponse{
 12530  		ServerResponse: googleapi.ServerResponse{
 12531  			Header:         res.Header,
 12532  			HTTPStatusCode: res.StatusCode,
 12533  		},
 12534  	}
 12535  	target := &ret
 12536  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12537  		return nil, err
 12538  	}
 12539  	return ret, nil
 12540  }
 12541  
 12542  // Pages invokes f for each page of results.
 12543  // A non-nil error returned from f will halt the iteration.
 12544  // The provided context supersedes any context provided to the Context method.
 12545  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 12546  	c.ctx_ = ctx
 12547  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12548  	for {
 12549  		x, err := c.Do()
 12550  		if err != nil {
 12551  			return err
 12552  		}
 12553  		if err := f(x); err != nil {
 12554  			return err
 12555  		}
 12556  		if x.NextPageToken == "" {
 12557  			return nil
 12558  		}
 12559  		c.PageToken(x.NextPageToken)
 12560  	}
 12561  }
 12562  
 12563  type ProjectsLocationsCollectionsDataStoresConversationsConverseCall struct {
 12564  	s                                                       *Service
 12565  	name                                                    string
 12566  	googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest
 12567  	urlParams_                                              gensupport.URLParams
 12568  	ctx_                                                    context.Context
 12569  	header_                                                 http.Header
 12570  }
 12571  
 12572  // Converse: Converses a conversation.
 12573  //
 12574  //   - name: The resource name of the Conversation to get. Format:
 12575  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 12576  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 12577  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 12578  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 12579  //     mode, which automatically creates a new conversation inside a
 12580  //     ConverseConversation session.
 12581  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 12582  	c := &ProjectsLocationsCollectionsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12583  	c.name = name
 12584  	c.googleclouddiscoveryenginev1converseconversationrequest = googleclouddiscoveryenginev1converseconversationrequest
 12585  	return c
 12586  }
 12587  
 12588  // Fields allows partial responses to be retrieved. See
 12589  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12590  // details.
 12591  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 12592  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12593  	return c
 12594  }
 12595  
 12596  // Context sets the context to be used in this call's Do method.
 12597  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 12598  	c.ctx_ = ctx
 12599  	return c
 12600  }
 12601  
 12602  // Header returns a http.Header that can be modified by the caller to add
 12603  // headers to the request.
 12604  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Header() http.Header {
 12605  	if c.header_ == nil {
 12606  		c.header_ = make(http.Header)
 12607  	}
 12608  	return c.header_
 12609  }
 12610  
 12611  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 12612  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12613  	var body io.Reader = nil
 12614  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1converseconversationrequest)
 12615  	if err != nil {
 12616  		return nil, err
 12617  	}
 12618  	c.urlParams_.Set("alt", alt)
 12619  	c.urlParams_.Set("prettyPrint", "false")
 12620  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:converse")
 12621  	urls += "?" + c.urlParams_.Encode()
 12622  	req, err := http.NewRequest("POST", urls, body)
 12623  	if err != nil {
 12624  		return nil, err
 12625  	}
 12626  	req.Header = reqHeaders
 12627  	googleapi.Expand(req.URL, map[string]string{
 12628  		"name": c.name,
 12629  	})
 12630  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12631  }
 12632  
 12633  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.converse" call.
 12634  // Any non-2xx status code is an error. Response headers are in either
 12635  // *GoogleCloudDiscoveryengineV1ConverseConversationResponse.ServerResponse.Head
 12636  // er or (if a response was returned at all) in
 12637  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12638  // whether the returned error was because http.StatusNotModified was returned.
 12639  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ConverseConversationResponse, error) {
 12640  	gensupport.SetOptions(c.urlParams_, opts...)
 12641  	res, err := c.doRequest("json")
 12642  	if res != nil && res.StatusCode == http.StatusNotModified {
 12643  		if res.Body != nil {
 12644  			res.Body.Close()
 12645  		}
 12646  		return nil, gensupport.WrapError(&googleapi.Error{
 12647  			Code:   res.StatusCode,
 12648  			Header: res.Header,
 12649  		})
 12650  	}
 12651  	if err != nil {
 12652  		return nil, err
 12653  	}
 12654  	defer googleapi.CloseBody(res)
 12655  	if err := googleapi.CheckResponse(res); err != nil {
 12656  		return nil, gensupport.WrapError(err)
 12657  	}
 12658  	ret := &GoogleCloudDiscoveryengineV1ConverseConversationResponse{
 12659  		ServerResponse: googleapi.ServerResponse{
 12660  			Header:         res.Header,
 12661  			HTTPStatusCode: res.StatusCode,
 12662  		},
 12663  	}
 12664  	target := &ret
 12665  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12666  		return nil, err
 12667  	}
 12668  	return ret, nil
 12669  }
 12670  
 12671  type ProjectsLocationsCollectionsDataStoresConversationsCreateCall struct {
 12672  	s                                        *Service
 12673  	parent                                   string
 12674  	googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
 12675  	urlParams_                               gensupport.URLParams
 12676  	ctx_                                     context.Context
 12677  	header_                                  http.Header
 12678  }
 12679  
 12680  // Create: Creates a Conversation. If the Conversation to create already
 12681  // exists, an ALREADY_EXISTS error is returned.
 12682  //
 12683  //   - parent: Full resource name of parent data store. Format:
 12684  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 12685  //     /dataStores/{data_store_id}`.
 12686  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 12687  	c := &ProjectsLocationsCollectionsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12688  	c.parent = parent
 12689  	c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
 12690  	return c
 12691  }
 12692  
 12693  // Fields allows partial responses to be retrieved. See
 12694  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12695  // details.
 12696  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 12697  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12698  	return c
 12699  }
 12700  
 12701  // Context sets the context to be used in this call's Do method.
 12702  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 12703  	c.ctx_ = ctx
 12704  	return c
 12705  }
 12706  
 12707  // Header returns a http.Header that can be modified by the caller to add
 12708  // headers to the request.
 12709  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Header() http.Header {
 12710  	if c.header_ == nil {
 12711  		c.header_ = make(http.Header)
 12712  	}
 12713  	return c.header_
 12714  }
 12715  
 12716  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 12717  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12718  	var body io.Reader = nil
 12719  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
 12720  	if err != nil {
 12721  		return nil, err
 12722  	}
 12723  	c.urlParams_.Set("alt", alt)
 12724  	c.urlParams_.Set("prettyPrint", "false")
 12725  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
 12726  	urls += "?" + c.urlParams_.Encode()
 12727  	req, err := http.NewRequest("POST", urls, body)
 12728  	if err != nil {
 12729  		return nil, err
 12730  	}
 12731  	req.Header = reqHeaders
 12732  	googleapi.Expand(req.URL, map[string]string{
 12733  		"parent": c.parent,
 12734  	})
 12735  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12736  }
 12737  
 12738  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.create" call.
 12739  // Any non-2xx status code is an error. Response headers are in either
 12740  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 12741  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12742  // googleapi.IsNotModified to check whether the returned error was because
 12743  // http.StatusNotModified was returned.
 12744  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 12745  	gensupport.SetOptions(c.urlParams_, opts...)
 12746  	res, err := c.doRequest("json")
 12747  	if res != nil && res.StatusCode == http.StatusNotModified {
 12748  		if res.Body != nil {
 12749  			res.Body.Close()
 12750  		}
 12751  		return nil, gensupport.WrapError(&googleapi.Error{
 12752  			Code:   res.StatusCode,
 12753  			Header: res.Header,
 12754  		})
 12755  	}
 12756  	if err != nil {
 12757  		return nil, err
 12758  	}
 12759  	defer googleapi.CloseBody(res)
 12760  	if err := googleapi.CheckResponse(res); err != nil {
 12761  		return nil, gensupport.WrapError(err)
 12762  	}
 12763  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 12764  		ServerResponse: googleapi.ServerResponse{
 12765  			Header:         res.Header,
 12766  			HTTPStatusCode: res.StatusCode,
 12767  		},
 12768  	}
 12769  	target := &ret
 12770  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12771  		return nil, err
 12772  	}
 12773  	return ret, nil
 12774  }
 12775  
 12776  type ProjectsLocationsCollectionsDataStoresConversationsDeleteCall struct {
 12777  	s          *Service
 12778  	name       string
 12779  	urlParams_ gensupport.URLParams
 12780  	ctx_       context.Context
 12781  	header_    http.Header
 12782  }
 12783  
 12784  // Delete: Deletes a Conversation. If the Conversation to delete does not
 12785  // exist, a NOT_FOUND error is returned.
 12786  //
 12787  //   - name: The resource name of the Conversation to delete. Format:
 12788  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 12789  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 12790  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 12791  	c := &ProjectsLocationsCollectionsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12792  	c.name = name
 12793  	return c
 12794  }
 12795  
 12796  // Fields allows partial responses to be retrieved. See
 12797  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12798  // details.
 12799  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 12800  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12801  	return c
 12802  }
 12803  
 12804  // Context sets the context to be used in this call's Do method.
 12805  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 12806  	c.ctx_ = ctx
 12807  	return c
 12808  }
 12809  
 12810  // Header returns a http.Header that can be modified by the caller to add
 12811  // headers to the request.
 12812  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Header() http.Header {
 12813  	if c.header_ == nil {
 12814  		c.header_ = make(http.Header)
 12815  	}
 12816  	return c.header_
 12817  }
 12818  
 12819  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12820  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12821  	var body io.Reader = nil
 12822  	c.urlParams_.Set("alt", alt)
 12823  	c.urlParams_.Set("prettyPrint", "false")
 12824  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12825  	urls += "?" + c.urlParams_.Encode()
 12826  	req, err := http.NewRequest("DELETE", urls, body)
 12827  	if err != nil {
 12828  		return nil, err
 12829  	}
 12830  	req.Header = reqHeaders
 12831  	googleapi.Expand(req.URL, map[string]string{
 12832  		"name": c.name,
 12833  	})
 12834  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12835  }
 12836  
 12837  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.delete" call.
 12838  // Any non-2xx status code is an error. Response headers are in either
 12839  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 12840  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12841  // check whether the returned error was because http.StatusNotModified was
 12842  // returned.
 12843  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 12844  	gensupport.SetOptions(c.urlParams_, opts...)
 12845  	res, err := c.doRequest("json")
 12846  	if res != nil && res.StatusCode == http.StatusNotModified {
 12847  		if res.Body != nil {
 12848  			res.Body.Close()
 12849  		}
 12850  		return nil, gensupport.WrapError(&googleapi.Error{
 12851  			Code:   res.StatusCode,
 12852  			Header: res.Header,
 12853  		})
 12854  	}
 12855  	if err != nil {
 12856  		return nil, err
 12857  	}
 12858  	defer googleapi.CloseBody(res)
 12859  	if err := googleapi.CheckResponse(res); err != nil {
 12860  		return nil, gensupport.WrapError(err)
 12861  	}
 12862  	ret := &GoogleProtobufEmpty{
 12863  		ServerResponse: googleapi.ServerResponse{
 12864  			Header:         res.Header,
 12865  			HTTPStatusCode: res.StatusCode,
 12866  		},
 12867  	}
 12868  	target := &ret
 12869  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12870  		return nil, err
 12871  	}
 12872  	return ret, nil
 12873  }
 12874  
 12875  type ProjectsLocationsCollectionsDataStoresConversationsGetCall struct {
 12876  	s            *Service
 12877  	name         string
 12878  	urlParams_   gensupport.URLParams
 12879  	ifNoneMatch_ string
 12880  	ctx_         context.Context
 12881  	header_      http.Header
 12882  }
 12883  
 12884  // Get: Gets a Conversation.
 12885  //
 12886  //   - name: The resource name of the Conversation to get. Format:
 12887  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 12888  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 12889  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 12890  	c := &ProjectsLocationsCollectionsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12891  	c.name = name
 12892  	return c
 12893  }
 12894  
 12895  // Fields allows partial responses to be retrieved. See
 12896  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12897  // details.
 12898  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 12899  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12900  	return c
 12901  }
 12902  
 12903  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12904  // object's ETag matches the given value. This is useful for getting updates
 12905  // only after the object has changed since the last request.
 12906  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 12907  	c.ifNoneMatch_ = entityTag
 12908  	return c
 12909  }
 12910  
 12911  // Context sets the context to be used in this call's Do method.
 12912  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 12913  	c.ctx_ = ctx
 12914  	return c
 12915  }
 12916  
 12917  // Header returns a http.Header that can be modified by the caller to add
 12918  // headers to the request.
 12919  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Header() http.Header {
 12920  	if c.header_ == nil {
 12921  		c.header_ = make(http.Header)
 12922  	}
 12923  	return c.header_
 12924  }
 12925  
 12926  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 12927  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12928  	if c.ifNoneMatch_ != "" {
 12929  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12930  	}
 12931  	var body io.Reader = nil
 12932  	c.urlParams_.Set("alt", alt)
 12933  	c.urlParams_.Set("prettyPrint", "false")
 12934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12935  	urls += "?" + c.urlParams_.Encode()
 12936  	req, err := http.NewRequest("GET", urls, body)
 12937  	if err != nil {
 12938  		return nil, err
 12939  	}
 12940  	req.Header = reqHeaders
 12941  	googleapi.Expand(req.URL, map[string]string{
 12942  		"name": c.name,
 12943  	})
 12944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12945  }
 12946  
 12947  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.get" call.
 12948  // Any non-2xx status code is an error. Response headers are in either
 12949  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 12950  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12951  // googleapi.IsNotModified to check whether the returned error was because
 12952  // http.StatusNotModified was returned.
 12953  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 12954  	gensupport.SetOptions(c.urlParams_, opts...)
 12955  	res, err := c.doRequest("json")
 12956  	if res != nil && res.StatusCode == http.StatusNotModified {
 12957  		if res.Body != nil {
 12958  			res.Body.Close()
 12959  		}
 12960  		return nil, gensupport.WrapError(&googleapi.Error{
 12961  			Code:   res.StatusCode,
 12962  			Header: res.Header,
 12963  		})
 12964  	}
 12965  	if err != nil {
 12966  		return nil, err
 12967  	}
 12968  	defer googleapi.CloseBody(res)
 12969  	if err := googleapi.CheckResponse(res); err != nil {
 12970  		return nil, gensupport.WrapError(err)
 12971  	}
 12972  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 12973  		ServerResponse: googleapi.ServerResponse{
 12974  			Header:         res.Header,
 12975  			HTTPStatusCode: res.StatusCode,
 12976  		},
 12977  	}
 12978  	target := &ret
 12979  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12980  		return nil, err
 12981  	}
 12982  	return ret, nil
 12983  }
 12984  
 12985  type ProjectsLocationsCollectionsDataStoresConversationsListCall struct {
 12986  	s            *Service
 12987  	parent       string
 12988  	urlParams_   gensupport.URLParams
 12989  	ifNoneMatch_ string
 12990  	ctx_         context.Context
 12991  	header_      http.Header
 12992  }
 12993  
 12994  // List: Lists all Conversations by their parent DataStore.
 12995  //
 12996  //   - parent: The data store resource name. Format:
 12997  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 12998  //     /dataStores/{data_store_id}`.
 12999  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) List(parent string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13000  	c := &ProjectsLocationsCollectionsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13001  	c.parent = parent
 13002  	return c
 13003  }
 13004  
 13005  // Filter sets the optional parameter "filter": A filter to apply on the list
 13006  // results. The supported features are: user_pseudo_id, state. Example:
 13007  // "user_pseudo_id = some_id"
 13008  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13009  	c.urlParams_.Set("filter", filter)
 13010  	return c
 13011  }
 13012  
 13013  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 13014  // fields to order by, sorted in ascending order. Use "desc" after a field name
 13015  // for descending. Supported fields: * `update_time` * `create_time` *
 13016  // `conversation_name` Example: "update_time desc" "create_time"
 13017  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13018  	c.urlParams_.Set("orderBy", orderBy)
 13019  	return c
 13020  }
 13021  
 13022  // PageSize sets the optional parameter "pageSize": Maximum number of results
 13023  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 13024  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13025  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13026  	return c
 13027  }
 13028  
 13029  // PageToken sets the optional parameter "pageToken": A page token, received
 13030  // from a previous `ListConversations` call. Provide this to retrieve the
 13031  // subsequent page.
 13032  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13033  	c.urlParams_.Set("pageToken", pageToken)
 13034  	return c
 13035  }
 13036  
 13037  // Fields allows partial responses to be retrieved. See
 13038  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13039  // details.
 13040  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13041  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13042  	return c
 13043  }
 13044  
 13045  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13046  // object's ETag matches the given value. This is useful for getting updates
 13047  // only after the object has changed since the last request.
 13048  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13049  	c.ifNoneMatch_ = entityTag
 13050  	return c
 13051  }
 13052  
 13053  // Context sets the context to be used in this call's Do method.
 13054  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 13055  	c.ctx_ = ctx
 13056  	return c
 13057  }
 13058  
 13059  // Header returns a http.Header that can be modified by the caller to add
 13060  // headers to the request.
 13061  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Header() http.Header {
 13062  	if c.header_ == nil {
 13063  		c.header_ = make(http.Header)
 13064  	}
 13065  	return c.header_
 13066  }
 13067  
 13068  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
 13069  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13070  	if c.ifNoneMatch_ != "" {
 13071  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13072  	}
 13073  	var body io.Reader = nil
 13074  	c.urlParams_.Set("alt", alt)
 13075  	c.urlParams_.Set("prettyPrint", "false")
 13076  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
 13077  	urls += "?" + c.urlParams_.Encode()
 13078  	req, err := http.NewRequest("GET", urls, body)
 13079  	if err != nil {
 13080  		return nil, err
 13081  	}
 13082  	req.Header = reqHeaders
 13083  	googleapi.Expand(req.URL, map[string]string{
 13084  		"parent": c.parent,
 13085  	})
 13086  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13087  }
 13088  
 13089  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.list" call.
 13090  // Any non-2xx status code is an error. Response headers are in either
 13091  // *GoogleCloudDiscoveryengineV1ListConversationsResponse.ServerResponse.Header
 13092  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 13093  // Use googleapi.IsNotModified to check whether the returned error was because
 13094  // http.StatusNotModified was returned.
 13095  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListConversationsResponse, error) {
 13096  	gensupport.SetOptions(c.urlParams_, opts...)
 13097  	res, err := c.doRequest("json")
 13098  	if res != nil && res.StatusCode == http.StatusNotModified {
 13099  		if res.Body != nil {
 13100  			res.Body.Close()
 13101  		}
 13102  		return nil, gensupport.WrapError(&googleapi.Error{
 13103  			Code:   res.StatusCode,
 13104  			Header: res.Header,
 13105  		})
 13106  	}
 13107  	if err != nil {
 13108  		return nil, err
 13109  	}
 13110  	defer googleapi.CloseBody(res)
 13111  	if err := googleapi.CheckResponse(res); err != nil {
 13112  		return nil, gensupport.WrapError(err)
 13113  	}
 13114  	ret := &GoogleCloudDiscoveryengineV1ListConversationsResponse{
 13115  		ServerResponse: googleapi.ServerResponse{
 13116  			Header:         res.Header,
 13117  			HTTPStatusCode: res.StatusCode,
 13118  		},
 13119  	}
 13120  	target := &ret
 13121  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13122  		return nil, err
 13123  	}
 13124  	return ret, nil
 13125  }
 13126  
 13127  // Pages invokes f for each page of results.
 13128  // A non-nil error returned from f will halt the iteration.
 13129  // The provided context supersedes any context provided to the Context method.
 13130  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListConversationsResponse) error) error {
 13131  	c.ctx_ = ctx
 13132  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13133  	for {
 13134  		x, err := c.Do()
 13135  		if err != nil {
 13136  			return err
 13137  		}
 13138  		if err := f(x); err != nil {
 13139  			return err
 13140  		}
 13141  		if x.NextPageToken == "" {
 13142  			return nil
 13143  		}
 13144  		c.PageToken(x.NextPageToken)
 13145  	}
 13146  }
 13147  
 13148  type ProjectsLocationsCollectionsDataStoresConversationsPatchCall struct {
 13149  	s                                        *Service
 13150  	name                                     string
 13151  	googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
 13152  	urlParams_                               gensupport.URLParams
 13153  	ctx_                                     context.Context
 13154  	header_                                  http.Header
 13155  }
 13156  
 13157  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 13158  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 13159  //
 13160  //   - name: Immutable. Fully qualified name
 13161  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 13162  //     onversations/*` or
 13163  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 13164  //     versations/*`.
 13165  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 13166  	c := &ProjectsLocationsCollectionsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13167  	c.name = name
 13168  	c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
 13169  	return c
 13170  }
 13171  
 13172  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 13173  // in the provided Conversation to update. The following are NOT supported: *
 13174  // Conversation.name If not set or empty, all supported fields are updated.
 13175  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 13176  	c.urlParams_.Set("updateMask", updateMask)
 13177  	return c
 13178  }
 13179  
 13180  // Fields allows partial responses to be retrieved. See
 13181  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13182  // details.
 13183  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 13184  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13185  	return c
 13186  }
 13187  
 13188  // Context sets the context to be used in this call's Do method.
 13189  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 13190  	c.ctx_ = ctx
 13191  	return c
 13192  }
 13193  
 13194  // Header returns a http.Header that can be modified by the caller to add
 13195  // headers to the request.
 13196  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Header() http.Header {
 13197  	if c.header_ == nil {
 13198  		c.header_ = make(http.Header)
 13199  	}
 13200  	return c.header_
 13201  }
 13202  
 13203  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 13204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13205  	var body io.Reader = nil
 13206  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
 13207  	if err != nil {
 13208  		return nil, err
 13209  	}
 13210  	c.urlParams_.Set("alt", alt)
 13211  	c.urlParams_.Set("prettyPrint", "false")
 13212  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13213  	urls += "?" + c.urlParams_.Encode()
 13214  	req, err := http.NewRequest("PATCH", urls, body)
 13215  	if err != nil {
 13216  		return nil, err
 13217  	}
 13218  	req.Header = reqHeaders
 13219  	googleapi.Expand(req.URL, map[string]string{
 13220  		"name": c.name,
 13221  	})
 13222  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13223  }
 13224  
 13225  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.patch" call.
 13226  // Any non-2xx status code is an error. Response headers are in either
 13227  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 13228  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13229  // googleapi.IsNotModified to check whether the returned error was because
 13230  // http.StatusNotModified was returned.
 13231  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 13232  	gensupport.SetOptions(c.urlParams_, opts...)
 13233  	res, err := c.doRequest("json")
 13234  	if res != nil && res.StatusCode == http.StatusNotModified {
 13235  		if res.Body != nil {
 13236  			res.Body.Close()
 13237  		}
 13238  		return nil, gensupport.WrapError(&googleapi.Error{
 13239  			Code:   res.StatusCode,
 13240  			Header: res.Header,
 13241  		})
 13242  	}
 13243  	if err != nil {
 13244  		return nil, err
 13245  	}
 13246  	defer googleapi.CloseBody(res)
 13247  	if err := googleapi.CheckResponse(res); err != nil {
 13248  		return nil, gensupport.WrapError(err)
 13249  	}
 13250  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 13251  		ServerResponse: googleapi.ServerResponse{
 13252  			Header:         res.Header,
 13253  			HTTPStatusCode: res.StatusCode,
 13254  		},
 13255  	}
 13256  	target := &ret
 13257  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13258  		return nil, err
 13259  	}
 13260  	return ret, nil
 13261  }
 13262  
 13263  type ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall struct {
 13264  	s            *Service
 13265  	name         string
 13266  	urlParams_   gensupport.URLParams
 13267  	ifNoneMatch_ string
 13268  	ctx_         context.Context
 13269  	header_      http.Header
 13270  }
 13271  
 13272  // Get: Gets the latest state of a long-running operation. Clients can use this
 13273  // method to poll the operation result at intervals as recommended by the API
 13274  // service.
 13275  //
 13276  // - name: The name of the operation resource.
 13277  func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 13278  	c := &ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13279  	c.name = name
 13280  	return c
 13281  }
 13282  
 13283  // Fields allows partial responses to be retrieved. See
 13284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13285  // details.
 13286  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 13287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13288  	return c
 13289  }
 13290  
 13291  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13292  // object's ETag matches the given value. This is useful for getting updates
 13293  // only after the object has changed since the last request.
 13294  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 13295  	c.ifNoneMatch_ = entityTag
 13296  	return c
 13297  }
 13298  
 13299  // Context sets the context to be used in this call's Do method.
 13300  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 13301  	c.ctx_ = ctx
 13302  	return c
 13303  }
 13304  
 13305  // Header returns a http.Header that can be modified by the caller to add
 13306  // headers to the request.
 13307  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Header() http.Header {
 13308  	if c.header_ == nil {
 13309  		c.header_ = make(http.Header)
 13310  	}
 13311  	return c.header_
 13312  }
 13313  
 13314  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 13315  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13316  	if c.ifNoneMatch_ != "" {
 13317  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13318  	}
 13319  	var body io.Reader = nil
 13320  	c.urlParams_.Set("alt", alt)
 13321  	c.urlParams_.Set("prettyPrint", "false")
 13322  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13323  	urls += "?" + c.urlParams_.Encode()
 13324  	req, err := http.NewRequest("GET", urls, body)
 13325  	if err != nil {
 13326  		return nil, err
 13327  	}
 13328  	req.Header = reqHeaders
 13329  	googleapi.Expand(req.URL, map[string]string{
 13330  		"name": c.name,
 13331  	})
 13332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13333  }
 13334  
 13335  // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.get" call.
 13336  // Any non-2xx status code is an error. Response headers are in either
 13337  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13338  // returned at all) in error.(*googleapi.Error).Header. Use
 13339  // googleapi.IsNotModified to check whether the returned error was because
 13340  // http.StatusNotModified was returned.
 13341  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13342  	gensupport.SetOptions(c.urlParams_, opts...)
 13343  	res, err := c.doRequest("json")
 13344  	if res != nil && res.StatusCode == http.StatusNotModified {
 13345  		if res.Body != nil {
 13346  			res.Body.Close()
 13347  		}
 13348  		return nil, gensupport.WrapError(&googleapi.Error{
 13349  			Code:   res.StatusCode,
 13350  			Header: res.Header,
 13351  		})
 13352  	}
 13353  	if err != nil {
 13354  		return nil, err
 13355  	}
 13356  	defer googleapi.CloseBody(res)
 13357  	if err := googleapi.CheckResponse(res); err != nil {
 13358  		return nil, gensupport.WrapError(err)
 13359  	}
 13360  	ret := &GoogleLongrunningOperation{
 13361  		ServerResponse: googleapi.ServerResponse{
 13362  			Header:         res.Header,
 13363  			HTTPStatusCode: res.StatusCode,
 13364  		},
 13365  	}
 13366  	target := &ret
 13367  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13368  		return nil, err
 13369  	}
 13370  	return ret, nil
 13371  }
 13372  
 13373  type ProjectsLocationsCollectionsDataStoresModelsOperationsListCall struct {
 13374  	s            *Service
 13375  	name         string
 13376  	urlParams_   gensupport.URLParams
 13377  	ifNoneMatch_ string
 13378  	ctx_         context.Context
 13379  	header_      http.Header
 13380  }
 13381  
 13382  // List: Lists operations that match the specified filter in the request. If
 13383  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 13384  //
 13385  // - name: The name of the operation's parent resource.
 13386  func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13387  	c := &ProjectsLocationsCollectionsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13388  	c.name = name
 13389  	return c
 13390  }
 13391  
 13392  // Filter sets the optional parameter "filter": The standard list filter.
 13393  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13394  	c.urlParams_.Set("filter", filter)
 13395  	return c
 13396  }
 13397  
 13398  // PageSize sets the optional parameter "pageSize": The standard list page
 13399  // size.
 13400  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13401  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13402  	return c
 13403  }
 13404  
 13405  // PageToken sets the optional parameter "pageToken": The standard list page
 13406  // token.
 13407  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13408  	c.urlParams_.Set("pageToken", pageToken)
 13409  	return c
 13410  }
 13411  
 13412  // Fields allows partial responses to be retrieved. See
 13413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13414  // details.
 13415  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13417  	return c
 13418  }
 13419  
 13420  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13421  // object's ETag matches the given value. This is useful for getting updates
 13422  // only after the object has changed since the last request.
 13423  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13424  	c.ifNoneMatch_ = entityTag
 13425  	return c
 13426  }
 13427  
 13428  // Context sets the context to be used in this call's Do method.
 13429  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 13430  	c.ctx_ = ctx
 13431  	return c
 13432  }
 13433  
 13434  // Header returns a http.Header that can be modified by the caller to add
 13435  // headers to the request.
 13436  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Header() http.Header {
 13437  	if c.header_ == nil {
 13438  		c.header_ = make(http.Header)
 13439  	}
 13440  	return c.header_
 13441  }
 13442  
 13443  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 13444  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13445  	if c.ifNoneMatch_ != "" {
 13446  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13447  	}
 13448  	var body io.Reader = nil
 13449  	c.urlParams_.Set("alt", alt)
 13450  	c.urlParams_.Set("prettyPrint", "false")
 13451  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 13452  	urls += "?" + c.urlParams_.Encode()
 13453  	req, err := http.NewRequest("GET", urls, body)
 13454  	if err != nil {
 13455  		return nil, err
 13456  	}
 13457  	req.Header = reqHeaders
 13458  	googleapi.Expand(req.URL, map[string]string{
 13459  		"name": c.name,
 13460  	})
 13461  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13462  }
 13463  
 13464  // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.list" call.
 13465  // Any non-2xx status code is an error. Response headers are in either
 13466  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 13467  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13468  // googleapi.IsNotModified to check whether the returned error was because
 13469  // http.StatusNotModified was returned.
 13470  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 13471  	gensupport.SetOptions(c.urlParams_, opts...)
 13472  	res, err := c.doRequest("json")
 13473  	if res != nil && res.StatusCode == http.StatusNotModified {
 13474  		if res.Body != nil {
 13475  			res.Body.Close()
 13476  		}
 13477  		return nil, gensupport.WrapError(&googleapi.Error{
 13478  			Code:   res.StatusCode,
 13479  			Header: res.Header,
 13480  		})
 13481  	}
 13482  	if err != nil {
 13483  		return nil, err
 13484  	}
 13485  	defer googleapi.CloseBody(res)
 13486  	if err := googleapi.CheckResponse(res); err != nil {
 13487  		return nil, gensupport.WrapError(err)
 13488  	}
 13489  	ret := &GoogleLongrunningListOperationsResponse{
 13490  		ServerResponse: googleapi.ServerResponse{
 13491  			Header:         res.Header,
 13492  			HTTPStatusCode: res.StatusCode,
 13493  		},
 13494  	}
 13495  	target := &ret
 13496  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13497  		return nil, err
 13498  	}
 13499  	return ret, nil
 13500  }
 13501  
 13502  // Pages invokes f for each page of results.
 13503  // A non-nil error returned from f will halt the iteration.
 13504  // The provided context supersedes any context provided to the Context method.
 13505  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 13506  	c.ctx_ = ctx
 13507  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13508  	for {
 13509  		x, err := c.Do()
 13510  		if err != nil {
 13511  			return err
 13512  		}
 13513  		if err := f(x); err != nil {
 13514  			return err
 13515  		}
 13516  		if x.NextPageToken == "" {
 13517  			return nil
 13518  		}
 13519  		c.PageToken(x.NextPageToken)
 13520  	}
 13521  }
 13522  
 13523  type ProjectsLocationsCollectionsDataStoresOperationsGetCall struct {
 13524  	s            *Service
 13525  	name         string
 13526  	urlParams_   gensupport.URLParams
 13527  	ifNoneMatch_ string
 13528  	ctx_         context.Context
 13529  	header_      http.Header
 13530  }
 13531  
 13532  // Get: Gets the latest state of a long-running operation. Clients can use this
 13533  // method to poll the operation result at intervals as recommended by the API
 13534  // service.
 13535  //
 13536  // - name: The name of the operation resource.
 13537  func (r *ProjectsLocationsCollectionsDataStoresOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 13538  	c := &ProjectsLocationsCollectionsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13539  	c.name = name
 13540  	return c
 13541  }
 13542  
 13543  // Fields allows partial responses to be retrieved. See
 13544  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13545  // details.
 13546  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 13547  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13548  	return c
 13549  }
 13550  
 13551  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13552  // object's ETag matches the given value. This is useful for getting updates
 13553  // only after the object has changed since the last request.
 13554  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 13555  	c.ifNoneMatch_ = entityTag
 13556  	return c
 13557  }
 13558  
 13559  // Context sets the context to be used in this call's Do method.
 13560  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 13561  	c.ctx_ = ctx
 13562  	return c
 13563  }
 13564  
 13565  // Header returns a http.Header that can be modified by the caller to add
 13566  // headers to the request.
 13567  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Header() http.Header {
 13568  	if c.header_ == nil {
 13569  		c.header_ = make(http.Header)
 13570  	}
 13571  	return c.header_
 13572  }
 13573  
 13574  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 13575  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13576  	if c.ifNoneMatch_ != "" {
 13577  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13578  	}
 13579  	var body io.Reader = nil
 13580  	c.urlParams_.Set("alt", alt)
 13581  	c.urlParams_.Set("prettyPrint", "false")
 13582  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13583  	urls += "?" + c.urlParams_.Encode()
 13584  	req, err := http.NewRequest("GET", urls, body)
 13585  	if err != nil {
 13586  		return nil, err
 13587  	}
 13588  	req.Header = reqHeaders
 13589  	googleapi.Expand(req.URL, map[string]string{
 13590  		"name": c.name,
 13591  	})
 13592  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13593  }
 13594  
 13595  // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.get" call.
 13596  // Any non-2xx status code is an error. Response headers are in either
 13597  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13598  // returned at all) in error.(*googleapi.Error).Header. Use
 13599  // googleapi.IsNotModified to check whether the returned error was because
 13600  // http.StatusNotModified was returned.
 13601  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13602  	gensupport.SetOptions(c.urlParams_, opts...)
 13603  	res, err := c.doRequest("json")
 13604  	if res != nil && res.StatusCode == http.StatusNotModified {
 13605  		if res.Body != nil {
 13606  			res.Body.Close()
 13607  		}
 13608  		return nil, gensupport.WrapError(&googleapi.Error{
 13609  			Code:   res.StatusCode,
 13610  			Header: res.Header,
 13611  		})
 13612  	}
 13613  	if err != nil {
 13614  		return nil, err
 13615  	}
 13616  	defer googleapi.CloseBody(res)
 13617  	if err := googleapi.CheckResponse(res); err != nil {
 13618  		return nil, gensupport.WrapError(err)
 13619  	}
 13620  	ret := &GoogleLongrunningOperation{
 13621  		ServerResponse: googleapi.ServerResponse{
 13622  			Header:         res.Header,
 13623  			HTTPStatusCode: res.StatusCode,
 13624  		},
 13625  	}
 13626  	target := &ret
 13627  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13628  		return nil, err
 13629  	}
 13630  	return ret, nil
 13631  }
 13632  
 13633  type ProjectsLocationsCollectionsDataStoresOperationsListCall struct {
 13634  	s            *Service
 13635  	name         string
 13636  	urlParams_   gensupport.URLParams
 13637  	ifNoneMatch_ string
 13638  	ctx_         context.Context
 13639  	header_      http.Header
 13640  }
 13641  
 13642  // List: Lists operations that match the specified filter in the request. If
 13643  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 13644  //
 13645  // - name: The name of the operation's parent resource.
 13646  func (r *ProjectsLocationsCollectionsDataStoresOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13647  	c := &ProjectsLocationsCollectionsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13648  	c.name = name
 13649  	return c
 13650  }
 13651  
 13652  // Filter sets the optional parameter "filter": The standard list filter.
 13653  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13654  	c.urlParams_.Set("filter", filter)
 13655  	return c
 13656  }
 13657  
 13658  // PageSize sets the optional parameter "pageSize": The standard list page
 13659  // size.
 13660  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13661  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13662  	return c
 13663  }
 13664  
 13665  // PageToken sets the optional parameter "pageToken": The standard list page
 13666  // token.
 13667  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13668  	c.urlParams_.Set("pageToken", pageToken)
 13669  	return c
 13670  }
 13671  
 13672  // Fields allows partial responses to be retrieved. See
 13673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13674  // details.
 13675  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13677  	return c
 13678  }
 13679  
 13680  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13681  // object's ETag matches the given value. This is useful for getting updates
 13682  // only after the object has changed since the last request.
 13683  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13684  	c.ifNoneMatch_ = entityTag
 13685  	return c
 13686  }
 13687  
 13688  // Context sets the context to be used in this call's Do method.
 13689  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 13690  	c.ctx_ = ctx
 13691  	return c
 13692  }
 13693  
 13694  // Header returns a http.Header that can be modified by the caller to add
 13695  // headers to the request.
 13696  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Header() http.Header {
 13697  	if c.header_ == nil {
 13698  		c.header_ = make(http.Header)
 13699  	}
 13700  	return c.header_
 13701  }
 13702  
 13703  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
 13704  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13705  	if c.ifNoneMatch_ != "" {
 13706  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13707  	}
 13708  	var body io.Reader = nil
 13709  	c.urlParams_.Set("alt", alt)
 13710  	c.urlParams_.Set("prettyPrint", "false")
 13711  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 13712  	urls += "?" + c.urlParams_.Encode()
 13713  	req, err := http.NewRequest("GET", urls, body)
 13714  	if err != nil {
 13715  		return nil, err
 13716  	}
 13717  	req.Header = reqHeaders
 13718  	googleapi.Expand(req.URL, map[string]string{
 13719  		"name": c.name,
 13720  	})
 13721  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13722  }
 13723  
 13724  // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.list" call.
 13725  // Any non-2xx status code is an error. Response headers are in either
 13726  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 13727  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13728  // googleapi.IsNotModified to check whether the returned error was because
 13729  // http.StatusNotModified was returned.
 13730  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 13731  	gensupport.SetOptions(c.urlParams_, opts...)
 13732  	res, err := c.doRequest("json")
 13733  	if res != nil && res.StatusCode == http.StatusNotModified {
 13734  		if res.Body != nil {
 13735  			res.Body.Close()
 13736  		}
 13737  		return nil, gensupport.WrapError(&googleapi.Error{
 13738  			Code:   res.StatusCode,
 13739  			Header: res.Header,
 13740  		})
 13741  	}
 13742  	if err != nil {
 13743  		return nil, err
 13744  	}
 13745  	defer googleapi.CloseBody(res)
 13746  	if err := googleapi.CheckResponse(res); err != nil {
 13747  		return nil, gensupport.WrapError(err)
 13748  	}
 13749  	ret := &GoogleLongrunningListOperationsResponse{
 13750  		ServerResponse: googleapi.ServerResponse{
 13751  			Header:         res.Header,
 13752  			HTTPStatusCode: res.StatusCode,
 13753  		},
 13754  	}
 13755  	target := &ret
 13756  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13757  		return nil, err
 13758  	}
 13759  	return ret, nil
 13760  }
 13761  
 13762  // Pages invokes f for each page of results.
 13763  // A non-nil error returned from f will halt the iteration.
 13764  // The provided context supersedes any context provided to the Context method.
 13765  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 13766  	c.ctx_ = ctx
 13767  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13768  	for {
 13769  		x, err := c.Do()
 13770  		if err != nil {
 13771  			return err
 13772  		}
 13773  		if err := f(x); err != nil {
 13774  			return err
 13775  		}
 13776  		if x.NextPageToken == "" {
 13777  			return nil
 13778  		}
 13779  		c.PageToken(x.NextPageToken)
 13780  	}
 13781  }
 13782  
 13783  type ProjectsLocationsCollectionsDataStoresSchemasCreateCall struct {
 13784  	s                                  *Service
 13785  	parent                             string
 13786  	googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
 13787  	urlParams_                         gensupport.URLParams
 13788  	ctx_                               context.Context
 13789  	header_                            http.Header
 13790  }
 13791  
 13792  // Create: Creates a Schema.
 13793  //
 13794  //   - parent: The parent data store resource name, in the format of
 13795  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13796  //     s/{data_store}`.
 13797  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 13798  	c := &ProjectsLocationsCollectionsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13799  	c.parent = parent
 13800  	c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
 13801  	return c
 13802  }
 13803  
 13804  // SchemaId sets the optional parameter "schemaId": Required. The ID to use for
 13805  // the Schema, which will become the final component of the Schema.name. This
 13806  // field should conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
 13807  // standard with a length limit of 63 characters.
 13808  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 13809  	c.urlParams_.Set("schemaId", schemaId)
 13810  	return c
 13811  }
 13812  
 13813  // Fields allows partial responses to be retrieved. See
 13814  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13815  // details.
 13816  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 13817  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13818  	return c
 13819  }
 13820  
 13821  // Context sets the context to be used in this call's Do method.
 13822  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 13823  	c.ctx_ = ctx
 13824  	return c
 13825  }
 13826  
 13827  // Header returns a http.Header that can be modified by the caller to add
 13828  // headers to the request.
 13829  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Header() http.Header {
 13830  	if c.header_ == nil {
 13831  		c.header_ = make(http.Header)
 13832  	}
 13833  	return c.header_
 13834  }
 13835  
 13836  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
 13837  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13838  	var body io.Reader = nil
 13839  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
 13840  	if err != nil {
 13841  		return nil, err
 13842  	}
 13843  	c.urlParams_.Set("alt", alt)
 13844  	c.urlParams_.Set("prettyPrint", "false")
 13845  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
 13846  	urls += "?" + c.urlParams_.Encode()
 13847  	req, err := http.NewRequest("POST", urls, body)
 13848  	if err != nil {
 13849  		return nil, err
 13850  	}
 13851  	req.Header = reqHeaders
 13852  	googleapi.Expand(req.URL, map[string]string{
 13853  		"parent": c.parent,
 13854  	})
 13855  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13856  }
 13857  
 13858  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.create" call.
 13859  // Any non-2xx status code is an error. Response headers are in either
 13860  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13861  // returned at all) in error.(*googleapi.Error).Header. Use
 13862  // googleapi.IsNotModified to check whether the returned error was because
 13863  // http.StatusNotModified was returned.
 13864  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13865  	gensupport.SetOptions(c.urlParams_, opts...)
 13866  	res, err := c.doRequest("json")
 13867  	if res != nil && res.StatusCode == http.StatusNotModified {
 13868  		if res.Body != nil {
 13869  			res.Body.Close()
 13870  		}
 13871  		return nil, gensupport.WrapError(&googleapi.Error{
 13872  			Code:   res.StatusCode,
 13873  			Header: res.Header,
 13874  		})
 13875  	}
 13876  	if err != nil {
 13877  		return nil, err
 13878  	}
 13879  	defer googleapi.CloseBody(res)
 13880  	if err := googleapi.CheckResponse(res); err != nil {
 13881  		return nil, gensupport.WrapError(err)
 13882  	}
 13883  	ret := &GoogleLongrunningOperation{
 13884  		ServerResponse: googleapi.ServerResponse{
 13885  			Header:         res.Header,
 13886  			HTTPStatusCode: res.StatusCode,
 13887  		},
 13888  	}
 13889  	target := &ret
 13890  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13891  		return nil, err
 13892  	}
 13893  	return ret, nil
 13894  }
 13895  
 13896  type ProjectsLocationsCollectionsDataStoresSchemasDeleteCall struct {
 13897  	s          *Service
 13898  	name       string
 13899  	urlParams_ gensupport.URLParams
 13900  	ctx_       context.Context
 13901  	header_    http.Header
 13902  }
 13903  
 13904  // Delete: Deletes a Schema.
 13905  //
 13906  //   - name: The full resource name of the schema, in the format of
 13907  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13908  //     s/{data_store}/schemas/{schema}`.
 13909  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 13910  	c := &ProjectsLocationsCollectionsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13911  	c.name = name
 13912  	return c
 13913  }
 13914  
 13915  // Fields allows partial responses to be retrieved. See
 13916  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13917  // details.
 13918  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 13919  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13920  	return c
 13921  }
 13922  
 13923  // Context sets the context to be used in this call's Do method.
 13924  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 13925  	c.ctx_ = ctx
 13926  	return c
 13927  }
 13928  
 13929  // Header returns a http.Header that can be modified by the caller to add
 13930  // headers to the request.
 13931  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Header() http.Header {
 13932  	if c.header_ == nil {
 13933  		c.header_ = make(http.Header)
 13934  	}
 13935  	return c.header_
 13936  }
 13937  
 13938  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
 13939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13940  	var body io.Reader = nil
 13941  	c.urlParams_.Set("alt", alt)
 13942  	c.urlParams_.Set("prettyPrint", "false")
 13943  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13944  	urls += "?" + c.urlParams_.Encode()
 13945  	req, err := http.NewRequest("DELETE", urls, body)
 13946  	if err != nil {
 13947  		return nil, err
 13948  	}
 13949  	req.Header = reqHeaders
 13950  	googleapi.Expand(req.URL, map[string]string{
 13951  		"name": c.name,
 13952  	})
 13953  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13954  }
 13955  
 13956  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.delete" call.
 13957  // Any non-2xx status code is an error. Response headers are in either
 13958  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13959  // returned at all) in error.(*googleapi.Error).Header. Use
 13960  // googleapi.IsNotModified to check whether the returned error was because
 13961  // http.StatusNotModified was returned.
 13962  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13963  	gensupport.SetOptions(c.urlParams_, opts...)
 13964  	res, err := c.doRequest("json")
 13965  	if res != nil && res.StatusCode == http.StatusNotModified {
 13966  		if res.Body != nil {
 13967  			res.Body.Close()
 13968  		}
 13969  		return nil, gensupport.WrapError(&googleapi.Error{
 13970  			Code:   res.StatusCode,
 13971  			Header: res.Header,
 13972  		})
 13973  	}
 13974  	if err != nil {
 13975  		return nil, err
 13976  	}
 13977  	defer googleapi.CloseBody(res)
 13978  	if err := googleapi.CheckResponse(res); err != nil {
 13979  		return nil, gensupport.WrapError(err)
 13980  	}
 13981  	ret := &GoogleLongrunningOperation{
 13982  		ServerResponse: googleapi.ServerResponse{
 13983  			Header:         res.Header,
 13984  			HTTPStatusCode: res.StatusCode,
 13985  		},
 13986  	}
 13987  	target := &ret
 13988  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13989  		return nil, err
 13990  	}
 13991  	return ret, nil
 13992  }
 13993  
 13994  type ProjectsLocationsCollectionsDataStoresSchemasGetCall struct {
 13995  	s            *Service
 13996  	name         string
 13997  	urlParams_   gensupport.URLParams
 13998  	ifNoneMatch_ string
 13999  	ctx_         context.Context
 14000  	header_      http.Header
 14001  }
 14002  
 14003  // Get: Gets a Schema.
 14004  //
 14005  //   - name: The full resource name of the schema, in the format of
 14006  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14007  //     s/{data_store}/schemas/{schema}`.
 14008  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 14009  	c := &ProjectsLocationsCollectionsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14010  	c.name = name
 14011  	return c
 14012  }
 14013  
 14014  // Fields allows partial responses to be retrieved. See
 14015  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14016  // details.
 14017  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 14018  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14019  	return c
 14020  }
 14021  
 14022  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14023  // object's ETag matches the given value. This is useful for getting updates
 14024  // only after the object has changed since the last request.
 14025  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 14026  	c.ifNoneMatch_ = entityTag
 14027  	return c
 14028  }
 14029  
 14030  // Context sets the context to be used in this call's Do method.
 14031  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 14032  	c.ctx_ = ctx
 14033  	return c
 14034  }
 14035  
 14036  // Header returns a http.Header that can be modified by the caller to add
 14037  // headers to the request.
 14038  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Header() http.Header {
 14039  	if c.header_ == nil {
 14040  		c.header_ = make(http.Header)
 14041  	}
 14042  	return c.header_
 14043  }
 14044  
 14045  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
 14046  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14047  	if c.ifNoneMatch_ != "" {
 14048  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14049  	}
 14050  	var body io.Reader = nil
 14051  	c.urlParams_.Set("alt", alt)
 14052  	c.urlParams_.Set("prettyPrint", "false")
 14053  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14054  	urls += "?" + c.urlParams_.Encode()
 14055  	req, err := http.NewRequest("GET", urls, body)
 14056  	if err != nil {
 14057  		return nil, err
 14058  	}
 14059  	req.Header = reqHeaders
 14060  	googleapi.Expand(req.URL, map[string]string{
 14061  		"name": c.name,
 14062  	})
 14063  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14064  }
 14065  
 14066  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.get" call.
 14067  // Any non-2xx status code is an error. Response headers are in either
 14068  // *GoogleCloudDiscoveryengineV1Schema.ServerResponse.Header or (if a response
 14069  // was returned at all) in error.(*googleapi.Error).Header. Use
 14070  // googleapi.IsNotModified to check whether the returned error was because
 14071  // http.StatusNotModified was returned.
 14072  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Schema, error) {
 14073  	gensupport.SetOptions(c.urlParams_, opts...)
 14074  	res, err := c.doRequest("json")
 14075  	if res != nil && res.StatusCode == http.StatusNotModified {
 14076  		if res.Body != nil {
 14077  			res.Body.Close()
 14078  		}
 14079  		return nil, gensupport.WrapError(&googleapi.Error{
 14080  			Code:   res.StatusCode,
 14081  			Header: res.Header,
 14082  		})
 14083  	}
 14084  	if err != nil {
 14085  		return nil, err
 14086  	}
 14087  	defer googleapi.CloseBody(res)
 14088  	if err := googleapi.CheckResponse(res); err != nil {
 14089  		return nil, gensupport.WrapError(err)
 14090  	}
 14091  	ret := &GoogleCloudDiscoveryengineV1Schema{
 14092  		ServerResponse: googleapi.ServerResponse{
 14093  			Header:         res.Header,
 14094  			HTTPStatusCode: res.StatusCode,
 14095  		},
 14096  	}
 14097  	target := &ret
 14098  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14099  		return nil, err
 14100  	}
 14101  	return ret, nil
 14102  }
 14103  
 14104  type ProjectsLocationsCollectionsDataStoresSchemasListCall struct {
 14105  	s            *Service
 14106  	parent       string
 14107  	urlParams_   gensupport.URLParams
 14108  	ifNoneMatch_ string
 14109  	ctx_         context.Context
 14110  	header_      http.Header
 14111  }
 14112  
 14113  // List: Gets a list of Schemas.
 14114  //
 14115  //   - parent: The parent data store resource name, in the format of
 14116  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14117  //     s/{data_store}`.
 14118  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) List(parent string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 14119  	c := &ProjectsLocationsCollectionsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14120  	c.parent = parent
 14121  	return c
 14122  }
 14123  
 14124  // PageSize sets the optional parameter "pageSize": The maximum number of
 14125  // Schemas to return. The service may return fewer than this value. If
 14126  // unspecified, at most 100 Schemas will be returned. The maximum value is
 14127  // 1000; values above 1000 will be coerced to 1000.
 14128  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 14129  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14130  	return c
 14131  }
 14132  
 14133  // PageToken sets the optional parameter "pageToken": A page token, received
 14134  // from a previous SchemaService.ListSchemas call. Provide this to retrieve the
 14135  // subsequent page. When paginating, all other parameters provided to
 14136  // SchemaService.ListSchemas must match the call that provided the page token.
 14137  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 14138  	c.urlParams_.Set("pageToken", pageToken)
 14139  	return c
 14140  }
 14141  
 14142  // Fields allows partial responses to be retrieved. See
 14143  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14144  // details.
 14145  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 14146  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14147  	return c
 14148  }
 14149  
 14150  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14151  // object's ETag matches the given value. This is useful for getting updates
 14152  // only after the object has changed since the last request.
 14153  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 14154  	c.ifNoneMatch_ = entityTag
 14155  	return c
 14156  }
 14157  
 14158  // Context sets the context to be used in this call's Do method.
 14159  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 14160  	c.ctx_ = ctx
 14161  	return c
 14162  }
 14163  
 14164  // Header returns a http.Header that can be modified by the caller to add
 14165  // headers to the request.
 14166  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Header() http.Header {
 14167  	if c.header_ == nil {
 14168  		c.header_ = make(http.Header)
 14169  	}
 14170  	return c.header_
 14171  }
 14172  
 14173  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
 14174  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14175  	if c.ifNoneMatch_ != "" {
 14176  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14177  	}
 14178  	var body io.Reader = nil
 14179  	c.urlParams_.Set("alt", alt)
 14180  	c.urlParams_.Set("prettyPrint", "false")
 14181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
 14182  	urls += "?" + c.urlParams_.Encode()
 14183  	req, err := http.NewRequest("GET", urls, body)
 14184  	if err != nil {
 14185  		return nil, err
 14186  	}
 14187  	req.Header = reqHeaders
 14188  	googleapi.Expand(req.URL, map[string]string{
 14189  		"parent": c.parent,
 14190  	})
 14191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14192  }
 14193  
 14194  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.list" call.
 14195  // Any non-2xx status code is an error. Response headers are in either
 14196  // *GoogleCloudDiscoveryengineV1ListSchemasResponse.ServerResponse.Header or
 14197  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 14198  // googleapi.IsNotModified to check whether the returned error was because
 14199  // http.StatusNotModified was returned.
 14200  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListSchemasResponse, error) {
 14201  	gensupport.SetOptions(c.urlParams_, opts...)
 14202  	res, err := c.doRequest("json")
 14203  	if res != nil && res.StatusCode == http.StatusNotModified {
 14204  		if res.Body != nil {
 14205  			res.Body.Close()
 14206  		}
 14207  		return nil, gensupport.WrapError(&googleapi.Error{
 14208  			Code:   res.StatusCode,
 14209  			Header: res.Header,
 14210  		})
 14211  	}
 14212  	if err != nil {
 14213  		return nil, err
 14214  	}
 14215  	defer googleapi.CloseBody(res)
 14216  	if err := googleapi.CheckResponse(res); err != nil {
 14217  		return nil, gensupport.WrapError(err)
 14218  	}
 14219  	ret := &GoogleCloudDiscoveryengineV1ListSchemasResponse{
 14220  		ServerResponse: googleapi.ServerResponse{
 14221  			Header:         res.Header,
 14222  			HTTPStatusCode: res.StatusCode,
 14223  		},
 14224  	}
 14225  	target := &ret
 14226  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14227  		return nil, err
 14228  	}
 14229  	return ret, nil
 14230  }
 14231  
 14232  // Pages invokes f for each page of results.
 14233  // A non-nil error returned from f will halt the iteration.
 14234  // The provided context supersedes any context provided to the Context method.
 14235  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListSchemasResponse) error) error {
 14236  	c.ctx_ = ctx
 14237  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14238  	for {
 14239  		x, err := c.Do()
 14240  		if err != nil {
 14241  			return err
 14242  		}
 14243  		if err := f(x); err != nil {
 14244  			return err
 14245  		}
 14246  		if x.NextPageToken == "" {
 14247  			return nil
 14248  		}
 14249  		c.PageToken(x.NextPageToken)
 14250  	}
 14251  }
 14252  
 14253  type ProjectsLocationsCollectionsDataStoresSchemasPatchCall struct {
 14254  	s                                  *Service
 14255  	name                               string
 14256  	googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
 14257  	urlParams_                         gensupport.URLParams
 14258  	ctx_                               context.Context
 14259  	header_                            http.Header
 14260  }
 14261  
 14262  // Patch: Updates a Schema.
 14263  //
 14264  //   - name: Immutable. The full resource name of the schema, in the format of
 14265  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14266  //     s/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded
 14267  //     string with a length limit of 1024 characters.
 14268  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 14269  	c := &ProjectsLocationsCollectionsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14270  	c.name = name
 14271  	c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
 14272  	return c
 14273  }
 14274  
 14275  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 14276  // the Schema is not found, a new Schema will be created. In this situation,
 14277  // `update_mask` is ignored.
 14278  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 14279  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 14280  	return c
 14281  }
 14282  
 14283  // Fields allows partial responses to be retrieved. See
 14284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14285  // details.
 14286  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 14287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14288  	return c
 14289  }
 14290  
 14291  // Context sets the context to be used in this call's Do method.
 14292  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 14293  	c.ctx_ = ctx
 14294  	return c
 14295  }
 14296  
 14297  // Header returns a http.Header that can be modified by the caller to add
 14298  // headers to the request.
 14299  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Header() http.Header {
 14300  	if c.header_ == nil {
 14301  		c.header_ = make(http.Header)
 14302  	}
 14303  	return c.header_
 14304  }
 14305  
 14306  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
 14307  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14308  	var body io.Reader = nil
 14309  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
 14310  	if err != nil {
 14311  		return nil, err
 14312  	}
 14313  	c.urlParams_.Set("alt", alt)
 14314  	c.urlParams_.Set("prettyPrint", "false")
 14315  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14316  	urls += "?" + c.urlParams_.Encode()
 14317  	req, err := http.NewRequest("PATCH", urls, body)
 14318  	if err != nil {
 14319  		return nil, err
 14320  	}
 14321  	req.Header = reqHeaders
 14322  	googleapi.Expand(req.URL, map[string]string{
 14323  		"name": c.name,
 14324  	})
 14325  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14326  }
 14327  
 14328  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.patch" call.
 14329  // Any non-2xx status code is an error. Response headers are in either
 14330  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14331  // returned at all) in error.(*googleapi.Error).Header. Use
 14332  // googleapi.IsNotModified to check whether the returned error was because
 14333  // http.StatusNotModified was returned.
 14334  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14335  	gensupport.SetOptions(c.urlParams_, opts...)
 14336  	res, err := c.doRequest("json")
 14337  	if res != nil && res.StatusCode == http.StatusNotModified {
 14338  		if res.Body != nil {
 14339  			res.Body.Close()
 14340  		}
 14341  		return nil, gensupport.WrapError(&googleapi.Error{
 14342  			Code:   res.StatusCode,
 14343  			Header: res.Header,
 14344  		})
 14345  	}
 14346  	if err != nil {
 14347  		return nil, err
 14348  	}
 14349  	defer googleapi.CloseBody(res)
 14350  	if err := googleapi.CheckResponse(res); err != nil {
 14351  		return nil, gensupport.WrapError(err)
 14352  	}
 14353  	ret := &GoogleLongrunningOperation{
 14354  		ServerResponse: googleapi.ServerResponse{
 14355  			Header:         res.Header,
 14356  			HTTPStatusCode: res.StatusCode,
 14357  		},
 14358  	}
 14359  	target := &ret
 14360  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14361  		return nil, err
 14362  	}
 14363  	return ret, nil
 14364  }
 14365  
 14366  type ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall struct {
 14367  	s            *Service
 14368  	name         string
 14369  	urlParams_   gensupport.URLParams
 14370  	ifNoneMatch_ string
 14371  	ctx_         context.Context
 14372  	header_      http.Header
 14373  }
 14374  
 14375  // Get: Gets the latest state of a long-running operation. Clients can use this
 14376  // method to poll the operation result at intervals as recommended by the API
 14377  // service.
 14378  //
 14379  // - name: The name of the operation resource.
 14380  func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 14381  	c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14382  	c.name = name
 14383  	return c
 14384  }
 14385  
 14386  // Fields allows partial responses to be retrieved. See
 14387  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14388  // details.
 14389  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 14390  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14391  	return c
 14392  }
 14393  
 14394  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14395  // object's ETag matches the given value. This is useful for getting updates
 14396  // only after the object has changed since the last request.
 14397  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 14398  	c.ifNoneMatch_ = entityTag
 14399  	return c
 14400  }
 14401  
 14402  // Context sets the context to be used in this call's Do method.
 14403  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 14404  	c.ctx_ = ctx
 14405  	return c
 14406  }
 14407  
 14408  // Header returns a http.Header that can be modified by the caller to add
 14409  // headers to the request.
 14410  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Header() http.Header {
 14411  	if c.header_ == nil {
 14412  		c.header_ = make(http.Header)
 14413  	}
 14414  	return c.header_
 14415  }
 14416  
 14417  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 14418  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14419  	if c.ifNoneMatch_ != "" {
 14420  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14421  	}
 14422  	var body io.Reader = nil
 14423  	c.urlParams_.Set("alt", alt)
 14424  	c.urlParams_.Set("prettyPrint", "false")
 14425  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14426  	urls += "?" + c.urlParams_.Encode()
 14427  	req, err := http.NewRequest("GET", urls, body)
 14428  	if err != nil {
 14429  		return nil, err
 14430  	}
 14431  	req.Header = reqHeaders
 14432  	googleapi.Expand(req.URL, map[string]string{
 14433  		"name": c.name,
 14434  	})
 14435  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14436  }
 14437  
 14438  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get" call.
 14439  // Any non-2xx status code is an error. Response headers are in either
 14440  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14441  // returned at all) in error.(*googleapi.Error).Header. Use
 14442  // googleapi.IsNotModified to check whether the returned error was because
 14443  // http.StatusNotModified was returned.
 14444  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14445  	gensupport.SetOptions(c.urlParams_, opts...)
 14446  	res, err := c.doRequest("json")
 14447  	if res != nil && res.StatusCode == http.StatusNotModified {
 14448  		if res.Body != nil {
 14449  			res.Body.Close()
 14450  		}
 14451  		return nil, gensupport.WrapError(&googleapi.Error{
 14452  			Code:   res.StatusCode,
 14453  			Header: res.Header,
 14454  		})
 14455  	}
 14456  	if err != nil {
 14457  		return nil, err
 14458  	}
 14459  	defer googleapi.CloseBody(res)
 14460  	if err := googleapi.CheckResponse(res); err != nil {
 14461  		return nil, gensupport.WrapError(err)
 14462  	}
 14463  	ret := &GoogleLongrunningOperation{
 14464  		ServerResponse: googleapi.ServerResponse{
 14465  			Header:         res.Header,
 14466  			HTTPStatusCode: res.StatusCode,
 14467  		},
 14468  	}
 14469  	target := &ret
 14470  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14471  		return nil, err
 14472  	}
 14473  	return ret, nil
 14474  }
 14475  
 14476  type ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall struct {
 14477  	s            *Service
 14478  	name         string
 14479  	urlParams_   gensupport.URLParams
 14480  	ifNoneMatch_ string
 14481  	ctx_         context.Context
 14482  	header_      http.Header
 14483  }
 14484  
 14485  // List: Lists operations that match the specified filter in the request. If
 14486  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 14487  //
 14488  // - name: The name of the operation's parent resource.
 14489  func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14490  	c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14491  	c.name = name
 14492  	return c
 14493  }
 14494  
 14495  // Filter sets the optional parameter "filter": The standard list filter.
 14496  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14497  	c.urlParams_.Set("filter", filter)
 14498  	return c
 14499  }
 14500  
 14501  // PageSize sets the optional parameter "pageSize": The standard list page
 14502  // size.
 14503  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14504  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14505  	return c
 14506  }
 14507  
 14508  // PageToken sets the optional parameter "pageToken": The standard list page
 14509  // token.
 14510  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14511  	c.urlParams_.Set("pageToken", pageToken)
 14512  	return c
 14513  }
 14514  
 14515  // Fields allows partial responses to be retrieved. See
 14516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14517  // details.
 14518  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14520  	return c
 14521  }
 14522  
 14523  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14524  // object's ETag matches the given value. This is useful for getting updates
 14525  // only after the object has changed since the last request.
 14526  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14527  	c.ifNoneMatch_ = entityTag
 14528  	return c
 14529  }
 14530  
 14531  // Context sets the context to be used in this call's Do method.
 14532  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 14533  	c.ctx_ = ctx
 14534  	return c
 14535  }
 14536  
 14537  // Header returns a http.Header that can be modified by the caller to add
 14538  // headers to the request.
 14539  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Header() http.Header {
 14540  	if c.header_ == nil {
 14541  		c.header_ = make(http.Header)
 14542  	}
 14543  	return c.header_
 14544  }
 14545  
 14546  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequest(alt string) (*http.Response, error) {
 14547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14548  	if c.ifNoneMatch_ != "" {
 14549  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14550  	}
 14551  	var body io.Reader = nil
 14552  	c.urlParams_.Set("alt", alt)
 14553  	c.urlParams_.Set("prettyPrint", "false")
 14554  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 14555  	urls += "?" + c.urlParams_.Encode()
 14556  	req, err := http.NewRequest("GET", urls, body)
 14557  	if err != nil {
 14558  		return nil, err
 14559  	}
 14560  	req.Header = reqHeaders
 14561  	googleapi.Expand(req.URL, map[string]string{
 14562  		"name": c.name,
 14563  	})
 14564  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14565  }
 14566  
 14567  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list" call.
 14568  // Any non-2xx status code is an error. Response headers are in either
 14569  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 14570  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14571  // googleapi.IsNotModified to check whether the returned error was because
 14572  // http.StatusNotModified was returned.
 14573  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 14574  	gensupport.SetOptions(c.urlParams_, opts...)
 14575  	res, err := c.doRequest("json")
 14576  	if res != nil && res.StatusCode == http.StatusNotModified {
 14577  		if res.Body != nil {
 14578  			res.Body.Close()
 14579  		}
 14580  		return nil, gensupport.WrapError(&googleapi.Error{
 14581  			Code:   res.StatusCode,
 14582  			Header: res.Header,
 14583  		})
 14584  	}
 14585  	if err != nil {
 14586  		return nil, err
 14587  	}
 14588  	defer googleapi.CloseBody(res)
 14589  	if err := googleapi.CheckResponse(res); err != nil {
 14590  		return nil, gensupport.WrapError(err)
 14591  	}
 14592  	ret := &GoogleLongrunningListOperationsResponse{
 14593  		ServerResponse: googleapi.ServerResponse{
 14594  			Header:         res.Header,
 14595  			HTTPStatusCode: res.StatusCode,
 14596  		},
 14597  	}
 14598  	target := &ret
 14599  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14600  		return nil, err
 14601  	}
 14602  	return ret, nil
 14603  }
 14604  
 14605  // Pages invokes f for each page of results.
 14606  // A non-nil error returned from f will halt the iteration.
 14607  // The provided context supersedes any context provided to the Context method.
 14608  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 14609  	c.ctx_ = ctx
 14610  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14611  	for {
 14612  		x, err := c.Do()
 14613  		if err != nil {
 14614  			return err
 14615  		}
 14616  		if err := f(x); err != nil {
 14617  			return err
 14618  		}
 14619  		if x.NextPageToken == "" {
 14620  			return nil
 14621  		}
 14622  		c.PageToken(x.NextPageToken)
 14623  	}
 14624  }
 14625  
 14626  type ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall struct {
 14627  	s                                            *Service
 14628  	servingConfig                                string
 14629  	googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest
 14630  	urlParams_                                   gensupport.URLParams
 14631  	ctx_                                         context.Context
 14632  	header_                                      http.Header
 14633  }
 14634  
 14635  // Recommend: Makes a recommendation, which requires a contextual user event.
 14636  //
 14637  //   - servingConfig: Full resource name of a ServingConfig:
 14638  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 14639  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 14640  //     One default serving config is created along with your recommendation
 14641  //     engine creation. The engine ID will be used as the ID of the default
 14642  //     serving config. For example, for Engine
 14643  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 14644  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 14645  //     /my-engine` for your RecommendationService.Recommend requests.
 14646  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 14647  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14648  	c.servingConfig = servingConfig
 14649  	c.googleclouddiscoveryenginev1recommendrequest = googleclouddiscoveryenginev1recommendrequest
 14650  	return c
 14651  }
 14652  
 14653  // Fields allows partial responses to be retrieved. See
 14654  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14655  // details.
 14656  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 14657  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14658  	return c
 14659  }
 14660  
 14661  // Context sets the context to be used in this call's Do method.
 14662  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 14663  	c.ctx_ = ctx
 14664  	return c
 14665  }
 14666  
 14667  // Header returns a http.Header that can be modified by the caller to add
 14668  // headers to the request.
 14669  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Header() http.Header {
 14670  	if c.header_ == nil {
 14671  		c.header_ = make(http.Header)
 14672  	}
 14673  	return c.header_
 14674  }
 14675  
 14676  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 14677  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14678  	var body io.Reader = nil
 14679  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recommendrequest)
 14680  	if err != nil {
 14681  		return nil, err
 14682  	}
 14683  	c.urlParams_.Set("alt", alt)
 14684  	c.urlParams_.Set("prettyPrint", "false")
 14685  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:recommend")
 14686  	urls += "?" + c.urlParams_.Encode()
 14687  	req, err := http.NewRequest("POST", urls, body)
 14688  	if err != nil {
 14689  		return nil, err
 14690  	}
 14691  	req.Header = reqHeaders
 14692  	googleapi.Expand(req.URL, map[string]string{
 14693  		"servingConfig": c.servingConfig,
 14694  	})
 14695  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14696  }
 14697  
 14698  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend" call.
 14699  // Any non-2xx status code is an error. Response headers are in either
 14700  // *GoogleCloudDiscoveryengineV1RecommendResponse.ServerResponse.Header or (if
 14701  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 14702  // googleapi.IsNotModified to check whether the returned error was because
 14703  // http.StatusNotModified was returned.
 14704  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1RecommendResponse, error) {
 14705  	gensupport.SetOptions(c.urlParams_, opts...)
 14706  	res, err := c.doRequest("json")
 14707  	if res != nil && res.StatusCode == http.StatusNotModified {
 14708  		if res.Body != nil {
 14709  			res.Body.Close()
 14710  		}
 14711  		return nil, gensupport.WrapError(&googleapi.Error{
 14712  			Code:   res.StatusCode,
 14713  			Header: res.Header,
 14714  		})
 14715  	}
 14716  	if err != nil {
 14717  		return nil, err
 14718  	}
 14719  	defer googleapi.CloseBody(res)
 14720  	if err := googleapi.CheckResponse(res); err != nil {
 14721  		return nil, gensupport.WrapError(err)
 14722  	}
 14723  	ret := &GoogleCloudDiscoveryengineV1RecommendResponse{
 14724  		ServerResponse: googleapi.ServerResponse{
 14725  			Header:         res.Header,
 14726  			HTTPStatusCode: res.StatusCode,
 14727  		},
 14728  	}
 14729  	target := &ret
 14730  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14731  		return nil, err
 14732  	}
 14733  	return ret, nil
 14734  }
 14735  
 14736  type ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall struct {
 14737  	s                                         *Service
 14738  	servingConfig                             string
 14739  	googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest
 14740  	urlParams_                                gensupport.URLParams
 14741  	ctx_                                      context.Context
 14742  	header_                                   http.Header
 14743  }
 14744  
 14745  // Search: Performs a search.
 14746  //
 14747  //   - servingConfig: The resource name of the Search serving config, such as
 14748  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 14749  //     ngConfigs/default_serving_config`, or
 14750  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 14751  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 14752  //     to identify the serving configuration name, set of models used to make the
 14753  //     search.
 14754  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 14755  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14756  	c.servingConfig = servingConfig
 14757  	c.googleclouddiscoveryenginev1searchrequest = googleclouddiscoveryenginev1searchrequest
 14758  	return c
 14759  }
 14760  
 14761  // Fields allows partial responses to be retrieved. See
 14762  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14763  // details.
 14764  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 14765  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14766  	return c
 14767  }
 14768  
 14769  // Context sets the context to be used in this call's Do method.
 14770  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 14771  	c.ctx_ = ctx
 14772  	return c
 14773  }
 14774  
 14775  // Header returns a http.Header that can be modified by the caller to add
 14776  // headers to the request.
 14777  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Header() http.Header {
 14778  	if c.header_ == nil {
 14779  		c.header_ = make(http.Header)
 14780  	}
 14781  	return c.header_
 14782  }
 14783  
 14784  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 14785  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14786  	var body io.Reader = nil
 14787  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1searchrequest)
 14788  	if err != nil {
 14789  		return nil, err
 14790  	}
 14791  	c.urlParams_.Set("alt", alt)
 14792  	c.urlParams_.Set("prettyPrint", "false")
 14793  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:search")
 14794  	urls += "?" + c.urlParams_.Encode()
 14795  	req, err := http.NewRequest("POST", urls, body)
 14796  	if err != nil {
 14797  		return nil, err
 14798  	}
 14799  	req.Header = reqHeaders
 14800  	googleapi.Expand(req.URL, map[string]string{
 14801  		"servingConfig": c.servingConfig,
 14802  	})
 14803  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14804  }
 14805  
 14806  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search" call.
 14807  // Any non-2xx status code is an error. Response headers are in either
 14808  // *GoogleCloudDiscoveryengineV1SearchResponse.ServerResponse.Header or (if a
 14809  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14810  // googleapi.IsNotModified to check whether the returned error was because
 14811  // http.StatusNotModified was returned.
 14812  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SearchResponse, error) {
 14813  	gensupport.SetOptions(c.urlParams_, opts...)
 14814  	res, err := c.doRequest("json")
 14815  	if res != nil && res.StatusCode == http.StatusNotModified {
 14816  		if res.Body != nil {
 14817  			res.Body.Close()
 14818  		}
 14819  		return nil, gensupport.WrapError(&googleapi.Error{
 14820  			Code:   res.StatusCode,
 14821  			Header: res.Header,
 14822  		})
 14823  	}
 14824  	if err != nil {
 14825  		return nil, err
 14826  	}
 14827  	defer googleapi.CloseBody(res)
 14828  	if err := googleapi.CheckResponse(res); err != nil {
 14829  		return nil, gensupport.WrapError(err)
 14830  	}
 14831  	ret := &GoogleCloudDiscoveryengineV1SearchResponse{
 14832  		ServerResponse: googleapi.ServerResponse{
 14833  			Header:         res.Header,
 14834  			HTTPStatusCode: res.StatusCode,
 14835  		},
 14836  	}
 14837  	target := &ret
 14838  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14839  		return nil, err
 14840  	}
 14841  	return ret, nil
 14842  }
 14843  
 14844  // Pages invokes f for each page of results.
 14845  // A non-nil error returned from f will halt the iteration.
 14846  // The provided context supersedes any context provided to the Context method.
 14847  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1SearchResponse) error) error {
 14848  	c.ctx_ = ctx
 14849  	defer func(pt string) { c.googleclouddiscoveryenginev1searchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1searchrequest.PageToken)
 14850  	for {
 14851  		x, err := c.Do()
 14852  		if err != nil {
 14853  			return err
 14854  		}
 14855  		if err := f(x); err != nil {
 14856  			return err
 14857  		}
 14858  		if x.NextPageToken == "" {
 14859  			return nil
 14860  		}
 14861  		c.googleclouddiscoveryenginev1searchrequest.PageToken = x.NextPageToken
 14862  	}
 14863  }
 14864  
 14865  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall struct {
 14866  	s                                                         *Service
 14867  	parent                                                    string
 14868  	googleclouddiscoveryenginev1batchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest
 14869  	urlParams_                                                gensupport.URLParams
 14870  	ctx_                                                      context.Context
 14871  	header_                                                   http.Header
 14872  }
 14873  
 14874  // BatchVerifyTargetSites: Verify target sites' ownership and validity. This
 14875  // API sends all the target sites under site search engine for verification.
 14876  //
 14877  //   - parent: The parent resource shared by all TargetSites being verified.
 14878  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14879  //     s/{data_store}/siteSearchEngine`.
 14880  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) BatchVerifyTargetSites(parent string, googleclouddiscoveryenginev1batchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 14881  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14882  	c.parent = parent
 14883  	c.googleclouddiscoveryenginev1batchverifytargetsitesrequest = googleclouddiscoveryenginev1batchverifytargetsitesrequest
 14884  	return c
 14885  }
 14886  
 14887  // Fields allows partial responses to be retrieved. See
 14888  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14889  // details.
 14890  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 14891  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14892  	return c
 14893  }
 14894  
 14895  // Context sets the context to be used in this call's Do method.
 14896  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 14897  	c.ctx_ = ctx
 14898  	return c
 14899  }
 14900  
 14901  // Header returns a http.Header that can be modified by the caller to add
 14902  // headers to the request.
 14903  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Header() http.Header {
 14904  	if c.header_ == nil {
 14905  		c.header_ = make(http.Header)
 14906  	}
 14907  	return c.header_
 14908  }
 14909  
 14910  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) doRequest(alt string) (*http.Response, error) {
 14911  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14912  	var body io.Reader = nil
 14913  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1batchverifytargetsitesrequest)
 14914  	if err != nil {
 14915  		return nil, err
 14916  	}
 14917  	c.urlParams_.Set("alt", alt)
 14918  	c.urlParams_.Set("prettyPrint", "false")
 14919  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:batchVerifyTargetSites")
 14920  	urls += "?" + c.urlParams_.Encode()
 14921  	req, err := http.NewRequest("POST", urls, body)
 14922  	if err != nil {
 14923  		return nil, err
 14924  	}
 14925  	req.Header = reqHeaders
 14926  	googleapi.Expand(req.URL, map[string]string{
 14927  		"parent": c.parent,
 14928  	})
 14929  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14930  }
 14931  
 14932  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites" call.
 14933  // Any non-2xx status code is an error. Response headers are in either
 14934  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14935  // returned at all) in error.(*googleapi.Error).Header. Use
 14936  // googleapi.IsNotModified to check whether the returned error was because
 14937  // http.StatusNotModified was returned.
 14938  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14939  	gensupport.SetOptions(c.urlParams_, opts...)
 14940  	res, err := c.doRequest("json")
 14941  	if res != nil && res.StatusCode == http.StatusNotModified {
 14942  		if res.Body != nil {
 14943  			res.Body.Close()
 14944  		}
 14945  		return nil, gensupport.WrapError(&googleapi.Error{
 14946  			Code:   res.StatusCode,
 14947  			Header: res.Header,
 14948  		})
 14949  	}
 14950  	if err != nil {
 14951  		return nil, err
 14952  	}
 14953  	defer googleapi.CloseBody(res)
 14954  	if err := googleapi.CheckResponse(res); err != nil {
 14955  		return nil, gensupport.WrapError(err)
 14956  	}
 14957  	ret := &GoogleLongrunningOperation{
 14958  		ServerResponse: googleapi.ServerResponse{
 14959  			Header:         res.Header,
 14960  			HTTPStatusCode: res.StatusCode,
 14961  		},
 14962  	}
 14963  	target := &ret
 14964  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14965  		return nil, err
 14966  	}
 14967  	return ret, nil
 14968  }
 14969  
 14970  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
 14971  	s                                                            *Service
 14972  	siteSearchEngine                                             string
 14973  	googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest
 14974  	urlParams_                                                   gensupport.URLParams
 14975  	ctx_                                                         context.Context
 14976  	header_                                                      http.Header
 14977  }
 14978  
 14979  // DisableAdvancedSiteSearch: Downgrade from advanced site search to basic site
 14980  // search.
 14981  //
 14982  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 14983  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 14984  //     rchEngine`.
 14985  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 14986  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14987  	c.siteSearchEngine = siteSearchEngine
 14988  	c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest = googleclouddiscoveryenginev1disableadvancedsitesearchrequest
 14989  	return c
 14990  }
 14991  
 14992  // Fields allows partial responses to be retrieved. See
 14993  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14994  // details.
 14995  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 14996  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14997  	return c
 14998  }
 14999  
 15000  // Context sets the context to be used in this call's Do method.
 15001  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 15002  	c.ctx_ = ctx
 15003  	return c
 15004  }
 15005  
 15006  // Header returns a http.Header that can be modified by the caller to add
 15007  // headers to the request.
 15008  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
 15009  	if c.header_ == nil {
 15010  		c.header_ = make(http.Header)
 15011  	}
 15012  	return c.header_
 15013  }
 15014  
 15015  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 15016  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15017  	var body io.Reader = nil
 15018  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest)
 15019  	if err != nil {
 15020  		return nil, err
 15021  	}
 15022  	c.urlParams_.Set("alt", alt)
 15023  	c.urlParams_.Set("prettyPrint", "false")
 15024  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:disableAdvancedSiteSearch")
 15025  	urls += "?" + c.urlParams_.Encode()
 15026  	req, err := http.NewRequest("POST", urls, body)
 15027  	if err != nil {
 15028  		return nil, err
 15029  	}
 15030  	req.Header = reqHeaders
 15031  	googleapi.Expand(req.URL, map[string]string{
 15032  		"siteSearchEngine": c.siteSearchEngine,
 15033  	})
 15034  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15035  }
 15036  
 15037  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call.
 15038  // Any non-2xx status code is an error. Response headers are in either
 15039  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15040  // returned at all) in error.(*googleapi.Error).Header. Use
 15041  // googleapi.IsNotModified to check whether the returned error was because
 15042  // http.StatusNotModified was returned.
 15043  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15044  	gensupport.SetOptions(c.urlParams_, opts...)
 15045  	res, err := c.doRequest("json")
 15046  	if res != nil && res.StatusCode == http.StatusNotModified {
 15047  		if res.Body != nil {
 15048  			res.Body.Close()
 15049  		}
 15050  		return nil, gensupport.WrapError(&googleapi.Error{
 15051  			Code:   res.StatusCode,
 15052  			Header: res.Header,
 15053  		})
 15054  	}
 15055  	if err != nil {
 15056  		return nil, err
 15057  	}
 15058  	defer googleapi.CloseBody(res)
 15059  	if err := googleapi.CheckResponse(res); err != nil {
 15060  		return nil, gensupport.WrapError(err)
 15061  	}
 15062  	ret := &GoogleLongrunningOperation{
 15063  		ServerResponse: googleapi.ServerResponse{
 15064  			Header:         res.Header,
 15065  			HTTPStatusCode: res.StatusCode,
 15066  		},
 15067  	}
 15068  	target := &ret
 15069  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15070  		return nil, err
 15071  	}
 15072  	return ret, nil
 15073  }
 15074  
 15075  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
 15076  	s                                                           *Service
 15077  	siteSearchEngine                                            string
 15078  	googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest
 15079  	urlParams_                                                  gensupport.URLParams
 15080  	ctx_                                                        context.Context
 15081  	header_                                                     http.Header
 15082  }
 15083  
 15084  // EnableAdvancedSiteSearch: Upgrade from basic site search to advanced site
 15085  // search.
 15086  //
 15087  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 15088  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 15089  //     rchEngine`.
 15090  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 15091  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15092  	c.siteSearchEngine = siteSearchEngine
 15093  	c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest = googleclouddiscoveryenginev1enableadvancedsitesearchrequest
 15094  	return c
 15095  }
 15096  
 15097  // Fields allows partial responses to be retrieved. See
 15098  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15099  // details.
 15100  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 15101  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15102  	return c
 15103  }
 15104  
 15105  // Context sets the context to be used in this call's Do method.
 15106  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 15107  	c.ctx_ = ctx
 15108  	return c
 15109  }
 15110  
 15111  // Header returns a http.Header that can be modified by the caller to add
 15112  // headers to the request.
 15113  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
 15114  	if c.header_ == nil {
 15115  		c.header_ = make(http.Header)
 15116  	}
 15117  	return c.header_
 15118  }
 15119  
 15120  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 15121  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15122  	var body io.Reader = nil
 15123  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest)
 15124  	if err != nil {
 15125  		return nil, err
 15126  	}
 15127  	c.urlParams_.Set("alt", alt)
 15128  	c.urlParams_.Set("prettyPrint", "false")
 15129  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:enableAdvancedSiteSearch")
 15130  	urls += "?" + c.urlParams_.Encode()
 15131  	req, err := http.NewRequest("POST", urls, body)
 15132  	if err != nil {
 15133  		return nil, err
 15134  	}
 15135  	req.Header = reqHeaders
 15136  	googleapi.Expand(req.URL, map[string]string{
 15137  		"siteSearchEngine": c.siteSearchEngine,
 15138  	})
 15139  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15140  }
 15141  
 15142  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call.
 15143  // Any non-2xx status code is an error. Response headers are in either
 15144  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15145  // returned at all) in error.(*googleapi.Error).Header. Use
 15146  // googleapi.IsNotModified to check whether the returned error was because
 15147  // http.StatusNotModified was returned.
 15148  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15149  	gensupport.SetOptions(c.urlParams_, opts...)
 15150  	res, err := c.doRequest("json")
 15151  	if res != nil && res.StatusCode == http.StatusNotModified {
 15152  		if res.Body != nil {
 15153  			res.Body.Close()
 15154  		}
 15155  		return nil, gensupport.WrapError(&googleapi.Error{
 15156  			Code:   res.StatusCode,
 15157  			Header: res.Header,
 15158  		})
 15159  	}
 15160  	if err != nil {
 15161  		return nil, err
 15162  	}
 15163  	defer googleapi.CloseBody(res)
 15164  	if err := googleapi.CheckResponse(res); err != nil {
 15165  		return nil, gensupport.WrapError(err)
 15166  	}
 15167  	ret := &GoogleLongrunningOperation{
 15168  		ServerResponse: googleapi.ServerResponse{
 15169  			Header:         res.Header,
 15170  			HTTPStatusCode: res.StatusCode,
 15171  		},
 15172  	}
 15173  	target := &ret
 15174  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15175  		return nil, err
 15176  	}
 15177  	return ret, nil
 15178  }
 15179  
 15180  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall struct {
 15181  	s                *Service
 15182  	siteSearchEngine string
 15183  	urlParams_       gensupport.URLParams
 15184  	ifNoneMatch_     string
 15185  	ctx_             context.Context
 15186  	header_          http.Header
 15187  }
 15188  
 15189  // FetchDomainVerificationStatus: Returns list of target sites with its domain
 15190  // verification status. This method can only be called under data store with
 15191  // BASIC_SITE_SEARCH state at the moment.
 15192  //
 15193  //   - siteSearchEngine: The site search engine resource under which we fetch all
 15194  //     the domain verification status.
 15195  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15196  //     s/{data_store}/siteSearchEngine`.
 15197  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) FetchDomainVerificationStatus(siteSearchEngine string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 15198  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15199  	c.siteSearchEngine = siteSearchEngine
 15200  	return c
 15201  }
 15202  
 15203  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 15204  // may return fewer items than requested. If unspecified, server will pick an
 15205  // appropriate default. The maximum value is 1000; values above 1000 will be
 15206  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 15207  // returned.
 15208  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 15209  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15210  	return c
 15211  }
 15212  
 15213  // PageToken sets the optional parameter "pageToken": A page token, received
 15214  // from a previous `FetchDomainVerificationStatus` call. Provide this to
 15215  // retrieve the subsequent page. When paginating, all other parameters provided
 15216  // to `FetchDomainVerificationStatus` must match the call that provided the
 15217  // page token.
 15218  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 15219  	c.urlParams_.Set("pageToken", pageToken)
 15220  	return c
 15221  }
 15222  
 15223  // Fields allows partial responses to be retrieved. See
 15224  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15225  // details.
 15226  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 15227  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15228  	return c
 15229  }
 15230  
 15231  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15232  // object's ETag matches the given value. This is useful for getting updates
 15233  // only after the object has changed since the last request.
 15234  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 15235  	c.ifNoneMatch_ = entityTag
 15236  	return c
 15237  }
 15238  
 15239  // Context sets the context to be used in this call's Do method.
 15240  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 15241  	c.ctx_ = ctx
 15242  	return c
 15243  }
 15244  
 15245  // Header returns a http.Header that can be modified by the caller to add
 15246  // headers to the request.
 15247  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Header() http.Header {
 15248  	if c.header_ == nil {
 15249  		c.header_ = make(http.Header)
 15250  	}
 15251  	return c.header_
 15252  }
 15253  
 15254  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) doRequest(alt string) (*http.Response, error) {
 15255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15256  	if c.ifNoneMatch_ != "" {
 15257  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15258  	}
 15259  	var body io.Reader = nil
 15260  	c.urlParams_.Set("alt", alt)
 15261  	c.urlParams_.Set("prettyPrint", "false")
 15262  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:fetchDomainVerificationStatus")
 15263  	urls += "?" + c.urlParams_.Encode()
 15264  	req, err := http.NewRequest("GET", urls, body)
 15265  	if err != nil {
 15266  		return nil, err
 15267  	}
 15268  	req.Header = reqHeaders
 15269  	googleapi.Expand(req.URL, map[string]string{
 15270  		"siteSearchEngine": c.siteSearchEngine,
 15271  	})
 15272  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15273  }
 15274  
 15275  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus" call.
 15276  // Any non-2xx status code is an error. Response headers are in either
 15277  // *GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse.ServerResp
 15278  // onse.Header or (if a response was returned at all) in
 15279  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15280  // whether the returned error was because http.StatusNotModified was returned.
 15281  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse, error) {
 15282  	gensupport.SetOptions(c.urlParams_, opts...)
 15283  	res, err := c.doRequest("json")
 15284  	if res != nil && res.StatusCode == http.StatusNotModified {
 15285  		if res.Body != nil {
 15286  			res.Body.Close()
 15287  		}
 15288  		return nil, gensupport.WrapError(&googleapi.Error{
 15289  			Code:   res.StatusCode,
 15290  			Header: res.Header,
 15291  		})
 15292  	}
 15293  	if err != nil {
 15294  		return nil, err
 15295  	}
 15296  	defer googleapi.CloseBody(res)
 15297  	if err := googleapi.CheckResponse(res); err != nil {
 15298  		return nil, gensupport.WrapError(err)
 15299  	}
 15300  	ret := &GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse{
 15301  		ServerResponse: googleapi.ServerResponse{
 15302  			Header:         res.Header,
 15303  			HTTPStatusCode: res.StatusCode,
 15304  		},
 15305  	}
 15306  	target := &ret
 15307  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15308  		return nil, err
 15309  	}
 15310  	return ret, nil
 15311  }
 15312  
 15313  // Pages invokes f for each page of results.
 15314  // A non-nil error returned from f will halt the iteration.
 15315  // The provided context supersedes any context provided to the Context method.
 15316  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse) error) error {
 15317  	c.ctx_ = ctx
 15318  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15319  	for {
 15320  		x, err := c.Do()
 15321  		if err != nil {
 15322  			return err
 15323  		}
 15324  		if err := f(x); err != nil {
 15325  			return err
 15326  		}
 15327  		if x.NextPageToken == "" {
 15328  			return nil
 15329  		}
 15330  		c.PageToken(x.NextPageToken)
 15331  	}
 15332  }
 15333  
 15334  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall struct {
 15335  	s                                              *Service
 15336  	siteSearchEngine                               string
 15337  	googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest
 15338  	urlParams_                                     gensupport.URLParams
 15339  	ctx_                                           context.Context
 15340  	header_                                        http.Header
 15341  }
 15342  
 15343  // RecrawlUris: Request on-demand recrawl for a list of URIs.
 15344  //
 15345  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 15346  //     `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
 15347  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 15348  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15349  	c.siteSearchEngine = siteSearchEngine
 15350  	c.googleclouddiscoveryenginev1recrawlurisrequest = googleclouddiscoveryenginev1recrawlurisrequest
 15351  	return c
 15352  }
 15353  
 15354  // Fields allows partial responses to be retrieved. See
 15355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15356  // details.
 15357  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 15358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15359  	return c
 15360  }
 15361  
 15362  // Context sets the context to be used in this call's Do method.
 15363  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 15364  	c.ctx_ = ctx
 15365  	return c
 15366  }
 15367  
 15368  // Header returns a http.Header that can be modified by the caller to add
 15369  // headers to the request.
 15370  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
 15371  	if c.header_ == nil {
 15372  		c.header_ = make(http.Header)
 15373  	}
 15374  	return c.header_
 15375  }
 15376  
 15377  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
 15378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15379  	var body io.Reader = nil
 15380  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recrawlurisrequest)
 15381  	if err != nil {
 15382  		return nil, err
 15383  	}
 15384  	c.urlParams_.Set("alt", alt)
 15385  	c.urlParams_.Set("prettyPrint", "false")
 15386  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:recrawlUris")
 15387  	urls += "?" + c.urlParams_.Encode()
 15388  	req, err := http.NewRequest("POST", urls, body)
 15389  	if err != nil {
 15390  		return nil, err
 15391  	}
 15392  	req.Header = reqHeaders
 15393  	googleapi.Expand(req.URL, map[string]string{
 15394  		"siteSearchEngine": c.siteSearchEngine,
 15395  	})
 15396  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15397  }
 15398  
 15399  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris" call.
 15400  // Any non-2xx status code is an error. Response headers are in either
 15401  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15402  // returned at all) in error.(*googleapi.Error).Header. Use
 15403  // googleapi.IsNotModified to check whether the returned error was because
 15404  // http.StatusNotModified was returned.
 15405  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15406  	gensupport.SetOptions(c.urlParams_, opts...)
 15407  	res, err := c.doRequest("json")
 15408  	if res != nil && res.StatusCode == http.StatusNotModified {
 15409  		if res.Body != nil {
 15410  			res.Body.Close()
 15411  		}
 15412  		return nil, gensupport.WrapError(&googleapi.Error{
 15413  			Code:   res.StatusCode,
 15414  			Header: res.Header,
 15415  		})
 15416  	}
 15417  	if err != nil {
 15418  		return nil, err
 15419  	}
 15420  	defer googleapi.CloseBody(res)
 15421  	if err := googleapi.CheckResponse(res); err != nil {
 15422  		return nil, gensupport.WrapError(err)
 15423  	}
 15424  	ret := &GoogleLongrunningOperation{
 15425  		ServerResponse: googleapi.ServerResponse{
 15426  			Header:         res.Header,
 15427  			HTTPStatusCode: res.StatusCode,
 15428  		},
 15429  	}
 15430  	target := &ret
 15431  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15432  		return nil, err
 15433  	}
 15434  	return ret, nil
 15435  }
 15436  
 15437  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall struct {
 15438  	s            *Service
 15439  	name         string
 15440  	urlParams_   gensupport.URLParams
 15441  	ifNoneMatch_ string
 15442  	ctx_         context.Context
 15443  	header_      http.Header
 15444  }
 15445  
 15446  // Get: Gets the latest state of a long-running operation. Clients can use this
 15447  // method to poll the operation result at intervals as recommended by the API
 15448  // service.
 15449  //
 15450  // - name: The name of the operation resource.
 15451  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 15452  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15453  	c.name = name
 15454  	return c
 15455  }
 15456  
 15457  // Fields allows partial responses to be retrieved. See
 15458  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15459  // details.
 15460  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 15461  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15462  	return c
 15463  }
 15464  
 15465  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15466  // object's ETag matches the given value. This is useful for getting updates
 15467  // only after the object has changed since the last request.
 15468  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 15469  	c.ifNoneMatch_ = entityTag
 15470  	return c
 15471  }
 15472  
 15473  // Context sets the context to be used in this call's Do method.
 15474  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 15475  	c.ctx_ = ctx
 15476  	return c
 15477  }
 15478  
 15479  // Header returns a http.Header that can be modified by the caller to add
 15480  // headers to the request.
 15481  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Header() http.Header {
 15482  	if c.header_ == nil {
 15483  		c.header_ = make(http.Header)
 15484  	}
 15485  	return c.header_
 15486  }
 15487  
 15488  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 15489  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15490  	if c.ifNoneMatch_ != "" {
 15491  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15492  	}
 15493  	var body io.Reader = nil
 15494  	c.urlParams_.Set("alt", alt)
 15495  	c.urlParams_.Set("prettyPrint", "false")
 15496  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15497  	urls += "?" + c.urlParams_.Encode()
 15498  	req, err := http.NewRequest("GET", urls, body)
 15499  	if err != nil {
 15500  		return nil, err
 15501  	}
 15502  	req.Header = reqHeaders
 15503  	googleapi.Expand(req.URL, map[string]string{
 15504  		"name": c.name,
 15505  	})
 15506  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15507  }
 15508  
 15509  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get" call.
 15510  // Any non-2xx status code is an error. Response headers are in either
 15511  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15512  // returned at all) in error.(*googleapi.Error).Header. Use
 15513  // googleapi.IsNotModified to check whether the returned error was because
 15514  // http.StatusNotModified was returned.
 15515  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15516  	gensupport.SetOptions(c.urlParams_, opts...)
 15517  	res, err := c.doRequest("json")
 15518  	if res != nil && res.StatusCode == http.StatusNotModified {
 15519  		if res.Body != nil {
 15520  			res.Body.Close()
 15521  		}
 15522  		return nil, gensupport.WrapError(&googleapi.Error{
 15523  			Code:   res.StatusCode,
 15524  			Header: res.Header,
 15525  		})
 15526  	}
 15527  	if err != nil {
 15528  		return nil, err
 15529  	}
 15530  	defer googleapi.CloseBody(res)
 15531  	if err := googleapi.CheckResponse(res); err != nil {
 15532  		return nil, gensupport.WrapError(err)
 15533  	}
 15534  	ret := &GoogleLongrunningOperation{
 15535  		ServerResponse: googleapi.ServerResponse{
 15536  			Header:         res.Header,
 15537  			HTTPStatusCode: res.StatusCode,
 15538  		},
 15539  	}
 15540  	target := &ret
 15541  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15542  		return nil, err
 15543  	}
 15544  	return ret, nil
 15545  }
 15546  
 15547  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall struct {
 15548  	s            *Service
 15549  	name         string
 15550  	urlParams_   gensupport.URLParams
 15551  	ifNoneMatch_ string
 15552  	ctx_         context.Context
 15553  	header_      http.Header
 15554  }
 15555  
 15556  // List: Lists operations that match the specified filter in the request. If
 15557  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 15558  //
 15559  // - name: The name of the operation's parent resource.
 15560  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15561  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15562  	c.name = name
 15563  	return c
 15564  }
 15565  
 15566  // Filter sets the optional parameter "filter": The standard list filter.
 15567  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15568  	c.urlParams_.Set("filter", filter)
 15569  	return c
 15570  }
 15571  
 15572  // PageSize sets the optional parameter "pageSize": The standard list page
 15573  // size.
 15574  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15575  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15576  	return c
 15577  }
 15578  
 15579  // PageToken sets the optional parameter "pageToken": The standard list page
 15580  // token.
 15581  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15582  	c.urlParams_.Set("pageToken", pageToken)
 15583  	return c
 15584  }
 15585  
 15586  // Fields allows partial responses to be retrieved. See
 15587  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15588  // details.
 15589  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15590  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15591  	return c
 15592  }
 15593  
 15594  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15595  // object's ETag matches the given value. This is useful for getting updates
 15596  // only after the object has changed since the last request.
 15597  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15598  	c.ifNoneMatch_ = entityTag
 15599  	return c
 15600  }
 15601  
 15602  // Context sets the context to be used in this call's Do method.
 15603  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 15604  	c.ctx_ = ctx
 15605  	return c
 15606  }
 15607  
 15608  // Header returns a http.Header that can be modified by the caller to add
 15609  // headers to the request.
 15610  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Header() http.Header {
 15611  	if c.header_ == nil {
 15612  		c.header_ = make(http.Header)
 15613  	}
 15614  	return c.header_
 15615  }
 15616  
 15617  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) doRequest(alt string) (*http.Response, error) {
 15618  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15619  	if c.ifNoneMatch_ != "" {
 15620  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15621  	}
 15622  	var body io.Reader = nil
 15623  	c.urlParams_.Set("alt", alt)
 15624  	c.urlParams_.Set("prettyPrint", "false")
 15625  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 15626  	urls += "?" + c.urlParams_.Encode()
 15627  	req, err := http.NewRequest("GET", urls, body)
 15628  	if err != nil {
 15629  		return nil, err
 15630  	}
 15631  	req.Header = reqHeaders
 15632  	googleapi.Expand(req.URL, map[string]string{
 15633  		"name": c.name,
 15634  	})
 15635  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15636  }
 15637  
 15638  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list" call.
 15639  // Any non-2xx status code is an error. Response headers are in either
 15640  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 15641  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15642  // googleapi.IsNotModified to check whether the returned error was because
 15643  // http.StatusNotModified was returned.
 15644  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 15645  	gensupport.SetOptions(c.urlParams_, opts...)
 15646  	res, err := c.doRequest("json")
 15647  	if res != nil && res.StatusCode == http.StatusNotModified {
 15648  		if res.Body != nil {
 15649  			res.Body.Close()
 15650  		}
 15651  		return nil, gensupport.WrapError(&googleapi.Error{
 15652  			Code:   res.StatusCode,
 15653  			Header: res.Header,
 15654  		})
 15655  	}
 15656  	if err != nil {
 15657  		return nil, err
 15658  	}
 15659  	defer googleapi.CloseBody(res)
 15660  	if err := googleapi.CheckResponse(res); err != nil {
 15661  		return nil, gensupport.WrapError(err)
 15662  	}
 15663  	ret := &GoogleLongrunningListOperationsResponse{
 15664  		ServerResponse: googleapi.ServerResponse{
 15665  			Header:         res.Header,
 15666  			HTTPStatusCode: res.StatusCode,
 15667  		},
 15668  	}
 15669  	target := &ret
 15670  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15671  		return nil, err
 15672  	}
 15673  	return ret, nil
 15674  }
 15675  
 15676  // Pages invokes f for each page of results.
 15677  // A non-nil error returned from f will halt the iteration.
 15678  // The provided context supersedes any context provided to the Context method.
 15679  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 15680  	c.ctx_ = ctx
 15681  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15682  	for {
 15683  		x, err := c.Do()
 15684  		if err != nil {
 15685  			return err
 15686  		}
 15687  		if err := f(x); err != nil {
 15688  			return err
 15689  		}
 15690  		if x.NextPageToken == "" {
 15691  			return nil
 15692  		}
 15693  		c.PageToken(x.NextPageToken)
 15694  	}
 15695  }
 15696  
 15697  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
 15698  	s                                                         *Service
 15699  	parent                                                    string
 15700  	googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest
 15701  	urlParams_                                                gensupport.URLParams
 15702  	ctx_                                                      context.Context
 15703  	header_                                                   http.Header
 15704  }
 15705  
 15706  // BatchCreate: Creates TargetSite in a batch.
 15707  //
 15708  //   - parent: The parent resource shared by all TargetSites being created.
 15709  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15710  //     s/{data_store}/siteSearchEngine`. The parent field in the
 15711  //     CreateBookRequest messages must either be empty or match this field.
 15712  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 15713  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15714  	c.parent = parent
 15715  	c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest = googleclouddiscoveryenginev1batchcreatetargetsitesrequest
 15716  	return c
 15717  }
 15718  
 15719  // Fields allows partial responses to be retrieved. See
 15720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15721  // details.
 15722  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 15723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15724  	return c
 15725  }
 15726  
 15727  // Context sets the context to be used in this call's Do method.
 15728  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 15729  	c.ctx_ = ctx
 15730  	return c
 15731  }
 15732  
 15733  // Header returns a http.Header that can be modified by the caller to add
 15734  // headers to the request.
 15735  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
 15736  	if c.header_ == nil {
 15737  		c.header_ = make(http.Header)
 15738  	}
 15739  	return c.header_
 15740  }
 15741  
 15742  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 15743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15744  	var body io.Reader = nil
 15745  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest)
 15746  	if err != nil {
 15747  		return nil, err
 15748  	}
 15749  	c.urlParams_.Set("alt", alt)
 15750  	c.urlParams_.Set("prettyPrint", "false")
 15751  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites:batchCreate")
 15752  	urls += "?" + c.urlParams_.Encode()
 15753  	req, err := http.NewRequest("POST", urls, body)
 15754  	if err != nil {
 15755  		return nil, err
 15756  	}
 15757  	req.Header = reqHeaders
 15758  	googleapi.Expand(req.URL, map[string]string{
 15759  		"parent": c.parent,
 15760  	})
 15761  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15762  }
 15763  
 15764  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call.
 15765  // Any non-2xx status code is an error. Response headers are in either
 15766  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15767  // returned at all) in error.(*googleapi.Error).Header. Use
 15768  // googleapi.IsNotModified to check whether the returned error was because
 15769  // http.StatusNotModified was returned.
 15770  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15771  	gensupport.SetOptions(c.urlParams_, opts...)
 15772  	res, err := c.doRequest("json")
 15773  	if res != nil && res.StatusCode == http.StatusNotModified {
 15774  		if res.Body != nil {
 15775  			res.Body.Close()
 15776  		}
 15777  		return nil, gensupport.WrapError(&googleapi.Error{
 15778  			Code:   res.StatusCode,
 15779  			Header: res.Header,
 15780  		})
 15781  	}
 15782  	if err != nil {
 15783  		return nil, err
 15784  	}
 15785  	defer googleapi.CloseBody(res)
 15786  	if err := googleapi.CheckResponse(res); err != nil {
 15787  		return nil, gensupport.WrapError(err)
 15788  	}
 15789  	ret := &GoogleLongrunningOperation{
 15790  		ServerResponse: googleapi.ServerResponse{
 15791  			Header:         res.Header,
 15792  			HTTPStatusCode: res.StatusCode,
 15793  		},
 15794  	}
 15795  	target := &ret
 15796  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15797  		return nil, err
 15798  	}
 15799  	return ret, nil
 15800  }
 15801  
 15802  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
 15803  	s                                      *Service
 15804  	parent                                 string
 15805  	googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
 15806  	urlParams_                             gensupport.URLParams
 15807  	ctx_                                   context.Context
 15808  	header_                                http.Header
 15809  }
 15810  
 15811  // Create: Creates a TargetSite.
 15812  //
 15813  //   - parent: Parent resource name of TargetSite, such as
 15814  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15815  //     s/{data_store}/siteSearchEngine`.
 15816  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 15817  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15818  	c.parent = parent
 15819  	c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
 15820  	return c
 15821  }
 15822  
 15823  // Fields allows partial responses to be retrieved. See
 15824  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15825  // details.
 15826  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 15827  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15828  	return c
 15829  }
 15830  
 15831  // Context sets the context to be used in this call's Do method.
 15832  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 15833  	c.ctx_ = ctx
 15834  	return c
 15835  }
 15836  
 15837  // Header returns a http.Header that can be modified by the caller to add
 15838  // headers to the request.
 15839  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
 15840  	if c.header_ == nil {
 15841  		c.header_ = make(http.Header)
 15842  	}
 15843  	return c.header_
 15844  }
 15845  
 15846  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
 15847  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15848  	var body io.Reader = nil
 15849  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
 15850  	if err != nil {
 15851  		return nil, err
 15852  	}
 15853  	c.urlParams_.Set("alt", alt)
 15854  	c.urlParams_.Set("prettyPrint", "false")
 15855  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
 15856  	urls += "?" + c.urlParams_.Encode()
 15857  	req, err := http.NewRequest("POST", urls, body)
 15858  	if err != nil {
 15859  		return nil, err
 15860  	}
 15861  	req.Header = reqHeaders
 15862  	googleapi.Expand(req.URL, map[string]string{
 15863  		"parent": c.parent,
 15864  	})
 15865  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15866  }
 15867  
 15868  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call.
 15869  // Any non-2xx status code is an error. Response headers are in either
 15870  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15871  // returned at all) in error.(*googleapi.Error).Header. Use
 15872  // googleapi.IsNotModified to check whether the returned error was because
 15873  // http.StatusNotModified was returned.
 15874  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15875  	gensupport.SetOptions(c.urlParams_, opts...)
 15876  	res, err := c.doRequest("json")
 15877  	if res != nil && res.StatusCode == http.StatusNotModified {
 15878  		if res.Body != nil {
 15879  			res.Body.Close()
 15880  		}
 15881  		return nil, gensupport.WrapError(&googleapi.Error{
 15882  			Code:   res.StatusCode,
 15883  			Header: res.Header,
 15884  		})
 15885  	}
 15886  	if err != nil {
 15887  		return nil, err
 15888  	}
 15889  	defer googleapi.CloseBody(res)
 15890  	if err := googleapi.CheckResponse(res); err != nil {
 15891  		return nil, gensupport.WrapError(err)
 15892  	}
 15893  	ret := &GoogleLongrunningOperation{
 15894  		ServerResponse: googleapi.ServerResponse{
 15895  			Header:         res.Header,
 15896  			HTTPStatusCode: res.StatusCode,
 15897  		},
 15898  	}
 15899  	target := &ret
 15900  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15901  		return nil, err
 15902  	}
 15903  	return ret, nil
 15904  }
 15905  
 15906  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
 15907  	s          *Service
 15908  	name       string
 15909  	urlParams_ gensupport.URLParams
 15910  	ctx_       context.Context
 15911  	header_    http.Header
 15912  }
 15913  
 15914  // Delete: Deletes a TargetSite.
 15915  //
 15916  //   - name: Full resource name of TargetSite, such as
 15917  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15918  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 15919  //     does not have permission to access the TargetSite, regardless of whether
 15920  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 15921  //     TargetSite does not exist, a NOT_FOUND error is returned.
 15922  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 15923  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15924  	c.name = name
 15925  	return c
 15926  }
 15927  
 15928  // Fields allows partial responses to be retrieved. See
 15929  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15930  // details.
 15931  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 15932  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15933  	return c
 15934  }
 15935  
 15936  // Context sets the context to be used in this call's Do method.
 15937  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 15938  	c.ctx_ = ctx
 15939  	return c
 15940  }
 15941  
 15942  // Header returns a http.Header that can be modified by the caller to add
 15943  // headers to the request.
 15944  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
 15945  	if c.header_ == nil {
 15946  		c.header_ = make(http.Header)
 15947  	}
 15948  	return c.header_
 15949  }
 15950  
 15951  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
 15952  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15953  	var body io.Reader = nil
 15954  	c.urlParams_.Set("alt", alt)
 15955  	c.urlParams_.Set("prettyPrint", "false")
 15956  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15957  	urls += "?" + c.urlParams_.Encode()
 15958  	req, err := http.NewRequest("DELETE", urls, body)
 15959  	if err != nil {
 15960  		return nil, err
 15961  	}
 15962  	req.Header = reqHeaders
 15963  	googleapi.Expand(req.URL, map[string]string{
 15964  		"name": c.name,
 15965  	})
 15966  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15967  }
 15968  
 15969  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete" call.
 15970  // Any non-2xx status code is an error. Response headers are in either
 15971  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15972  // returned at all) in error.(*googleapi.Error).Header. Use
 15973  // googleapi.IsNotModified to check whether the returned error was because
 15974  // http.StatusNotModified was returned.
 15975  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15976  	gensupport.SetOptions(c.urlParams_, opts...)
 15977  	res, err := c.doRequest("json")
 15978  	if res != nil && res.StatusCode == http.StatusNotModified {
 15979  		if res.Body != nil {
 15980  			res.Body.Close()
 15981  		}
 15982  		return nil, gensupport.WrapError(&googleapi.Error{
 15983  			Code:   res.StatusCode,
 15984  			Header: res.Header,
 15985  		})
 15986  	}
 15987  	if err != nil {
 15988  		return nil, err
 15989  	}
 15990  	defer googleapi.CloseBody(res)
 15991  	if err := googleapi.CheckResponse(res); err != nil {
 15992  		return nil, gensupport.WrapError(err)
 15993  	}
 15994  	ret := &GoogleLongrunningOperation{
 15995  		ServerResponse: googleapi.ServerResponse{
 15996  			Header:         res.Header,
 15997  			HTTPStatusCode: res.StatusCode,
 15998  		},
 15999  	}
 16000  	target := &ret
 16001  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16002  		return nil, err
 16003  	}
 16004  	return ret, nil
 16005  }
 16006  
 16007  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall struct {
 16008  	s            *Service
 16009  	name         string
 16010  	urlParams_   gensupport.URLParams
 16011  	ifNoneMatch_ string
 16012  	ctx_         context.Context
 16013  	header_      http.Header
 16014  }
 16015  
 16016  // Get: Gets a TargetSite.
 16017  //
 16018  //   - name: Full resource name of TargetSite, such as
 16019  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16020  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 16021  //     does not have permission to access the TargetSite, regardless of whether
 16022  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 16023  //     TargetSite does not exist, a NOT_FOUND error is returned.
 16024  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 16025  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16026  	c.name = name
 16027  	return c
 16028  }
 16029  
 16030  // Fields allows partial responses to be retrieved. See
 16031  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16032  // details.
 16033  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 16034  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16035  	return c
 16036  }
 16037  
 16038  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16039  // object's ETag matches the given value. This is useful for getting updates
 16040  // only after the object has changed since the last request.
 16041  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 16042  	c.ifNoneMatch_ = entityTag
 16043  	return c
 16044  }
 16045  
 16046  // Context sets the context to be used in this call's Do method.
 16047  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 16048  	c.ctx_ = ctx
 16049  	return c
 16050  }
 16051  
 16052  // Header returns a http.Header that can be modified by the caller to add
 16053  // headers to the request.
 16054  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
 16055  	if c.header_ == nil {
 16056  		c.header_ = make(http.Header)
 16057  	}
 16058  	return c.header_
 16059  }
 16060  
 16061  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
 16062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16063  	if c.ifNoneMatch_ != "" {
 16064  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16065  	}
 16066  	var body io.Reader = nil
 16067  	c.urlParams_.Set("alt", alt)
 16068  	c.urlParams_.Set("prettyPrint", "false")
 16069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16070  	urls += "?" + c.urlParams_.Encode()
 16071  	req, err := http.NewRequest("GET", urls, body)
 16072  	if err != nil {
 16073  		return nil, err
 16074  	}
 16075  	req.Header = reqHeaders
 16076  	googleapi.Expand(req.URL, map[string]string{
 16077  		"name": c.name,
 16078  	})
 16079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16080  }
 16081  
 16082  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.get" call.
 16083  // Any non-2xx status code is an error. Response headers are in either
 16084  // *GoogleCloudDiscoveryengineV1TargetSite.ServerResponse.Header or (if a
 16085  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16086  // googleapi.IsNotModified to check whether the returned error was because
 16087  // http.StatusNotModified was returned.
 16088  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1TargetSite, error) {
 16089  	gensupport.SetOptions(c.urlParams_, opts...)
 16090  	res, err := c.doRequest("json")
 16091  	if res != nil && res.StatusCode == http.StatusNotModified {
 16092  		if res.Body != nil {
 16093  			res.Body.Close()
 16094  		}
 16095  		return nil, gensupport.WrapError(&googleapi.Error{
 16096  			Code:   res.StatusCode,
 16097  			Header: res.Header,
 16098  		})
 16099  	}
 16100  	if err != nil {
 16101  		return nil, err
 16102  	}
 16103  	defer googleapi.CloseBody(res)
 16104  	if err := googleapi.CheckResponse(res); err != nil {
 16105  		return nil, gensupport.WrapError(err)
 16106  	}
 16107  	ret := &GoogleCloudDiscoveryengineV1TargetSite{
 16108  		ServerResponse: googleapi.ServerResponse{
 16109  			Header:         res.Header,
 16110  			HTTPStatusCode: res.StatusCode,
 16111  		},
 16112  	}
 16113  	target := &ret
 16114  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16115  		return nil, err
 16116  	}
 16117  	return ret, nil
 16118  }
 16119  
 16120  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall struct {
 16121  	s            *Service
 16122  	parent       string
 16123  	urlParams_   gensupport.URLParams
 16124  	ifNoneMatch_ string
 16125  	ctx_         context.Context
 16126  	header_      http.Header
 16127  }
 16128  
 16129  // List: Gets a list of TargetSites.
 16130  //
 16131  //   - parent: The parent site search engine resource name, such as
 16132  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16133  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 16134  //     to list TargetSites under this site search engine, regardless of whether
 16135  //     or not this branch exists, a PERMISSION_DENIED error is returned.
 16136  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 16137  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16138  	c.parent = parent
 16139  	return c
 16140  }
 16141  
 16142  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 16143  // may return fewer items than requested. If unspecified, server will pick an
 16144  // appropriate default. The maximum value is 1000; values above 1000 will be
 16145  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 16146  // returned.
 16147  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 16148  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16149  	return c
 16150  }
 16151  
 16152  // PageToken sets the optional parameter "pageToken": A page token, received
 16153  // from a previous `ListTargetSites` call. Provide this to retrieve the
 16154  // subsequent page. When paginating, all other parameters provided to
 16155  // `ListTargetSites` must match the call that provided the page token.
 16156  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 16157  	c.urlParams_.Set("pageToken", pageToken)
 16158  	return c
 16159  }
 16160  
 16161  // Fields allows partial responses to be retrieved. See
 16162  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16163  // details.
 16164  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 16165  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16166  	return c
 16167  }
 16168  
 16169  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16170  // object's ETag matches the given value. This is useful for getting updates
 16171  // only after the object has changed since the last request.
 16172  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 16173  	c.ifNoneMatch_ = entityTag
 16174  	return c
 16175  }
 16176  
 16177  // Context sets the context to be used in this call's Do method.
 16178  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 16179  	c.ctx_ = ctx
 16180  	return c
 16181  }
 16182  
 16183  // Header returns a http.Header that can be modified by the caller to add
 16184  // headers to the request.
 16185  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
 16186  	if c.header_ == nil {
 16187  		c.header_ = make(http.Header)
 16188  	}
 16189  	return c.header_
 16190  }
 16191  
 16192  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
 16193  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16194  	if c.ifNoneMatch_ != "" {
 16195  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16196  	}
 16197  	var body io.Reader = nil
 16198  	c.urlParams_.Set("alt", alt)
 16199  	c.urlParams_.Set("prettyPrint", "false")
 16200  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
 16201  	urls += "?" + c.urlParams_.Encode()
 16202  	req, err := http.NewRequest("GET", urls, body)
 16203  	if err != nil {
 16204  		return nil, err
 16205  	}
 16206  	req.Header = reqHeaders
 16207  	googleapi.Expand(req.URL, map[string]string{
 16208  		"parent": c.parent,
 16209  	})
 16210  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16211  }
 16212  
 16213  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list" call.
 16214  // Any non-2xx status code is an error. Response headers are in either
 16215  // *GoogleCloudDiscoveryengineV1ListTargetSitesResponse.ServerResponse.Header
 16216  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 16217  // Use googleapi.IsNotModified to check whether the returned error was because
 16218  // http.StatusNotModified was returned.
 16219  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListTargetSitesResponse, error) {
 16220  	gensupport.SetOptions(c.urlParams_, opts...)
 16221  	res, err := c.doRequest("json")
 16222  	if res != nil && res.StatusCode == http.StatusNotModified {
 16223  		if res.Body != nil {
 16224  			res.Body.Close()
 16225  		}
 16226  		return nil, gensupport.WrapError(&googleapi.Error{
 16227  			Code:   res.StatusCode,
 16228  			Header: res.Header,
 16229  		})
 16230  	}
 16231  	if err != nil {
 16232  		return nil, err
 16233  	}
 16234  	defer googleapi.CloseBody(res)
 16235  	if err := googleapi.CheckResponse(res); err != nil {
 16236  		return nil, gensupport.WrapError(err)
 16237  	}
 16238  	ret := &GoogleCloudDiscoveryengineV1ListTargetSitesResponse{
 16239  		ServerResponse: googleapi.ServerResponse{
 16240  			Header:         res.Header,
 16241  			HTTPStatusCode: res.StatusCode,
 16242  		},
 16243  	}
 16244  	target := &ret
 16245  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16246  		return nil, err
 16247  	}
 16248  	return ret, nil
 16249  }
 16250  
 16251  // Pages invokes f for each page of results.
 16252  // A non-nil error returned from f will halt the iteration.
 16253  // The provided context supersedes any context provided to the Context method.
 16254  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListTargetSitesResponse) error) error {
 16255  	c.ctx_ = ctx
 16256  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16257  	for {
 16258  		x, err := c.Do()
 16259  		if err != nil {
 16260  			return err
 16261  		}
 16262  		if err := f(x); err != nil {
 16263  			return err
 16264  		}
 16265  		if x.NextPageToken == "" {
 16266  			return nil
 16267  		}
 16268  		c.PageToken(x.NextPageToken)
 16269  	}
 16270  }
 16271  
 16272  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
 16273  	s                                      *Service
 16274  	name                                   string
 16275  	googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
 16276  	urlParams_                             gensupport.URLParams
 16277  	ctx_                                   context.Context
 16278  	header_                                http.Header
 16279  }
 16280  
 16281  // Patch: Updates a TargetSite.
 16282  //
 16283  //   - name: Output only. The fully qualified resource name of the target site.
 16284  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16285  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}` The
 16286  //     `target_site_id` is system-generated.
 16287  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 16288  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16289  	c.name = name
 16290  	c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
 16291  	return c
 16292  }
 16293  
 16294  // Fields allows partial responses to be retrieved. See
 16295  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16296  // details.
 16297  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 16298  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16299  	return c
 16300  }
 16301  
 16302  // Context sets the context to be used in this call's Do method.
 16303  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 16304  	c.ctx_ = ctx
 16305  	return c
 16306  }
 16307  
 16308  // Header returns a http.Header that can be modified by the caller to add
 16309  // headers to the request.
 16310  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
 16311  	if c.header_ == nil {
 16312  		c.header_ = make(http.Header)
 16313  	}
 16314  	return c.header_
 16315  }
 16316  
 16317  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
 16318  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16319  	var body io.Reader = nil
 16320  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
 16321  	if err != nil {
 16322  		return nil, err
 16323  	}
 16324  	c.urlParams_.Set("alt", alt)
 16325  	c.urlParams_.Set("prettyPrint", "false")
 16326  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16327  	urls += "?" + c.urlParams_.Encode()
 16328  	req, err := http.NewRequest("PATCH", urls, body)
 16329  	if err != nil {
 16330  		return nil, err
 16331  	}
 16332  	req.Header = reqHeaders
 16333  	googleapi.Expand(req.URL, map[string]string{
 16334  		"name": c.name,
 16335  	})
 16336  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16337  }
 16338  
 16339  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch" call.
 16340  // Any non-2xx status code is an error. Response headers are in either
 16341  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16342  // returned at all) in error.(*googleapi.Error).Header. Use
 16343  // googleapi.IsNotModified to check whether the returned error was because
 16344  // http.StatusNotModified was returned.
 16345  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16346  	gensupport.SetOptions(c.urlParams_, opts...)
 16347  	res, err := c.doRequest("json")
 16348  	if res != nil && res.StatusCode == http.StatusNotModified {
 16349  		if res.Body != nil {
 16350  			res.Body.Close()
 16351  		}
 16352  		return nil, gensupport.WrapError(&googleapi.Error{
 16353  			Code:   res.StatusCode,
 16354  			Header: res.Header,
 16355  		})
 16356  	}
 16357  	if err != nil {
 16358  		return nil, err
 16359  	}
 16360  	defer googleapi.CloseBody(res)
 16361  	if err := googleapi.CheckResponse(res); err != nil {
 16362  		return nil, gensupport.WrapError(err)
 16363  	}
 16364  	ret := &GoogleLongrunningOperation{
 16365  		ServerResponse: googleapi.ServerResponse{
 16366  			Header:         res.Header,
 16367  			HTTPStatusCode: res.StatusCode,
 16368  		},
 16369  	}
 16370  	target := &ret
 16371  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16372  		return nil, err
 16373  	}
 16374  	return ret, nil
 16375  }
 16376  
 16377  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall struct {
 16378  	s            *Service
 16379  	name         string
 16380  	urlParams_   gensupport.URLParams
 16381  	ifNoneMatch_ string
 16382  	ctx_         context.Context
 16383  	header_      http.Header
 16384  }
 16385  
 16386  // Get: Gets the latest state of a long-running operation. Clients can use this
 16387  // method to poll the operation result at intervals as recommended by the API
 16388  // service.
 16389  //
 16390  // - name: The name of the operation resource.
 16391  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 16392  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16393  	c.name = name
 16394  	return c
 16395  }
 16396  
 16397  // Fields allows partial responses to be retrieved. See
 16398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16399  // details.
 16400  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 16401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16402  	return c
 16403  }
 16404  
 16405  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16406  // object's ETag matches the given value. This is useful for getting updates
 16407  // only after the object has changed since the last request.
 16408  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 16409  	c.ifNoneMatch_ = entityTag
 16410  	return c
 16411  }
 16412  
 16413  // Context sets the context to be used in this call's Do method.
 16414  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 16415  	c.ctx_ = ctx
 16416  	return c
 16417  }
 16418  
 16419  // Header returns a http.Header that can be modified by the caller to add
 16420  // headers to the request.
 16421  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Header() http.Header {
 16422  	if c.header_ == nil {
 16423  		c.header_ = make(http.Header)
 16424  	}
 16425  	return c.header_
 16426  }
 16427  
 16428  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 16429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16430  	if c.ifNoneMatch_ != "" {
 16431  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16432  	}
 16433  	var body io.Reader = nil
 16434  	c.urlParams_.Set("alt", alt)
 16435  	c.urlParams_.Set("prettyPrint", "false")
 16436  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16437  	urls += "?" + c.urlParams_.Encode()
 16438  	req, err := http.NewRequest("GET", urls, body)
 16439  	if err != nil {
 16440  		return nil, err
 16441  	}
 16442  	req.Header = reqHeaders
 16443  	googleapi.Expand(req.URL, map[string]string{
 16444  		"name": c.name,
 16445  	})
 16446  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16447  }
 16448  
 16449  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get" call.
 16450  // Any non-2xx status code is an error. Response headers are in either
 16451  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16452  // returned at all) in error.(*googleapi.Error).Header. Use
 16453  // googleapi.IsNotModified to check whether the returned error was because
 16454  // http.StatusNotModified was returned.
 16455  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16456  	gensupport.SetOptions(c.urlParams_, opts...)
 16457  	res, err := c.doRequest("json")
 16458  	if res != nil && res.StatusCode == http.StatusNotModified {
 16459  		if res.Body != nil {
 16460  			res.Body.Close()
 16461  		}
 16462  		return nil, gensupport.WrapError(&googleapi.Error{
 16463  			Code:   res.StatusCode,
 16464  			Header: res.Header,
 16465  		})
 16466  	}
 16467  	if err != nil {
 16468  		return nil, err
 16469  	}
 16470  	defer googleapi.CloseBody(res)
 16471  	if err := googleapi.CheckResponse(res); err != nil {
 16472  		return nil, gensupport.WrapError(err)
 16473  	}
 16474  	ret := &GoogleLongrunningOperation{
 16475  		ServerResponse: googleapi.ServerResponse{
 16476  			Header:         res.Header,
 16477  			HTTPStatusCode: res.StatusCode,
 16478  		},
 16479  	}
 16480  	target := &ret
 16481  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16482  		return nil, err
 16483  	}
 16484  	return ret, nil
 16485  }
 16486  
 16487  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall struct {
 16488  	s            *Service
 16489  	name         string
 16490  	urlParams_   gensupport.URLParams
 16491  	ifNoneMatch_ string
 16492  	ctx_         context.Context
 16493  	header_      http.Header
 16494  }
 16495  
 16496  // List: Lists operations that match the specified filter in the request. If
 16497  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 16498  //
 16499  // - name: The name of the operation's parent resource.
 16500  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16501  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16502  	c.name = name
 16503  	return c
 16504  }
 16505  
 16506  // Filter sets the optional parameter "filter": The standard list filter.
 16507  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16508  	c.urlParams_.Set("filter", filter)
 16509  	return c
 16510  }
 16511  
 16512  // PageSize sets the optional parameter "pageSize": The standard list page
 16513  // size.
 16514  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16515  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16516  	return c
 16517  }
 16518  
 16519  // PageToken sets the optional parameter "pageToken": The standard list page
 16520  // token.
 16521  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16522  	c.urlParams_.Set("pageToken", pageToken)
 16523  	return c
 16524  }
 16525  
 16526  // Fields allows partial responses to be retrieved. See
 16527  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16528  // details.
 16529  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16530  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16531  	return c
 16532  }
 16533  
 16534  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16535  // object's ETag matches the given value. This is useful for getting updates
 16536  // only after the object has changed since the last request.
 16537  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16538  	c.ifNoneMatch_ = entityTag
 16539  	return c
 16540  }
 16541  
 16542  // Context sets the context to be used in this call's Do method.
 16543  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 16544  	c.ctx_ = ctx
 16545  	return c
 16546  }
 16547  
 16548  // Header returns a http.Header that can be modified by the caller to add
 16549  // headers to the request.
 16550  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Header() http.Header {
 16551  	if c.header_ == nil {
 16552  		c.header_ = make(http.Header)
 16553  	}
 16554  	return c.header_
 16555  }
 16556  
 16557  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 16558  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16559  	if c.ifNoneMatch_ != "" {
 16560  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16561  	}
 16562  	var body io.Reader = nil
 16563  	c.urlParams_.Set("alt", alt)
 16564  	c.urlParams_.Set("prettyPrint", "false")
 16565  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 16566  	urls += "?" + c.urlParams_.Encode()
 16567  	req, err := http.NewRequest("GET", urls, body)
 16568  	if err != nil {
 16569  		return nil, err
 16570  	}
 16571  	req.Header = reqHeaders
 16572  	googleapi.Expand(req.URL, map[string]string{
 16573  		"name": c.name,
 16574  	})
 16575  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16576  }
 16577  
 16578  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list" call.
 16579  // Any non-2xx status code is an error. Response headers are in either
 16580  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 16581  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16582  // googleapi.IsNotModified to check whether the returned error was because
 16583  // http.StatusNotModified was returned.
 16584  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 16585  	gensupport.SetOptions(c.urlParams_, opts...)
 16586  	res, err := c.doRequest("json")
 16587  	if res != nil && res.StatusCode == http.StatusNotModified {
 16588  		if res.Body != nil {
 16589  			res.Body.Close()
 16590  		}
 16591  		return nil, gensupport.WrapError(&googleapi.Error{
 16592  			Code:   res.StatusCode,
 16593  			Header: res.Header,
 16594  		})
 16595  	}
 16596  	if err != nil {
 16597  		return nil, err
 16598  	}
 16599  	defer googleapi.CloseBody(res)
 16600  	if err := googleapi.CheckResponse(res); err != nil {
 16601  		return nil, gensupport.WrapError(err)
 16602  	}
 16603  	ret := &GoogleLongrunningListOperationsResponse{
 16604  		ServerResponse: googleapi.ServerResponse{
 16605  			Header:         res.Header,
 16606  			HTTPStatusCode: res.StatusCode,
 16607  		},
 16608  	}
 16609  	target := &ret
 16610  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16611  		return nil, err
 16612  	}
 16613  	return ret, nil
 16614  }
 16615  
 16616  // Pages invokes f for each page of results.
 16617  // A non-nil error returned from f will halt the iteration.
 16618  // The provided context supersedes any context provided to the Context method.
 16619  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 16620  	c.ctx_ = ctx
 16621  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16622  	for {
 16623  		x, err := c.Do()
 16624  		if err != nil {
 16625  			return err
 16626  		}
 16627  		if err := f(x); err != nil {
 16628  			return err
 16629  		}
 16630  		if x.NextPageToken == "" {
 16631  			return nil
 16632  		}
 16633  		c.PageToken(x.NextPageToken)
 16634  	}
 16635  }
 16636  
 16637  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall struct {
 16638  	s                                                                  *Service
 16639  	parent                                                             string
 16640  	googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest
 16641  	urlParams_                                                         gensupport.URLParams
 16642  	ctx_                                                               context.Context
 16643  	header_                                                            http.Header
 16644  }
 16645  
 16646  // Import: Imports all SuggestionDenyListEntry for a DataStore.
 16647  //
 16648  //   - parent: The parent data store resource name for which to import denylist
 16649  //     entries. Follows pattern
 16650  //     projects/*/locations/*/collections/*/dataStores/*.
 16651  func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 16652  	c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16653  	c.parent = parent
 16654  	c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest
 16655  	return c
 16656  }
 16657  
 16658  // Fields allows partial responses to be retrieved. See
 16659  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16660  // details.
 16661  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 16662  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16663  	return c
 16664  }
 16665  
 16666  // Context sets the context to be used in this call's Do method.
 16667  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 16668  	c.ctx_ = ctx
 16669  	return c
 16670  }
 16671  
 16672  // Header returns a http.Header that can be modified by the caller to add
 16673  // headers to the request.
 16674  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
 16675  	if c.header_ == nil {
 16676  		c.header_ = make(http.Header)
 16677  	}
 16678  	return c.header_
 16679  }
 16680  
 16681  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
 16682  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16683  	var body io.Reader = nil
 16684  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest)
 16685  	if err != nil {
 16686  		return nil, err
 16687  	}
 16688  	c.urlParams_.Set("alt", alt)
 16689  	c.urlParams_.Set("prettyPrint", "false")
 16690  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:import")
 16691  	urls += "?" + c.urlParams_.Encode()
 16692  	req, err := http.NewRequest("POST", urls, body)
 16693  	if err != nil {
 16694  		return nil, err
 16695  	}
 16696  	req.Header = reqHeaders
 16697  	googleapi.Expand(req.URL, map[string]string{
 16698  		"parent": c.parent,
 16699  	})
 16700  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16701  }
 16702  
 16703  // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import" call.
 16704  // Any non-2xx status code is an error. Response headers are in either
 16705  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16706  // returned at all) in error.(*googleapi.Error).Header. Use
 16707  // googleapi.IsNotModified to check whether the returned error was because
 16708  // http.StatusNotModified was returned.
 16709  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16710  	gensupport.SetOptions(c.urlParams_, opts...)
 16711  	res, err := c.doRequest("json")
 16712  	if res != nil && res.StatusCode == http.StatusNotModified {
 16713  		if res.Body != nil {
 16714  			res.Body.Close()
 16715  		}
 16716  		return nil, gensupport.WrapError(&googleapi.Error{
 16717  			Code:   res.StatusCode,
 16718  			Header: res.Header,
 16719  		})
 16720  	}
 16721  	if err != nil {
 16722  		return nil, err
 16723  	}
 16724  	defer googleapi.CloseBody(res)
 16725  	if err := googleapi.CheckResponse(res); err != nil {
 16726  		return nil, gensupport.WrapError(err)
 16727  	}
 16728  	ret := &GoogleLongrunningOperation{
 16729  		ServerResponse: googleapi.ServerResponse{
 16730  			Header:         res.Header,
 16731  			HTTPStatusCode: res.StatusCode,
 16732  		},
 16733  	}
 16734  	target := &ret
 16735  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16736  		return nil, err
 16737  	}
 16738  	return ret, nil
 16739  }
 16740  
 16741  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall struct {
 16742  	s                                                                 *Service
 16743  	parent                                                            string
 16744  	googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest
 16745  	urlParams_                                                        gensupport.URLParams
 16746  	ctx_                                                              context.Context
 16747  	header_                                                           http.Header
 16748  }
 16749  
 16750  // Purge: Permanently deletes all SuggestionDenyListEntry for a DataStore.
 16751  //
 16752  //   - parent: The parent data store resource name for which to import denylist
 16753  //     entries. Follows pattern
 16754  //     projects/*/locations/*/collections/*/dataStores/*.
 16755  func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 16756  	c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16757  	c.parent = parent
 16758  	c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest
 16759  	return c
 16760  }
 16761  
 16762  // Fields allows partial responses to be retrieved. See
 16763  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16764  // details.
 16765  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 16766  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16767  	return c
 16768  }
 16769  
 16770  // Context sets the context to be used in this call's Do method.
 16771  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 16772  	c.ctx_ = ctx
 16773  	return c
 16774  }
 16775  
 16776  // Header returns a http.Header that can be modified by the caller to add
 16777  // headers to the request.
 16778  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
 16779  	if c.header_ == nil {
 16780  		c.header_ = make(http.Header)
 16781  	}
 16782  	return c.header_
 16783  }
 16784  
 16785  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
 16786  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16787  	var body io.Reader = nil
 16788  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest)
 16789  	if err != nil {
 16790  		return nil, err
 16791  	}
 16792  	c.urlParams_.Set("alt", alt)
 16793  	c.urlParams_.Set("prettyPrint", "false")
 16794  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:purge")
 16795  	urls += "?" + c.urlParams_.Encode()
 16796  	req, err := http.NewRequest("POST", urls, body)
 16797  	if err != nil {
 16798  		return nil, err
 16799  	}
 16800  	req.Header = reqHeaders
 16801  	googleapi.Expand(req.URL, map[string]string{
 16802  		"parent": c.parent,
 16803  	})
 16804  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16805  }
 16806  
 16807  // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge" call.
 16808  // Any non-2xx status code is an error. Response headers are in either
 16809  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16810  // returned at all) in error.(*googleapi.Error).Header. Use
 16811  // googleapi.IsNotModified to check whether the returned error was because
 16812  // http.StatusNotModified was returned.
 16813  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16814  	gensupport.SetOptions(c.urlParams_, opts...)
 16815  	res, err := c.doRequest("json")
 16816  	if res != nil && res.StatusCode == http.StatusNotModified {
 16817  		if res.Body != nil {
 16818  			res.Body.Close()
 16819  		}
 16820  		return nil, gensupport.WrapError(&googleapi.Error{
 16821  			Code:   res.StatusCode,
 16822  			Header: res.Header,
 16823  		})
 16824  	}
 16825  	if err != nil {
 16826  		return nil, err
 16827  	}
 16828  	defer googleapi.CloseBody(res)
 16829  	if err := googleapi.CheckResponse(res); err != nil {
 16830  		return nil, gensupport.WrapError(err)
 16831  	}
 16832  	ret := &GoogleLongrunningOperation{
 16833  		ServerResponse: googleapi.ServerResponse{
 16834  			Header:         res.Header,
 16835  			HTTPStatusCode: res.StatusCode,
 16836  		},
 16837  	}
 16838  	target := &ret
 16839  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16840  		return nil, err
 16841  	}
 16842  	return ret, nil
 16843  }
 16844  
 16845  type ProjectsLocationsCollectionsDataStoresUserEventsCollectCall struct {
 16846  	s            *Service
 16847  	parent       string
 16848  	urlParams_   gensupport.URLParams
 16849  	ifNoneMatch_ string
 16850  	ctx_         context.Context
 16851  	header_      http.Header
 16852  }
 16853  
 16854  // Collect: Writes a single user event from the browser. This uses a GET
 16855  // request to due to browser restriction of POST-ing to a third-party domain.
 16856  // This method is used only by the Discovery Engine API JavaScript pixel and
 16857  // Google Tag Manager. Users should not call this method directly.
 16858  //
 16859  //   - parent: The parent DataStore resource name, such as
 16860  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16861  //     s/{data_store}`.
 16862  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16863  	c := &ProjectsLocationsCollectionsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16864  	c.parent = parent
 16865  	return c
 16866  }
 16867  
 16868  // Ets sets the optional parameter "ets": The event timestamp in milliseconds.
 16869  // This prevents browser caching of otherwise identical get requests. The name
 16870  // is abbreviated to reduce the payload bytes.
 16871  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16872  	c.urlParams_.Set("ets", fmt.Sprint(ets))
 16873  	return c
 16874  }
 16875  
 16876  // Uri sets the optional parameter "uri": The URL including cgi-parameters but
 16877  // excluding the hash fragment with a length limit of 5,000 characters. This is
 16878  // often more useful than the referer URL, because many browsers only send the
 16879  // domain for third-party requests.
 16880  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16881  	c.urlParams_.Set("uri", uri)
 16882  	return c
 16883  }
 16884  
 16885  // UserEvent sets the optional parameter "userEvent": Required. URL encoded
 16886  // UserEvent proto with a length limit of 2,000,000 characters.
 16887  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16888  	c.urlParams_.Set("userEvent", userEvent)
 16889  	return c
 16890  }
 16891  
 16892  // Fields allows partial responses to be retrieved. See
 16893  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16894  // details.
 16895  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16896  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16897  	return c
 16898  }
 16899  
 16900  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16901  // object's ETag matches the given value. This is useful for getting updates
 16902  // only after the object has changed since the last request.
 16903  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16904  	c.ifNoneMatch_ = entityTag
 16905  	return c
 16906  }
 16907  
 16908  // Context sets the context to be used in this call's Do method.
 16909  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 16910  	c.ctx_ = ctx
 16911  	return c
 16912  }
 16913  
 16914  // Header returns a http.Header that can be modified by the caller to add
 16915  // headers to the request.
 16916  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Header() http.Header {
 16917  	if c.header_ == nil {
 16918  		c.header_ = make(http.Header)
 16919  	}
 16920  	return c.header_
 16921  }
 16922  
 16923  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
 16924  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16925  	if c.ifNoneMatch_ != "" {
 16926  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16927  	}
 16928  	var body io.Reader = nil
 16929  	c.urlParams_.Set("alt", alt)
 16930  	c.urlParams_.Set("prettyPrint", "false")
 16931  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:collect")
 16932  	urls += "?" + c.urlParams_.Encode()
 16933  	req, err := http.NewRequest("GET", urls, body)
 16934  	if err != nil {
 16935  		return nil, err
 16936  	}
 16937  	req.Header = reqHeaders
 16938  	googleapi.Expand(req.URL, map[string]string{
 16939  		"parent": c.parent,
 16940  	})
 16941  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16942  }
 16943  
 16944  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.collect" call.
 16945  // Any non-2xx status code is an error. Response headers are in either
 16946  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 16947  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16948  // check whether the returned error was because http.StatusNotModified was
 16949  // returned.
 16950  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 16951  	gensupport.SetOptions(c.urlParams_, opts...)
 16952  	res, err := c.doRequest("json")
 16953  	if res != nil && res.StatusCode == http.StatusNotModified {
 16954  		if res.Body != nil {
 16955  			res.Body.Close()
 16956  		}
 16957  		return nil, gensupport.WrapError(&googleapi.Error{
 16958  			Code:   res.StatusCode,
 16959  			Header: res.Header,
 16960  		})
 16961  	}
 16962  	if err != nil {
 16963  		return nil, err
 16964  	}
 16965  	defer googleapi.CloseBody(res)
 16966  	if err := googleapi.CheckResponse(res); err != nil {
 16967  		return nil, gensupport.WrapError(err)
 16968  	}
 16969  	ret := &GoogleApiHttpBody{
 16970  		ServerResponse: googleapi.ServerResponse{
 16971  			Header:         res.Header,
 16972  			HTTPStatusCode: res.StatusCode,
 16973  		},
 16974  	}
 16975  	target := &ret
 16976  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16977  		return nil, err
 16978  	}
 16979  	return ret, nil
 16980  }
 16981  
 16982  type ProjectsLocationsCollectionsDataStoresUserEventsImportCall struct {
 16983  	s                                                   *Service
 16984  	parent                                              string
 16985  	googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest
 16986  	urlParams_                                          gensupport.URLParams
 16987  	ctx_                                                context.Context
 16988  	header_                                             http.Header
 16989  }
 16990  
 16991  // Import: Bulk import of User events. Request processing might be synchronous.
 16992  // Events that already exist are skipped. Use this method for backfilling
 16993  // historical user events. Operation.response is of type ImportResponse. Note
 16994  // that it is possible for a subset of the items to be successfully inserted.
 16995  // Operation.metadata is of type ImportMetadata.
 16996  //
 16997  //   - parent: Parent DataStore resource name, of the form
 16998  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16999  //     s/{data_store}`.
 17000  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 17001  	c := &ProjectsLocationsCollectionsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17002  	c.parent = parent
 17003  	c.googleclouddiscoveryenginev1importusereventsrequest = googleclouddiscoveryenginev1importusereventsrequest
 17004  	return c
 17005  }
 17006  
 17007  // Fields allows partial responses to be retrieved. See
 17008  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17009  // details.
 17010  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 17011  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17012  	return c
 17013  }
 17014  
 17015  // Context sets the context to be used in this call's Do method.
 17016  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 17017  	c.ctx_ = ctx
 17018  	return c
 17019  }
 17020  
 17021  // Header returns a http.Header that can be modified by the caller to add
 17022  // headers to the request.
 17023  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Header() http.Header {
 17024  	if c.header_ == nil {
 17025  		c.header_ = make(http.Header)
 17026  	}
 17027  	return c.header_
 17028  }
 17029  
 17030  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
 17031  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17032  	var body io.Reader = nil
 17033  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importusereventsrequest)
 17034  	if err != nil {
 17035  		return nil, err
 17036  	}
 17037  	c.urlParams_.Set("alt", alt)
 17038  	c.urlParams_.Set("prettyPrint", "false")
 17039  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:import")
 17040  	urls += "?" + c.urlParams_.Encode()
 17041  	req, err := http.NewRequest("POST", urls, body)
 17042  	if err != nil {
 17043  		return nil, err
 17044  	}
 17045  	req.Header = reqHeaders
 17046  	googleapi.Expand(req.URL, map[string]string{
 17047  		"parent": c.parent,
 17048  	})
 17049  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17050  }
 17051  
 17052  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.import" call.
 17053  // Any non-2xx status code is an error. Response headers are in either
 17054  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17055  // returned at all) in error.(*googleapi.Error).Header. Use
 17056  // googleapi.IsNotModified to check whether the returned error was because
 17057  // http.StatusNotModified was returned.
 17058  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17059  	gensupport.SetOptions(c.urlParams_, opts...)
 17060  	res, err := c.doRequest("json")
 17061  	if res != nil && res.StatusCode == http.StatusNotModified {
 17062  		if res.Body != nil {
 17063  			res.Body.Close()
 17064  		}
 17065  		return nil, gensupport.WrapError(&googleapi.Error{
 17066  			Code:   res.StatusCode,
 17067  			Header: res.Header,
 17068  		})
 17069  	}
 17070  	if err != nil {
 17071  		return nil, err
 17072  	}
 17073  	defer googleapi.CloseBody(res)
 17074  	if err := googleapi.CheckResponse(res); err != nil {
 17075  		return nil, gensupport.WrapError(err)
 17076  	}
 17077  	ret := &GoogleLongrunningOperation{
 17078  		ServerResponse: googleapi.ServerResponse{
 17079  			Header:         res.Header,
 17080  			HTTPStatusCode: res.StatusCode,
 17081  		},
 17082  	}
 17083  	target := &ret
 17084  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17085  		return nil, err
 17086  	}
 17087  	return ret, nil
 17088  }
 17089  
 17090  type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct {
 17091  	s                                     *Service
 17092  	parent                                string
 17093  	googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent
 17094  	urlParams_                            gensupport.URLParams
 17095  	ctx_                                  context.Context
 17096  	header_                               http.Header
 17097  }
 17098  
 17099  // Write: Writes a single user event.
 17100  //
 17101  //   - parent: The parent resource name. If the write user event action is
 17102  //     applied in DataStore level, the format is:
 17103  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 17104  //     s/{data_store}`. If the write user event action is applied in Location
 17105  //     level, for example, the event with Document across multiple DataStore, the
 17106  //     format is: `projects/{project}/locations/{location}`.
 17107  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 17108  	c := &ProjectsLocationsCollectionsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17109  	c.parent = parent
 17110  	c.googleclouddiscoveryenginev1userevent = googleclouddiscoveryenginev1userevent
 17111  	return c
 17112  }
 17113  
 17114  // Fields allows partial responses to be retrieved. See
 17115  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17116  // details.
 17117  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 17118  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17119  	return c
 17120  }
 17121  
 17122  // Context sets the context to be used in this call's Do method.
 17123  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 17124  	c.ctx_ = ctx
 17125  	return c
 17126  }
 17127  
 17128  // Header returns a http.Header that can be modified by the caller to add
 17129  // headers to the request.
 17130  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Header() http.Header {
 17131  	if c.header_ == nil {
 17132  		c.header_ = make(http.Header)
 17133  	}
 17134  	return c.header_
 17135  }
 17136  
 17137  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 17138  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17139  	var body io.Reader = nil
 17140  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1userevent)
 17141  	if err != nil {
 17142  		return nil, err
 17143  	}
 17144  	c.urlParams_.Set("alt", alt)
 17145  	c.urlParams_.Set("prettyPrint", "false")
 17146  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:write")
 17147  	urls += "?" + c.urlParams_.Encode()
 17148  	req, err := http.NewRequest("POST", urls, body)
 17149  	if err != nil {
 17150  		return nil, err
 17151  	}
 17152  	req.Header = reqHeaders
 17153  	googleapi.Expand(req.URL, map[string]string{
 17154  		"parent": c.parent,
 17155  	})
 17156  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17157  }
 17158  
 17159  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.write" call.
 17160  // Any non-2xx status code is an error. Response headers are in either
 17161  // *GoogleCloudDiscoveryengineV1UserEvent.ServerResponse.Header or (if a
 17162  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17163  // googleapi.IsNotModified to check whether the returned error was because
 17164  // http.StatusNotModified was returned.
 17165  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1UserEvent, error) {
 17166  	gensupport.SetOptions(c.urlParams_, opts...)
 17167  	res, err := c.doRequest("json")
 17168  	if res != nil && res.StatusCode == http.StatusNotModified {
 17169  		if res.Body != nil {
 17170  			res.Body.Close()
 17171  		}
 17172  		return nil, gensupport.WrapError(&googleapi.Error{
 17173  			Code:   res.StatusCode,
 17174  			Header: res.Header,
 17175  		})
 17176  	}
 17177  	if err != nil {
 17178  		return nil, err
 17179  	}
 17180  	defer googleapi.CloseBody(res)
 17181  	if err := googleapi.CheckResponse(res); err != nil {
 17182  		return nil, gensupport.WrapError(err)
 17183  	}
 17184  	ret := &GoogleCloudDiscoveryengineV1UserEvent{
 17185  		ServerResponse: googleapi.ServerResponse{
 17186  			Header:         res.Header,
 17187  			HTTPStatusCode: res.StatusCode,
 17188  		},
 17189  	}
 17190  	target := &ret
 17191  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17192  		return nil, err
 17193  	}
 17194  	return ret, nil
 17195  }
 17196  
 17197  type ProjectsLocationsCollectionsEnginesCreateCall struct {
 17198  	s                                  *Service
 17199  	parent                             string
 17200  	googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine
 17201  	urlParams_                         gensupport.URLParams
 17202  	ctx_                               context.Context
 17203  	header_                            http.Header
 17204  }
 17205  
 17206  // Create: Creates a Engine.
 17207  //
 17208  //   - parent: The parent resource name, such as
 17209  //     `projects/{project}/locations/{location}/collections/{collection}`.
 17210  func (r *ProjectsLocationsCollectionsEnginesService) Create(parent string, googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine) *ProjectsLocationsCollectionsEnginesCreateCall {
 17211  	c := &ProjectsLocationsCollectionsEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17212  	c.parent = parent
 17213  	c.googleclouddiscoveryenginev1engine = googleclouddiscoveryenginev1engine
 17214  	return c
 17215  }
 17216  
 17217  // EngineId sets the optional parameter "engineId": Required. The ID to use for
 17218  // the Engine, which will become the final component of the Engine's resource
 17219  // name. This field must conform to RFC-1034
 17220  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 17221  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 17222  func (c *ProjectsLocationsCollectionsEnginesCreateCall) EngineId(engineId string) *ProjectsLocationsCollectionsEnginesCreateCall {
 17223  	c.urlParams_.Set("engineId", engineId)
 17224  	return c
 17225  }
 17226  
 17227  // Fields allows partial responses to be retrieved. See
 17228  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17229  // details.
 17230  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesCreateCall {
 17231  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17232  	return c
 17233  }
 17234  
 17235  // Context sets the context to be used in this call's Do method.
 17236  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesCreateCall {
 17237  	c.ctx_ = ctx
 17238  	return c
 17239  }
 17240  
 17241  // Header returns a http.Header that can be modified by the caller to add
 17242  // headers to the request.
 17243  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Header() http.Header {
 17244  	if c.header_ == nil {
 17245  		c.header_ = make(http.Header)
 17246  	}
 17247  	return c.header_
 17248  }
 17249  
 17250  func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (*http.Response, error) {
 17251  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17252  	var body io.Reader = nil
 17253  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1engine)
 17254  	if err != nil {
 17255  		return nil, err
 17256  	}
 17257  	c.urlParams_.Set("alt", alt)
 17258  	c.urlParams_.Set("prettyPrint", "false")
 17259  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/engines")
 17260  	urls += "?" + c.urlParams_.Encode()
 17261  	req, err := http.NewRequest("POST", urls, body)
 17262  	if err != nil {
 17263  		return nil, err
 17264  	}
 17265  	req.Header = reqHeaders
 17266  	googleapi.Expand(req.URL, map[string]string{
 17267  		"parent": c.parent,
 17268  	})
 17269  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17270  }
 17271  
 17272  // Do executes the "discoveryengine.projects.locations.collections.engines.create" call.
 17273  // Any non-2xx status code is an error. Response headers are in either
 17274  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17275  // returned at all) in error.(*googleapi.Error).Header. Use
 17276  // googleapi.IsNotModified to check whether the returned error was because
 17277  // http.StatusNotModified was returned.
 17278  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17279  	gensupport.SetOptions(c.urlParams_, opts...)
 17280  	res, err := c.doRequest("json")
 17281  	if res != nil && res.StatusCode == http.StatusNotModified {
 17282  		if res.Body != nil {
 17283  			res.Body.Close()
 17284  		}
 17285  		return nil, gensupport.WrapError(&googleapi.Error{
 17286  			Code:   res.StatusCode,
 17287  			Header: res.Header,
 17288  		})
 17289  	}
 17290  	if err != nil {
 17291  		return nil, err
 17292  	}
 17293  	defer googleapi.CloseBody(res)
 17294  	if err := googleapi.CheckResponse(res); err != nil {
 17295  		return nil, gensupport.WrapError(err)
 17296  	}
 17297  	ret := &GoogleLongrunningOperation{
 17298  		ServerResponse: googleapi.ServerResponse{
 17299  			Header:         res.Header,
 17300  			HTTPStatusCode: res.StatusCode,
 17301  		},
 17302  	}
 17303  	target := &ret
 17304  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17305  		return nil, err
 17306  	}
 17307  	return ret, nil
 17308  }
 17309  
 17310  type ProjectsLocationsCollectionsEnginesDeleteCall struct {
 17311  	s          *Service
 17312  	name       string
 17313  	urlParams_ gensupport.URLParams
 17314  	ctx_       context.Context
 17315  	header_    http.Header
 17316  }
 17317  
 17318  // Delete: Deletes a Engine.
 17319  //
 17320  //   - name: Full resource name of Engine, such as
 17321  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 17322  //     s/{engine_id}`. If the caller does not have permission to delete the
 17323  //     Engine, regardless of whether or not it exists, a PERMISSION_DENIED error
 17324  //     is returned. If the Engine to delete does not exist, a NOT_FOUND error is
 17325  //     returned.
 17326  func (r *ProjectsLocationsCollectionsEnginesService) Delete(name string) *ProjectsLocationsCollectionsEnginesDeleteCall {
 17327  	c := &ProjectsLocationsCollectionsEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17328  	c.name = name
 17329  	return c
 17330  }
 17331  
 17332  // Fields allows partial responses to be retrieved. See
 17333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17334  // details.
 17335  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesDeleteCall {
 17336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17337  	return c
 17338  }
 17339  
 17340  // Context sets the context to be used in this call's Do method.
 17341  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesDeleteCall {
 17342  	c.ctx_ = ctx
 17343  	return c
 17344  }
 17345  
 17346  // Header returns a http.Header that can be modified by the caller to add
 17347  // headers to the request.
 17348  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Header() http.Header {
 17349  	if c.header_ == nil {
 17350  		c.header_ = make(http.Header)
 17351  	}
 17352  	return c.header_
 17353  }
 17354  
 17355  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (*http.Response, error) {
 17356  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17357  	var body io.Reader = nil
 17358  	c.urlParams_.Set("alt", alt)
 17359  	c.urlParams_.Set("prettyPrint", "false")
 17360  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17361  	urls += "?" + c.urlParams_.Encode()
 17362  	req, err := http.NewRequest("DELETE", urls, body)
 17363  	if err != nil {
 17364  		return nil, err
 17365  	}
 17366  	req.Header = reqHeaders
 17367  	googleapi.Expand(req.URL, map[string]string{
 17368  		"name": c.name,
 17369  	})
 17370  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17371  }
 17372  
 17373  // Do executes the "discoveryengine.projects.locations.collections.engines.delete" call.
 17374  // Any non-2xx status code is an error. Response headers are in either
 17375  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17376  // returned at all) in error.(*googleapi.Error).Header. Use
 17377  // googleapi.IsNotModified to check whether the returned error was because
 17378  // http.StatusNotModified was returned.
 17379  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17380  	gensupport.SetOptions(c.urlParams_, opts...)
 17381  	res, err := c.doRequest("json")
 17382  	if res != nil && res.StatusCode == http.StatusNotModified {
 17383  		if res.Body != nil {
 17384  			res.Body.Close()
 17385  		}
 17386  		return nil, gensupport.WrapError(&googleapi.Error{
 17387  			Code:   res.StatusCode,
 17388  			Header: res.Header,
 17389  		})
 17390  	}
 17391  	if err != nil {
 17392  		return nil, err
 17393  	}
 17394  	defer googleapi.CloseBody(res)
 17395  	if err := googleapi.CheckResponse(res); err != nil {
 17396  		return nil, gensupport.WrapError(err)
 17397  	}
 17398  	ret := &GoogleLongrunningOperation{
 17399  		ServerResponse: googleapi.ServerResponse{
 17400  			Header:         res.Header,
 17401  			HTTPStatusCode: res.StatusCode,
 17402  		},
 17403  	}
 17404  	target := &ret
 17405  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17406  		return nil, err
 17407  	}
 17408  	return ret, nil
 17409  }
 17410  
 17411  type ProjectsLocationsCollectionsEnginesGetCall struct {
 17412  	s            *Service
 17413  	name         string
 17414  	urlParams_   gensupport.URLParams
 17415  	ifNoneMatch_ string
 17416  	ctx_         context.Context
 17417  	header_      http.Header
 17418  }
 17419  
 17420  // Get: Gets a Engine.
 17421  //
 17422  //   - name: Full resource name of Engine, such as
 17423  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 17424  //     s/{engine_id}`.
 17425  func (r *ProjectsLocationsCollectionsEnginesService) Get(name string) *ProjectsLocationsCollectionsEnginesGetCall {
 17426  	c := &ProjectsLocationsCollectionsEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17427  	c.name = name
 17428  	return c
 17429  }
 17430  
 17431  // Fields allows partial responses to be retrieved. See
 17432  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17433  // details.
 17434  func (c *ProjectsLocationsCollectionsEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesGetCall {
 17435  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17436  	return c
 17437  }
 17438  
 17439  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17440  // object's ETag matches the given value. This is useful for getting updates
 17441  // only after the object has changed since the last request.
 17442  func (c *ProjectsLocationsCollectionsEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesGetCall {
 17443  	c.ifNoneMatch_ = entityTag
 17444  	return c
 17445  }
 17446  
 17447  // Context sets the context to be used in this call's Do method.
 17448  func (c *ProjectsLocationsCollectionsEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesGetCall {
 17449  	c.ctx_ = ctx
 17450  	return c
 17451  }
 17452  
 17453  // Header returns a http.Header that can be modified by the caller to add
 17454  // headers to the request.
 17455  func (c *ProjectsLocationsCollectionsEnginesGetCall) Header() http.Header {
 17456  	if c.header_ == nil {
 17457  		c.header_ = make(http.Header)
 17458  	}
 17459  	return c.header_
 17460  }
 17461  
 17462  func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*http.Response, error) {
 17463  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17464  	if c.ifNoneMatch_ != "" {
 17465  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17466  	}
 17467  	var body io.Reader = nil
 17468  	c.urlParams_.Set("alt", alt)
 17469  	c.urlParams_.Set("prettyPrint", "false")
 17470  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17471  	urls += "?" + c.urlParams_.Encode()
 17472  	req, err := http.NewRequest("GET", urls, body)
 17473  	if err != nil {
 17474  		return nil, err
 17475  	}
 17476  	req.Header = reqHeaders
 17477  	googleapi.Expand(req.URL, map[string]string{
 17478  		"name": c.name,
 17479  	})
 17480  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17481  }
 17482  
 17483  // Do executes the "discoveryengine.projects.locations.collections.engines.get" call.
 17484  // Any non-2xx status code is an error. Response headers are in either
 17485  // *GoogleCloudDiscoveryengineV1Engine.ServerResponse.Header or (if a response
 17486  // was returned at all) in error.(*googleapi.Error).Header. Use
 17487  // googleapi.IsNotModified to check whether the returned error was because
 17488  // http.StatusNotModified was returned.
 17489  func (c *ProjectsLocationsCollectionsEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Engine, error) {
 17490  	gensupport.SetOptions(c.urlParams_, opts...)
 17491  	res, err := c.doRequest("json")
 17492  	if res != nil && res.StatusCode == http.StatusNotModified {
 17493  		if res.Body != nil {
 17494  			res.Body.Close()
 17495  		}
 17496  		return nil, gensupport.WrapError(&googleapi.Error{
 17497  			Code:   res.StatusCode,
 17498  			Header: res.Header,
 17499  		})
 17500  	}
 17501  	if err != nil {
 17502  		return nil, err
 17503  	}
 17504  	defer googleapi.CloseBody(res)
 17505  	if err := googleapi.CheckResponse(res); err != nil {
 17506  		return nil, gensupport.WrapError(err)
 17507  	}
 17508  	ret := &GoogleCloudDiscoveryengineV1Engine{
 17509  		ServerResponse: googleapi.ServerResponse{
 17510  			Header:         res.Header,
 17511  			HTTPStatusCode: res.StatusCode,
 17512  		},
 17513  	}
 17514  	target := &ret
 17515  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17516  		return nil, err
 17517  	}
 17518  	return ret, nil
 17519  }
 17520  
 17521  type ProjectsLocationsCollectionsEnginesListCall struct {
 17522  	s            *Service
 17523  	parent       string
 17524  	urlParams_   gensupport.URLParams
 17525  	ifNoneMatch_ string
 17526  	ctx_         context.Context
 17527  	header_      http.Header
 17528  }
 17529  
 17530  // List: Lists all the Engines associated with the project.
 17531  //
 17532  //   - parent: The parent resource name, such as
 17533  //     `projects/{project}/locations/{location}/collections/{collection_id}`.
 17534  func (r *ProjectsLocationsCollectionsEnginesService) List(parent string) *ProjectsLocationsCollectionsEnginesListCall {
 17535  	c := &ProjectsLocationsCollectionsEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17536  	c.parent = parent
 17537  	return c
 17538  }
 17539  
 17540  // Filter sets the optional parameter "filter": Filter by solution type. For
 17541  // example: solution_type=SOLUTION_TYPE_SEARCH
 17542  func (c *ProjectsLocationsCollectionsEnginesListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesListCall {
 17543  	c.urlParams_.Set("filter", filter)
 17544  	return c
 17545  }
 17546  
 17547  // PageSize sets the optional parameter "pageSize": Not supported.
 17548  func (c *ProjectsLocationsCollectionsEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesListCall {
 17549  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17550  	return c
 17551  }
 17552  
 17553  // PageToken sets the optional parameter "pageToken": Not supported.
 17554  func (c *ProjectsLocationsCollectionsEnginesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesListCall {
 17555  	c.urlParams_.Set("pageToken", pageToken)
 17556  	return c
 17557  }
 17558  
 17559  // Fields allows partial responses to be retrieved. See
 17560  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17561  // details.
 17562  func (c *ProjectsLocationsCollectionsEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesListCall {
 17563  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17564  	return c
 17565  }
 17566  
 17567  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17568  // object's ETag matches the given value. This is useful for getting updates
 17569  // only after the object has changed since the last request.
 17570  func (c *ProjectsLocationsCollectionsEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesListCall {
 17571  	c.ifNoneMatch_ = entityTag
 17572  	return c
 17573  }
 17574  
 17575  // Context sets the context to be used in this call's Do method.
 17576  func (c *ProjectsLocationsCollectionsEnginesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesListCall {
 17577  	c.ctx_ = ctx
 17578  	return c
 17579  }
 17580  
 17581  // Header returns a http.Header that can be modified by the caller to add
 17582  // headers to the request.
 17583  func (c *ProjectsLocationsCollectionsEnginesListCall) Header() http.Header {
 17584  	if c.header_ == nil {
 17585  		c.header_ = make(http.Header)
 17586  	}
 17587  	return c.header_
 17588  }
 17589  
 17590  func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*http.Response, error) {
 17591  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17592  	if c.ifNoneMatch_ != "" {
 17593  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17594  	}
 17595  	var body io.Reader = nil
 17596  	c.urlParams_.Set("alt", alt)
 17597  	c.urlParams_.Set("prettyPrint", "false")
 17598  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/engines")
 17599  	urls += "?" + c.urlParams_.Encode()
 17600  	req, err := http.NewRequest("GET", urls, body)
 17601  	if err != nil {
 17602  		return nil, err
 17603  	}
 17604  	req.Header = reqHeaders
 17605  	googleapi.Expand(req.URL, map[string]string{
 17606  		"parent": c.parent,
 17607  	})
 17608  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17609  }
 17610  
 17611  // Do executes the "discoveryengine.projects.locations.collections.engines.list" call.
 17612  // Any non-2xx status code is an error. Response headers are in either
 17613  // *GoogleCloudDiscoveryengineV1ListEnginesResponse.ServerResponse.Header or
 17614  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 17615  // googleapi.IsNotModified to check whether the returned error was because
 17616  // http.StatusNotModified was returned.
 17617  func (c *ProjectsLocationsCollectionsEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListEnginesResponse, error) {
 17618  	gensupport.SetOptions(c.urlParams_, opts...)
 17619  	res, err := c.doRequest("json")
 17620  	if res != nil && res.StatusCode == http.StatusNotModified {
 17621  		if res.Body != nil {
 17622  			res.Body.Close()
 17623  		}
 17624  		return nil, gensupport.WrapError(&googleapi.Error{
 17625  			Code:   res.StatusCode,
 17626  			Header: res.Header,
 17627  		})
 17628  	}
 17629  	if err != nil {
 17630  		return nil, err
 17631  	}
 17632  	defer googleapi.CloseBody(res)
 17633  	if err := googleapi.CheckResponse(res); err != nil {
 17634  		return nil, gensupport.WrapError(err)
 17635  	}
 17636  	ret := &GoogleCloudDiscoveryengineV1ListEnginesResponse{
 17637  		ServerResponse: googleapi.ServerResponse{
 17638  			Header:         res.Header,
 17639  			HTTPStatusCode: res.StatusCode,
 17640  		},
 17641  	}
 17642  	target := &ret
 17643  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17644  		return nil, err
 17645  	}
 17646  	return ret, nil
 17647  }
 17648  
 17649  // Pages invokes f for each page of results.
 17650  // A non-nil error returned from f will halt the iteration.
 17651  // The provided context supersedes any context provided to the Context method.
 17652  func (c *ProjectsLocationsCollectionsEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListEnginesResponse) error) error {
 17653  	c.ctx_ = ctx
 17654  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17655  	for {
 17656  		x, err := c.Do()
 17657  		if err != nil {
 17658  			return err
 17659  		}
 17660  		if err := f(x); err != nil {
 17661  			return err
 17662  		}
 17663  		if x.NextPageToken == "" {
 17664  			return nil
 17665  		}
 17666  		c.PageToken(x.NextPageToken)
 17667  	}
 17668  }
 17669  
 17670  type ProjectsLocationsCollectionsEnginesPatchCall struct {
 17671  	s                                  *Service
 17672  	name                               string
 17673  	googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine
 17674  	urlParams_                         gensupport.URLParams
 17675  	ctx_                               context.Context
 17676  	header_                            http.Header
 17677  }
 17678  
 17679  // Patch: Updates an Engine
 17680  //
 17681  //   - name: Immutable. The fully qualified resource name of the engine. This
 17682  //     field must be a UTF-8 encoded string with a length limit of 1024
 17683  //     characters. Format:
 17684  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 17685  //     gines/{engine}` engine should be 1-63 characters, and valid characters are
 17686  //     /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
 17687  func (r *ProjectsLocationsCollectionsEnginesService) Patch(name string, googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine) *ProjectsLocationsCollectionsEnginesPatchCall {
 17688  	c := &ProjectsLocationsCollectionsEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17689  	c.name = name
 17690  	c.googleclouddiscoveryenginev1engine = googleclouddiscoveryenginev1engine
 17691  	return c
 17692  }
 17693  
 17694  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 17695  // in the provided Engine to update. If an unsupported or unknown field is
 17696  // provided, an INVALID_ARGUMENT error is returned.
 17697  func (c *ProjectsLocationsCollectionsEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesPatchCall {
 17698  	c.urlParams_.Set("updateMask", updateMask)
 17699  	return c
 17700  }
 17701  
 17702  // Fields allows partial responses to be retrieved. See
 17703  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17704  // details.
 17705  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPatchCall {
 17706  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17707  	return c
 17708  }
 17709  
 17710  // Context sets the context to be used in this call's Do method.
 17711  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPatchCall {
 17712  	c.ctx_ = ctx
 17713  	return c
 17714  }
 17715  
 17716  // Header returns a http.Header that can be modified by the caller to add
 17717  // headers to the request.
 17718  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Header() http.Header {
 17719  	if c.header_ == nil {
 17720  		c.header_ = make(http.Header)
 17721  	}
 17722  	return c.header_
 17723  }
 17724  
 17725  func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*http.Response, error) {
 17726  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17727  	var body io.Reader = nil
 17728  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1engine)
 17729  	if err != nil {
 17730  		return nil, err
 17731  	}
 17732  	c.urlParams_.Set("alt", alt)
 17733  	c.urlParams_.Set("prettyPrint", "false")
 17734  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17735  	urls += "?" + c.urlParams_.Encode()
 17736  	req, err := http.NewRequest("PATCH", urls, body)
 17737  	if err != nil {
 17738  		return nil, err
 17739  	}
 17740  	req.Header = reqHeaders
 17741  	googleapi.Expand(req.URL, map[string]string{
 17742  		"name": c.name,
 17743  	})
 17744  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17745  }
 17746  
 17747  // Do executes the "discoveryengine.projects.locations.collections.engines.patch" call.
 17748  // Any non-2xx status code is an error. Response headers are in either
 17749  // *GoogleCloudDiscoveryengineV1Engine.ServerResponse.Header or (if a response
 17750  // was returned at all) in error.(*googleapi.Error).Header. Use
 17751  // googleapi.IsNotModified to check whether the returned error was because
 17752  // http.StatusNotModified was returned.
 17753  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Engine, error) {
 17754  	gensupport.SetOptions(c.urlParams_, opts...)
 17755  	res, err := c.doRequest("json")
 17756  	if res != nil && res.StatusCode == http.StatusNotModified {
 17757  		if res.Body != nil {
 17758  			res.Body.Close()
 17759  		}
 17760  		return nil, gensupport.WrapError(&googleapi.Error{
 17761  			Code:   res.StatusCode,
 17762  			Header: res.Header,
 17763  		})
 17764  	}
 17765  	if err != nil {
 17766  		return nil, err
 17767  	}
 17768  	defer googleapi.CloseBody(res)
 17769  	if err := googleapi.CheckResponse(res); err != nil {
 17770  		return nil, gensupport.WrapError(err)
 17771  	}
 17772  	ret := &GoogleCloudDiscoveryengineV1Engine{
 17773  		ServerResponse: googleapi.ServerResponse{
 17774  			Header:         res.Header,
 17775  			HTTPStatusCode: res.StatusCode,
 17776  		},
 17777  	}
 17778  	target := &ret
 17779  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17780  		return nil, err
 17781  	}
 17782  	return ret, nil
 17783  }
 17784  
 17785  type ProjectsLocationsCollectionsEnginesConversationsConverseCall struct {
 17786  	s                                                       *Service
 17787  	name                                                    string
 17788  	googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest
 17789  	urlParams_                                              gensupport.URLParams
 17790  	ctx_                                                    context.Context
 17791  	header_                                                 http.Header
 17792  }
 17793  
 17794  // Converse: Converses a conversation.
 17795  //
 17796  //   - name: The resource name of the Conversation to get. Format:
 17797  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 17798  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 17799  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 17800  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 17801  //     mode, which automatically creates a new conversation inside a
 17802  //     ConverseConversation session.
 17803  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Converse(name string, googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 17804  	c := &ProjectsLocationsCollectionsEnginesConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17805  	c.name = name
 17806  	c.googleclouddiscoveryenginev1converseconversationrequest = googleclouddiscoveryenginev1converseconversationrequest
 17807  	return c
 17808  }
 17809  
 17810  // Fields allows partial responses to be retrieved. See
 17811  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17812  // details.
 17813  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 17814  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17815  	return c
 17816  }
 17817  
 17818  // Context sets the context to be used in this call's Do method.
 17819  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 17820  	c.ctx_ = ctx
 17821  	return c
 17822  }
 17823  
 17824  // Header returns a http.Header that can be modified by the caller to add
 17825  // headers to the request.
 17826  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Header() http.Header {
 17827  	if c.header_ == nil {
 17828  		c.header_ = make(http.Header)
 17829  	}
 17830  	return c.header_
 17831  }
 17832  
 17833  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 17834  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17835  	var body io.Reader = nil
 17836  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1converseconversationrequest)
 17837  	if err != nil {
 17838  		return nil, err
 17839  	}
 17840  	c.urlParams_.Set("alt", alt)
 17841  	c.urlParams_.Set("prettyPrint", "false")
 17842  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:converse")
 17843  	urls += "?" + c.urlParams_.Encode()
 17844  	req, err := http.NewRequest("POST", urls, body)
 17845  	if err != nil {
 17846  		return nil, err
 17847  	}
 17848  	req.Header = reqHeaders
 17849  	googleapi.Expand(req.URL, map[string]string{
 17850  		"name": c.name,
 17851  	})
 17852  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17853  }
 17854  
 17855  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.converse" call.
 17856  // Any non-2xx status code is an error. Response headers are in either
 17857  // *GoogleCloudDiscoveryengineV1ConverseConversationResponse.ServerResponse.Head
 17858  // er or (if a response was returned at all) in
 17859  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17860  // whether the returned error was because http.StatusNotModified was returned.
 17861  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ConverseConversationResponse, error) {
 17862  	gensupport.SetOptions(c.urlParams_, opts...)
 17863  	res, err := c.doRequest("json")
 17864  	if res != nil && res.StatusCode == http.StatusNotModified {
 17865  		if res.Body != nil {
 17866  			res.Body.Close()
 17867  		}
 17868  		return nil, gensupport.WrapError(&googleapi.Error{
 17869  			Code:   res.StatusCode,
 17870  			Header: res.Header,
 17871  		})
 17872  	}
 17873  	if err != nil {
 17874  		return nil, err
 17875  	}
 17876  	defer googleapi.CloseBody(res)
 17877  	if err := googleapi.CheckResponse(res); err != nil {
 17878  		return nil, gensupport.WrapError(err)
 17879  	}
 17880  	ret := &GoogleCloudDiscoveryengineV1ConverseConversationResponse{
 17881  		ServerResponse: googleapi.ServerResponse{
 17882  			Header:         res.Header,
 17883  			HTTPStatusCode: res.StatusCode,
 17884  		},
 17885  	}
 17886  	target := &ret
 17887  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17888  		return nil, err
 17889  	}
 17890  	return ret, nil
 17891  }
 17892  
 17893  type ProjectsLocationsCollectionsEnginesConversationsCreateCall struct {
 17894  	s                                        *Service
 17895  	parent                                   string
 17896  	googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
 17897  	urlParams_                               gensupport.URLParams
 17898  	ctx_                                     context.Context
 17899  	header_                                  http.Header
 17900  }
 17901  
 17902  // Create: Creates a Conversation. If the Conversation to create already
 17903  // exists, an ALREADY_EXISTS error is returned.
 17904  //
 17905  //   - parent: Full resource name of parent data store. Format:
 17906  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 17907  //     /dataStores/{data_store_id}`.
 17908  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Create(parent string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 17909  	c := &ProjectsLocationsCollectionsEnginesConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17910  	c.parent = parent
 17911  	c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
 17912  	return c
 17913  }
 17914  
 17915  // Fields allows partial responses to be retrieved. See
 17916  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17917  // details.
 17918  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 17919  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17920  	return c
 17921  }
 17922  
 17923  // Context sets the context to be used in this call's Do method.
 17924  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 17925  	c.ctx_ = ctx
 17926  	return c
 17927  }
 17928  
 17929  // Header returns a http.Header that can be modified by the caller to add
 17930  // headers to the request.
 17931  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Header() http.Header {
 17932  	if c.header_ == nil {
 17933  		c.header_ = make(http.Header)
 17934  	}
 17935  	return c.header_
 17936  }
 17937  
 17938  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 17939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17940  	var body io.Reader = nil
 17941  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
 17942  	if err != nil {
 17943  		return nil, err
 17944  	}
 17945  	c.urlParams_.Set("alt", alt)
 17946  	c.urlParams_.Set("prettyPrint", "false")
 17947  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
 17948  	urls += "?" + c.urlParams_.Encode()
 17949  	req, err := http.NewRequest("POST", urls, body)
 17950  	if err != nil {
 17951  		return nil, err
 17952  	}
 17953  	req.Header = reqHeaders
 17954  	googleapi.Expand(req.URL, map[string]string{
 17955  		"parent": c.parent,
 17956  	})
 17957  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17958  }
 17959  
 17960  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.create" call.
 17961  // Any non-2xx status code is an error. Response headers are in either
 17962  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 17963  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17964  // googleapi.IsNotModified to check whether the returned error was because
 17965  // http.StatusNotModified was returned.
 17966  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 17967  	gensupport.SetOptions(c.urlParams_, opts...)
 17968  	res, err := c.doRequest("json")
 17969  	if res != nil && res.StatusCode == http.StatusNotModified {
 17970  		if res.Body != nil {
 17971  			res.Body.Close()
 17972  		}
 17973  		return nil, gensupport.WrapError(&googleapi.Error{
 17974  			Code:   res.StatusCode,
 17975  			Header: res.Header,
 17976  		})
 17977  	}
 17978  	if err != nil {
 17979  		return nil, err
 17980  	}
 17981  	defer googleapi.CloseBody(res)
 17982  	if err := googleapi.CheckResponse(res); err != nil {
 17983  		return nil, gensupport.WrapError(err)
 17984  	}
 17985  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 17986  		ServerResponse: googleapi.ServerResponse{
 17987  			Header:         res.Header,
 17988  			HTTPStatusCode: res.StatusCode,
 17989  		},
 17990  	}
 17991  	target := &ret
 17992  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17993  		return nil, err
 17994  	}
 17995  	return ret, nil
 17996  }
 17997  
 17998  type ProjectsLocationsCollectionsEnginesConversationsDeleteCall struct {
 17999  	s          *Service
 18000  	name       string
 18001  	urlParams_ gensupport.URLParams
 18002  	ctx_       context.Context
 18003  	header_    http.Header
 18004  }
 18005  
 18006  // Delete: Deletes a Conversation. If the Conversation to delete does not
 18007  // exist, a NOT_FOUND error is returned.
 18008  //
 18009  //   - name: The resource name of the Conversation to delete. Format:
 18010  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 18011  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 18012  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Delete(name string) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 18013  	c := &ProjectsLocationsCollectionsEnginesConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18014  	c.name = name
 18015  	return c
 18016  }
 18017  
 18018  // Fields allows partial responses to be retrieved. See
 18019  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18020  // details.
 18021  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 18022  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18023  	return c
 18024  }
 18025  
 18026  // Context sets the context to be used in this call's Do method.
 18027  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 18028  	c.ctx_ = ctx
 18029  	return c
 18030  }
 18031  
 18032  // Header returns a http.Header that can be modified by the caller to add
 18033  // headers to the request.
 18034  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Header() http.Header {
 18035  	if c.header_ == nil {
 18036  		c.header_ = make(http.Header)
 18037  	}
 18038  	return c.header_
 18039  }
 18040  
 18041  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 18042  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18043  	var body io.Reader = nil
 18044  	c.urlParams_.Set("alt", alt)
 18045  	c.urlParams_.Set("prettyPrint", "false")
 18046  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18047  	urls += "?" + c.urlParams_.Encode()
 18048  	req, err := http.NewRequest("DELETE", urls, body)
 18049  	if err != nil {
 18050  		return nil, err
 18051  	}
 18052  	req.Header = reqHeaders
 18053  	googleapi.Expand(req.URL, map[string]string{
 18054  		"name": c.name,
 18055  	})
 18056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18057  }
 18058  
 18059  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.delete" call.
 18060  // Any non-2xx status code is an error. Response headers are in either
 18061  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 18062  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18063  // check whether the returned error was because http.StatusNotModified was
 18064  // returned.
 18065  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 18066  	gensupport.SetOptions(c.urlParams_, opts...)
 18067  	res, err := c.doRequest("json")
 18068  	if res != nil && res.StatusCode == http.StatusNotModified {
 18069  		if res.Body != nil {
 18070  			res.Body.Close()
 18071  		}
 18072  		return nil, gensupport.WrapError(&googleapi.Error{
 18073  			Code:   res.StatusCode,
 18074  			Header: res.Header,
 18075  		})
 18076  	}
 18077  	if err != nil {
 18078  		return nil, err
 18079  	}
 18080  	defer googleapi.CloseBody(res)
 18081  	if err := googleapi.CheckResponse(res); err != nil {
 18082  		return nil, gensupport.WrapError(err)
 18083  	}
 18084  	ret := &GoogleProtobufEmpty{
 18085  		ServerResponse: googleapi.ServerResponse{
 18086  			Header:         res.Header,
 18087  			HTTPStatusCode: res.StatusCode,
 18088  		},
 18089  	}
 18090  	target := &ret
 18091  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18092  		return nil, err
 18093  	}
 18094  	return ret, nil
 18095  }
 18096  
 18097  type ProjectsLocationsCollectionsEnginesConversationsGetCall struct {
 18098  	s            *Service
 18099  	name         string
 18100  	urlParams_   gensupport.URLParams
 18101  	ifNoneMatch_ string
 18102  	ctx_         context.Context
 18103  	header_      http.Header
 18104  }
 18105  
 18106  // Get: Gets a Conversation.
 18107  //
 18108  //   - name: The resource name of the Conversation to get. Format:
 18109  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 18110  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 18111  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Get(name string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 18112  	c := &ProjectsLocationsCollectionsEnginesConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18113  	c.name = name
 18114  	return c
 18115  }
 18116  
 18117  // Fields allows partial responses to be retrieved. See
 18118  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18119  // details.
 18120  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 18121  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18122  	return c
 18123  }
 18124  
 18125  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18126  // object's ETag matches the given value. This is useful for getting updates
 18127  // only after the object has changed since the last request.
 18128  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 18129  	c.ifNoneMatch_ = entityTag
 18130  	return c
 18131  }
 18132  
 18133  // Context sets the context to be used in this call's Do method.
 18134  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 18135  	c.ctx_ = ctx
 18136  	return c
 18137  }
 18138  
 18139  // Header returns a http.Header that can be modified by the caller to add
 18140  // headers to the request.
 18141  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Header() http.Header {
 18142  	if c.header_ == nil {
 18143  		c.header_ = make(http.Header)
 18144  	}
 18145  	return c.header_
 18146  }
 18147  
 18148  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 18149  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18150  	if c.ifNoneMatch_ != "" {
 18151  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18152  	}
 18153  	var body io.Reader = nil
 18154  	c.urlParams_.Set("alt", alt)
 18155  	c.urlParams_.Set("prettyPrint", "false")
 18156  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18157  	urls += "?" + c.urlParams_.Encode()
 18158  	req, err := http.NewRequest("GET", urls, body)
 18159  	if err != nil {
 18160  		return nil, err
 18161  	}
 18162  	req.Header = reqHeaders
 18163  	googleapi.Expand(req.URL, map[string]string{
 18164  		"name": c.name,
 18165  	})
 18166  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18167  }
 18168  
 18169  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.get" call.
 18170  // Any non-2xx status code is an error. Response headers are in either
 18171  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 18172  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18173  // googleapi.IsNotModified to check whether the returned error was because
 18174  // http.StatusNotModified was returned.
 18175  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 18176  	gensupport.SetOptions(c.urlParams_, opts...)
 18177  	res, err := c.doRequest("json")
 18178  	if res != nil && res.StatusCode == http.StatusNotModified {
 18179  		if res.Body != nil {
 18180  			res.Body.Close()
 18181  		}
 18182  		return nil, gensupport.WrapError(&googleapi.Error{
 18183  			Code:   res.StatusCode,
 18184  			Header: res.Header,
 18185  		})
 18186  	}
 18187  	if err != nil {
 18188  		return nil, err
 18189  	}
 18190  	defer googleapi.CloseBody(res)
 18191  	if err := googleapi.CheckResponse(res); err != nil {
 18192  		return nil, gensupport.WrapError(err)
 18193  	}
 18194  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 18195  		ServerResponse: googleapi.ServerResponse{
 18196  			Header:         res.Header,
 18197  			HTTPStatusCode: res.StatusCode,
 18198  		},
 18199  	}
 18200  	target := &ret
 18201  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18202  		return nil, err
 18203  	}
 18204  	return ret, nil
 18205  }
 18206  
 18207  type ProjectsLocationsCollectionsEnginesConversationsListCall struct {
 18208  	s            *Service
 18209  	parent       string
 18210  	urlParams_   gensupport.URLParams
 18211  	ifNoneMatch_ string
 18212  	ctx_         context.Context
 18213  	header_      http.Header
 18214  }
 18215  
 18216  // List: Lists all Conversations by their parent DataStore.
 18217  //
 18218  //   - parent: The data store resource name. Format:
 18219  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 18220  //     /dataStores/{data_store_id}`.
 18221  func (r *ProjectsLocationsCollectionsEnginesConversationsService) List(parent string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18222  	c := &ProjectsLocationsCollectionsEnginesConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18223  	c.parent = parent
 18224  	return c
 18225  }
 18226  
 18227  // Filter sets the optional parameter "filter": A filter to apply on the list
 18228  // results. The supported features are: user_pseudo_id, state. Example:
 18229  // "user_pseudo_id = some_id"
 18230  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18231  	c.urlParams_.Set("filter", filter)
 18232  	return c
 18233  }
 18234  
 18235  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 18236  // fields to order by, sorted in ascending order. Use "desc" after a field name
 18237  // for descending. Supported fields: * `update_time` * `create_time` *
 18238  // `conversation_name` Example: "update_time desc" "create_time"
 18239  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18240  	c.urlParams_.Set("orderBy", orderBy)
 18241  	return c
 18242  }
 18243  
 18244  // PageSize sets the optional parameter "pageSize": Maximum number of results
 18245  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 18246  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18247  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18248  	return c
 18249  }
 18250  
 18251  // PageToken sets the optional parameter "pageToken": A page token, received
 18252  // from a previous `ListConversations` call. Provide this to retrieve the
 18253  // subsequent page.
 18254  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18255  	c.urlParams_.Set("pageToken", pageToken)
 18256  	return c
 18257  }
 18258  
 18259  // Fields allows partial responses to be retrieved. See
 18260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18261  // details.
 18262  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18264  	return c
 18265  }
 18266  
 18267  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18268  // object's ETag matches the given value. This is useful for getting updates
 18269  // only after the object has changed since the last request.
 18270  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18271  	c.ifNoneMatch_ = entityTag
 18272  	return c
 18273  }
 18274  
 18275  // Context sets the context to be used in this call's Do method.
 18276  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 18277  	c.ctx_ = ctx
 18278  	return c
 18279  }
 18280  
 18281  // Header returns a http.Header that can be modified by the caller to add
 18282  // headers to the request.
 18283  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Header() http.Header {
 18284  	if c.header_ == nil {
 18285  		c.header_ = make(http.Header)
 18286  	}
 18287  	return c.header_
 18288  }
 18289  
 18290  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt string) (*http.Response, error) {
 18291  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18292  	if c.ifNoneMatch_ != "" {
 18293  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18294  	}
 18295  	var body io.Reader = nil
 18296  	c.urlParams_.Set("alt", alt)
 18297  	c.urlParams_.Set("prettyPrint", "false")
 18298  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
 18299  	urls += "?" + c.urlParams_.Encode()
 18300  	req, err := http.NewRequest("GET", urls, body)
 18301  	if err != nil {
 18302  		return nil, err
 18303  	}
 18304  	req.Header = reqHeaders
 18305  	googleapi.Expand(req.URL, map[string]string{
 18306  		"parent": c.parent,
 18307  	})
 18308  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18309  }
 18310  
 18311  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.list" call.
 18312  // Any non-2xx status code is an error. Response headers are in either
 18313  // *GoogleCloudDiscoveryengineV1ListConversationsResponse.ServerResponse.Header
 18314  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 18315  // Use googleapi.IsNotModified to check whether the returned error was because
 18316  // http.StatusNotModified was returned.
 18317  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListConversationsResponse, error) {
 18318  	gensupport.SetOptions(c.urlParams_, opts...)
 18319  	res, err := c.doRequest("json")
 18320  	if res != nil && res.StatusCode == http.StatusNotModified {
 18321  		if res.Body != nil {
 18322  			res.Body.Close()
 18323  		}
 18324  		return nil, gensupport.WrapError(&googleapi.Error{
 18325  			Code:   res.StatusCode,
 18326  			Header: res.Header,
 18327  		})
 18328  	}
 18329  	if err != nil {
 18330  		return nil, err
 18331  	}
 18332  	defer googleapi.CloseBody(res)
 18333  	if err := googleapi.CheckResponse(res); err != nil {
 18334  		return nil, gensupport.WrapError(err)
 18335  	}
 18336  	ret := &GoogleCloudDiscoveryengineV1ListConversationsResponse{
 18337  		ServerResponse: googleapi.ServerResponse{
 18338  			Header:         res.Header,
 18339  			HTTPStatusCode: res.StatusCode,
 18340  		},
 18341  	}
 18342  	target := &ret
 18343  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18344  		return nil, err
 18345  	}
 18346  	return ret, nil
 18347  }
 18348  
 18349  // Pages invokes f for each page of results.
 18350  // A non-nil error returned from f will halt the iteration.
 18351  // The provided context supersedes any context provided to the Context method.
 18352  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListConversationsResponse) error) error {
 18353  	c.ctx_ = ctx
 18354  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18355  	for {
 18356  		x, err := c.Do()
 18357  		if err != nil {
 18358  			return err
 18359  		}
 18360  		if err := f(x); err != nil {
 18361  			return err
 18362  		}
 18363  		if x.NextPageToken == "" {
 18364  			return nil
 18365  		}
 18366  		c.PageToken(x.NextPageToken)
 18367  	}
 18368  }
 18369  
 18370  type ProjectsLocationsCollectionsEnginesConversationsPatchCall struct {
 18371  	s                                        *Service
 18372  	name                                     string
 18373  	googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
 18374  	urlParams_                               gensupport.URLParams
 18375  	ctx_                                     context.Context
 18376  	header_                                  http.Header
 18377  }
 18378  
 18379  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 18380  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 18381  //
 18382  //   - name: Immutable. Fully qualified name
 18383  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 18384  //     onversations/*` or
 18385  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 18386  //     versations/*`.
 18387  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Patch(name string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 18388  	c := &ProjectsLocationsCollectionsEnginesConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18389  	c.name = name
 18390  	c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
 18391  	return c
 18392  }
 18393  
 18394  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 18395  // in the provided Conversation to update. The following are NOT supported: *
 18396  // Conversation.name If not set or empty, all supported fields are updated.
 18397  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 18398  	c.urlParams_.Set("updateMask", updateMask)
 18399  	return c
 18400  }
 18401  
 18402  // Fields allows partial responses to be retrieved. See
 18403  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18404  // details.
 18405  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 18406  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18407  	return c
 18408  }
 18409  
 18410  // Context sets the context to be used in this call's Do method.
 18411  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 18412  	c.ctx_ = ctx
 18413  	return c
 18414  }
 18415  
 18416  // Header returns a http.Header that can be modified by the caller to add
 18417  // headers to the request.
 18418  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Header() http.Header {
 18419  	if c.header_ == nil {
 18420  		c.header_ = make(http.Header)
 18421  	}
 18422  	return c.header_
 18423  }
 18424  
 18425  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 18426  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18427  	var body io.Reader = nil
 18428  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
 18429  	if err != nil {
 18430  		return nil, err
 18431  	}
 18432  	c.urlParams_.Set("alt", alt)
 18433  	c.urlParams_.Set("prettyPrint", "false")
 18434  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18435  	urls += "?" + c.urlParams_.Encode()
 18436  	req, err := http.NewRequest("PATCH", urls, body)
 18437  	if err != nil {
 18438  		return nil, err
 18439  	}
 18440  	req.Header = reqHeaders
 18441  	googleapi.Expand(req.URL, map[string]string{
 18442  		"name": c.name,
 18443  	})
 18444  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18445  }
 18446  
 18447  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.patch" call.
 18448  // Any non-2xx status code is an error. Response headers are in either
 18449  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 18450  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18451  // googleapi.IsNotModified to check whether the returned error was because
 18452  // http.StatusNotModified was returned.
 18453  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 18454  	gensupport.SetOptions(c.urlParams_, opts...)
 18455  	res, err := c.doRequest("json")
 18456  	if res != nil && res.StatusCode == http.StatusNotModified {
 18457  		if res.Body != nil {
 18458  			res.Body.Close()
 18459  		}
 18460  		return nil, gensupport.WrapError(&googleapi.Error{
 18461  			Code:   res.StatusCode,
 18462  			Header: res.Header,
 18463  		})
 18464  	}
 18465  	if err != nil {
 18466  		return nil, err
 18467  	}
 18468  	defer googleapi.CloseBody(res)
 18469  	if err := googleapi.CheckResponse(res); err != nil {
 18470  		return nil, gensupport.WrapError(err)
 18471  	}
 18472  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 18473  		ServerResponse: googleapi.ServerResponse{
 18474  			Header:         res.Header,
 18475  			HTTPStatusCode: res.StatusCode,
 18476  		},
 18477  	}
 18478  	target := &ret
 18479  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18480  		return nil, err
 18481  	}
 18482  	return ret, nil
 18483  }
 18484  
 18485  type ProjectsLocationsCollectionsEnginesOperationsGetCall struct {
 18486  	s            *Service
 18487  	name         string
 18488  	urlParams_   gensupport.URLParams
 18489  	ifNoneMatch_ string
 18490  	ctx_         context.Context
 18491  	header_      http.Header
 18492  }
 18493  
 18494  // Get: Gets the latest state of a long-running operation. Clients can use this
 18495  // method to poll the operation result at intervals as recommended by the API
 18496  // service.
 18497  //
 18498  // - name: The name of the operation resource.
 18499  func (r *ProjectsLocationsCollectionsEnginesOperationsService) Get(name string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 18500  	c := &ProjectsLocationsCollectionsEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18501  	c.name = name
 18502  	return c
 18503  }
 18504  
 18505  // Fields allows partial responses to be retrieved. See
 18506  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18507  // details.
 18508  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 18509  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18510  	return c
 18511  }
 18512  
 18513  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18514  // object's ETag matches the given value. This is useful for getting updates
 18515  // only after the object has changed since the last request.
 18516  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 18517  	c.ifNoneMatch_ = entityTag
 18518  	return c
 18519  }
 18520  
 18521  // Context sets the context to be used in this call's Do method.
 18522  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 18523  	c.ctx_ = ctx
 18524  	return c
 18525  }
 18526  
 18527  // Header returns a http.Header that can be modified by the caller to add
 18528  // headers to the request.
 18529  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Header() http.Header {
 18530  	if c.header_ == nil {
 18531  		c.header_ = make(http.Header)
 18532  	}
 18533  	return c.header_
 18534  }
 18535  
 18536  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 18537  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18538  	if c.ifNoneMatch_ != "" {
 18539  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18540  	}
 18541  	var body io.Reader = nil
 18542  	c.urlParams_.Set("alt", alt)
 18543  	c.urlParams_.Set("prettyPrint", "false")
 18544  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18545  	urls += "?" + c.urlParams_.Encode()
 18546  	req, err := http.NewRequest("GET", urls, body)
 18547  	if err != nil {
 18548  		return nil, err
 18549  	}
 18550  	req.Header = reqHeaders
 18551  	googleapi.Expand(req.URL, map[string]string{
 18552  		"name": c.name,
 18553  	})
 18554  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18555  }
 18556  
 18557  // Do executes the "discoveryengine.projects.locations.collections.engines.operations.get" call.
 18558  // Any non-2xx status code is an error. Response headers are in either
 18559  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18560  // returned at all) in error.(*googleapi.Error).Header. Use
 18561  // googleapi.IsNotModified to check whether the returned error was because
 18562  // http.StatusNotModified was returned.
 18563  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18564  	gensupport.SetOptions(c.urlParams_, opts...)
 18565  	res, err := c.doRequest("json")
 18566  	if res != nil && res.StatusCode == http.StatusNotModified {
 18567  		if res.Body != nil {
 18568  			res.Body.Close()
 18569  		}
 18570  		return nil, gensupport.WrapError(&googleapi.Error{
 18571  			Code:   res.StatusCode,
 18572  			Header: res.Header,
 18573  		})
 18574  	}
 18575  	if err != nil {
 18576  		return nil, err
 18577  	}
 18578  	defer googleapi.CloseBody(res)
 18579  	if err := googleapi.CheckResponse(res); err != nil {
 18580  		return nil, gensupport.WrapError(err)
 18581  	}
 18582  	ret := &GoogleLongrunningOperation{
 18583  		ServerResponse: googleapi.ServerResponse{
 18584  			Header:         res.Header,
 18585  			HTTPStatusCode: res.StatusCode,
 18586  		},
 18587  	}
 18588  	target := &ret
 18589  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18590  		return nil, err
 18591  	}
 18592  	return ret, nil
 18593  }
 18594  
 18595  type ProjectsLocationsCollectionsEnginesOperationsListCall struct {
 18596  	s            *Service
 18597  	name         string
 18598  	urlParams_   gensupport.URLParams
 18599  	ifNoneMatch_ string
 18600  	ctx_         context.Context
 18601  	header_      http.Header
 18602  }
 18603  
 18604  // List: Lists operations that match the specified filter in the request. If
 18605  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 18606  //
 18607  // - name: The name of the operation's parent resource.
 18608  func (r *ProjectsLocationsCollectionsEnginesOperationsService) List(name string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18609  	c := &ProjectsLocationsCollectionsEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18610  	c.name = name
 18611  	return c
 18612  }
 18613  
 18614  // Filter sets the optional parameter "filter": The standard list filter.
 18615  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18616  	c.urlParams_.Set("filter", filter)
 18617  	return c
 18618  }
 18619  
 18620  // PageSize sets the optional parameter "pageSize": The standard list page
 18621  // size.
 18622  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18623  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18624  	return c
 18625  }
 18626  
 18627  // PageToken sets the optional parameter "pageToken": The standard list page
 18628  // token.
 18629  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18630  	c.urlParams_.Set("pageToken", pageToken)
 18631  	return c
 18632  }
 18633  
 18634  // Fields allows partial responses to be retrieved. See
 18635  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18636  // details.
 18637  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18638  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18639  	return c
 18640  }
 18641  
 18642  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18643  // object's ETag matches the given value. This is useful for getting updates
 18644  // only after the object has changed since the last request.
 18645  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18646  	c.ifNoneMatch_ = entityTag
 18647  	return c
 18648  }
 18649  
 18650  // Context sets the context to be used in this call's Do method.
 18651  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 18652  	c.ctx_ = ctx
 18653  	return c
 18654  }
 18655  
 18656  // Header returns a http.Header that can be modified by the caller to add
 18657  // headers to the request.
 18658  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Header() http.Header {
 18659  	if c.header_ == nil {
 18660  		c.header_ = make(http.Header)
 18661  	}
 18662  	return c.header_
 18663  }
 18664  
 18665  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 18666  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18667  	if c.ifNoneMatch_ != "" {
 18668  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18669  	}
 18670  	var body io.Reader = nil
 18671  	c.urlParams_.Set("alt", alt)
 18672  	c.urlParams_.Set("prettyPrint", "false")
 18673  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 18674  	urls += "?" + c.urlParams_.Encode()
 18675  	req, err := http.NewRequest("GET", urls, body)
 18676  	if err != nil {
 18677  		return nil, err
 18678  	}
 18679  	req.Header = reqHeaders
 18680  	googleapi.Expand(req.URL, map[string]string{
 18681  		"name": c.name,
 18682  	})
 18683  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18684  }
 18685  
 18686  // Do executes the "discoveryengine.projects.locations.collections.engines.operations.list" call.
 18687  // Any non-2xx status code is an error. Response headers are in either
 18688  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 18689  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18690  // googleapi.IsNotModified to check whether the returned error was because
 18691  // http.StatusNotModified was returned.
 18692  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 18693  	gensupport.SetOptions(c.urlParams_, opts...)
 18694  	res, err := c.doRequest("json")
 18695  	if res != nil && res.StatusCode == http.StatusNotModified {
 18696  		if res.Body != nil {
 18697  			res.Body.Close()
 18698  		}
 18699  		return nil, gensupport.WrapError(&googleapi.Error{
 18700  			Code:   res.StatusCode,
 18701  			Header: res.Header,
 18702  		})
 18703  	}
 18704  	if err != nil {
 18705  		return nil, err
 18706  	}
 18707  	defer googleapi.CloseBody(res)
 18708  	if err := googleapi.CheckResponse(res); err != nil {
 18709  		return nil, gensupport.WrapError(err)
 18710  	}
 18711  	ret := &GoogleLongrunningListOperationsResponse{
 18712  		ServerResponse: googleapi.ServerResponse{
 18713  			Header:         res.Header,
 18714  			HTTPStatusCode: res.StatusCode,
 18715  		},
 18716  	}
 18717  	target := &ret
 18718  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18719  		return nil, err
 18720  	}
 18721  	return ret, nil
 18722  }
 18723  
 18724  // Pages invokes f for each page of results.
 18725  // A non-nil error returned from f will halt the iteration.
 18726  // The provided context supersedes any context provided to the Context method.
 18727  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 18728  	c.ctx_ = ctx
 18729  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18730  	for {
 18731  		x, err := c.Do()
 18732  		if err != nil {
 18733  			return err
 18734  		}
 18735  		if err := f(x); err != nil {
 18736  			return err
 18737  		}
 18738  		if x.NextPageToken == "" {
 18739  			return nil
 18740  		}
 18741  		c.PageToken(x.NextPageToken)
 18742  	}
 18743  }
 18744  
 18745  type ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall struct {
 18746  	s                                            *Service
 18747  	servingConfig                                string
 18748  	googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest
 18749  	urlParams_                                   gensupport.URLParams
 18750  	ctx_                                         context.Context
 18751  	header_                                      http.Header
 18752  }
 18753  
 18754  // Recommend: Makes a recommendation, which requires a contextual user event.
 18755  //
 18756  //   - servingConfig: Full resource name of a ServingConfig:
 18757  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 18758  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 18759  //     One default serving config is created along with your recommendation
 18760  //     engine creation. The engine ID will be used as the ID of the default
 18761  //     serving config. For example, for Engine
 18762  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 18763  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 18764  //     /my-engine` for your RecommendationService.Recommend requests.
 18765  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 18766  	c := &ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18767  	c.servingConfig = servingConfig
 18768  	c.googleclouddiscoveryenginev1recommendrequest = googleclouddiscoveryenginev1recommendrequest
 18769  	return c
 18770  }
 18771  
 18772  // Fields allows partial responses to be retrieved. See
 18773  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18774  // details.
 18775  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 18776  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18777  	return c
 18778  }
 18779  
 18780  // Context sets the context to be used in this call's Do method.
 18781  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 18782  	c.ctx_ = ctx
 18783  	return c
 18784  }
 18785  
 18786  // Header returns a http.Header that can be modified by the caller to add
 18787  // headers to the request.
 18788  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Header() http.Header {
 18789  	if c.header_ == nil {
 18790  		c.header_ = make(http.Header)
 18791  	}
 18792  	return c.header_
 18793  }
 18794  
 18795  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 18796  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18797  	var body io.Reader = nil
 18798  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recommendrequest)
 18799  	if err != nil {
 18800  		return nil, err
 18801  	}
 18802  	c.urlParams_.Set("alt", alt)
 18803  	c.urlParams_.Set("prettyPrint", "false")
 18804  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:recommend")
 18805  	urls += "?" + c.urlParams_.Encode()
 18806  	req, err := http.NewRequest("POST", urls, body)
 18807  	if err != nil {
 18808  		return nil, err
 18809  	}
 18810  	req.Header = reqHeaders
 18811  	googleapi.Expand(req.URL, map[string]string{
 18812  		"servingConfig": c.servingConfig,
 18813  	})
 18814  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18815  }
 18816  
 18817  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" call.
 18818  // Any non-2xx status code is an error. Response headers are in either
 18819  // *GoogleCloudDiscoveryengineV1RecommendResponse.ServerResponse.Header or (if
 18820  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 18821  // googleapi.IsNotModified to check whether the returned error was because
 18822  // http.StatusNotModified was returned.
 18823  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1RecommendResponse, error) {
 18824  	gensupport.SetOptions(c.urlParams_, opts...)
 18825  	res, err := c.doRequest("json")
 18826  	if res != nil && res.StatusCode == http.StatusNotModified {
 18827  		if res.Body != nil {
 18828  			res.Body.Close()
 18829  		}
 18830  		return nil, gensupport.WrapError(&googleapi.Error{
 18831  			Code:   res.StatusCode,
 18832  			Header: res.Header,
 18833  		})
 18834  	}
 18835  	if err != nil {
 18836  		return nil, err
 18837  	}
 18838  	defer googleapi.CloseBody(res)
 18839  	if err := googleapi.CheckResponse(res); err != nil {
 18840  		return nil, gensupport.WrapError(err)
 18841  	}
 18842  	ret := &GoogleCloudDiscoveryengineV1RecommendResponse{
 18843  		ServerResponse: googleapi.ServerResponse{
 18844  			Header:         res.Header,
 18845  			HTTPStatusCode: res.StatusCode,
 18846  		},
 18847  	}
 18848  	target := &ret
 18849  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18850  		return nil, err
 18851  	}
 18852  	return ret, nil
 18853  }
 18854  
 18855  type ProjectsLocationsCollectionsEnginesServingConfigsSearchCall struct {
 18856  	s                                         *Service
 18857  	servingConfig                             string
 18858  	googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest
 18859  	urlParams_                                gensupport.URLParams
 18860  	ctx_                                      context.Context
 18861  	header_                                   http.Header
 18862  }
 18863  
 18864  // Search: Performs a search.
 18865  //
 18866  //   - servingConfig: The resource name of the Search serving config, such as
 18867  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 18868  //     ngConfigs/default_serving_config`, or
 18869  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 18870  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 18871  //     to identify the serving configuration name, set of models used to make the
 18872  //     search.
 18873  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 18874  	c := &ProjectsLocationsCollectionsEnginesServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18875  	c.servingConfig = servingConfig
 18876  	c.googleclouddiscoveryenginev1searchrequest = googleclouddiscoveryenginev1searchrequest
 18877  	return c
 18878  }
 18879  
 18880  // Fields allows partial responses to be retrieved. See
 18881  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18882  // details.
 18883  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 18884  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18885  	return c
 18886  }
 18887  
 18888  // Context sets the context to be used in this call's Do method.
 18889  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 18890  	c.ctx_ = ctx
 18891  	return c
 18892  }
 18893  
 18894  // Header returns a http.Header that can be modified by the caller to add
 18895  // headers to the request.
 18896  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Header() http.Header {
 18897  	if c.header_ == nil {
 18898  		c.header_ = make(http.Header)
 18899  	}
 18900  	return c.header_
 18901  }
 18902  
 18903  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 18904  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18905  	var body io.Reader = nil
 18906  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1searchrequest)
 18907  	if err != nil {
 18908  		return nil, err
 18909  	}
 18910  	c.urlParams_.Set("alt", alt)
 18911  	c.urlParams_.Set("prettyPrint", "false")
 18912  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:search")
 18913  	urls += "?" + c.urlParams_.Encode()
 18914  	req, err := http.NewRequest("POST", urls, body)
 18915  	if err != nil {
 18916  		return nil, err
 18917  	}
 18918  	req.Header = reqHeaders
 18919  	googleapi.Expand(req.URL, map[string]string{
 18920  		"servingConfig": c.servingConfig,
 18921  	})
 18922  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18923  }
 18924  
 18925  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.search" call.
 18926  // Any non-2xx status code is an error. Response headers are in either
 18927  // *GoogleCloudDiscoveryengineV1SearchResponse.ServerResponse.Header or (if a
 18928  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18929  // googleapi.IsNotModified to check whether the returned error was because
 18930  // http.StatusNotModified was returned.
 18931  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SearchResponse, error) {
 18932  	gensupport.SetOptions(c.urlParams_, opts...)
 18933  	res, err := c.doRequest("json")
 18934  	if res != nil && res.StatusCode == http.StatusNotModified {
 18935  		if res.Body != nil {
 18936  			res.Body.Close()
 18937  		}
 18938  		return nil, gensupport.WrapError(&googleapi.Error{
 18939  			Code:   res.StatusCode,
 18940  			Header: res.Header,
 18941  		})
 18942  	}
 18943  	if err != nil {
 18944  		return nil, err
 18945  	}
 18946  	defer googleapi.CloseBody(res)
 18947  	if err := googleapi.CheckResponse(res); err != nil {
 18948  		return nil, gensupport.WrapError(err)
 18949  	}
 18950  	ret := &GoogleCloudDiscoveryengineV1SearchResponse{
 18951  		ServerResponse: googleapi.ServerResponse{
 18952  			Header:         res.Header,
 18953  			HTTPStatusCode: res.StatusCode,
 18954  		},
 18955  	}
 18956  	target := &ret
 18957  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18958  		return nil, err
 18959  	}
 18960  	return ret, nil
 18961  }
 18962  
 18963  // Pages invokes f for each page of results.
 18964  // A non-nil error returned from f will halt the iteration.
 18965  // The provided context supersedes any context provided to the Context method.
 18966  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1SearchResponse) error) error {
 18967  	c.ctx_ = ctx
 18968  	defer func(pt string) { c.googleclouddiscoveryenginev1searchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1searchrequest.PageToken)
 18969  	for {
 18970  		x, err := c.Do()
 18971  		if err != nil {
 18972  			return err
 18973  		}
 18974  		if err := f(x); err != nil {
 18975  			return err
 18976  		}
 18977  		if x.NextPageToken == "" {
 18978  			return nil
 18979  		}
 18980  		c.googleclouddiscoveryenginev1searchrequest.PageToken = x.NextPageToken
 18981  	}
 18982  }
 18983  
 18984  type ProjectsLocationsCollectionsOperationsGetCall struct {
 18985  	s            *Service
 18986  	name         string
 18987  	urlParams_   gensupport.URLParams
 18988  	ifNoneMatch_ string
 18989  	ctx_         context.Context
 18990  	header_      http.Header
 18991  }
 18992  
 18993  // Get: Gets the latest state of a long-running operation. Clients can use this
 18994  // method to poll the operation result at intervals as recommended by the API
 18995  // service.
 18996  //
 18997  // - name: The name of the operation resource.
 18998  func (r *ProjectsLocationsCollectionsOperationsService) Get(name string) *ProjectsLocationsCollectionsOperationsGetCall {
 18999  	c := &ProjectsLocationsCollectionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19000  	c.name = name
 19001  	return c
 19002  }
 19003  
 19004  // Fields allows partial responses to be retrieved. See
 19005  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19006  // details.
 19007  func (c *ProjectsLocationsCollectionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsGetCall {
 19008  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19009  	return c
 19010  }
 19011  
 19012  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19013  // object's ETag matches the given value. This is useful for getting updates
 19014  // only after the object has changed since the last request.
 19015  func (c *ProjectsLocationsCollectionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsGetCall {
 19016  	c.ifNoneMatch_ = entityTag
 19017  	return c
 19018  }
 19019  
 19020  // Context sets the context to be used in this call's Do method.
 19021  func (c *ProjectsLocationsCollectionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsGetCall {
 19022  	c.ctx_ = ctx
 19023  	return c
 19024  }
 19025  
 19026  // Header returns a http.Header that can be modified by the caller to add
 19027  // headers to the request.
 19028  func (c *ProjectsLocationsCollectionsOperationsGetCall) Header() http.Header {
 19029  	if c.header_ == nil {
 19030  		c.header_ = make(http.Header)
 19031  	}
 19032  	return c.header_
 19033  }
 19034  
 19035  func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 19036  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19037  	if c.ifNoneMatch_ != "" {
 19038  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19039  	}
 19040  	var body io.Reader = nil
 19041  	c.urlParams_.Set("alt", alt)
 19042  	c.urlParams_.Set("prettyPrint", "false")
 19043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19044  	urls += "?" + c.urlParams_.Encode()
 19045  	req, err := http.NewRequest("GET", urls, body)
 19046  	if err != nil {
 19047  		return nil, err
 19048  	}
 19049  	req.Header = reqHeaders
 19050  	googleapi.Expand(req.URL, map[string]string{
 19051  		"name": c.name,
 19052  	})
 19053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19054  }
 19055  
 19056  // Do executes the "discoveryengine.projects.locations.collections.operations.get" call.
 19057  // Any non-2xx status code is an error. Response headers are in either
 19058  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19059  // returned at all) in error.(*googleapi.Error).Header. Use
 19060  // googleapi.IsNotModified to check whether the returned error was because
 19061  // http.StatusNotModified was returned.
 19062  func (c *ProjectsLocationsCollectionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19063  	gensupport.SetOptions(c.urlParams_, opts...)
 19064  	res, err := c.doRequest("json")
 19065  	if res != nil && res.StatusCode == http.StatusNotModified {
 19066  		if res.Body != nil {
 19067  			res.Body.Close()
 19068  		}
 19069  		return nil, gensupport.WrapError(&googleapi.Error{
 19070  			Code:   res.StatusCode,
 19071  			Header: res.Header,
 19072  		})
 19073  	}
 19074  	if err != nil {
 19075  		return nil, err
 19076  	}
 19077  	defer googleapi.CloseBody(res)
 19078  	if err := googleapi.CheckResponse(res); err != nil {
 19079  		return nil, gensupport.WrapError(err)
 19080  	}
 19081  	ret := &GoogleLongrunningOperation{
 19082  		ServerResponse: googleapi.ServerResponse{
 19083  			Header:         res.Header,
 19084  			HTTPStatusCode: res.StatusCode,
 19085  		},
 19086  	}
 19087  	target := &ret
 19088  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19089  		return nil, err
 19090  	}
 19091  	return ret, nil
 19092  }
 19093  
 19094  type ProjectsLocationsCollectionsOperationsListCall struct {
 19095  	s            *Service
 19096  	name         string
 19097  	urlParams_   gensupport.URLParams
 19098  	ifNoneMatch_ string
 19099  	ctx_         context.Context
 19100  	header_      http.Header
 19101  }
 19102  
 19103  // List: Lists operations that match the specified filter in the request. If
 19104  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 19105  //
 19106  // - name: The name of the operation's parent resource.
 19107  func (r *ProjectsLocationsCollectionsOperationsService) List(name string) *ProjectsLocationsCollectionsOperationsListCall {
 19108  	c := &ProjectsLocationsCollectionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19109  	c.name = name
 19110  	return c
 19111  }
 19112  
 19113  // Filter sets the optional parameter "filter": The standard list filter.
 19114  func (c *ProjectsLocationsCollectionsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsOperationsListCall {
 19115  	c.urlParams_.Set("filter", filter)
 19116  	return c
 19117  }
 19118  
 19119  // PageSize sets the optional parameter "pageSize": The standard list page
 19120  // size.
 19121  func (c *ProjectsLocationsCollectionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsOperationsListCall {
 19122  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19123  	return c
 19124  }
 19125  
 19126  // PageToken sets the optional parameter "pageToken": The standard list page
 19127  // token.
 19128  func (c *ProjectsLocationsCollectionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsOperationsListCall {
 19129  	c.urlParams_.Set("pageToken", pageToken)
 19130  	return c
 19131  }
 19132  
 19133  // Fields allows partial responses to be retrieved. See
 19134  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19135  // details.
 19136  func (c *ProjectsLocationsCollectionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsListCall {
 19137  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19138  	return c
 19139  }
 19140  
 19141  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19142  // object's ETag matches the given value. This is useful for getting updates
 19143  // only after the object has changed since the last request.
 19144  func (c *ProjectsLocationsCollectionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsListCall {
 19145  	c.ifNoneMatch_ = entityTag
 19146  	return c
 19147  }
 19148  
 19149  // Context sets the context to be used in this call's Do method.
 19150  func (c *ProjectsLocationsCollectionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsListCall {
 19151  	c.ctx_ = ctx
 19152  	return c
 19153  }
 19154  
 19155  // Header returns a http.Header that can be modified by the caller to add
 19156  // headers to the request.
 19157  func (c *ProjectsLocationsCollectionsOperationsListCall) Header() http.Header {
 19158  	if c.header_ == nil {
 19159  		c.header_ = make(http.Header)
 19160  	}
 19161  	return c.header_
 19162  }
 19163  
 19164  func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 19165  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19166  	if c.ifNoneMatch_ != "" {
 19167  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19168  	}
 19169  	var body io.Reader = nil
 19170  	c.urlParams_.Set("alt", alt)
 19171  	c.urlParams_.Set("prettyPrint", "false")
 19172  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 19173  	urls += "?" + c.urlParams_.Encode()
 19174  	req, err := http.NewRequest("GET", urls, body)
 19175  	if err != nil {
 19176  		return nil, err
 19177  	}
 19178  	req.Header = reqHeaders
 19179  	googleapi.Expand(req.URL, map[string]string{
 19180  		"name": c.name,
 19181  	})
 19182  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19183  }
 19184  
 19185  // Do executes the "discoveryengine.projects.locations.collections.operations.list" call.
 19186  // Any non-2xx status code is an error. Response headers are in either
 19187  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 19188  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19189  // googleapi.IsNotModified to check whether the returned error was because
 19190  // http.StatusNotModified was returned.
 19191  func (c *ProjectsLocationsCollectionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 19192  	gensupport.SetOptions(c.urlParams_, opts...)
 19193  	res, err := c.doRequest("json")
 19194  	if res != nil && res.StatusCode == http.StatusNotModified {
 19195  		if res.Body != nil {
 19196  			res.Body.Close()
 19197  		}
 19198  		return nil, gensupport.WrapError(&googleapi.Error{
 19199  			Code:   res.StatusCode,
 19200  			Header: res.Header,
 19201  		})
 19202  	}
 19203  	if err != nil {
 19204  		return nil, err
 19205  	}
 19206  	defer googleapi.CloseBody(res)
 19207  	if err := googleapi.CheckResponse(res); err != nil {
 19208  		return nil, gensupport.WrapError(err)
 19209  	}
 19210  	ret := &GoogleLongrunningListOperationsResponse{
 19211  		ServerResponse: googleapi.ServerResponse{
 19212  			Header:         res.Header,
 19213  			HTTPStatusCode: res.StatusCode,
 19214  		},
 19215  	}
 19216  	target := &ret
 19217  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19218  		return nil, err
 19219  	}
 19220  	return ret, nil
 19221  }
 19222  
 19223  // Pages invokes f for each page of results.
 19224  // A non-nil error returned from f will halt the iteration.
 19225  // The provided context supersedes any context provided to the Context method.
 19226  func (c *ProjectsLocationsCollectionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 19227  	c.ctx_ = ctx
 19228  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19229  	for {
 19230  		x, err := c.Do()
 19231  		if err != nil {
 19232  			return err
 19233  		}
 19234  		if err := f(x); err != nil {
 19235  			return err
 19236  		}
 19237  		if x.NextPageToken == "" {
 19238  			return nil
 19239  		}
 19240  		c.PageToken(x.NextPageToken)
 19241  	}
 19242  }
 19243  
 19244  type ProjectsLocationsDataStoresCompleteQueryCall struct {
 19245  	s            *Service
 19246  	dataStore    string
 19247  	urlParams_   gensupport.URLParams
 19248  	ifNoneMatch_ string
 19249  	ctx_         context.Context
 19250  	header_      http.Header
 19251  }
 19252  
 19253  // CompleteQuery: Completes the specified user input with keyword suggestions.
 19254  //
 19255  //   - dataStore: The parent data store resource name for which the completion is
 19256  //     performed, such as
 19257  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 19258  //     ult_data_store`.
 19259  func (r *ProjectsLocationsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsDataStoresCompleteQueryCall {
 19260  	c := &ProjectsLocationsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19261  	c.dataStore = dataStore
 19262  	return c
 19263  }
 19264  
 19265  // IncludeTailSuggestions sets the optional parameter "includeTailSuggestions":
 19266  // Indicates if tail suggestions should be returned if there are no suggestions
 19267  // that match the full query. Even if set to true, if there are suggestions
 19268  // that match the full query, those are returned and no tail suggestions are
 19269  // returned.
 19270  func (c *ProjectsLocationsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsDataStoresCompleteQueryCall {
 19271  	c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
 19272  	return c
 19273  }
 19274  
 19275  // Query sets the optional parameter "query": Required. The typeahead input
 19276  // used to fetch suggestions. Maximum length is 128 characters.
 19277  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsDataStoresCompleteQueryCall {
 19278  	c.urlParams_.Set("query", query)
 19279  	return c
 19280  }
 19281  
 19282  // QueryModel sets the optional parameter "queryModel": Specifies the
 19283  // autocomplete data model. This overrides any model specified in the
 19284  // Configuration > Autocomplete section of the Cloud console. Currently
 19285  // supported values: * `document` - Using suggestions generated from
 19286  // user-imported documents. * `search-history` - Using suggestions generated
 19287  // from the past history of SearchService.Search API calls. Do not use it when
 19288  // there is no traffic for Search API. * `user-event` - Using suggestions
 19289  // generated from user-imported search events. * `document-completable` - Using
 19290  // suggestions taken directly from user-imported document fields marked as
 19291  // completable. Default values: * `document` is the default model for regular
 19292  // dataStores. * `search-history` is the default model for site search
 19293  // dataStores.
 19294  func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall {
 19295  	c.urlParams_.Set("queryModel", queryModel)
 19296  	return c
 19297  }
 19298  
 19299  // UserPseudoId sets the optional parameter "userPseudoId": A unique identifier
 19300  // for tracking visitors. For example, this could be implemented with an HTTP
 19301  // cookie, which should be able to uniquely identify a visitor on a single
 19302  // device. This unique identifier should not change if the visitor logs in or
 19303  // out of the website. This field should NOT have a fixed value such as
 19304  // `unknown_visitor`. This should be the same identifier as
 19305  // UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be
 19306  // a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 19307  // `INVALID_ARGUMENT` error is returned.
 19308  func (c *ProjectsLocationsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsDataStoresCompleteQueryCall {
 19309  	c.urlParams_.Set("userPseudoId", userPseudoId)
 19310  	return c
 19311  }
 19312  
 19313  // Fields allows partial responses to be retrieved. See
 19314  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19315  // details.
 19316  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCompleteQueryCall {
 19317  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19318  	return c
 19319  }
 19320  
 19321  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19322  // object's ETag matches the given value. This is useful for getting updates
 19323  // only after the object has changed since the last request.
 19324  func (c *ProjectsLocationsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresCompleteQueryCall {
 19325  	c.ifNoneMatch_ = entityTag
 19326  	return c
 19327  }
 19328  
 19329  // Context sets the context to be used in this call's Do method.
 19330  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCompleteQueryCall {
 19331  	c.ctx_ = ctx
 19332  	return c
 19333  }
 19334  
 19335  // Header returns a http.Header that can be modified by the caller to add
 19336  // headers to the request.
 19337  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Header() http.Header {
 19338  	if c.header_ == nil {
 19339  		c.header_ = make(http.Header)
 19340  	}
 19341  	return c.header_
 19342  }
 19343  
 19344  func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
 19345  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19346  	if c.ifNoneMatch_ != "" {
 19347  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19348  	}
 19349  	var body io.Reader = nil
 19350  	c.urlParams_.Set("alt", alt)
 19351  	c.urlParams_.Set("prettyPrint", "false")
 19352  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataStore}:completeQuery")
 19353  	urls += "?" + c.urlParams_.Encode()
 19354  	req, err := http.NewRequest("GET", urls, body)
 19355  	if err != nil {
 19356  		return nil, err
 19357  	}
 19358  	req.Header = reqHeaders
 19359  	googleapi.Expand(req.URL, map[string]string{
 19360  		"dataStore": c.dataStore,
 19361  	})
 19362  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19363  }
 19364  
 19365  // Do executes the "discoveryengine.projects.locations.dataStores.completeQuery" call.
 19366  // Any non-2xx status code is an error. Response headers are in either
 19367  // *GoogleCloudDiscoveryengineV1CompleteQueryResponse.ServerResponse.Header or
 19368  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 19369  // googleapi.IsNotModified to check whether the returned error was because
 19370  // http.StatusNotModified was returned.
 19371  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1CompleteQueryResponse, error) {
 19372  	gensupport.SetOptions(c.urlParams_, opts...)
 19373  	res, err := c.doRequest("json")
 19374  	if res != nil && res.StatusCode == http.StatusNotModified {
 19375  		if res.Body != nil {
 19376  			res.Body.Close()
 19377  		}
 19378  		return nil, gensupport.WrapError(&googleapi.Error{
 19379  			Code:   res.StatusCode,
 19380  			Header: res.Header,
 19381  		})
 19382  	}
 19383  	if err != nil {
 19384  		return nil, err
 19385  	}
 19386  	defer googleapi.CloseBody(res)
 19387  	if err := googleapi.CheckResponse(res); err != nil {
 19388  		return nil, gensupport.WrapError(err)
 19389  	}
 19390  	ret := &GoogleCloudDiscoveryengineV1CompleteQueryResponse{
 19391  		ServerResponse: googleapi.ServerResponse{
 19392  			Header:         res.Header,
 19393  			HTTPStatusCode: res.StatusCode,
 19394  		},
 19395  	}
 19396  	target := &ret
 19397  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19398  		return nil, err
 19399  	}
 19400  	return ret, nil
 19401  }
 19402  
 19403  type ProjectsLocationsDataStoresCreateCall struct {
 19404  	s                                     *Service
 19405  	parent                                string
 19406  	googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
 19407  	urlParams_                            gensupport.URLParams
 19408  	ctx_                                  context.Context
 19409  	header_                               http.Header
 19410  }
 19411  
 19412  // Create: Creates a DataStore. DataStore is for storing Documents. To serve
 19413  // these documents for Search, or Recommendation use case, an Engine needs to
 19414  // be created separately.
 19415  //
 19416  //   - parent: The parent resource name, such as
 19417  //     `projects/{project}/locations/{location}/collections/{collection}`.
 19418  func (r *ProjectsLocationsDataStoresService) Create(parent string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsDataStoresCreateCall {
 19419  	c := &ProjectsLocationsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19420  	c.parent = parent
 19421  	c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
 19422  	return c
 19423  }
 19424  
 19425  // CreateAdvancedSiteSearch sets the optional parameter
 19426  // "createAdvancedSiteSearch": A boolean flag indicating whether user want to
 19427  // directly create an advanced data store for site search. If the data store is
 19428  // not configured as site search (GENERIC vertical and PUBLIC_WEBSITE
 19429  // content_config), this flag will be ignored.
 19430  func (c *ProjectsLocationsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsDataStoresCreateCall {
 19431  	c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
 19432  	return c
 19433  }
 19434  
 19435  // DataStoreId sets the optional parameter "dataStoreId": Required. The ID to
 19436  // use for the DataStore, which will become the final component of the
 19437  // DataStore's resource name. This field must conform to RFC-1034
 19438  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 19439  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 19440  func (c *ProjectsLocationsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsDataStoresCreateCall {
 19441  	c.urlParams_.Set("dataStoreId", dataStoreId)
 19442  	return c
 19443  }
 19444  
 19445  // Fields allows partial responses to be retrieved. See
 19446  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19447  // details.
 19448  func (c *ProjectsLocationsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCreateCall {
 19449  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19450  	return c
 19451  }
 19452  
 19453  // Context sets the context to be used in this call's Do method.
 19454  func (c *ProjectsLocationsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCreateCall {
 19455  	c.ctx_ = ctx
 19456  	return c
 19457  }
 19458  
 19459  // Header returns a http.Header that can be modified by the caller to add
 19460  // headers to the request.
 19461  func (c *ProjectsLocationsDataStoresCreateCall) Header() http.Header {
 19462  	if c.header_ == nil {
 19463  		c.header_ = make(http.Header)
 19464  	}
 19465  	return c.header_
 19466  }
 19467  
 19468  func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 19469  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19470  	var body io.Reader = nil
 19471  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
 19472  	if err != nil {
 19473  		return nil, err
 19474  	}
 19475  	c.urlParams_.Set("alt", alt)
 19476  	c.urlParams_.Set("prettyPrint", "false")
 19477  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
 19478  	urls += "?" + c.urlParams_.Encode()
 19479  	req, err := http.NewRequest("POST", urls, body)
 19480  	if err != nil {
 19481  		return nil, err
 19482  	}
 19483  	req.Header = reqHeaders
 19484  	googleapi.Expand(req.URL, map[string]string{
 19485  		"parent": c.parent,
 19486  	})
 19487  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19488  }
 19489  
 19490  // Do executes the "discoveryengine.projects.locations.dataStores.create" call.
 19491  // Any non-2xx status code is an error. Response headers are in either
 19492  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19493  // returned at all) in error.(*googleapi.Error).Header. Use
 19494  // googleapi.IsNotModified to check whether the returned error was because
 19495  // http.StatusNotModified was returned.
 19496  func (c *ProjectsLocationsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19497  	gensupport.SetOptions(c.urlParams_, opts...)
 19498  	res, err := c.doRequest("json")
 19499  	if res != nil && res.StatusCode == http.StatusNotModified {
 19500  		if res.Body != nil {
 19501  			res.Body.Close()
 19502  		}
 19503  		return nil, gensupport.WrapError(&googleapi.Error{
 19504  			Code:   res.StatusCode,
 19505  			Header: res.Header,
 19506  		})
 19507  	}
 19508  	if err != nil {
 19509  		return nil, err
 19510  	}
 19511  	defer googleapi.CloseBody(res)
 19512  	if err := googleapi.CheckResponse(res); err != nil {
 19513  		return nil, gensupport.WrapError(err)
 19514  	}
 19515  	ret := &GoogleLongrunningOperation{
 19516  		ServerResponse: googleapi.ServerResponse{
 19517  			Header:         res.Header,
 19518  			HTTPStatusCode: res.StatusCode,
 19519  		},
 19520  	}
 19521  	target := &ret
 19522  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19523  		return nil, err
 19524  	}
 19525  	return ret, nil
 19526  }
 19527  
 19528  type ProjectsLocationsDataStoresDeleteCall struct {
 19529  	s          *Service
 19530  	name       string
 19531  	urlParams_ gensupport.URLParams
 19532  	ctx_       context.Context
 19533  	header_    http.Header
 19534  }
 19535  
 19536  // Delete: Deletes a DataStore.
 19537  //
 19538  //   - name: Full resource name of DataStore, such as
 19539  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 19540  //     ores/{data_store_id}`. If the caller does not have permission to delete
 19541  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 19542  //     error is returned. If the DataStore to delete does not exist, a NOT_FOUND
 19543  //     error is returned.
 19544  func (r *ProjectsLocationsDataStoresService) Delete(name string) *ProjectsLocationsDataStoresDeleteCall {
 19545  	c := &ProjectsLocationsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19546  	c.name = name
 19547  	return c
 19548  }
 19549  
 19550  // Fields allows partial responses to be retrieved. See
 19551  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19552  // details.
 19553  func (c *ProjectsLocationsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresDeleteCall {
 19554  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19555  	return c
 19556  }
 19557  
 19558  // Context sets the context to be used in this call's Do method.
 19559  func (c *ProjectsLocationsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresDeleteCall {
 19560  	c.ctx_ = ctx
 19561  	return c
 19562  }
 19563  
 19564  // Header returns a http.Header that can be modified by the caller to add
 19565  // headers to the request.
 19566  func (c *ProjectsLocationsDataStoresDeleteCall) Header() http.Header {
 19567  	if c.header_ == nil {
 19568  		c.header_ = make(http.Header)
 19569  	}
 19570  	return c.header_
 19571  }
 19572  
 19573  func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 19574  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19575  	var body io.Reader = nil
 19576  	c.urlParams_.Set("alt", alt)
 19577  	c.urlParams_.Set("prettyPrint", "false")
 19578  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19579  	urls += "?" + c.urlParams_.Encode()
 19580  	req, err := http.NewRequest("DELETE", urls, body)
 19581  	if err != nil {
 19582  		return nil, err
 19583  	}
 19584  	req.Header = reqHeaders
 19585  	googleapi.Expand(req.URL, map[string]string{
 19586  		"name": c.name,
 19587  	})
 19588  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19589  }
 19590  
 19591  // Do executes the "discoveryengine.projects.locations.dataStores.delete" call.
 19592  // Any non-2xx status code is an error. Response headers are in either
 19593  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19594  // returned at all) in error.(*googleapi.Error).Header. Use
 19595  // googleapi.IsNotModified to check whether the returned error was because
 19596  // http.StatusNotModified was returned.
 19597  func (c *ProjectsLocationsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19598  	gensupport.SetOptions(c.urlParams_, opts...)
 19599  	res, err := c.doRequest("json")
 19600  	if res != nil && res.StatusCode == http.StatusNotModified {
 19601  		if res.Body != nil {
 19602  			res.Body.Close()
 19603  		}
 19604  		return nil, gensupport.WrapError(&googleapi.Error{
 19605  			Code:   res.StatusCode,
 19606  			Header: res.Header,
 19607  		})
 19608  	}
 19609  	if err != nil {
 19610  		return nil, err
 19611  	}
 19612  	defer googleapi.CloseBody(res)
 19613  	if err := googleapi.CheckResponse(res); err != nil {
 19614  		return nil, gensupport.WrapError(err)
 19615  	}
 19616  	ret := &GoogleLongrunningOperation{
 19617  		ServerResponse: googleapi.ServerResponse{
 19618  			Header:         res.Header,
 19619  			HTTPStatusCode: res.StatusCode,
 19620  		},
 19621  	}
 19622  	target := &ret
 19623  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19624  		return nil, err
 19625  	}
 19626  	return ret, nil
 19627  }
 19628  
 19629  type ProjectsLocationsDataStoresGetCall struct {
 19630  	s            *Service
 19631  	name         string
 19632  	urlParams_   gensupport.URLParams
 19633  	ifNoneMatch_ string
 19634  	ctx_         context.Context
 19635  	header_      http.Header
 19636  }
 19637  
 19638  // Get: Gets a DataStore.
 19639  //
 19640  //   - name: Full resource name of DataStore, such as
 19641  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 19642  //     ores/{data_store_id}`. If the caller does not have permission to access
 19643  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 19644  //     error is returned. If the requested DataStore does not exist, a NOT_FOUND
 19645  //     error is returned.
 19646  func (r *ProjectsLocationsDataStoresService) Get(name string) *ProjectsLocationsDataStoresGetCall {
 19647  	c := &ProjectsLocationsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19648  	c.name = name
 19649  	return c
 19650  }
 19651  
 19652  // Fields allows partial responses to be retrieved. See
 19653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19654  // details.
 19655  func (c *ProjectsLocationsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetCall {
 19656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19657  	return c
 19658  }
 19659  
 19660  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19661  // object's ETag matches the given value. This is useful for getting updates
 19662  // only after the object has changed since the last request.
 19663  func (c *ProjectsLocationsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetCall {
 19664  	c.ifNoneMatch_ = entityTag
 19665  	return c
 19666  }
 19667  
 19668  // Context sets the context to be used in this call's Do method.
 19669  func (c *ProjectsLocationsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetCall {
 19670  	c.ctx_ = ctx
 19671  	return c
 19672  }
 19673  
 19674  // Header returns a http.Header that can be modified by the caller to add
 19675  // headers to the request.
 19676  func (c *ProjectsLocationsDataStoresGetCall) Header() http.Header {
 19677  	if c.header_ == nil {
 19678  		c.header_ = make(http.Header)
 19679  	}
 19680  	return c.header_
 19681  }
 19682  
 19683  func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
 19684  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19685  	if c.ifNoneMatch_ != "" {
 19686  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19687  	}
 19688  	var body io.Reader = nil
 19689  	c.urlParams_.Set("alt", alt)
 19690  	c.urlParams_.Set("prettyPrint", "false")
 19691  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19692  	urls += "?" + c.urlParams_.Encode()
 19693  	req, err := http.NewRequest("GET", urls, body)
 19694  	if err != nil {
 19695  		return nil, err
 19696  	}
 19697  	req.Header = reqHeaders
 19698  	googleapi.Expand(req.URL, map[string]string{
 19699  		"name": c.name,
 19700  	})
 19701  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19702  }
 19703  
 19704  // Do executes the "discoveryengine.projects.locations.dataStores.get" call.
 19705  // Any non-2xx status code is an error. Response headers are in either
 19706  // *GoogleCloudDiscoveryengineV1DataStore.ServerResponse.Header or (if a
 19707  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19708  // googleapi.IsNotModified to check whether the returned error was because
 19709  // http.StatusNotModified was returned.
 19710  func (c *ProjectsLocationsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
 19711  	gensupport.SetOptions(c.urlParams_, opts...)
 19712  	res, err := c.doRequest("json")
 19713  	if res != nil && res.StatusCode == http.StatusNotModified {
 19714  		if res.Body != nil {
 19715  			res.Body.Close()
 19716  		}
 19717  		return nil, gensupport.WrapError(&googleapi.Error{
 19718  			Code:   res.StatusCode,
 19719  			Header: res.Header,
 19720  		})
 19721  	}
 19722  	if err != nil {
 19723  		return nil, err
 19724  	}
 19725  	defer googleapi.CloseBody(res)
 19726  	if err := googleapi.CheckResponse(res); err != nil {
 19727  		return nil, gensupport.WrapError(err)
 19728  	}
 19729  	ret := &GoogleCloudDiscoveryengineV1DataStore{
 19730  		ServerResponse: googleapi.ServerResponse{
 19731  			Header:         res.Header,
 19732  			HTTPStatusCode: res.StatusCode,
 19733  		},
 19734  	}
 19735  	target := &ret
 19736  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19737  		return nil, err
 19738  	}
 19739  	return ret, nil
 19740  }
 19741  
 19742  type ProjectsLocationsDataStoresGetSiteSearchEngineCall struct {
 19743  	s            *Service
 19744  	name         string
 19745  	urlParams_   gensupport.URLParams
 19746  	ifNoneMatch_ string
 19747  	ctx_         context.Context
 19748  	header_      http.Header
 19749  }
 19750  
 19751  // GetSiteSearchEngine: Gets the SiteSearchEngine.
 19752  //
 19753  //   - name: Resource name of SiteSearchEngine, such as
 19754  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19755  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 19756  //     to access the [SiteSearchEngine], regardless of whether or not it exists,
 19757  //     a PERMISSION_DENIED error is returned.
 19758  func (r *ProjectsLocationsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 19759  	c := &ProjectsLocationsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19760  	c.name = name
 19761  	return c
 19762  }
 19763  
 19764  // Fields allows partial responses to be retrieved. See
 19765  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19766  // details.
 19767  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 19768  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19769  	return c
 19770  }
 19771  
 19772  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19773  // object's ETag matches the given value. This is useful for getting updates
 19774  // only after the object has changed since the last request.
 19775  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 19776  	c.ifNoneMatch_ = entityTag
 19777  	return c
 19778  }
 19779  
 19780  // Context sets the context to be used in this call's Do method.
 19781  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 19782  	c.ctx_ = ctx
 19783  	return c
 19784  }
 19785  
 19786  // Header returns a http.Header that can be modified by the caller to add
 19787  // headers to the request.
 19788  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Header() http.Header {
 19789  	if c.header_ == nil {
 19790  		c.header_ = make(http.Header)
 19791  	}
 19792  	return c.header_
 19793  }
 19794  
 19795  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
 19796  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19797  	if c.ifNoneMatch_ != "" {
 19798  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19799  	}
 19800  	var body io.Reader = nil
 19801  	c.urlParams_.Set("alt", alt)
 19802  	c.urlParams_.Set("prettyPrint", "false")
 19803  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19804  	urls += "?" + c.urlParams_.Encode()
 19805  	req, err := http.NewRequest("GET", urls, body)
 19806  	if err != nil {
 19807  		return nil, err
 19808  	}
 19809  	req.Header = reqHeaders
 19810  	googleapi.Expand(req.URL, map[string]string{
 19811  		"name": c.name,
 19812  	})
 19813  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19814  }
 19815  
 19816  // Do executes the "discoveryengine.projects.locations.dataStores.getSiteSearchEngine" call.
 19817  // Any non-2xx status code is an error. Response headers are in either
 19818  // *GoogleCloudDiscoveryengineV1SiteSearchEngine.ServerResponse.Header or (if a
 19819  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19820  // googleapi.IsNotModified to check whether the returned error was because
 19821  // http.StatusNotModified was returned.
 19822  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SiteSearchEngine, error) {
 19823  	gensupport.SetOptions(c.urlParams_, opts...)
 19824  	res, err := c.doRequest("json")
 19825  	if res != nil && res.StatusCode == http.StatusNotModified {
 19826  		if res.Body != nil {
 19827  			res.Body.Close()
 19828  		}
 19829  		return nil, gensupport.WrapError(&googleapi.Error{
 19830  			Code:   res.StatusCode,
 19831  			Header: res.Header,
 19832  		})
 19833  	}
 19834  	if err != nil {
 19835  		return nil, err
 19836  	}
 19837  	defer googleapi.CloseBody(res)
 19838  	if err := googleapi.CheckResponse(res); err != nil {
 19839  		return nil, gensupport.WrapError(err)
 19840  	}
 19841  	ret := &GoogleCloudDiscoveryengineV1SiteSearchEngine{
 19842  		ServerResponse: googleapi.ServerResponse{
 19843  			Header:         res.Header,
 19844  			HTTPStatusCode: res.StatusCode,
 19845  		},
 19846  	}
 19847  	target := &ret
 19848  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19849  		return nil, err
 19850  	}
 19851  	return ret, nil
 19852  }
 19853  
 19854  type ProjectsLocationsDataStoresListCall struct {
 19855  	s            *Service
 19856  	parent       string
 19857  	urlParams_   gensupport.URLParams
 19858  	ifNoneMatch_ string
 19859  	ctx_         context.Context
 19860  	header_      http.Header
 19861  }
 19862  
 19863  // List: Lists all the DataStores associated with the project.
 19864  //
 19865  //   - parent: The parent branch resource name, such as
 19866  //     `projects/{project}/locations/{location}/collections/{collection_id}`. If
 19867  //     the caller does not have permission to list DataStores under this
 19868  //     location, regardless of whether or not this data store exists, a
 19869  //     PERMISSION_DENIED error is returned.
 19870  func (r *ProjectsLocationsDataStoresService) List(parent string) *ProjectsLocationsDataStoresListCall {
 19871  	c := &ProjectsLocationsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19872  	c.parent = parent
 19873  	return c
 19874  }
 19875  
 19876  // Filter sets the optional parameter "filter": Filter by solution type . For
 19877  // example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
 19878  func (c *ProjectsLocationsDataStoresListCall) Filter(filter string) *ProjectsLocationsDataStoresListCall {
 19879  	c.urlParams_.Set("filter", filter)
 19880  	return c
 19881  }
 19882  
 19883  // PageSize sets the optional parameter "pageSize": Maximum number of
 19884  // DataStores to return. If unspecified, defaults to 10. The maximum allowed
 19885  // value is 50. Values above 50 will be coerced to 50. If this field is
 19886  // negative, an INVALID_ARGUMENT is returned.
 19887  func (c *ProjectsLocationsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresListCall {
 19888  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19889  	return c
 19890  }
 19891  
 19892  // PageToken sets the optional parameter "pageToken": A page token
 19893  // ListDataStoresResponse.next_page_token, received from a previous
 19894  // DataStoreService.ListDataStores call. Provide this to retrieve the
 19895  // subsequent page. When paginating, all other parameters provided to
 19896  // DataStoreService.ListDataStores must match the call that provided the page
 19897  // token. Otherwise, an INVALID_ARGUMENT error is returned.
 19898  func (c *ProjectsLocationsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresListCall {
 19899  	c.urlParams_.Set("pageToken", pageToken)
 19900  	return c
 19901  }
 19902  
 19903  // Fields allows partial responses to be retrieved. See
 19904  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19905  // details.
 19906  func (c *ProjectsLocationsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresListCall {
 19907  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19908  	return c
 19909  }
 19910  
 19911  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19912  // object's ETag matches the given value. This is useful for getting updates
 19913  // only after the object has changed since the last request.
 19914  func (c *ProjectsLocationsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresListCall {
 19915  	c.ifNoneMatch_ = entityTag
 19916  	return c
 19917  }
 19918  
 19919  // Context sets the context to be used in this call's Do method.
 19920  func (c *ProjectsLocationsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresListCall {
 19921  	c.ctx_ = ctx
 19922  	return c
 19923  }
 19924  
 19925  // Header returns a http.Header that can be modified by the caller to add
 19926  // headers to the request.
 19927  func (c *ProjectsLocationsDataStoresListCall) Header() http.Header {
 19928  	if c.header_ == nil {
 19929  		c.header_ = make(http.Header)
 19930  	}
 19931  	return c.header_
 19932  }
 19933  
 19934  func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
 19935  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19936  	if c.ifNoneMatch_ != "" {
 19937  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19938  	}
 19939  	var body io.Reader = nil
 19940  	c.urlParams_.Set("alt", alt)
 19941  	c.urlParams_.Set("prettyPrint", "false")
 19942  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
 19943  	urls += "?" + c.urlParams_.Encode()
 19944  	req, err := http.NewRequest("GET", urls, body)
 19945  	if err != nil {
 19946  		return nil, err
 19947  	}
 19948  	req.Header = reqHeaders
 19949  	googleapi.Expand(req.URL, map[string]string{
 19950  		"parent": c.parent,
 19951  	})
 19952  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19953  }
 19954  
 19955  // Do executes the "discoveryengine.projects.locations.dataStores.list" call.
 19956  // Any non-2xx status code is an error. Response headers are in either
 19957  // *GoogleCloudDiscoveryengineV1ListDataStoresResponse.ServerResponse.Header or
 19958  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 19959  // googleapi.IsNotModified to check whether the returned error was because
 19960  // http.StatusNotModified was returned.
 19961  func (c *ProjectsLocationsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDataStoresResponse, error) {
 19962  	gensupport.SetOptions(c.urlParams_, opts...)
 19963  	res, err := c.doRequest("json")
 19964  	if res != nil && res.StatusCode == http.StatusNotModified {
 19965  		if res.Body != nil {
 19966  			res.Body.Close()
 19967  		}
 19968  		return nil, gensupport.WrapError(&googleapi.Error{
 19969  			Code:   res.StatusCode,
 19970  			Header: res.Header,
 19971  		})
 19972  	}
 19973  	if err != nil {
 19974  		return nil, err
 19975  	}
 19976  	defer googleapi.CloseBody(res)
 19977  	if err := googleapi.CheckResponse(res); err != nil {
 19978  		return nil, gensupport.WrapError(err)
 19979  	}
 19980  	ret := &GoogleCloudDiscoveryengineV1ListDataStoresResponse{
 19981  		ServerResponse: googleapi.ServerResponse{
 19982  			Header:         res.Header,
 19983  			HTTPStatusCode: res.StatusCode,
 19984  		},
 19985  	}
 19986  	target := &ret
 19987  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19988  		return nil, err
 19989  	}
 19990  	return ret, nil
 19991  }
 19992  
 19993  // Pages invokes f for each page of results.
 19994  // A non-nil error returned from f will halt the iteration.
 19995  // The provided context supersedes any context provided to the Context method.
 19996  func (c *ProjectsLocationsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDataStoresResponse) error) error {
 19997  	c.ctx_ = ctx
 19998  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19999  	for {
 20000  		x, err := c.Do()
 20001  		if err != nil {
 20002  			return err
 20003  		}
 20004  		if err := f(x); err != nil {
 20005  			return err
 20006  		}
 20007  		if x.NextPageToken == "" {
 20008  			return nil
 20009  		}
 20010  		c.PageToken(x.NextPageToken)
 20011  	}
 20012  }
 20013  
 20014  type ProjectsLocationsDataStoresPatchCall struct {
 20015  	s                                     *Service
 20016  	name                                  string
 20017  	googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
 20018  	urlParams_                            gensupport.URLParams
 20019  	ctx_                                  context.Context
 20020  	header_                               http.Header
 20021  }
 20022  
 20023  // Patch: Updates a DataStore
 20024  //
 20025  //   - name: Immutable. The full resource name of the data store. Format:
 20026  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 20027  //     ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
 20028  //     length limit of 1024 characters.
 20029  func (r *ProjectsLocationsDataStoresService) Patch(name string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsDataStoresPatchCall {
 20030  	c := &ProjectsLocationsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20031  	c.name = name
 20032  	c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
 20033  	return c
 20034  }
 20035  
 20036  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 20037  // in the provided DataStore to update. If an unsupported or unknown field is
 20038  // provided, an INVALID_ARGUMENT error is returned.
 20039  func (c *ProjectsLocationsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresPatchCall {
 20040  	c.urlParams_.Set("updateMask", updateMask)
 20041  	return c
 20042  }
 20043  
 20044  // Fields allows partial responses to be retrieved. See
 20045  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20046  // details.
 20047  func (c *ProjectsLocationsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresPatchCall {
 20048  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20049  	return c
 20050  }
 20051  
 20052  // Context sets the context to be used in this call's Do method.
 20053  func (c *ProjectsLocationsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresPatchCall {
 20054  	c.ctx_ = ctx
 20055  	return c
 20056  }
 20057  
 20058  // Header returns a http.Header that can be modified by the caller to add
 20059  // headers to the request.
 20060  func (c *ProjectsLocationsDataStoresPatchCall) Header() http.Header {
 20061  	if c.header_ == nil {
 20062  		c.header_ = make(http.Header)
 20063  	}
 20064  	return c.header_
 20065  }
 20066  
 20067  func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 20068  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20069  	var body io.Reader = nil
 20070  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
 20071  	if err != nil {
 20072  		return nil, err
 20073  	}
 20074  	c.urlParams_.Set("alt", alt)
 20075  	c.urlParams_.Set("prettyPrint", "false")
 20076  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20077  	urls += "?" + c.urlParams_.Encode()
 20078  	req, err := http.NewRequest("PATCH", urls, body)
 20079  	if err != nil {
 20080  		return nil, err
 20081  	}
 20082  	req.Header = reqHeaders
 20083  	googleapi.Expand(req.URL, map[string]string{
 20084  		"name": c.name,
 20085  	})
 20086  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20087  }
 20088  
 20089  // Do executes the "discoveryengine.projects.locations.dataStores.patch" call.
 20090  // Any non-2xx status code is an error. Response headers are in either
 20091  // *GoogleCloudDiscoveryengineV1DataStore.ServerResponse.Header or (if a
 20092  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20093  // googleapi.IsNotModified to check whether the returned error was because
 20094  // http.StatusNotModified was returned.
 20095  func (c *ProjectsLocationsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
 20096  	gensupport.SetOptions(c.urlParams_, opts...)
 20097  	res, err := c.doRequest("json")
 20098  	if res != nil && res.StatusCode == http.StatusNotModified {
 20099  		if res.Body != nil {
 20100  			res.Body.Close()
 20101  		}
 20102  		return nil, gensupport.WrapError(&googleapi.Error{
 20103  			Code:   res.StatusCode,
 20104  			Header: res.Header,
 20105  		})
 20106  	}
 20107  	if err != nil {
 20108  		return nil, err
 20109  	}
 20110  	defer googleapi.CloseBody(res)
 20111  	if err := googleapi.CheckResponse(res); err != nil {
 20112  		return nil, gensupport.WrapError(err)
 20113  	}
 20114  	ret := &GoogleCloudDiscoveryengineV1DataStore{
 20115  		ServerResponse: googleapi.ServerResponse{
 20116  			Header:         res.Header,
 20117  			HTTPStatusCode: res.StatusCode,
 20118  		},
 20119  	}
 20120  	target := &ret
 20121  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20122  		return nil, err
 20123  	}
 20124  	return ret, nil
 20125  }
 20126  
 20127  type ProjectsLocationsDataStoresBranchesDocumentsCreateCall struct {
 20128  	s                                    *Service
 20129  	parent                               string
 20130  	googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
 20131  	urlParams_                           gensupport.URLParams
 20132  	ctx_                                 context.Context
 20133  	header_                              http.Header
 20134  }
 20135  
 20136  // Create: Creates a Document.
 20137  //
 20138  //   - parent: The parent resource name, such as
 20139  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20140  //     s/{data_store}/branches/{branch}`.
 20141  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 20142  	c := &ProjectsLocationsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20143  	c.parent = parent
 20144  	c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
 20145  	return c
 20146  }
 20147  
 20148  // DocumentId sets the optional parameter "documentId": Required. The ID to use
 20149  // for the Document, which will become the final component of the
 20150  // Document.name. If the caller does not have permission to create the
 20151  // Document, regardless of whether or not it exists, a `PERMISSION_DENIED`
 20152  // error is returned. This field must be unique among all Documents with the
 20153  // same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field
 20154  // must conform to RFC-1034 (https://tools.ietf.org/html/rfc1034) standard with
 20155  // a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
 20156  // returned.
 20157  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 20158  	c.urlParams_.Set("documentId", documentId)
 20159  	return c
 20160  }
 20161  
 20162  // Fields allows partial responses to be retrieved. See
 20163  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20164  // details.
 20165  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 20166  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20167  	return c
 20168  }
 20169  
 20170  // Context sets the context to be used in this call's Do method.
 20171  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 20172  	c.ctx_ = ctx
 20173  	return c
 20174  }
 20175  
 20176  // Header returns a http.Header that can be modified by the caller to add
 20177  // headers to the request.
 20178  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
 20179  	if c.header_ == nil {
 20180  		c.header_ = make(http.Header)
 20181  	}
 20182  	return c.header_
 20183  }
 20184  
 20185  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 20186  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20187  	var body io.Reader = nil
 20188  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
 20189  	if err != nil {
 20190  		return nil, err
 20191  	}
 20192  	c.urlParams_.Set("alt", alt)
 20193  	c.urlParams_.Set("prettyPrint", "false")
 20194  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
 20195  	urls += "?" + c.urlParams_.Encode()
 20196  	req, err := http.NewRequest("POST", urls, body)
 20197  	if err != nil {
 20198  		return nil, err
 20199  	}
 20200  	req.Header = reqHeaders
 20201  	googleapi.Expand(req.URL, map[string]string{
 20202  		"parent": c.parent,
 20203  	})
 20204  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20205  }
 20206  
 20207  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.create" call.
 20208  // Any non-2xx status code is an error. Response headers are in either
 20209  // *GoogleCloudDiscoveryengineV1Document.ServerResponse.Header or (if a
 20210  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20211  // googleapi.IsNotModified to check whether the returned error was because
 20212  // http.StatusNotModified was returned.
 20213  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
 20214  	gensupport.SetOptions(c.urlParams_, opts...)
 20215  	res, err := c.doRequest("json")
 20216  	if res != nil && res.StatusCode == http.StatusNotModified {
 20217  		if res.Body != nil {
 20218  			res.Body.Close()
 20219  		}
 20220  		return nil, gensupport.WrapError(&googleapi.Error{
 20221  			Code:   res.StatusCode,
 20222  			Header: res.Header,
 20223  		})
 20224  	}
 20225  	if err != nil {
 20226  		return nil, err
 20227  	}
 20228  	defer googleapi.CloseBody(res)
 20229  	if err := googleapi.CheckResponse(res); err != nil {
 20230  		return nil, gensupport.WrapError(err)
 20231  	}
 20232  	ret := &GoogleCloudDiscoveryengineV1Document{
 20233  		ServerResponse: googleapi.ServerResponse{
 20234  			Header:         res.Header,
 20235  			HTTPStatusCode: res.StatusCode,
 20236  		},
 20237  	}
 20238  	target := &ret
 20239  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20240  		return nil, err
 20241  	}
 20242  	return ret, nil
 20243  }
 20244  
 20245  type ProjectsLocationsDataStoresBranchesDocumentsDeleteCall struct {
 20246  	s          *Service
 20247  	name       string
 20248  	urlParams_ gensupport.URLParams
 20249  	ctx_       context.Context
 20250  	header_    http.Header
 20251  }
 20252  
 20253  // Delete: Deletes a Document.
 20254  //
 20255  //   - name: Full resource name of Document, such as
 20256  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20257  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 20258  //     not have permission to delete the Document, regardless of whether or not
 20259  //     it exists, a `PERMISSION_DENIED` error is returned. If the Document to
 20260  //     delete does not exist, a `NOT_FOUND` error is returned.
 20261  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 20262  	c := &ProjectsLocationsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20263  	c.name = name
 20264  	return c
 20265  }
 20266  
 20267  // Fields allows partial responses to be retrieved. See
 20268  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20269  // details.
 20270  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 20271  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20272  	return c
 20273  }
 20274  
 20275  // Context sets the context to be used in this call's Do method.
 20276  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 20277  	c.ctx_ = ctx
 20278  	return c
 20279  }
 20280  
 20281  // Header returns a http.Header that can be modified by the caller to add
 20282  // headers to the request.
 20283  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
 20284  	if c.header_ == nil {
 20285  		c.header_ = make(http.Header)
 20286  	}
 20287  	return c.header_
 20288  }
 20289  
 20290  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 20291  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20292  	var body io.Reader = nil
 20293  	c.urlParams_.Set("alt", alt)
 20294  	c.urlParams_.Set("prettyPrint", "false")
 20295  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20296  	urls += "?" + c.urlParams_.Encode()
 20297  	req, err := http.NewRequest("DELETE", urls, body)
 20298  	if err != nil {
 20299  		return nil, err
 20300  	}
 20301  	req.Header = reqHeaders
 20302  	googleapi.Expand(req.URL, map[string]string{
 20303  		"name": c.name,
 20304  	})
 20305  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20306  }
 20307  
 20308  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.delete" call.
 20309  // Any non-2xx status code is an error. Response headers are in either
 20310  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 20311  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20312  // check whether the returned error was because http.StatusNotModified was
 20313  // returned.
 20314  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 20315  	gensupport.SetOptions(c.urlParams_, opts...)
 20316  	res, err := c.doRequest("json")
 20317  	if res != nil && res.StatusCode == http.StatusNotModified {
 20318  		if res.Body != nil {
 20319  			res.Body.Close()
 20320  		}
 20321  		return nil, gensupport.WrapError(&googleapi.Error{
 20322  			Code:   res.StatusCode,
 20323  			Header: res.Header,
 20324  		})
 20325  	}
 20326  	if err != nil {
 20327  		return nil, err
 20328  	}
 20329  	defer googleapi.CloseBody(res)
 20330  	if err := googleapi.CheckResponse(res); err != nil {
 20331  		return nil, gensupport.WrapError(err)
 20332  	}
 20333  	ret := &GoogleProtobufEmpty{
 20334  		ServerResponse: googleapi.ServerResponse{
 20335  			Header:         res.Header,
 20336  			HTTPStatusCode: res.StatusCode,
 20337  		},
 20338  	}
 20339  	target := &ret
 20340  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20341  		return nil, err
 20342  	}
 20343  	return ret, nil
 20344  }
 20345  
 20346  type ProjectsLocationsDataStoresBranchesDocumentsGetCall struct {
 20347  	s            *Service
 20348  	name         string
 20349  	urlParams_   gensupport.URLParams
 20350  	ifNoneMatch_ string
 20351  	ctx_         context.Context
 20352  	header_      http.Header
 20353  }
 20354  
 20355  // Get: Gets a Document.
 20356  //
 20357  //   - name: Full resource name of Document, such as
 20358  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20359  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 20360  //     not have permission to access the Document, regardless of whether or not
 20361  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 20362  //     Document does not exist, a `NOT_FOUND` error is returned.
 20363  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 20364  	c := &ProjectsLocationsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20365  	c.name = name
 20366  	return c
 20367  }
 20368  
 20369  // Fields allows partial responses to be retrieved. See
 20370  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20371  // details.
 20372  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 20373  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20374  	return c
 20375  }
 20376  
 20377  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20378  // object's ETag matches the given value. This is useful for getting updates
 20379  // only after the object has changed since the last request.
 20380  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 20381  	c.ifNoneMatch_ = entityTag
 20382  	return c
 20383  }
 20384  
 20385  // Context sets the context to be used in this call's Do method.
 20386  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 20387  	c.ctx_ = ctx
 20388  	return c
 20389  }
 20390  
 20391  // Header returns a http.Header that can be modified by the caller to add
 20392  // headers to the request.
 20393  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Header() http.Header {
 20394  	if c.header_ == nil {
 20395  		c.header_ = make(http.Header)
 20396  	}
 20397  	return c.header_
 20398  }
 20399  
 20400  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 20401  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20402  	if c.ifNoneMatch_ != "" {
 20403  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20404  	}
 20405  	var body io.Reader = nil
 20406  	c.urlParams_.Set("alt", alt)
 20407  	c.urlParams_.Set("prettyPrint", "false")
 20408  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20409  	urls += "?" + c.urlParams_.Encode()
 20410  	req, err := http.NewRequest("GET", urls, body)
 20411  	if err != nil {
 20412  		return nil, err
 20413  	}
 20414  	req.Header = reqHeaders
 20415  	googleapi.Expand(req.URL, map[string]string{
 20416  		"name": c.name,
 20417  	})
 20418  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20419  }
 20420  
 20421  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.get" call.
 20422  // Any non-2xx status code is an error. Response headers are in either
 20423  // *GoogleCloudDiscoveryengineV1Document.ServerResponse.Header or (if a
 20424  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20425  // googleapi.IsNotModified to check whether the returned error was because
 20426  // http.StatusNotModified was returned.
 20427  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
 20428  	gensupport.SetOptions(c.urlParams_, opts...)
 20429  	res, err := c.doRequest("json")
 20430  	if res != nil && res.StatusCode == http.StatusNotModified {
 20431  		if res.Body != nil {
 20432  			res.Body.Close()
 20433  		}
 20434  		return nil, gensupport.WrapError(&googleapi.Error{
 20435  			Code:   res.StatusCode,
 20436  			Header: res.Header,
 20437  		})
 20438  	}
 20439  	if err != nil {
 20440  		return nil, err
 20441  	}
 20442  	defer googleapi.CloseBody(res)
 20443  	if err := googleapi.CheckResponse(res); err != nil {
 20444  		return nil, gensupport.WrapError(err)
 20445  	}
 20446  	ret := &GoogleCloudDiscoveryengineV1Document{
 20447  		ServerResponse: googleapi.ServerResponse{
 20448  			Header:         res.Header,
 20449  			HTTPStatusCode: res.StatusCode,
 20450  		},
 20451  	}
 20452  	target := &ret
 20453  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20454  		return nil, err
 20455  	}
 20456  	return ret, nil
 20457  }
 20458  
 20459  type ProjectsLocationsDataStoresBranchesDocumentsImportCall struct {
 20460  	s                                                  *Service
 20461  	parent                                             string
 20462  	googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest
 20463  	urlParams_                                         gensupport.URLParams
 20464  	ctx_                                               context.Context
 20465  	header_                                            http.Header
 20466  }
 20467  
 20468  // Import: Bulk import of multiple Documents. Request processing may be
 20469  // synchronous. Non-existing items will be created. Note: It is possible for a
 20470  // subset of the Documents to be successfully updated.
 20471  //
 20472  //   - parent: The parent branch resource name, such as
 20473  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20474  //     s/{data_store}/branches/{branch}`. Requires create/update permission.
 20475  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 20476  	c := &ProjectsLocationsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20477  	c.parent = parent
 20478  	c.googleclouddiscoveryenginev1importdocumentsrequest = googleclouddiscoveryenginev1importdocumentsrequest
 20479  	return c
 20480  }
 20481  
 20482  // Fields allows partial responses to be retrieved. See
 20483  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20484  // details.
 20485  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 20486  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20487  	return c
 20488  }
 20489  
 20490  // Context sets the context to be used in this call's Do method.
 20491  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 20492  	c.ctx_ = ctx
 20493  	return c
 20494  }
 20495  
 20496  // Header returns a http.Header that can be modified by the caller to add
 20497  // headers to the request.
 20498  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Header() http.Header {
 20499  	if c.header_ == nil {
 20500  		c.header_ = make(http.Header)
 20501  	}
 20502  	return c.header_
 20503  }
 20504  
 20505  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 20506  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20507  	var body io.Reader = nil
 20508  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importdocumentsrequest)
 20509  	if err != nil {
 20510  		return nil, err
 20511  	}
 20512  	c.urlParams_.Set("alt", alt)
 20513  	c.urlParams_.Set("prettyPrint", "false")
 20514  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:import")
 20515  	urls += "?" + c.urlParams_.Encode()
 20516  	req, err := http.NewRequest("POST", urls, body)
 20517  	if err != nil {
 20518  		return nil, err
 20519  	}
 20520  	req.Header = reqHeaders
 20521  	googleapi.Expand(req.URL, map[string]string{
 20522  		"parent": c.parent,
 20523  	})
 20524  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20525  }
 20526  
 20527  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.import" call.
 20528  // Any non-2xx status code is an error. Response headers are in either
 20529  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20530  // returned at all) in error.(*googleapi.Error).Header. Use
 20531  // googleapi.IsNotModified to check whether the returned error was because
 20532  // http.StatusNotModified was returned.
 20533  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20534  	gensupport.SetOptions(c.urlParams_, opts...)
 20535  	res, err := c.doRequest("json")
 20536  	if res != nil && res.StatusCode == http.StatusNotModified {
 20537  		if res.Body != nil {
 20538  			res.Body.Close()
 20539  		}
 20540  		return nil, gensupport.WrapError(&googleapi.Error{
 20541  			Code:   res.StatusCode,
 20542  			Header: res.Header,
 20543  		})
 20544  	}
 20545  	if err != nil {
 20546  		return nil, err
 20547  	}
 20548  	defer googleapi.CloseBody(res)
 20549  	if err := googleapi.CheckResponse(res); err != nil {
 20550  		return nil, gensupport.WrapError(err)
 20551  	}
 20552  	ret := &GoogleLongrunningOperation{
 20553  		ServerResponse: googleapi.ServerResponse{
 20554  			Header:         res.Header,
 20555  			HTTPStatusCode: res.StatusCode,
 20556  		},
 20557  	}
 20558  	target := &ret
 20559  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20560  		return nil, err
 20561  	}
 20562  	return ret, nil
 20563  }
 20564  
 20565  type ProjectsLocationsDataStoresBranchesDocumentsListCall struct {
 20566  	s            *Service
 20567  	parent       string
 20568  	urlParams_   gensupport.URLParams
 20569  	ifNoneMatch_ string
 20570  	ctx_         context.Context
 20571  	header_      http.Header
 20572  }
 20573  
 20574  // List: Gets a list of Documents.
 20575  //
 20576  //   - parent: The parent branch resource name, such as
 20577  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20578  //     s/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID,
 20579  //     to list documents under the default branch. If the caller does not have
 20580  //     permission to list Documents under this branch, regardless of whether or
 20581  //     not this branch exists, a `PERMISSION_DENIED` error is returned.
 20582  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 20583  	c := &ProjectsLocationsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20584  	c.parent = parent
 20585  	return c
 20586  }
 20587  
 20588  // PageSize sets the optional parameter "pageSize": Maximum number of Documents
 20589  // to return. If unspecified, defaults to 100. The maximum allowed value is
 20590  // 1000. Values above 1000 will be coerced to 1000. If this field is negative,
 20591  // an `INVALID_ARGUMENT` error is returned.
 20592  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 20593  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20594  	return c
 20595  }
 20596  
 20597  // PageToken sets the optional parameter "pageToken": A page token
 20598  // ListDocumentsResponse.next_page_token, received from a previous
 20599  // DocumentService.ListDocuments call. Provide this to retrieve the subsequent
 20600  // page. When paginating, all other parameters provided to
 20601  // DocumentService.ListDocuments must match the call that provided the page
 20602  // token. Otherwise, an `INVALID_ARGUMENT` error is returned.
 20603  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 20604  	c.urlParams_.Set("pageToken", pageToken)
 20605  	return c
 20606  }
 20607  
 20608  // Fields allows partial responses to be retrieved. See
 20609  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20610  // details.
 20611  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 20612  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20613  	return c
 20614  }
 20615  
 20616  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20617  // object's ETag matches the given value. This is useful for getting updates
 20618  // only after the object has changed since the last request.
 20619  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 20620  	c.ifNoneMatch_ = entityTag
 20621  	return c
 20622  }
 20623  
 20624  // Context sets the context to be used in this call's Do method.
 20625  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 20626  	c.ctx_ = ctx
 20627  	return c
 20628  }
 20629  
 20630  // Header returns a http.Header that can be modified by the caller to add
 20631  // headers to the request.
 20632  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Header() http.Header {
 20633  	if c.header_ == nil {
 20634  		c.header_ = make(http.Header)
 20635  	}
 20636  	return c.header_
 20637  }
 20638  
 20639  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 20640  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20641  	if c.ifNoneMatch_ != "" {
 20642  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20643  	}
 20644  	var body io.Reader = nil
 20645  	c.urlParams_.Set("alt", alt)
 20646  	c.urlParams_.Set("prettyPrint", "false")
 20647  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
 20648  	urls += "?" + c.urlParams_.Encode()
 20649  	req, err := http.NewRequest("GET", urls, body)
 20650  	if err != nil {
 20651  		return nil, err
 20652  	}
 20653  	req.Header = reqHeaders
 20654  	googleapi.Expand(req.URL, map[string]string{
 20655  		"parent": c.parent,
 20656  	})
 20657  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20658  }
 20659  
 20660  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.list" call.
 20661  // Any non-2xx status code is an error. Response headers are in either
 20662  // *GoogleCloudDiscoveryengineV1ListDocumentsResponse.ServerResponse.Header or
 20663  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 20664  // googleapi.IsNotModified to check whether the returned error was because
 20665  // http.StatusNotModified was returned.
 20666  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDocumentsResponse, error) {
 20667  	gensupport.SetOptions(c.urlParams_, opts...)
 20668  	res, err := c.doRequest("json")
 20669  	if res != nil && res.StatusCode == http.StatusNotModified {
 20670  		if res.Body != nil {
 20671  			res.Body.Close()
 20672  		}
 20673  		return nil, gensupport.WrapError(&googleapi.Error{
 20674  			Code:   res.StatusCode,
 20675  			Header: res.Header,
 20676  		})
 20677  	}
 20678  	if err != nil {
 20679  		return nil, err
 20680  	}
 20681  	defer googleapi.CloseBody(res)
 20682  	if err := googleapi.CheckResponse(res); err != nil {
 20683  		return nil, gensupport.WrapError(err)
 20684  	}
 20685  	ret := &GoogleCloudDiscoveryengineV1ListDocumentsResponse{
 20686  		ServerResponse: googleapi.ServerResponse{
 20687  			Header:         res.Header,
 20688  			HTTPStatusCode: res.StatusCode,
 20689  		},
 20690  	}
 20691  	target := &ret
 20692  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20693  		return nil, err
 20694  	}
 20695  	return ret, nil
 20696  }
 20697  
 20698  // Pages invokes f for each page of results.
 20699  // A non-nil error returned from f will halt the iteration.
 20700  // The provided context supersedes any context provided to the Context method.
 20701  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDocumentsResponse) error) error {
 20702  	c.ctx_ = ctx
 20703  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20704  	for {
 20705  		x, err := c.Do()
 20706  		if err != nil {
 20707  			return err
 20708  		}
 20709  		if err := f(x); err != nil {
 20710  			return err
 20711  		}
 20712  		if x.NextPageToken == "" {
 20713  			return nil
 20714  		}
 20715  		c.PageToken(x.NextPageToken)
 20716  	}
 20717  }
 20718  
 20719  type ProjectsLocationsDataStoresBranchesDocumentsPatchCall struct {
 20720  	s                                    *Service
 20721  	name                                 string
 20722  	googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
 20723  	urlParams_                           gensupport.URLParams
 20724  	ctx_                                 context.Context
 20725  	header_                              http.Header
 20726  }
 20727  
 20728  // Patch: Updates a Document.
 20729  //
 20730  //   - name: Immutable. The full resource name of the document. Format:
 20731  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20732  //     s/{data_store}/branches/{branch}/documents/{document_id}`. This field must
 20733  //     be a UTF-8 encoded string with a length limit of 1024 characters.
 20734  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 20735  	c := &ProjectsLocationsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20736  	c.name = name
 20737  	c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
 20738  	return c
 20739  }
 20740  
 20741  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 20742  // the Document is not found, a new Document will be created.
 20743  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 20744  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 20745  	return c
 20746  }
 20747  
 20748  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 20749  // in the provided imported 'document' to update. If not set, will by default
 20750  // update all fields.
 20751  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 20752  	c.urlParams_.Set("updateMask", updateMask)
 20753  	return c
 20754  }
 20755  
 20756  // Fields allows partial responses to be retrieved. See
 20757  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20758  // details.
 20759  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 20760  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20761  	return c
 20762  }
 20763  
 20764  // Context sets the context to be used in this call's Do method.
 20765  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 20766  	c.ctx_ = ctx
 20767  	return c
 20768  }
 20769  
 20770  // Header returns a http.Header that can be modified by the caller to add
 20771  // headers to the request.
 20772  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
 20773  	if c.header_ == nil {
 20774  		c.header_ = make(http.Header)
 20775  	}
 20776  	return c.header_
 20777  }
 20778  
 20779  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 20780  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20781  	var body io.Reader = nil
 20782  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
 20783  	if err != nil {
 20784  		return nil, err
 20785  	}
 20786  	c.urlParams_.Set("alt", alt)
 20787  	c.urlParams_.Set("prettyPrint", "false")
 20788  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20789  	urls += "?" + c.urlParams_.Encode()
 20790  	req, err := http.NewRequest("PATCH", urls, body)
 20791  	if err != nil {
 20792  		return nil, err
 20793  	}
 20794  	req.Header = reqHeaders
 20795  	googleapi.Expand(req.URL, map[string]string{
 20796  		"name": c.name,
 20797  	})
 20798  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20799  }
 20800  
 20801  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.patch" call.
 20802  // Any non-2xx status code is an error. Response headers are in either
 20803  // *GoogleCloudDiscoveryengineV1Document.ServerResponse.Header or (if a
 20804  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20805  // googleapi.IsNotModified to check whether the returned error was because
 20806  // http.StatusNotModified was returned.
 20807  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
 20808  	gensupport.SetOptions(c.urlParams_, opts...)
 20809  	res, err := c.doRequest("json")
 20810  	if res != nil && res.StatusCode == http.StatusNotModified {
 20811  		if res.Body != nil {
 20812  			res.Body.Close()
 20813  		}
 20814  		return nil, gensupport.WrapError(&googleapi.Error{
 20815  			Code:   res.StatusCode,
 20816  			Header: res.Header,
 20817  		})
 20818  	}
 20819  	if err != nil {
 20820  		return nil, err
 20821  	}
 20822  	defer googleapi.CloseBody(res)
 20823  	if err := googleapi.CheckResponse(res); err != nil {
 20824  		return nil, gensupport.WrapError(err)
 20825  	}
 20826  	ret := &GoogleCloudDiscoveryengineV1Document{
 20827  		ServerResponse: googleapi.ServerResponse{
 20828  			Header:         res.Header,
 20829  			HTTPStatusCode: res.StatusCode,
 20830  		},
 20831  	}
 20832  	target := &ret
 20833  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20834  		return nil, err
 20835  	}
 20836  	return ret, nil
 20837  }
 20838  
 20839  type ProjectsLocationsDataStoresBranchesDocumentsPurgeCall struct {
 20840  	s                                                 *Service
 20841  	parent                                            string
 20842  	googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest
 20843  	urlParams_                                        gensupport.URLParams
 20844  	ctx_                                              context.Context
 20845  	header_                                           http.Header
 20846  }
 20847  
 20848  // Purge: Permanently deletes all selected Documents in a branch. This process
 20849  // is asynchronous. Depending on the number of Documents to be deleted, this
 20850  // operation can take hours to complete. Before the delete operation completes,
 20851  // some Documents might still be returned by DocumentService.GetDocument or
 20852  // DocumentService.ListDocuments. To get a list of the Documents to be deleted,
 20853  // set PurgeDocumentsRequest.force to false.
 20854  //
 20855  //   - parent: The parent resource name, such as
 20856  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20857  //     s/{data_store}/branches/{branch}`.
 20858  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 20859  	c := &ProjectsLocationsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20860  	c.parent = parent
 20861  	c.googleclouddiscoveryenginev1purgedocumentsrequest = googleclouddiscoveryenginev1purgedocumentsrequest
 20862  	return c
 20863  }
 20864  
 20865  // Fields allows partial responses to be retrieved. See
 20866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20867  // details.
 20868  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 20869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20870  	return c
 20871  }
 20872  
 20873  // Context sets the context to be used in this call's Do method.
 20874  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 20875  	c.ctx_ = ctx
 20876  	return c
 20877  }
 20878  
 20879  // Header returns a http.Header that can be modified by the caller to add
 20880  // headers to the request.
 20881  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
 20882  	if c.header_ == nil {
 20883  		c.header_ = make(http.Header)
 20884  	}
 20885  	return c.header_
 20886  }
 20887  
 20888  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
 20889  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20890  	var body io.Reader = nil
 20891  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgedocumentsrequest)
 20892  	if err != nil {
 20893  		return nil, err
 20894  	}
 20895  	c.urlParams_.Set("alt", alt)
 20896  	c.urlParams_.Set("prettyPrint", "false")
 20897  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:purge")
 20898  	urls += "?" + c.urlParams_.Encode()
 20899  	req, err := http.NewRequest("POST", urls, body)
 20900  	if err != nil {
 20901  		return nil, err
 20902  	}
 20903  	req.Header = reqHeaders
 20904  	googleapi.Expand(req.URL, map[string]string{
 20905  		"parent": c.parent,
 20906  	})
 20907  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20908  }
 20909  
 20910  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.purge" call.
 20911  // Any non-2xx status code is an error. Response headers are in either
 20912  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20913  // returned at all) in error.(*googleapi.Error).Header. Use
 20914  // googleapi.IsNotModified to check whether the returned error was because
 20915  // http.StatusNotModified was returned.
 20916  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20917  	gensupport.SetOptions(c.urlParams_, opts...)
 20918  	res, err := c.doRequest("json")
 20919  	if res != nil && res.StatusCode == http.StatusNotModified {
 20920  		if res.Body != nil {
 20921  			res.Body.Close()
 20922  		}
 20923  		return nil, gensupport.WrapError(&googleapi.Error{
 20924  			Code:   res.StatusCode,
 20925  			Header: res.Header,
 20926  		})
 20927  	}
 20928  	if err != nil {
 20929  		return nil, err
 20930  	}
 20931  	defer googleapi.CloseBody(res)
 20932  	if err := googleapi.CheckResponse(res); err != nil {
 20933  		return nil, gensupport.WrapError(err)
 20934  	}
 20935  	ret := &GoogleLongrunningOperation{
 20936  		ServerResponse: googleapi.ServerResponse{
 20937  			Header:         res.Header,
 20938  			HTTPStatusCode: res.StatusCode,
 20939  		},
 20940  	}
 20941  	target := &ret
 20942  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20943  		return nil, err
 20944  	}
 20945  	return ret, nil
 20946  }
 20947  
 20948  type ProjectsLocationsDataStoresBranchesOperationsCancelCall struct {
 20949  	s                                       *Service
 20950  	name                                    string
 20951  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 20952  	urlParams_                              gensupport.URLParams
 20953  	ctx_                                    context.Context
 20954  	header_                                 http.Header
 20955  }
 20956  
 20957  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 20958  // server makes a best effort to cancel the operation, but success is not
 20959  // guaranteed. If the server doesn't support this method, it returns
 20960  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 20961  // other methods to check whether the cancellation succeeded or whether the
 20962  // operation completed despite cancellation. On successful cancellation, the
 20963  // operation is not deleted; instead, it becomes an operation with an
 20964  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 20965  // `Code.CANCELLED`.
 20966  //
 20967  // - name: The name of the operation resource to be cancelled.
 20968  func (r *ProjectsLocationsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 20969  	c := &ProjectsLocationsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20970  	c.name = name
 20971  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 20972  	return c
 20973  }
 20974  
 20975  // Fields allows partial responses to be retrieved. See
 20976  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20977  // details.
 20978  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 20979  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20980  	return c
 20981  }
 20982  
 20983  // Context sets the context to be used in this call's Do method.
 20984  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 20985  	c.ctx_ = ctx
 20986  	return c
 20987  }
 20988  
 20989  // Header returns a http.Header that can be modified by the caller to add
 20990  // headers to the request.
 20991  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Header() http.Header {
 20992  	if c.header_ == nil {
 20993  		c.header_ = make(http.Header)
 20994  	}
 20995  	return c.header_
 20996  }
 20997  
 20998  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 20999  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21000  	var body io.Reader = nil
 21001  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 21002  	if err != nil {
 21003  		return nil, err
 21004  	}
 21005  	c.urlParams_.Set("alt", alt)
 21006  	c.urlParams_.Set("prettyPrint", "false")
 21007  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 21008  	urls += "?" + c.urlParams_.Encode()
 21009  	req, err := http.NewRequest("POST", urls, body)
 21010  	if err != nil {
 21011  		return nil, err
 21012  	}
 21013  	req.Header = reqHeaders
 21014  	googleapi.Expand(req.URL, map[string]string{
 21015  		"name": c.name,
 21016  	})
 21017  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21018  }
 21019  
 21020  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.cancel" call.
 21021  // Any non-2xx status code is an error. Response headers are in either
 21022  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21023  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21024  // check whether the returned error was because http.StatusNotModified was
 21025  // returned.
 21026  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21027  	gensupport.SetOptions(c.urlParams_, opts...)
 21028  	res, err := c.doRequest("json")
 21029  	if res != nil && res.StatusCode == http.StatusNotModified {
 21030  		if res.Body != nil {
 21031  			res.Body.Close()
 21032  		}
 21033  		return nil, gensupport.WrapError(&googleapi.Error{
 21034  			Code:   res.StatusCode,
 21035  			Header: res.Header,
 21036  		})
 21037  	}
 21038  	if err != nil {
 21039  		return nil, err
 21040  	}
 21041  	defer googleapi.CloseBody(res)
 21042  	if err := googleapi.CheckResponse(res); err != nil {
 21043  		return nil, gensupport.WrapError(err)
 21044  	}
 21045  	ret := &GoogleProtobufEmpty{
 21046  		ServerResponse: googleapi.ServerResponse{
 21047  			Header:         res.Header,
 21048  			HTTPStatusCode: res.StatusCode,
 21049  		},
 21050  	}
 21051  	target := &ret
 21052  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21053  		return nil, err
 21054  	}
 21055  	return ret, nil
 21056  }
 21057  
 21058  type ProjectsLocationsDataStoresBranchesOperationsGetCall struct {
 21059  	s            *Service
 21060  	name         string
 21061  	urlParams_   gensupport.URLParams
 21062  	ifNoneMatch_ string
 21063  	ctx_         context.Context
 21064  	header_      http.Header
 21065  }
 21066  
 21067  // Get: Gets the latest state of a long-running operation. Clients can use this
 21068  // method to poll the operation result at intervals as recommended by the API
 21069  // service.
 21070  //
 21071  // - name: The name of the operation resource.
 21072  func (r *ProjectsLocationsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 21073  	c := &ProjectsLocationsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21074  	c.name = name
 21075  	return c
 21076  }
 21077  
 21078  // Fields allows partial responses to be retrieved. See
 21079  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21080  // details.
 21081  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 21082  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21083  	return c
 21084  }
 21085  
 21086  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21087  // object's ETag matches the given value. This is useful for getting updates
 21088  // only after the object has changed since the last request.
 21089  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 21090  	c.ifNoneMatch_ = entityTag
 21091  	return c
 21092  }
 21093  
 21094  // Context sets the context to be used in this call's Do method.
 21095  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 21096  	c.ctx_ = ctx
 21097  	return c
 21098  }
 21099  
 21100  // Header returns a http.Header that can be modified by the caller to add
 21101  // headers to the request.
 21102  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Header() http.Header {
 21103  	if c.header_ == nil {
 21104  		c.header_ = make(http.Header)
 21105  	}
 21106  	return c.header_
 21107  }
 21108  
 21109  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 21110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21111  	if c.ifNoneMatch_ != "" {
 21112  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21113  	}
 21114  	var body io.Reader = nil
 21115  	c.urlParams_.Set("alt", alt)
 21116  	c.urlParams_.Set("prettyPrint", "false")
 21117  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21118  	urls += "?" + c.urlParams_.Encode()
 21119  	req, err := http.NewRequest("GET", urls, body)
 21120  	if err != nil {
 21121  		return nil, err
 21122  	}
 21123  	req.Header = reqHeaders
 21124  	googleapi.Expand(req.URL, map[string]string{
 21125  		"name": c.name,
 21126  	})
 21127  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21128  }
 21129  
 21130  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.get" call.
 21131  // Any non-2xx status code is an error. Response headers are in either
 21132  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21133  // returned at all) in error.(*googleapi.Error).Header. Use
 21134  // googleapi.IsNotModified to check whether the returned error was because
 21135  // http.StatusNotModified was returned.
 21136  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21137  	gensupport.SetOptions(c.urlParams_, opts...)
 21138  	res, err := c.doRequest("json")
 21139  	if res != nil && res.StatusCode == http.StatusNotModified {
 21140  		if res.Body != nil {
 21141  			res.Body.Close()
 21142  		}
 21143  		return nil, gensupport.WrapError(&googleapi.Error{
 21144  			Code:   res.StatusCode,
 21145  			Header: res.Header,
 21146  		})
 21147  	}
 21148  	if err != nil {
 21149  		return nil, err
 21150  	}
 21151  	defer googleapi.CloseBody(res)
 21152  	if err := googleapi.CheckResponse(res); err != nil {
 21153  		return nil, gensupport.WrapError(err)
 21154  	}
 21155  	ret := &GoogleLongrunningOperation{
 21156  		ServerResponse: googleapi.ServerResponse{
 21157  			Header:         res.Header,
 21158  			HTTPStatusCode: res.StatusCode,
 21159  		},
 21160  	}
 21161  	target := &ret
 21162  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21163  		return nil, err
 21164  	}
 21165  	return ret, nil
 21166  }
 21167  
 21168  type ProjectsLocationsDataStoresBranchesOperationsListCall struct {
 21169  	s            *Service
 21170  	name         string
 21171  	urlParams_   gensupport.URLParams
 21172  	ifNoneMatch_ string
 21173  	ctx_         context.Context
 21174  	header_      http.Header
 21175  }
 21176  
 21177  // List: Lists operations that match the specified filter in the request. If
 21178  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 21179  //
 21180  // - name: The name of the operation's parent resource.
 21181  func (r *ProjectsLocationsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21182  	c := &ProjectsLocationsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21183  	c.name = name
 21184  	return c
 21185  }
 21186  
 21187  // Filter sets the optional parameter "filter": The standard list filter.
 21188  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21189  	c.urlParams_.Set("filter", filter)
 21190  	return c
 21191  }
 21192  
 21193  // PageSize sets the optional parameter "pageSize": The standard list page
 21194  // size.
 21195  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21196  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21197  	return c
 21198  }
 21199  
 21200  // PageToken sets the optional parameter "pageToken": The standard list page
 21201  // token.
 21202  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21203  	c.urlParams_.Set("pageToken", pageToken)
 21204  	return c
 21205  }
 21206  
 21207  // Fields allows partial responses to be retrieved. See
 21208  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21209  // details.
 21210  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21211  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21212  	return c
 21213  }
 21214  
 21215  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21216  // object's ETag matches the given value. This is useful for getting updates
 21217  // only after the object has changed since the last request.
 21218  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21219  	c.ifNoneMatch_ = entityTag
 21220  	return c
 21221  }
 21222  
 21223  // Context sets the context to be used in this call's Do method.
 21224  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 21225  	c.ctx_ = ctx
 21226  	return c
 21227  }
 21228  
 21229  // Header returns a http.Header that can be modified by the caller to add
 21230  // headers to the request.
 21231  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Header() http.Header {
 21232  	if c.header_ == nil {
 21233  		c.header_ = make(http.Header)
 21234  	}
 21235  	return c.header_
 21236  }
 21237  
 21238  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 21239  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21240  	if c.ifNoneMatch_ != "" {
 21241  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21242  	}
 21243  	var body io.Reader = nil
 21244  	c.urlParams_.Set("alt", alt)
 21245  	c.urlParams_.Set("prettyPrint", "false")
 21246  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 21247  	urls += "?" + c.urlParams_.Encode()
 21248  	req, err := http.NewRequest("GET", urls, body)
 21249  	if err != nil {
 21250  		return nil, err
 21251  	}
 21252  	req.Header = reqHeaders
 21253  	googleapi.Expand(req.URL, map[string]string{
 21254  		"name": c.name,
 21255  	})
 21256  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21257  }
 21258  
 21259  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.list" call.
 21260  // Any non-2xx status code is an error. Response headers are in either
 21261  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 21262  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21263  // googleapi.IsNotModified to check whether the returned error was because
 21264  // http.StatusNotModified was returned.
 21265  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 21266  	gensupport.SetOptions(c.urlParams_, opts...)
 21267  	res, err := c.doRequest("json")
 21268  	if res != nil && res.StatusCode == http.StatusNotModified {
 21269  		if res.Body != nil {
 21270  			res.Body.Close()
 21271  		}
 21272  		return nil, gensupport.WrapError(&googleapi.Error{
 21273  			Code:   res.StatusCode,
 21274  			Header: res.Header,
 21275  		})
 21276  	}
 21277  	if err != nil {
 21278  		return nil, err
 21279  	}
 21280  	defer googleapi.CloseBody(res)
 21281  	if err := googleapi.CheckResponse(res); err != nil {
 21282  		return nil, gensupport.WrapError(err)
 21283  	}
 21284  	ret := &GoogleLongrunningListOperationsResponse{
 21285  		ServerResponse: googleapi.ServerResponse{
 21286  			Header:         res.Header,
 21287  			HTTPStatusCode: res.StatusCode,
 21288  		},
 21289  	}
 21290  	target := &ret
 21291  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21292  		return nil, err
 21293  	}
 21294  	return ret, nil
 21295  }
 21296  
 21297  // Pages invokes f for each page of results.
 21298  // A non-nil error returned from f will halt the iteration.
 21299  // The provided context supersedes any context provided to the Context method.
 21300  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 21301  	c.ctx_ = ctx
 21302  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21303  	for {
 21304  		x, err := c.Do()
 21305  		if err != nil {
 21306  			return err
 21307  		}
 21308  		if err := f(x); err != nil {
 21309  			return err
 21310  		}
 21311  		if x.NextPageToken == "" {
 21312  			return nil
 21313  		}
 21314  		c.PageToken(x.NextPageToken)
 21315  	}
 21316  }
 21317  
 21318  type ProjectsLocationsDataStoresConversationsConverseCall struct {
 21319  	s                                                       *Service
 21320  	name                                                    string
 21321  	googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest
 21322  	urlParams_                                              gensupport.URLParams
 21323  	ctx_                                                    context.Context
 21324  	header_                                                 http.Header
 21325  }
 21326  
 21327  // Converse: Converses a conversation.
 21328  //
 21329  //   - name: The resource name of the Conversation to get. Format:
 21330  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21331  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 21332  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21333  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 21334  //     mode, which automatically creates a new conversation inside a
 21335  //     ConverseConversation session.
 21336  func (r *ProjectsLocationsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest) *ProjectsLocationsDataStoresConversationsConverseCall {
 21337  	c := &ProjectsLocationsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21338  	c.name = name
 21339  	c.googleclouddiscoveryenginev1converseconversationrequest = googleclouddiscoveryenginev1converseconversationrequest
 21340  	return c
 21341  }
 21342  
 21343  // Fields allows partial responses to be retrieved. See
 21344  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21345  // details.
 21346  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsConverseCall {
 21347  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21348  	return c
 21349  }
 21350  
 21351  // Context sets the context to be used in this call's Do method.
 21352  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsConverseCall {
 21353  	c.ctx_ = ctx
 21354  	return c
 21355  }
 21356  
 21357  // Header returns a http.Header that can be modified by the caller to add
 21358  // headers to the request.
 21359  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Header() http.Header {
 21360  	if c.header_ == nil {
 21361  		c.header_ = make(http.Header)
 21362  	}
 21363  	return c.header_
 21364  }
 21365  
 21366  func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 21367  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21368  	var body io.Reader = nil
 21369  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1converseconversationrequest)
 21370  	if err != nil {
 21371  		return nil, err
 21372  	}
 21373  	c.urlParams_.Set("alt", alt)
 21374  	c.urlParams_.Set("prettyPrint", "false")
 21375  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:converse")
 21376  	urls += "?" + c.urlParams_.Encode()
 21377  	req, err := http.NewRequest("POST", urls, body)
 21378  	if err != nil {
 21379  		return nil, err
 21380  	}
 21381  	req.Header = reqHeaders
 21382  	googleapi.Expand(req.URL, map[string]string{
 21383  		"name": c.name,
 21384  	})
 21385  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21386  }
 21387  
 21388  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.converse" call.
 21389  // Any non-2xx status code is an error. Response headers are in either
 21390  // *GoogleCloudDiscoveryengineV1ConverseConversationResponse.ServerResponse.Head
 21391  // er or (if a response was returned at all) in
 21392  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21393  // whether the returned error was because http.StatusNotModified was returned.
 21394  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ConverseConversationResponse, error) {
 21395  	gensupport.SetOptions(c.urlParams_, opts...)
 21396  	res, err := c.doRequest("json")
 21397  	if res != nil && res.StatusCode == http.StatusNotModified {
 21398  		if res.Body != nil {
 21399  			res.Body.Close()
 21400  		}
 21401  		return nil, gensupport.WrapError(&googleapi.Error{
 21402  			Code:   res.StatusCode,
 21403  			Header: res.Header,
 21404  		})
 21405  	}
 21406  	if err != nil {
 21407  		return nil, err
 21408  	}
 21409  	defer googleapi.CloseBody(res)
 21410  	if err := googleapi.CheckResponse(res); err != nil {
 21411  		return nil, gensupport.WrapError(err)
 21412  	}
 21413  	ret := &GoogleCloudDiscoveryengineV1ConverseConversationResponse{
 21414  		ServerResponse: googleapi.ServerResponse{
 21415  			Header:         res.Header,
 21416  			HTTPStatusCode: res.StatusCode,
 21417  		},
 21418  	}
 21419  	target := &ret
 21420  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21421  		return nil, err
 21422  	}
 21423  	return ret, nil
 21424  }
 21425  
 21426  type ProjectsLocationsDataStoresConversationsCreateCall struct {
 21427  	s                                        *Service
 21428  	parent                                   string
 21429  	googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
 21430  	urlParams_                               gensupport.URLParams
 21431  	ctx_                                     context.Context
 21432  	header_                                  http.Header
 21433  }
 21434  
 21435  // Create: Creates a Conversation. If the Conversation to create already
 21436  // exists, an ALREADY_EXISTS error is returned.
 21437  //
 21438  //   - parent: Full resource name of parent data store. Format:
 21439  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21440  //     /dataStores/{data_store_id}`.
 21441  func (r *ProjectsLocationsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsDataStoresConversationsCreateCall {
 21442  	c := &ProjectsLocationsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21443  	c.parent = parent
 21444  	c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
 21445  	return c
 21446  }
 21447  
 21448  // Fields allows partial responses to be retrieved. See
 21449  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21450  // details.
 21451  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsCreateCall {
 21452  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21453  	return c
 21454  }
 21455  
 21456  // Context sets the context to be used in this call's Do method.
 21457  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsCreateCall {
 21458  	c.ctx_ = ctx
 21459  	return c
 21460  }
 21461  
 21462  // Header returns a http.Header that can be modified by the caller to add
 21463  // headers to the request.
 21464  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Header() http.Header {
 21465  	if c.header_ == nil {
 21466  		c.header_ = make(http.Header)
 21467  	}
 21468  	return c.header_
 21469  }
 21470  
 21471  func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 21472  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21473  	var body io.Reader = nil
 21474  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
 21475  	if err != nil {
 21476  		return nil, err
 21477  	}
 21478  	c.urlParams_.Set("alt", alt)
 21479  	c.urlParams_.Set("prettyPrint", "false")
 21480  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
 21481  	urls += "?" + c.urlParams_.Encode()
 21482  	req, err := http.NewRequest("POST", urls, body)
 21483  	if err != nil {
 21484  		return nil, err
 21485  	}
 21486  	req.Header = reqHeaders
 21487  	googleapi.Expand(req.URL, map[string]string{
 21488  		"parent": c.parent,
 21489  	})
 21490  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21491  }
 21492  
 21493  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.create" call.
 21494  // Any non-2xx status code is an error. Response headers are in either
 21495  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 21496  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21497  // googleapi.IsNotModified to check whether the returned error was because
 21498  // http.StatusNotModified was returned.
 21499  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 21500  	gensupport.SetOptions(c.urlParams_, opts...)
 21501  	res, err := c.doRequest("json")
 21502  	if res != nil && res.StatusCode == http.StatusNotModified {
 21503  		if res.Body != nil {
 21504  			res.Body.Close()
 21505  		}
 21506  		return nil, gensupport.WrapError(&googleapi.Error{
 21507  			Code:   res.StatusCode,
 21508  			Header: res.Header,
 21509  		})
 21510  	}
 21511  	if err != nil {
 21512  		return nil, err
 21513  	}
 21514  	defer googleapi.CloseBody(res)
 21515  	if err := googleapi.CheckResponse(res); err != nil {
 21516  		return nil, gensupport.WrapError(err)
 21517  	}
 21518  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 21519  		ServerResponse: googleapi.ServerResponse{
 21520  			Header:         res.Header,
 21521  			HTTPStatusCode: res.StatusCode,
 21522  		},
 21523  	}
 21524  	target := &ret
 21525  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21526  		return nil, err
 21527  	}
 21528  	return ret, nil
 21529  }
 21530  
 21531  type ProjectsLocationsDataStoresConversationsDeleteCall struct {
 21532  	s          *Service
 21533  	name       string
 21534  	urlParams_ gensupport.URLParams
 21535  	ctx_       context.Context
 21536  	header_    http.Header
 21537  }
 21538  
 21539  // Delete: Deletes a Conversation. If the Conversation to delete does not
 21540  // exist, a NOT_FOUND error is returned.
 21541  //
 21542  //   - name: The resource name of the Conversation to delete. Format:
 21543  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21544  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 21545  func (r *ProjectsLocationsDataStoresConversationsService) Delete(name string) *ProjectsLocationsDataStoresConversationsDeleteCall {
 21546  	c := &ProjectsLocationsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21547  	c.name = name
 21548  	return c
 21549  }
 21550  
 21551  // Fields allows partial responses to be retrieved. See
 21552  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21553  // details.
 21554  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsDeleteCall {
 21555  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21556  	return c
 21557  }
 21558  
 21559  // Context sets the context to be used in this call's Do method.
 21560  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsDeleteCall {
 21561  	c.ctx_ = ctx
 21562  	return c
 21563  }
 21564  
 21565  // Header returns a http.Header that can be modified by the caller to add
 21566  // headers to the request.
 21567  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Header() http.Header {
 21568  	if c.header_ == nil {
 21569  		c.header_ = make(http.Header)
 21570  	}
 21571  	return c.header_
 21572  }
 21573  
 21574  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21575  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21576  	var body io.Reader = nil
 21577  	c.urlParams_.Set("alt", alt)
 21578  	c.urlParams_.Set("prettyPrint", "false")
 21579  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21580  	urls += "?" + c.urlParams_.Encode()
 21581  	req, err := http.NewRequest("DELETE", urls, body)
 21582  	if err != nil {
 21583  		return nil, err
 21584  	}
 21585  	req.Header = reqHeaders
 21586  	googleapi.Expand(req.URL, map[string]string{
 21587  		"name": c.name,
 21588  	})
 21589  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21590  }
 21591  
 21592  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.delete" call.
 21593  // Any non-2xx status code is an error. Response headers are in either
 21594  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21595  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21596  // check whether the returned error was because http.StatusNotModified was
 21597  // returned.
 21598  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21599  	gensupport.SetOptions(c.urlParams_, opts...)
 21600  	res, err := c.doRequest("json")
 21601  	if res != nil && res.StatusCode == http.StatusNotModified {
 21602  		if res.Body != nil {
 21603  			res.Body.Close()
 21604  		}
 21605  		return nil, gensupport.WrapError(&googleapi.Error{
 21606  			Code:   res.StatusCode,
 21607  			Header: res.Header,
 21608  		})
 21609  	}
 21610  	if err != nil {
 21611  		return nil, err
 21612  	}
 21613  	defer googleapi.CloseBody(res)
 21614  	if err := googleapi.CheckResponse(res); err != nil {
 21615  		return nil, gensupport.WrapError(err)
 21616  	}
 21617  	ret := &GoogleProtobufEmpty{
 21618  		ServerResponse: googleapi.ServerResponse{
 21619  			Header:         res.Header,
 21620  			HTTPStatusCode: res.StatusCode,
 21621  		},
 21622  	}
 21623  	target := &ret
 21624  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21625  		return nil, err
 21626  	}
 21627  	return ret, nil
 21628  }
 21629  
 21630  type ProjectsLocationsDataStoresConversationsGetCall struct {
 21631  	s            *Service
 21632  	name         string
 21633  	urlParams_   gensupport.URLParams
 21634  	ifNoneMatch_ string
 21635  	ctx_         context.Context
 21636  	header_      http.Header
 21637  }
 21638  
 21639  // Get: Gets a Conversation.
 21640  //
 21641  //   - name: The resource name of the Conversation to get. Format:
 21642  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21643  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 21644  func (r *ProjectsLocationsDataStoresConversationsService) Get(name string) *ProjectsLocationsDataStoresConversationsGetCall {
 21645  	c := &ProjectsLocationsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21646  	c.name = name
 21647  	return c
 21648  }
 21649  
 21650  // Fields allows partial responses to be retrieved. See
 21651  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21652  // details.
 21653  func (c *ProjectsLocationsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsGetCall {
 21654  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21655  	return c
 21656  }
 21657  
 21658  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21659  // object's ETag matches the given value. This is useful for getting updates
 21660  // only after the object has changed since the last request.
 21661  func (c *ProjectsLocationsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsGetCall {
 21662  	c.ifNoneMatch_ = entityTag
 21663  	return c
 21664  }
 21665  
 21666  // Context sets the context to be used in this call's Do method.
 21667  func (c *ProjectsLocationsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsGetCall {
 21668  	c.ctx_ = ctx
 21669  	return c
 21670  }
 21671  
 21672  // Header returns a http.Header that can be modified by the caller to add
 21673  // headers to the request.
 21674  func (c *ProjectsLocationsDataStoresConversationsGetCall) Header() http.Header {
 21675  	if c.header_ == nil {
 21676  		c.header_ = make(http.Header)
 21677  	}
 21678  	return c.header_
 21679  }
 21680  
 21681  func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 21682  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21683  	if c.ifNoneMatch_ != "" {
 21684  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21685  	}
 21686  	var body io.Reader = nil
 21687  	c.urlParams_.Set("alt", alt)
 21688  	c.urlParams_.Set("prettyPrint", "false")
 21689  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21690  	urls += "?" + c.urlParams_.Encode()
 21691  	req, err := http.NewRequest("GET", urls, body)
 21692  	if err != nil {
 21693  		return nil, err
 21694  	}
 21695  	req.Header = reqHeaders
 21696  	googleapi.Expand(req.URL, map[string]string{
 21697  		"name": c.name,
 21698  	})
 21699  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21700  }
 21701  
 21702  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.get" call.
 21703  // Any non-2xx status code is an error. Response headers are in either
 21704  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 21705  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21706  // googleapi.IsNotModified to check whether the returned error was because
 21707  // http.StatusNotModified was returned.
 21708  func (c *ProjectsLocationsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 21709  	gensupport.SetOptions(c.urlParams_, opts...)
 21710  	res, err := c.doRequest("json")
 21711  	if res != nil && res.StatusCode == http.StatusNotModified {
 21712  		if res.Body != nil {
 21713  			res.Body.Close()
 21714  		}
 21715  		return nil, gensupport.WrapError(&googleapi.Error{
 21716  			Code:   res.StatusCode,
 21717  			Header: res.Header,
 21718  		})
 21719  	}
 21720  	if err != nil {
 21721  		return nil, err
 21722  	}
 21723  	defer googleapi.CloseBody(res)
 21724  	if err := googleapi.CheckResponse(res); err != nil {
 21725  		return nil, gensupport.WrapError(err)
 21726  	}
 21727  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 21728  		ServerResponse: googleapi.ServerResponse{
 21729  			Header:         res.Header,
 21730  			HTTPStatusCode: res.StatusCode,
 21731  		},
 21732  	}
 21733  	target := &ret
 21734  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21735  		return nil, err
 21736  	}
 21737  	return ret, nil
 21738  }
 21739  
 21740  type ProjectsLocationsDataStoresConversationsListCall struct {
 21741  	s            *Service
 21742  	parent       string
 21743  	urlParams_   gensupport.URLParams
 21744  	ifNoneMatch_ string
 21745  	ctx_         context.Context
 21746  	header_      http.Header
 21747  }
 21748  
 21749  // List: Lists all Conversations by their parent DataStore.
 21750  //
 21751  //   - parent: The data store resource name. Format:
 21752  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21753  //     /dataStores/{data_store_id}`.
 21754  func (r *ProjectsLocationsDataStoresConversationsService) List(parent string) *ProjectsLocationsDataStoresConversationsListCall {
 21755  	c := &ProjectsLocationsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21756  	c.parent = parent
 21757  	return c
 21758  }
 21759  
 21760  // Filter sets the optional parameter "filter": A filter to apply on the list
 21761  // results. The supported features are: user_pseudo_id, state. Example:
 21762  // "user_pseudo_id = some_id"
 21763  func (c *ProjectsLocationsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsDataStoresConversationsListCall {
 21764  	c.urlParams_.Set("filter", filter)
 21765  	return c
 21766  }
 21767  
 21768  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 21769  // fields to order by, sorted in ascending order. Use "desc" after a field name
 21770  // for descending. Supported fields: * `update_time` * `create_time` *
 21771  // `conversation_name` Example: "update_time desc" "create_time"
 21772  func (c *ProjectsLocationsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresConversationsListCall {
 21773  	c.urlParams_.Set("orderBy", orderBy)
 21774  	return c
 21775  }
 21776  
 21777  // PageSize sets the optional parameter "pageSize": Maximum number of results
 21778  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 21779  func (c *ProjectsLocationsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresConversationsListCall {
 21780  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21781  	return c
 21782  }
 21783  
 21784  // PageToken sets the optional parameter "pageToken": A page token, received
 21785  // from a previous `ListConversations` call. Provide this to retrieve the
 21786  // subsequent page.
 21787  func (c *ProjectsLocationsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresConversationsListCall {
 21788  	c.urlParams_.Set("pageToken", pageToken)
 21789  	return c
 21790  }
 21791  
 21792  // Fields allows partial responses to be retrieved. See
 21793  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21794  // details.
 21795  func (c *ProjectsLocationsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsListCall {
 21796  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21797  	return c
 21798  }
 21799  
 21800  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21801  // object's ETag matches the given value. This is useful for getting updates
 21802  // only after the object has changed since the last request.
 21803  func (c *ProjectsLocationsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsListCall {
 21804  	c.ifNoneMatch_ = entityTag
 21805  	return c
 21806  }
 21807  
 21808  // Context sets the context to be used in this call's Do method.
 21809  func (c *ProjectsLocationsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsListCall {
 21810  	c.ctx_ = ctx
 21811  	return c
 21812  }
 21813  
 21814  // Header returns a http.Header that can be modified by the caller to add
 21815  // headers to the request.
 21816  func (c *ProjectsLocationsDataStoresConversationsListCall) Header() http.Header {
 21817  	if c.header_ == nil {
 21818  		c.header_ = make(http.Header)
 21819  	}
 21820  	return c.header_
 21821  }
 21822  
 21823  func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
 21824  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21825  	if c.ifNoneMatch_ != "" {
 21826  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21827  	}
 21828  	var body io.Reader = nil
 21829  	c.urlParams_.Set("alt", alt)
 21830  	c.urlParams_.Set("prettyPrint", "false")
 21831  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
 21832  	urls += "?" + c.urlParams_.Encode()
 21833  	req, err := http.NewRequest("GET", urls, body)
 21834  	if err != nil {
 21835  		return nil, err
 21836  	}
 21837  	req.Header = reqHeaders
 21838  	googleapi.Expand(req.URL, map[string]string{
 21839  		"parent": c.parent,
 21840  	})
 21841  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21842  }
 21843  
 21844  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.list" call.
 21845  // Any non-2xx status code is an error. Response headers are in either
 21846  // *GoogleCloudDiscoveryengineV1ListConversationsResponse.ServerResponse.Header
 21847  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 21848  // Use googleapi.IsNotModified to check whether the returned error was because
 21849  // http.StatusNotModified was returned.
 21850  func (c *ProjectsLocationsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListConversationsResponse, error) {
 21851  	gensupport.SetOptions(c.urlParams_, opts...)
 21852  	res, err := c.doRequest("json")
 21853  	if res != nil && res.StatusCode == http.StatusNotModified {
 21854  		if res.Body != nil {
 21855  			res.Body.Close()
 21856  		}
 21857  		return nil, gensupport.WrapError(&googleapi.Error{
 21858  			Code:   res.StatusCode,
 21859  			Header: res.Header,
 21860  		})
 21861  	}
 21862  	if err != nil {
 21863  		return nil, err
 21864  	}
 21865  	defer googleapi.CloseBody(res)
 21866  	if err := googleapi.CheckResponse(res); err != nil {
 21867  		return nil, gensupport.WrapError(err)
 21868  	}
 21869  	ret := &GoogleCloudDiscoveryengineV1ListConversationsResponse{
 21870  		ServerResponse: googleapi.ServerResponse{
 21871  			Header:         res.Header,
 21872  			HTTPStatusCode: res.StatusCode,
 21873  		},
 21874  	}
 21875  	target := &ret
 21876  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21877  		return nil, err
 21878  	}
 21879  	return ret, nil
 21880  }
 21881  
 21882  // Pages invokes f for each page of results.
 21883  // A non-nil error returned from f will halt the iteration.
 21884  // The provided context supersedes any context provided to the Context method.
 21885  func (c *ProjectsLocationsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListConversationsResponse) error) error {
 21886  	c.ctx_ = ctx
 21887  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21888  	for {
 21889  		x, err := c.Do()
 21890  		if err != nil {
 21891  			return err
 21892  		}
 21893  		if err := f(x); err != nil {
 21894  			return err
 21895  		}
 21896  		if x.NextPageToken == "" {
 21897  			return nil
 21898  		}
 21899  		c.PageToken(x.NextPageToken)
 21900  	}
 21901  }
 21902  
 21903  type ProjectsLocationsDataStoresConversationsPatchCall struct {
 21904  	s                                        *Service
 21905  	name                                     string
 21906  	googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
 21907  	urlParams_                               gensupport.URLParams
 21908  	ctx_                                     context.Context
 21909  	header_                                  http.Header
 21910  }
 21911  
 21912  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 21913  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 21914  //
 21915  //   - name: Immutable. Fully qualified name
 21916  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 21917  //     onversations/*` or
 21918  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 21919  //     versations/*`.
 21920  func (r *ProjectsLocationsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsDataStoresConversationsPatchCall {
 21921  	c := &ProjectsLocationsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21922  	c.name = name
 21923  	c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
 21924  	return c
 21925  }
 21926  
 21927  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 21928  // in the provided Conversation to update. The following are NOT supported: *
 21929  // Conversation.name If not set or empty, all supported fields are updated.
 21930  func (c *ProjectsLocationsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresConversationsPatchCall {
 21931  	c.urlParams_.Set("updateMask", updateMask)
 21932  	return c
 21933  }
 21934  
 21935  // Fields allows partial responses to be retrieved. See
 21936  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21937  // details.
 21938  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsPatchCall {
 21939  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21940  	return c
 21941  }
 21942  
 21943  // Context sets the context to be used in this call's Do method.
 21944  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsPatchCall {
 21945  	c.ctx_ = ctx
 21946  	return c
 21947  }
 21948  
 21949  // Header returns a http.Header that can be modified by the caller to add
 21950  // headers to the request.
 21951  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Header() http.Header {
 21952  	if c.header_ == nil {
 21953  		c.header_ = make(http.Header)
 21954  	}
 21955  	return c.header_
 21956  }
 21957  
 21958  func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 21959  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21960  	var body io.Reader = nil
 21961  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
 21962  	if err != nil {
 21963  		return nil, err
 21964  	}
 21965  	c.urlParams_.Set("alt", alt)
 21966  	c.urlParams_.Set("prettyPrint", "false")
 21967  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21968  	urls += "?" + c.urlParams_.Encode()
 21969  	req, err := http.NewRequest("PATCH", urls, body)
 21970  	if err != nil {
 21971  		return nil, err
 21972  	}
 21973  	req.Header = reqHeaders
 21974  	googleapi.Expand(req.URL, map[string]string{
 21975  		"name": c.name,
 21976  	})
 21977  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21978  }
 21979  
 21980  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.patch" call.
 21981  // Any non-2xx status code is an error. Response headers are in either
 21982  // *GoogleCloudDiscoveryengineV1Conversation.ServerResponse.Header or (if a
 21983  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21984  // googleapi.IsNotModified to check whether the returned error was because
 21985  // http.StatusNotModified was returned.
 21986  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
 21987  	gensupport.SetOptions(c.urlParams_, opts...)
 21988  	res, err := c.doRequest("json")
 21989  	if res != nil && res.StatusCode == http.StatusNotModified {
 21990  		if res.Body != nil {
 21991  			res.Body.Close()
 21992  		}
 21993  		return nil, gensupport.WrapError(&googleapi.Error{
 21994  			Code:   res.StatusCode,
 21995  			Header: res.Header,
 21996  		})
 21997  	}
 21998  	if err != nil {
 21999  		return nil, err
 22000  	}
 22001  	defer googleapi.CloseBody(res)
 22002  	if err := googleapi.CheckResponse(res); err != nil {
 22003  		return nil, gensupport.WrapError(err)
 22004  	}
 22005  	ret := &GoogleCloudDiscoveryengineV1Conversation{
 22006  		ServerResponse: googleapi.ServerResponse{
 22007  			Header:         res.Header,
 22008  			HTTPStatusCode: res.StatusCode,
 22009  		},
 22010  	}
 22011  	target := &ret
 22012  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22013  		return nil, err
 22014  	}
 22015  	return ret, nil
 22016  }
 22017  
 22018  type ProjectsLocationsDataStoresModelsOperationsGetCall struct {
 22019  	s            *Service
 22020  	name         string
 22021  	urlParams_   gensupport.URLParams
 22022  	ifNoneMatch_ string
 22023  	ctx_         context.Context
 22024  	header_      http.Header
 22025  }
 22026  
 22027  // Get: Gets the latest state of a long-running operation. Clients can use this
 22028  // method to poll the operation result at intervals as recommended by the API
 22029  // service.
 22030  //
 22031  // - name: The name of the operation resource.
 22032  func (r *ProjectsLocationsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 22033  	c := &ProjectsLocationsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22034  	c.name = name
 22035  	return c
 22036  }
 22037  
 22038  // Fields allows partial responses to be retrieved. See
 22039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22040  // details.
 22041  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 22042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22043  	return c
 22044  }
 22045  
 22046  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22047  // object's ETag matches the given value. This is useful for getting updates
 22048  // only after the object has changed since the last request.
 22049  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 22050  	c.ifNoneMatch_ = entityTag
 22051  	return c
 22052  }
 22053  
 22054  // Context sets the context to be used in this call's Do method.
 22055  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 22056  	c.ctx_ = ctx
 22057  	return c
 22058  }
 22059  
 22060  // Header returns a http.Header that can be modified by the caller to add
 22061  // headers to the request.
 22062  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Header() http.Header {
 22063  	if c.header_ == nil {
 22064  		c.header_ = make(http.Header)
 22065  	}
 22066  	return c.header_
 22067  }
 22068  
 22069  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 22070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22071  	if c.ifNoneMatch_ != "" {
 22072  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22073  	}
 22074  	var body io.Reader = nil
 22075  	c.urlParams_.Set("alt", alt)
 22076  	c.urlParams_.Set("prettyPrint", "false")
 22077  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22078  	urls += "?" + c.urlParams_.Encode()
 22079  	req, err := http.NewRequest("GET", urls, body)
 22080  	if err != nil {
 22081  		return nil, err
 22082  	}
 22083  	req.Header = reqHeaders
 22084  	googleapi.Expand(req.URL, map[string]string{
 22085  		"name": c.name,
 22086  	})
 22087  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22088  }
 22089  
 22090  // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.get" call.
 22091  // Any non-2xx status code is an error. Response headers are in either
 22092  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22093  // returned at all) in error.(*googleapi.Error).Header. Use
 22094  // googleapi.IsNotModified to check whether the returned error was because
 22095  // http.StatusNotModified was returned.
 22096  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22097  	gensupport.SetOptions(c.urlParams_, opts...)
 22098  	res, err := c.doRequest("json")
 22099  	if res != nil && res.StatusCode == http.StatusNotModified {
 22100  		if res.Body != nil {
 22101  			res.Body.Close()
 22102  		}
 22103  		return nil, gensupport.WrapError(&googleapi.Error{
 22104  			Code:   res.StatusCode,
 22105  			Header: res.Header,
 22106  		})
 22107  	}
 22108  	if err != nil {
 22109  		return nil, err
 22110  	}
 22111  	defer googleapi.CloseBody(res)
 22112  	if err := googleapi.CheckResponse(res); err != nil {
 22113  		return nil, gensupport.WrapError(err)
 22114  	}
 22115  	ret := &GoogleLongrunningOperation{
 22116  		ServerResponse: googleapi.ServerResponse{
 22117  			Header:         res.Header,
 22118  			HTTPStatusCode: res.StatusCode,
 22119  		},
 22120  	}
 22121  	target := &ret
 22122  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22123  		return nil, err
 22124  	}
 22125  	return ret, nil
 22126  }
 22127  
 22128  type ProjectsLocationsDataStoresModelsOperationsListCall struct {
 22129  	s            *Service
 22130  	name         string
 22131  	urlParams_   gensupport.URLParams
 22132  	ifNoneMatch_ string
 22133  	ctx_         context.Context
 22134  	header_      http.Header
 22135  }
 22136  
 22137  // List: Lists operations that match the specified filter in the request. If
 22138  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 22139  //
 22140  // - name: The name of the operation's parent resource.
 22141  func (r *ProjectsLocationsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22142  	c := &ProjectsLocationsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22143  	c.name = name
 22144  	return c
 22145  }
 22146  
 22147  // Filter sets the optional parameter "filter": The standard list filter.
 22148  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22149  	c.urlParams_.Set("filter", filter)
 22150  	return c
 22151  }
 22152  
 22153  // PageSize sets the optional parameter "pageSize": The standard list page
 22154  // size.
 22155  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22156  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22157  	return c
 22158  }
 22159  
 22160  // PageToken sets the optional parameter "pageToken": The standard list page
 22161  // token.
 22162  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22163  	c.urlParams_.Set("pageToken", pageToken)
 22164  	return c
 22165  }
 22166  
 22167  // Fields allows partial responses to be retrieved. See
 22168  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22169  // details.
 22170  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22171  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22172  	return c
 22173  }
 22174  
 22175  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22176  // object's ETag matches the given value. This is useful for getting updates
 22177  // only after the object has changed since the last request.
 22178  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22179  	c.ifNoneMatch_ = entityTag
 22180  	return c
 22181  }
 22182  
 22183  // Context sets the context to be used in this call's Do method.
 22184  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsListCall {
 22185  	c.ctx_ = ctx
 22186  	return c
 22187  }
 22188  
 22189  // Header returns a http.Header that can be modified by the caller to add
 22190  // headers to the request.
 22191  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Header() http.Header {
 22192  	if c.header_ == nil {
 22193  		c.header_ = make(http.Header)
 22194  	}
 22195  	return c.header_
 22196  }
 22197  
 22198  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 22199  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22200  	if c.ifNoneMatch_ != "" {
 22201  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22202  	}
 22203  	var body io.Reader = nil
 22204  	c.urlParams_.Set("alt", alt)
 22205  	c.urlParams_.Set("prettyPrint", "false")
 22206  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 22207  	urls += "?" + c.urlParams_.Encode()
 22208  	req, err := http.NewRequest("GET", urls, body)
 22209  	if err != nil {
 22210  		return nil, err
 22211  	}
 22212  	req.Header = reqHeaders
 22213  	googleapi.Expand(req.URL, map[string]string{
 22214  		"name": c.name,
 22215  	})
 22216  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22217  }
 22218  
 22219  // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.list" call.
 22220  // Any non-2xx status code is an error. Response headers are in either
 22221  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 22222  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22223  // googleapi.IsNotModified to check whether the returned error was because
 22224  // http.StatusNotModified was returned.
 22225  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 22226  	gensupport.SetOptions(c.urlParams_, opts...)
 22227  	res, err := c.doRequest("json")
 22228  	if res != nil && res.StatusCode == http.StatusNotModified {
 22229  		if res.Body != nil {
 22230  			res.Body.Close()
 22231  		}
 22232  		return nil, gensupport.WrapError(&googleapi.Error{
 22233  			Code:   res.StatusCode,
 22234  			Header: res.Header,
 22235  		})
 22236  	}
 22237  	if err != nil {
 22238  		return nil, err
 22239  	}
 22240  	defer googleapi.CloseBody(res)
 22241  	if err := googleapi.CheckResponse(res); err != nil {
 22242  		return nil, gensupport.WrapError(err)
 22243  	}
 22244  	ret := &GoogleLongrunningListOperationsResponse{
 22245  		ServerResponse: googleapi.ServerResponse{
 22246  			Header:         res.Header,
 22247  			HTTPStatusCode: res.StatusCode,
 22248  		},
 22249  	}
 22250  	target := &ret
 22251  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22252  		return nil, err
 22253  	}
 22254  	return ret, nil
 22255  }
 22256  
 22257  // Pages invokes f for each page of results.
 22258  // A non-nil error returned from f will halt the iteration.
 22259  // The provided context supersedes any context provided to the Context method.
 22260  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 22261  	c.ctx_ = ctx
 22262  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22263  	for {
 22264  		x, err := c.Do()
 22265  		if err != nil {
 22266  			return err
 22267  		}
 22268  		if err := f(x); err != nil {
 22269  			return err
 22270  		}
 22271  		if x.NextPageToken == "" {
 22272  			return nil
 22273  		}
 22274  		c.PageToken(x.NextPageToken)
 22275  	}
 22276  }
 22277  
 22278  type ProjectsLocationsDataStoresOperationsGetCall struct {
 22279  	s            *Service
 22280  	name         string
 22281  	urlParams_   gensupport.URLParams
 22282  	ifNoneMatch_ string
 22283  	ctx_         context.Context
 22284  	header_      http.Header
 22285  }
 22286  
 22287  // Get: Gets the latest state of a long-running operation. Clients can use this
 22288  // method to poll the operation result at intervals as recommended by the API
 22289  // service.
 22290  //
 22291  // - name: The name of the operation resource.
 22292  func (r *ProjectsLocationsDataStoresOperationsService) Get(name string) *ProjectsLocationsDataStoresOperationsGetCall {
 22293  	c := &ProjectsLocationsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22294  	c.name = name
 22295  	return c
 22296  }
 22297  
 22298  // Fields allows partial responses to be retrieved. See
 22299  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22300  // details.
 22301  func (c *ProjectsLocationsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsGetCall {
 22302  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22303  	return c
 22304  }
 22305  
 22306  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22307  // object's ETag matches the given value. This is useful for getting updates
 22308  // only after the object has changed since the last request.
 22309  func (c *ProjectsLocationsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsGetCall {
 22310  	c.ifNoneMatch_ = entityTag
 22311  	return c
 22312  }
 22313  
 22314  // Context sets the context to be used in this call's Do method.
 22315  func (c *ProjectsLocationsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsGetCall {
 22316  	c.ctx_ = ctx
 22317  	return c
 22318  }
 22319  
 22320  // Header returns a http.Header that can be modified by the caller to add
 22321  // headers to the request.
 22322  func (c *ProjectsLocationsDataStoresOperationsGetCall) Header() http.Header {
 22323  	if c.header_ == nil {
 22324  		c.header_ = make(http.Header)
 22325  	}
 22326  	return c.header_
 22327  }
 22328  
 22329  func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 22330  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22331  	if c.ifNoneMatch_ != "" {
 22332  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22333  	}
 22334  	var body io.Reader = nil
 22335  	c.urlParams_.Set("alt", alt)
 22336  	c.urlParams_.Set("prettyPrint", "false")
 22337  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22338  	urls += "?" + c.urlParams_.Encode()
 22339  	req, err := http.NewRequest("GET", urls, body)
 22340  	if err != nil {
 22341  		return nil, err
 22342  	}
 22343  	req.Header = reqHeaders
 22344  	googleapi.Expand(req.URL, map[string]string{
 22345  		"name": c.name,
 22346  	})
 22347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22348  }
 22349  
 22350  // Do executes the "discoveryengine.projects.locations.dataStores.operations.get" call.
 22351  // Any non-2xx status code is an error. Response headers are in either
 22352  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22353  // returned at all) in error.(*googleapi.Error).Header. Use
 22354  // googleapi.IsNotModified to check whether the returned error was because
 22355  // http.StatusNotModified was returned.
 22356  func (c *ProjectsLocationsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22357  	gensupport.SetOptions(c.urlParams_, opts...)
 22358  	res, err := c.doRequest("json")
 22359  	if res != nil && res.StatusCode == http.StatusNotModified {
 22360  		if res.Body != nil {
 22361  			res.Body.Close()
 22362  		}
 22363  		return nil, gensupport.WrapError(&googleapi.Error{
 22364  			Code:   res.StatusCode,
 22365  			Header: res.Header,
 22366  		})
 22367  	}
 22368  	if err != nil {
 22369  		return nil, err
 22370  	}
 22371  	defer googleapi.CloseBody(res)
 22372  	if err := googleapi.CheckResponse(res); err != nil {
 22373  		return nil, gensupport.WrapError(err)
 22374  	}
 22375  	ret := &GoogleLongrunningOperation{
 22376  		ServerResponse: googleapi.ServerResponse{
 22377  			Header:         res.Header,
 22378  			HTTPStatusCode: res.StatusCode,
 22379  		},
 22380  	}
 22381  	target := &ret
 22382  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22383  		return nil, err
 22384  	}
 22385  	return ret, nil
 22386  }
 22387  
 22388  type ProjectsLocationsDataStoresOperationsListCall struct {
 22389  	s            *Service
 22390  	name         string
 22391  	urlParams_   gensupport.URLParams
 22392  	ifNoneMatch_ string
 22393  	ctx_         context.Context
 22394  	header_      http.Header
 22395  }
 22396  
 22397  // List: Lists operations that match the specified filter in the request. If
 22398  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 22399  //
 22400  // - name: The name of the operation's parent resource.
 22401  func (r *ProjectsLocationsDataStoresOperationsService) List(name string) *ProjectsLocationsDataStoresOperationsListCall {
 22402  	c := &ProjectsLocationsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22403  	c.name = name
 22404  	return c
 22405  }
 22406  
 22407  // Filter sets the optional parameter "filter": The standard list filter.
 22408  func (c *ProjectsLocationsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresOperationsListCall {
 22409  	c.urlParams_.Set("filter", filter)
 22410  	return c
 22411  }
 22412  
 22413  // PageSize sets the optional parameter "pageSize": The standard list page
 22414  // size.
 22415  func (c *ProjectsLocationsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresOperationsListCall {
 22416  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22417  	return c
 22418  }
 22419  
 22420  // PageToken sets the optional parameter "pageToken": The standard list page
 22421  // token.
 22422  func (c *ProjectsLocationsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresOperationsListCall {
 22423  	c.urlParams_.Set("pageToken", pageToken)
 22424  	return c
 22425  }
 22426  
 22427  // Fields allows partial responses to be retrieved. See
 22428  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22429  // details.
 22430  func (c *ProjectsLocationsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsListCall {
 22431  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22432  	return c
 22433  }
 22434  
 22435  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22436  // object's ETag matches the given value. This is useful for getting updates
 22437  // only after the object has changed since the last request.
 22438  func (c *ProjectsLocationsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsListCall {
 22439  	c.ifNoneMatch_ = entityTag
 22440  	return c
 22441  }
 22442  
 22443  // Context sets the context to be used in this call's Do method.
 22444  func (c *ProjectsLocationsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsListCall {
 22445  	c.ctx_ = ctx
 22446  	return c
 22447  }
 22448  
 22449  // Header returns a http.Header that can be modified by the caller to add
 22450  // headers to the request.
 22451  func (c *ProjectsLocationsDataStoresOperationsListCall) Header() http.Header {
 22452  	if c.header_ == nil {
 22453  		c.header_ = make(http.Header)
 22454  	}
 22455  	return c.header_
 22456  }
 22457  
 22458  func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
 22459  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22460  	if c.ifNoneMatch_ != "" {
 22461  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22462  	}
 22463  	var body io.Reader = nil
 22464  	c.urlParams_.Set("alt", alt)
 22465  	c.urlParams_.Set("prettyPrint", "false")
 22466  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 22467  	urls += "?" + c.urlParams_.Encode()
 22468  	req, err := http.NewRequest("GET", urls, body)
 22469  	if err != nil {
 22470  		return nil, err
 22471  	}
 22472  	req.Header = reqHeaders
 22473  	googleapi.Expand(req.URL, map[string]string{
 22474  		"name": c.name,
 22475  	})
 22476  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22477  }
 22478  
 22479  // Do executes the "discoveryengine.projects.locations.dataStores.operations.list" call.
 22480  // Any non-2xx status code is an error. Response headers are in either
 22481  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 22482  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22483  // googleapi.IsNotModified to check whether the returned error was because
 22484  // http.StatusNotModified was returned.
 22485  func (c *ProjectsLocationsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 22486  	gensupport.SetOptions(c.urlParams_, opts...)
 22487  	res, err := c.doRequest("json")
 22488  	if res != nil && res.StatusCode == http.StatusNotModified {
 22489  		if res.Body != nil {
 22490  			res.Body.Close()
 22491  		}
 22492  		return nil, gensupport.WrapError(&googleapi.Error{
 22493  			Code:   res.StatusCode,
 22494  			Header: res.Header,
 22495  		})
 22496  	}
 22497  	if err != nil {
 22498  		return nil, err
 22499  	}
 22500  	defer googleapi.CloseBody(res)
 22501  	if err := googleapi.CheckResponse(res); err != nil {
 22502  		return nil, gensupport.WrapError(err)
 22503  	}
 22504  	ret := &GoogleLongrunningListOperationsResponse{
 22505  		ServerResponse: googleapi.ServerResponse{
 22506  			Header:         res.Header,
 22507  			HTTPStatusCode: res.StatusCode,
 22508  		},
 22509  	}
 22510  	target := &ret
 22511  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22512  		return nil, err
 22513  	}
 22514  	return ret, nil
 22515  }
 22516  
 22517  // Pages invokes f for each page of results.
 22518  // A non-nil error returned from f will halt the iteration.
 22519  // The provided context supersedes any context provided to the Context method.
 22520  func (c *ProjectsLocationsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 22521  	c.ctx_ = ctx
 22522  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22523  	for {
 22524  		x, err := c.Do()
 22525  		if err != nil {
 22526  			return err
 22527  		}
 22528  		if err := f(x); err != nil {
 22529  			return err
 22530  		}
 22531  		if x.NextPageToken == "" {
 22532  			return nil
 22533  		}
 22534  		c.PageToken(x.NextPageToken)
 22535  	}
 22536  }
 22537  
 22538  type ProjectsLocationsDataStoresSchemasCreateCall struct {
 22539  	s                                  *Service
 22540  	parent                             string
 22541  	googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
 22542  	urlParams_                         gensupport.URLParams
 22543  	ctx_                               context.Context
 22544  	header_                            http.Header
 22545  }
 22546  
 22547  // Create: Creates a Schema.
 22548  //
 22549  //   - parent: The parent data store resource name, in the format of
 22550  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 22551  //     s/{data_store}`.
 22552  func (r *ProjectsLocationsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsDataStoresSchemasCreateCall {
 22553  	c := &ProjectsLocationsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22554  	c.parent = parent
 22555  	c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
 22556  	return c
 22557  }
 22558  
 22559  // SchemaId sets the optional parameter "schemaId": Required. The ID to use for
 22560  // the Schema, which will become the final component of the Schema.name. This
 22561  // field should conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
 22562  // standard with a length limit of 63 characters.
 22563  func (c *ProjectsLocationsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsDataStoresSchemasCreateCall {
 22564  	c.urlParams_.Set("schemaId", schemaId)
 22565  	return c
 22566  }
 22567  
 22568  // Fields allows partial responses to be retrieved. See
 22569  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22570  // details.
 22571  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasCreateCall {
 22572  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22573  	return c
 22574  }
 22575  
 22576  // Context sets the context to be used in this call's Do method.
 22577  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasCreateCall {
 22578  	c.ctx_ = ctx
 22579  	return c
 22580  }
 22581  
 22582  // Header returns a http.Header that can be modified by the caller to add
 22583  // headers to the request.
 22584  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Header() http.Header {
 22585  	if c.header_ == nil {
 22586  		c.header_ = make(http.Header)
 22587  	}
 22588  	return c.header_
 22589  }
 22590  
 22591  func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
 22592  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22593  	var body io.Reader = nil
 22594  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
 22595  	if err != nil {
 22596  		return nil, err
 22597  	}
 22598  	c.urlParams_.Set("alt", alt)
 22599  	c.urlParams_.Set("prettyPrint", "false")
 22600  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
 22601  	urls += "?" + c.urlParams_.Encode()
 22602  	req, err := http.NewRequest("POST", urls, body)
 22603  	if err != nil {
 22604  		return nil, err
 22605  	}
 22606  	req.Header = reqHeaders
 22607  	googleapi.Expand(req.URL, map[string]string{
 22608  		"parent": c.parent,
 22609  	})
 22610  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22611  }
 22612  
 22613  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.create" call.
 22614  // Any non-2xx status code is an error. Response headers are in either
 22615  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22616  // returned at all) in error.(*googleapi.Error).Header. Use
 22617  // googleapi.IsNotModified to check whether the returned error was because
 22618  // http.StatusNotModified was returned.
 22619  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22620  	gensupport.SetOptions(c.urlParams_, opts...)
 22621  	res, err := c.doRequest("json")
 22622  	if res != nil && res.StatusCode == http.StatusNotModified {
 22623  		if res.Body != nil {
 22624  			res.Body.Close()
 22625  		}
 22626  		return nil, gensupport.WrapError(&googleapi.Error{
 22627  			Code:   res.StatusCode,
 22628  			Header: res.Header,
 22629  		})
 22630  	}
 22631  	if err != nil {
 22632  		return nil, err
 22633  	}
 22634  	defer googleapi.CloseBody(res)
 22635  	if err := googleapi.CheckResponse(res); err != nil {
 22636  		return nil, gensupport.WrapError(err)
 22637  	}
 22638  	ret := &GoogleLongrunningOperation{
 22639  		ServerResponse: googleapi.ServerResponse{
 22640  			Header:         res.Header,
 22641  			HTTPStatusCode: res.StatusCode,
 22642  		},
 22643  	}
 22644  	target := &ret
 22645  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22646  		return nil, err
 22647  	}
 22648  	return ret, nil
 22649  }
 22650  
 22651  type ProjectsLocationsDataStoresSchemasDeleteCall struct {
 22652  	s          *Service
 22653  	name       string
 22654  	urlParams_ gensupport.URLParams
 22655  	ctx_       context.Context
 22656  	header_    http.Header
 22657  }
 22658  
 22659  // Delete: Deletes a Schema.
 22660  //
 22661  //   - name: The full resource name of the schema, in the format of
 22662  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 22663  //     s/{data_store}/schemas/{schema}`.
 22664  func (r *ProjectsLocationsDataStoresSchemasService) Delete(name string) *ProjectsLocationsDataStoresSchemasDeleteCall {
 22665  	c := &ProjectsLocationsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22666  	c.name = name
 22667  	return c
 22668  }
 22669  
 22670  // Fields allows partial responses to be retrieved. See
 22671  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22672  // details.
 22673  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasDeleteCall {
 22674  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22675  	return c
 22676  }
 22677  
 22678  // Context sets the context to be used in this call's Do method.
 22679  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasDeleteCall {
 22680  	c.ctx_ = ctx
 22681  	return c
 22682  }
 22683  
 22684  // Header returns a http.Header that can be modified by the caller to add
 22685  // headers to the request.
 22686  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Header() http.Header {
 22687  	if c.header_ == nil {
 22688  		c.header_ = make(http.Header)
 22689  	}
 22690  	return c.header_
 22691  }
 22692  
 22693  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
 22694  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22695  	var body io.Reader = nil
 22696  	c.urlParams_.Set("alt", alt)
 22697  	c.urlParams_.Set("prettyPrint", "false")
 22698  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22699  	urls += "?" + c.urlParams_.Encode()
 22700  	req, err := http.NewRequest("DELETE", urls, body)
 22701  	if err != nil {
 22702  		return nil, err
 22703  	}
 22704  	req.Header = reqHeaders
 22705  	googleapi.Expand(req.URL, map[string]string{
 22706  		"name": c.name,
 22707  	})
 22708  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22709  }
 22710  
 22711  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.delete" call.
 22712  // Any non-2xx status code is an error. Response headers are in either
 22713  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22714  // returned at all) in error.(*googleapi.Error).Header. Use
 22715  // googleapi.IsNotModified to check whether the returned error was because
 22716  // http.StatusNotModified was returned.
 22717  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22718  	gensupport.SetOptions(c.urlParams_, opts...)
 22719  	res, err := c.doRequest("json")
 22720  	if res != nil && res.StatusCode == http.StatusNotModified {
 22721  		if res.Body != nil {
 22722  			res.Body.Close()
 22723  		}
 22724  		return nil, gensupport.WrapError(&googleapi.Error{
 22725  			Code:   res.StatusCode,
 22726  			Header: res.Header,
 22727  		})
 22728  	}
 22729  	if err != nil {
 22730  		return nil, err
 22731  	}
 22732  	defer googleapi.CloseBody(res)
 22733  	if err := googleapi.CheckResponse(res); err != nil {
 22734  		return nil, gensupport.WrapError(err)
 22735  	}
 22736  	ret := &GoogleLongrunningOperation{
 22737  		ServerResponse: googleapi.ServerResponse{
 22738  			Header:         res.Header,
 22739  			HTTPStatusCode: res.StatusCode,
 22740  		},
 22741  	}
 22742  	target := &ret
 22743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22744  		return nil, err
 22745  	}
 22746  	return ret, nil
 22747  }
 22748  
 22749  type ProjectsLocationsDataStoresSchemasGetCall struct {
 22750  	s            *Service
 22751  	name         string
 22752  	urlParams_   gensupport.URLParams
 22753  	ifNoneMatch_ string
 22754  	ctx_         context.Context
 22755  	header_      http.Header
 22756  }
 22757  
 22758  // Get: Gets a Schema.
 22759  //
 22760  //   - name: The full resource name of the schema, in the format of
 22761  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 22762  //     s/{data_store}/schemas/{schema}`.
 22763  func (r *ProjectsLocationsDataStoresSchemasService) Get(name string) *ProjectsLocationsDataStoresSchemasGetCall {
 22764  	c := &ProjectsLocationsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22765  	c.name = name
 22766  	return c
 22767  }
 22768  
 22769  // Fields allows partial responses to be retrieved. See
 22770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22771  // details.
 22772  func (c *ProjectsLocationsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasGetCall {
 22773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22774  	return c
 22775  }
 22776  
 22777  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22778  // object's ETag matches the given value. This is useful for getting updates
 22779  // only after the object has changed since the last request.
 22780  func (c *ProjectsLocationsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasGetCall {
 22781  	c.ifNoneMatch_ = entityTag
 22782  	return c
 22783  }
 22784  
 22785  // Context sets the context to be used in this call's Do method.
 22786  func (c *ProjectsLocationsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasGetCall {
 22787  	c.ctx_ = ctx
 22788  	return c
 22789  }
 22790  
 22791  // Header returns a http.Header that can be modified by the caller to add
 22792  // headers to the request.
 22793  func (c *ProjectsLocationsDataStoresSchemasGetCall) Header() http.Header {
 22794  	if c.header_ == nil {
 22795  		c.header_ = make(http.Header)
 22796  	}
 22797  	return c.header_
 22798  }
 22799  
 22800  func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
 22801  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22802  	if c.ifNoneMatch_ != "" {
 22803  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22804  	}
 22805  	var body io.Reader = nil
 22806  	c.urlParams_.Set("alt", alt)
 22807  	c.urlParams_.Set("prettyPrint", "false")
 22808  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22809  	urls += "?" + c.urlParams_.Encode()
 22810  	req, err := http.NewRequest("GET", urls, body)
 22811  	if err != nil {
 22812  		return nil, err
 22813  	}
 22814  	req.Header = reqHeaders
 22815  	googleapi.Expand(req.URL, map[string]string{
 22816  		"name": c.name,
 22817  	})
 22818  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22819  }
 22820  
 22821  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.get" call.
 22822  // Any non-2xx status code is an error. Response headers are in either
 22823  // *GoogleCloudDiscoveryengineV1Schema.ServerResponse.Header or (if a response
 22824  // was returned at all) in error.(*googleapi.Error).Header. Use
 22825  // googleapi.IsNotModified to check whether the returned error was because
 22826  // http.StatusNotModified was returned.
 22827  func (c *ProjectsLocationsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Schema, error) {
 22828  	gensupport.SetOptions(c.urlParams_, opts...)
 22829  	res, err := c.doRequest("json")
 22830  	if res != nil && res.StatusCode == http.StatusNotModified {
 22831  		if res.Body != nil {
 22832  			res.Body.Close()
 22833  		}
 22834  		return nil, gensupport.WrapError(&googleapi.Error{
 22835  			Code:   res.StatusCode,
 22836  			Header: res.Header,
 22837  		})
 22838  	}
 22839  	if err != nil {
 22840  		return nil, err
 22841  	}
 22842  	defer googleapi.CloseBody(res)
 22843  	if err := googleapi.CheckResponse(res); err != nil {
 22844  		return nil, gensupport.WrapError(err)
 22845  	}
 22846  	ret := &GoogleCloudDiscoveryengineV1Schema{
 22847  		ServerResponse: googleapi.ServerResponse{
 22848  			Header:         res.Header,
 22849  			HTTPStatusCode: res.StatusCode,
 22850  		},
 22851  	}
 22852  	target := &ret
 22853  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22854  		return nil, err
 22855  	}
 22856  	return ret, nil
 22857  }
 22858  
 22859  type ProjectsLocationsDataStoresSchemasListCall struct {
 22860  	s            *Service
 22861  	parent       string
 22862  	urlParams_   gensupport.URLParams
 22863  	ifNoneMatch_ string
 22864  	ctx_         context.Context
 22865  	header_      http.Header
 22866  }
 22867  
 22868  // List: Gets a list of Schemas.
 22869  //
 22870  //   - parent: The parent data store resource name, in the format of
 22871  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 22872  //     s/{data_store}`.
 22873  func (r *ProjectsLocationsDataStoresSchemasService) List(parent string) *ProjectsLocationsDataStoresSchemasListCall {
 22874  	c := &ProjectsLocationsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22875  	c.parent = parent
 22876  	return c
 22877  }
 22878  
 22879  // PageSize sets the optional parameter "pageSize": The maximum number of
 22880  // Schemas to return. The service may return fewer than this value. If
 22881  // unspecified, at most 100 Schemas will be returned. The maximum value is
 22882  // 1000; values above 1000 will be coerced to 1000.
 22883  func (c *ProjectsLocationsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSchemasListCall {
 22884  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22885  	return c
 22886  }
 22887  
 22888  // PageToken sets the optional parameter "pageToken": A page token, received
 22889  // from a previous SchemaService.ListSchemas call. Provide this to retrieve the
 22890  // subsequent page. When paginating, all other parameters provided to
 22891  // SchemaService.ListSchemas must match the call that provided the page token.
 22892  func (c *ProjectsLocationsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSchemasListCall {
 22893  	c.urlParams_.Set("pageToken", pageToken)
 22894  	return c
 22895  }
 22896  
 22897  // Fields allows partial responses to be retrieved. See
 22898  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22899  // details.
 22900  func (c *ProjectsLocationsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasListCall {
 22901  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22902  	return c
 22903  }
 22904  
 22905  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22906  // object's ETag matches the given value. This is useful for getting updates
 22907  // only after the object has changed since the last request.
 22908  func (c *ProjectsLocationsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasListCall {
 22909  	c.ifNoneMatch_ = entityTag
 22910  	return c
 22911  }
 22912  
 22913  // Context sets the context to be used in this call's Do method.
 22914  func (c *ProjectsLocationsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasListCall {
 22915  	c.ctx_ = ctx
 22916  	return c
 22917  }
 22918  
 22919  // Header returns a http.Header that can be modified by the caller to add
 22920  // headers to the request.
 22921  func (c *ProjectsLocationsDataStoresSchemasListCall) Header() http.Header {
 22922  	if c.header_ == nil {
 22923  		c.header_ = make(http.Header)
 22924  	}
 22925  	return c.header_
 22926  }
 22927  
 22928  func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
 22929  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22930  	if c.ifNoneMatch_ != "" {
 22931  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22932  	}
 22933  	var body io.Reader = nil
 22934  	c.urlParams_.Set("alt", alt)
 22935  	c.urlParams_.Set("prettyPrint", "false")
 22936  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
 22937  	urls += "?" + c.urlParams_.Encode()
 22938  	req, err := http.NewRequest("GET", urls, body)
 22939  	if err != nil {
 22940  		return nil, err
 22941  	}
 22942  	req.Header = reqHeaders
 22943  	googleapi.Expand(req.URL, map[string]string{
 22944  		"parent": c.parent,
 22945  	})
 22946  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22947  }
 22948  
 22949  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.list" call.
 22950  // Any non-2xx status code is an error. Response headers are in either
 22951  // *GoogleCloudDiscoveryengineV1ListSchemasResponse.ServerResponse.Header or
 22952  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 22953  // googleapi.IsNotModified to check whether the returned error was because
 22954  // http.StatusNotModified was returned.
 22955  func (c *ProjectsLocationsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListSchemasResponse, error) {
 22956  	gensupport.SetOptions(c.urlParams_, opts...)
 22957  	res, err := c.doRequest("json")
 22958  	if res != nil && res.StatusCode == http.StatusNotModified {
 22959  		if res.Body != nil {
 22960  			res.Body.Close()
 22961  		}
 22962  		return nil, gensupport.WrapError(&googleapi.Error{
 22963  			Code:   res.StatusCode,
 22964  			Header: res.Header,
 22965  		})
 22966  	}
 22967  	if err != nil {
 22968  		return nil, err
 22969  	}
 22970  	defer googleapi.CloseBody(res)
 22971  	if err := googleapi.CheckResponse(res); err != nil {
 22972  		return nil, gensupport.WrapError(err)
 22973  	}
 22974  	ret := &GoogleCloudDiscoveryengineV1ListSchemasResponse{
 22975  		ServerResponse: googleapi.ServerResponse{
 22976  			Header:         res.Header,
 22977  			HTTPStatusCode: res.StatusCode,
 22978  		},
 22979  	}
 22980  	target := &ret
 22981  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22982  		return nil, err
 22983  	}
 22984  	return ret, nil
 22985  }
 22986  
 22987  // Pages invokes f for each page of results.
 22988  // A non-nil error returned from f will halt the iteration.
 22989  // The provided context supersedes any context provided to the Context method.
 22990  func (c *ProjectsLocationsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListSchemasResponse) error) error {
 22991  	c.ctx_ = ctx
 22992  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22993  	for {
 22994  		x, err := c.Do()
 22995  		if err != nil {
 22996  			return err
 22997  		}
 22998  		if err := f(x); err != nil {
 22999  			return err
 23000  		}
 23001  		if x.NextPageToken == "" {
 23002  			return nil
 23003  		}
 23004  		c.PageToken(x.NextPageToken)
 23005  	}
 23006  }
 23007  
 23008  type ProjectsLocationsDataStoresSchemasPatchCall struct {
 23009  	s                                  *Service
 23010  	name                               string
 23011  	googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
 23012  	urlParams_                         gensupport.URLParams
 23013  	ctx_                               context.Context
 23014  	header_                            http.Header
 23015  }
 23016  
 23017  // Patch: Updates a Schema.
 23018  //
 23019  //   - name: Immutable. The full resource name of the schema, in the format of
 23020  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 23021  //     s/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded
 23022  //     string with a length limit of 1024 characters.
 23023  func (r *ProjectsLocationsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsDataStoresSchemasPatchCall {
 23024  	c := &ProjectsLocationsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23025  	c.name = name
 23026  	c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
 23027  	return c
 23028  }
 23029  
 23030  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 23031  // the Schema is not found, a new Schema will be created. In this situation,
 23032  // `update_mask` is ignored.
 23033  func (c *ProjectsLocationsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresSchemasPatchCall {
 23034  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 23035  	return c
 23036  }
 23037  
 23038  // Fields allows partial responses to be retrieved. See
 23039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23040  // details.
 23041  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasPatchCall {
 23042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23043  	return c
 23044  }
 23045  
 23046  // Context sets the context to be used in this call's Do method.
 23047  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasPatchCall {
 23048  	c.ctx_ = ctx
 23049  	return c
 23050  }
 23051  
 23052  // Header returns a http.Header that can be modified by the caller to add
 23053  // headers to the request.
 23054  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Header() http.Header {
 23055  	if c.header_ == nil {
 23056  		c.header_ = make(http.Header)
 23057  	}
 23058  	return c.header_
 23059  }
 23060  
 23061  func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
 23062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23063  	var body io.Reader = nil
 23064  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
 23065  	if err != nil {
 23066  		return nil, err
 23067  	}
 23068  	c.urlParams_.Set("alt", alt)
 23069  	c.urlParams_.Set("prettyPrint", "false")
 23070  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23071  	urls += "?" + c.urlParams_.Encode()
 23072  	req, err := http.NewRequest("PATCH", urls, body)
 23073  	if err != nil {
 23074  		return nil, err
 23075  	}
 23076  	req.Header = reqHeaders
 23077  	googleapi.Expand(req.URL, map[string]string{
 23078  		"name": c.name,
 23079  	})
 23080  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23081  }
 23082  
 23083  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.patch" call.
 23084  // Any non-2xx status code is an error. Response headers are in either
 23085  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23086  // returned at all) in error.(*googleapi.Error).Header. Use
 23087  // googleapi.IsNotModified to check whether the returned error was because
 23088  // http.StatusNotModified was returned.
 23089  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23090  	gensupport.SetOptions(c.urlParams_, opts...)
 23091  	res, err := c.doRequest("json")
 23092  	if res != nil && res.StatusCode == http.StatusNotModified {
 23093  		if res.Body != nil {
 23094  			res.Body.Close()
 23095  		}
 23096  		return nil, gensupport.WrapError(&googleapi.Error{
 23097  			Code:   res.StatusCode,
 23098  			Header: res.Header,
 23099  		})
 23100  	}
 23101  	if err != nil {
 23102  		return nil, err
 23103  	}
 23104  	defer googleapi.CloseBody(res)
 23105  	if err := googleapi.CheckResponse(res); err != nil {
 23106  		return nil, gensupport.WrapError(err)
 23107  	}
 23108  	ret := &GoogleLongrunningOperation{
 23109  		ServerResponse: googleapi.ServerResponse{
 23110  			Header:         res.Header,
 23111  			HTTPStatusCode: res.StatusCode,
 23112  		},
 23113  	}
 23114  	target := &ret
 23115  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23116  		return nil, err
 23117  	}
 23118  	return ret, nil
 23119  }
 23120  
 23121  type ProjectsLocationsDataStoresServingConfigsRecommendCall struct {
 23122  	s                                            *Service
 23123  	servingConfig                                string
 23124  	googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest
 23125  	urlParams_                                   gensupport.URLParams
 23126  	ctx_                                         context.Context
 23127  	header_                                      http.Header
 23128  }
 23129  
 23130  // Recommend: Makes a recommendation, which requires a contextual user event.
 23131  //
 23132  //   - servingConfig: Full resource name of a ServingConfig:
 23133  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 23134  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 23135  //     One default serving config is created along with your recommendation
 23136  //     engine creation. The engine ID will be used as the ID of the default
 23137  //     serving config. For example, for Engine
 23138  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 23139  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 23140  //     /my-engine` for your RecommendationService.Recommend requests.
 23141  func (r *ProjectsLocationsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 23142  	c := &ProjectsLocationsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23143  	c.servingConfig = servingConfig
 23144  	c.googleclouddiscoveryenginev1recommendrequest = googleclouddiscoveryenginev1recommendrequest
 23145  	return c
 23146  }
 23147  
 23148  // Fields allows partial responses to be retrieved. See
 23149  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23150  // details.
 23151  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 23152  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23153  	return c
 23154  }
 23155  
 23156  // Context sets the context to be used in this call's Do method.
 23157  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 23158  	c.ctx_ = ctx
 23159  	return c
 23160  }
 23161  
 23162  // Header returns a http.Header that can be modified by the caller to add
 23163  // headers to the request.
 23164  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Header() http.Header {
 23165  	if c.header_ == nil {
 23166  		c.header_ = make(http.Header)
 23167  	}
 23168  	return c.header_
 23169  }
 23170  
 23171  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 23172  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23173  	var body io.Reader = nil
 23174  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recommendrequest)
 23175  	if err != nil {
 23176  		return nil, err
 23177  	}
 23178  	c.urlParams_.Set("alt", alt)
 23179  	c.urlParams_.Set("prettyPrint", "false")
 23180  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:recommend")
 23181  	urls += "?" + c.urlParams_.Encode()
 23182  	req, err := http.NewRequest("POST", urls, body)
 23183  	if err != nil {
 23184  		return nil, err
 23185  	}
 23186  	req.Header = reqHeaders
 23187  	googleapi.Expand(req.URL, map[string]string{
 23188  		"servingConfig": c.servingConfig,
 23189  	})
 23190  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23191  }
 23192  
 23193  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.recommend" call.
 23194  // Any non-2xx status code is an error. Response headers are in either
 23195  // *GoogleCloudDiscoveryengineV1RecommendResponse.ServerResponse.Header or (if
 23196  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23197  // googleapi.IsNotModified to check whether the returned error was because
 23198  // http.StatusNotModified was returned.
 23199  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1RecommendResponse, error) {
 23200  	gensupport.SetOptions(c.urlParams_, opts...)
 23201  	res, err := c.doRequest("json")
 23202  	if res != nil && res.StatusCode == http.StatusNotModified {
 23203  		if res.Body != nil {
 23204  			res.Body.Close()
 23205  		}
 23206  		return nil, gensupport.WrapError(&googleapi.Error{
 23207  			Code:   res.StatusCode,
 23208  			Header: res.Header,
 23209  		})
 23210  	}
 23211  	if err != nil {
 23212  		return nil, err
 23213  	}
 23214  	defer googleapi.CloseBody(res)
 23215  	if err := googleapi.CheckResponse(res); err != nil {
 23216  		return nil, gensupport.WrapError(err)
 23217  	}
 23218  	ret := &GoogleCloudDiscoveryengineV1RecommendResponse{
 23219  		ServerResponse: googleapi.ServerResponse{
 23220  			Header:         res.Header,
 23221  			HTTPStatusCode: res.StatusCode,
 23222  		},
 23223  	}
 23224  	target := &ret
 23225  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23226  		return nil, err
 23227  	}
 23228  	return ret, nil
 23229  }
 23230  
 23231  type ProjectsLocationsDataStoresServingConfigsSearchCall struct {
 23232  	s                                         *Service
 23233  	servingConfig                             string
 23234  	googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest
 23235  	urlParams_                                gensupport.URLParams
 23236  	ctx_                                      context.Context
 23237  	header_                                   http.Header
 23238  }
 23239  
 23240  // Search: Performs a search.
 23241  //
 23242  //   - servingConfig: The resource name of the Search serving config, such as
 23243  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 23244  //     ngConfigs/default_serving_config`, or
 23245  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 23246  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 23247  //     to identify the serving configuration name, set of models used to make the
 23248  //     search.
 23249  func (r *ProjectsLocationsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 23250  	c := &ProjectsLocationsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23251  	c.servingConfig = servingConfig
 23252  	c.googleclouddiscoveryenginev1searchrequest = googleclouddiscoveryenginev1searchrequest
 23253  	return c
 23254  }
 23255  
 23256  // Fields allows partial responses to be retrieved. See
 23257  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23258  // details.
 23259  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 23260  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23261  	return c
 23262  }
 23263  
 23264  // Context sets the context to be used in this call's Do method.
 23265  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 23266  	c.ctx_ = ctx
 23267  	return c
 23268  }
 23269  
 23270  // Header returns a http.Header that can be modified by the caller to add
 23271  // headers to the request.
 23272  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Header() http.Header {
 23273  	if c.header_ == nil {
 23274  		c.header_ = make(http.Header)
 23275  	}
 23276  	return c.header_
 23277  }
 23278  
 23279  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 23280  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23281  	var body io.Reader = nil
 23282  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1searchrequest)
 23283  	if err != nil {
 23284  		return nil, err
 23285  	}
 23286  	c.urlParams_.Set("alt", alt)
 23287  	c.urlParams_.Set("prettyPrint", "false")
 23288  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:search")
 23289  	urls += "?" + c.urlParams_.Encode()
 23290  	req, err := http.NewRequest("POST", urls, body)
 23291  	if err != nil {
 23292  		return nil, err
 23293  	}
 23294  	req.Header = reqHeaders
 23295  	googleapi.Expand(req.URL, map[string]string{
 23296  		"servingConfig": c.servingConfig,
 23297  	})
 23298  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23299  }
 23300  
 23301  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.search" call.
 23302  // Any non-2xx status code is an error. Response headers are in either
 23303  // *GoogleCloudDiscoveryengineV1SearchResponse.ServerResponse.Header or (if a
 23304  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23305  // googleapi.IsNotModified to check whether the returned error was because
 23306  // http.StatusNotModified was returned.
 23307  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SearchResponse, error) {
 23308  	gensupport.SetOptions(c.urlParams_, opts...)
 23309  	res, err := c.doRequest("json")
 23310  	if res != nil && res.StatusCode == http.StatusNotModified {
 23311  		if res.Body != nil {
 23312  			res.Body.Close()
 23313  		}
 23314  		return nil, gensupport.WrapError(&googleapi.Error{
 23315  			Code:   res.StatusCode,
 23316  			Header: res.Header,
 23317  		})
 23318  	}
 23319  	if err != nil {
 23320  		return nil, err
 23321  	}
 23322  	defer googleapi.CloseBody(res)
 23323  	if err := googleapi.CheckResponse(res); err != nil {
 23324  		return nil, gensupport.WrapError(err)
 23325  	}
 23326  	ret := &GoogleCloudDiscoveryengineV1SearchResponse{
 23327  		ServerResponse: googleapi.ServerResponse{
 23328  			Header:         res.Header,
 23329  			HTTPStatusCode: res.StatusCode,
 23330  		},
 23331  	}
 23332  	target := &ret
 23333  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23334  		return nil, err
 23335  	}
 23336  	return ret, nil
 23337  }
 23338  
 23339  // Pages invokes f for each page of results.
 23340  // A non-nil error returned from f will halt the iteration.
 23341  // The provided context supersedes any context provided to the Context method.
 23342  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1SearchResponse) error) error {
 23343  	c.ctx_ = ctx
 23344  	defer func(pt string) { c.googleclouddiscoveryenginev1searchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1searchrequest.PageToken)
 23345  	for {
 23346  		x, err := c.Do()
 23347  		if err != nil {
 23348  			return err
 23349  		}
 23350  		if err := f(x); err != nil {
 23351  			return err
 23352  		}
 23353  		if x.NextPageToken == "" {
 23354  			return nil
 23355  		}
 23356  		c.googleclouddiscoveryenginev1searchrequest.PageToken = x.NextPageToken
 23357  	}
 23358  }
 23359  
 23360  type ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
 23361  	s                                                            *Service
 23362  	siteSearchEngine                                             string
 23363  	googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest
 23364  	urlParams_                                                   gensupport.URLParams
 23365  	ctx_                                                         context.Context
 23366  	header_                                                      http.Header
 23367  }
 23368  
 23369  // DisableAdvancedSiteSearch: Downgrade from advanced site search to basic site
 23370  // search.
 23371  //
 23372  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 23373  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 23374  //     rchEngine`.
 23375  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 23376  	c := &ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23377  	c.siteSearchEngine = siteSearchEngine
 23378  	c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest = googleclouddiscoveryenginev1disableadvancedsitesearchrequest
 23379  	return c
 23380  }
 23381  
 23382  // Fields allows partial responses to be retrieved. See
 23383  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23384  // details.
 23385  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 23386  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23387  	return c
 23388  }
 23389  
 23390  // Context sets the context to be used in this call's Do method.
 23391  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 23392  	c.ctx_ = ctx
 23393  	return c
 23394  }
 23395  
 23396  // Header returns a http.Header that can be modified by the caller to add
 23397  // headers to the request.
 23398  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
 23399  	if c.header_ == nil {
 23400  		c.header_ = make(http.Header)
 23401  	}
 23402  	return c.header_
 23403  }
 23404  
 23405  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 23406  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23407  	var body io.Reader = nil
 23408  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest)
 23409  	if err != nil {
 23410  		return nil, err
 23411  	}
 23412  	c.urlParams_.Set("alt", alt)
 23413  	c.urlParams_.Set("prettyPrint", "false")
 23414  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:disableAdvancedSiteSearch")
 23415  	urls += "?" + c.urlParams_.Encode()
 23416  	req, err := http.NewRequest("POST", urls, body)
 23417  	if err != nil {
 23418  		return nil, err
 23419  	}
 23420  	req.Header = reqHeaders
 23421  	googleapi.Expand(req.URL, map[string]string{
 23422  		"siteSearchEngine": c.siteSearchEngine,
 23423  	})
 23424  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23425  }
 23426  
 23427  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call.
 23428  // Any non-2xx status code is an error. Response headers are in either
 23429  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23430  // returned at all) in error.(*googleapi.Error).Header. Use
 23431  // googleapi.IsNotModified to check whether the returned error was because
 23432  // http.StatusNotModified was returned.
 23433  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23434  	gensupport.SetOptions(c.urlParams_, opts...)
 23435  	res, err := c.doRequest("json")
 23436  	if res != nil && res.StatusCode == http.StatusNotModified {
 23437  		if res.Body != nil {
 23438  			res.Body.Close()
 23439  		}
 23440  		return nil, gensupport.WrapError(&googleapi.Error{
 23441  			Code:   res.StatusCode,
 23442  			Header: res.Header,
 23443  		})
 23444  	}
 23445  	if err != nil {
 23446  		return nil, err
 23447  	}
 23448  	defer googleapi.CloseBody(res)
 23449  	if err := googleapi.CheckResponse(res); err != nil {
 23450  		return nil, gensupport.WrapError(err)
 23451  	}
 23452  	ret := &GoogleLongrunningOperation{
 23453  		ServerResponse: googleapi.ServerResponse{
 23454  			Header:         res.Header,
 23455  			HTTPStatusCode: res.StatusCode,
 23456  		},
 23457  	}
 23458  	target := &ret
 23459  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23460  		return nil, err
 23461  	}
 23462  	return ret, nil
 23463  }
 23464  
 23465  type ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
 23466  	s                                                           *Service
 23467  	siteSearchEngine                                            string
 23468  	googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest
 23469  	urlParams_                                                  gensupport.URLParams
 23470  	ctx_                                                        context.Context
 23471  	header_                                                     http.Header
 23472  }
 23473  
 23474  // EnableAdvancedSiteSearch: Upgrade from basic site search to advanced site
 23475  // search.
 23476  //
 23477  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 23478  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 23479  //     rchEngine`.
 23480  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 23481  	c := &ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23482  	c.siteSearchEngine = siteSearchEngine
 23483  	c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest = googleclouddiscoveryenginev1enableadvancedsitesearchrequest
 23484  	return c
 23485  }
 23486  
 23487  // Fields allows partial responses to be retrieved. See
 23488  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23489  // details.
 23490  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 23491  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23492  	return c
 23493  }
 23494  
 23495  // Context sets the context to be used in this call's Do method.
 23496  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 23497  	c.ctx_ = ctx
 23498  	return c
 23499  }
 23500  
 23501  // Header returns a http.Header that can be modified by the caller to add
 23502  // headers to the request.
 23503  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
 23504  	if c.header_ == nil {
 23505  		c.header_ = make(http.Header)
 23506  	}
 23507  	return c.header_
 23508  }
 23509  
 23510  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 23511  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23512  	var body io.Reader = nil
 23513  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest)
 23514  	if err != nil {
 23515  		return nil, err
 23516  	}
 23517  	c.urlParams_.Set("alt", alt)
 23518  	c.urlParams_.Set("prettyPrint", "false")
 23519  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:enableAdvancedSiteSearch")
 23520  	urls += "?" + c.urlParams_.Encode()
 23521  	req, err := http.NewRequest("POST", urls, body)
 23522  	if err != nil {
 23523  		return nil, err
 23524  	}
 23525  	req.Header = reqHeaders
 23526  	googleapi.Expand(req.URL, map[string]string{
 23527  		"siteSearchEngine": c.siteSearchEngine,
 23528  	})
 23529  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23530  }
 23531  
 23532  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call.
 23533  // Any non-2xx status code is an error. Response headers are in either
 23534  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23535  // returned at all) in error.(*googleapi.Error).Header. Use
 23536  // googleapi.IsNotModified to check whether the returned error was because
 23537  // http.StatusNotModified was returned.
 23538  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23539  	gensupport.SetOptions(c.urlParams_, opts...)
 23540  	res, err := c.doRequest("json")
 23541  	if res != nil && res.StatusCode == http.StatusNotModified {
 23542  		if res.Body != nil {
 23543  			res.Body.Close()
 23544  		}
 23545  		return nil, gensupport.WrapError(&googleapi.Error{
 23546  			Code:   res.StatusCode,
 23547  			Header: res.Header,
 23548  		})
 23549  	}
 23550  	if err != nil {
 23551  		return nil, err
 23552  	}
 23553  	defer googleapi.CloseBody(res)
 23554  	if err := googleapi.CheckResponse(res); err != nil {
 23555  		return nil, gensupport.WrapError(err)
 23556  	}
 23557  	ret := &GoogleLongrunningOperation{
 23558  		ServerResponse: googleapi.ServerResponse{
 23559  			Header:         res.Header,
 23560  			HTTPStatusCode: res.StatusCode,
 23561  		},
 23562  	}
 23563  	target := &ret
 23564  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23565  		return nil, err
 23566  	}
 23567  	return ret, nil
 23568  }
 23569  
 23570  type ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall struct {
 23571  	s                                              *Service
 23572  	siteSearchEngine                               string
 23573  	googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest
 23574  	urlParams_                                     gensupport.URLParams
 23575  	ctx_                                           context.Context
 23576  	header_                                        http.Header
 23577  }
 23578  
 23579  // RecrawlUris: Request on-demand recrawl for a list of URIs.
 23580  //
 23581  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 23582  //     `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
 23583  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 23584  	c := &ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23585  	c.siteSearchEngine = siteSearchEngine
 23586  	c.googleclouddiscoveryenginev1recrawlurisrequest = googleclouddiscoveryenginev1recrawlurisrequest
 23587  	return c
 23588  }
 23589  
 23590  // Fields allows partial responses to be retrieved. See
 23591  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23592  // details.
 23593  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 23594  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23595  	return c
 23596  }
 23597  
 23598  // Context sets the context to be used in this call's Do method.
 23599  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 23600  	c.ctx_ = ctx
 23601  	return c
 23602  }
 23603  
 23604  // Header returns a http.Header that can be modified by the caller to add
 23605  // headers to the request.
 23606  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
 23607  	if c.header_ == nil {
 23608  		c.header_ = make(http.Header)
 23609  	}
 23610  	return c.header_
 23611  }
 23612  
 23613  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
 23614  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23615  	var body io.Reader = nil
 23616  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recrawlurisrequest)
 23617  	if err != nil {
 23618  		return nil, err
 23619  	}
 23620  	c.urlParams_.Set("alt", alt)
 23621  	c.urlParams_.Set("prettyPrint", "false")
 23622  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:recrawlUris")
 23623  	urls += "?" + c.urlParams_.Encode()
 23624  	req, err := http.NewRequest("POST", urls, body)
 23625  	if err != nil {
 23626  		return nil, err
 23627  	}
 23628  	req.Header = reqHeaders
 23629  	googleapi.Expand(req.URL, map[string]string{
 23630  		"siteSearchEngine": c.siteSearchEngine,
 23631  	})
 23632  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23633  }
 23634  
 23635  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris" call.
 23636  // Any non-2xx status code is an error. Response headers are in either
 23637  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23638  // returned at all) in error.(*googleapi.Error).Header. Use
 23639  // googleapi.IsNotModified to check whether the returned error was because
 23640  // http.StatusNotModified was returned.
 23641  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23642  	gensupport.SetOptions(c.urlParams_, opts...)
 23643  	res, err := c.doRequest("json")
 23644  	if res != nil && res.StatusCode == http.StatusNotModified {
 23645  		if res.Body != nil {
 23646  			res.Body.Close()
 23647  		}
 23648  		return nil, gensupport.WrapError(&googleapi.Error{
 23649  			Code:   res.StatusCode,
 23650  			Header: res.Header,
 23651  		})
 23652  	}
 23653  	if err != nil {
 23654  		return nil, err
 23655  	}
 23656  	defer googleapi.CloseBody(res)
 23657  	if err := googleapi.CheckResponse(res); err != nil {
 23658  		return nil, gensupport.WrapError(err)
 23659  	}
 23660  	ret := &GoogleLongrunningOperation{
 23661  		ServerResponse: googleapi.ServerResponse{
 23662  			Header:         res.Header,
 23663  			HTTPStatusCode: res.StatusCode,
 23664  		},
 23665  	}
 23666  	target := &ret
 23667  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23668  		return nil, err
 23669  	}
 23670  	return ret, nil
 23671  }
 23672  
 23673  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
 23674  	s                                                         *Service
 23675  	parent                                                    string
 23676  	googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest
 23677  	urlParams_                                                gensupport.URLParams
 23678  	ctx_                                                      context.Context
 23679  	header_                                                   http.Header
 23680  }
 23681  
 23682  // BatchCreate: Creates TargetSite in a batch.
 23683  //
 23684  //   - parent: The parent resource shared by all TargetSites being created.
 23685  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 23686  //     s/{data_store}/siteSearchEngine`. The parent field in the
 23687  //     CreateBookRequest messages must either be empty or match this field.
 23688  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 23689  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23690  	c.parent = parent
 23691  	c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest = googleclouddiscoveryenginev1batchcreatetargetsitesrequest
 23692  	return c
 23693  }
 23694  
 23695  // Fields allows partial responses to be retrieved. See
 23696  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23697  // details.
 23698  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 23699  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23700  	return c
 23701  }
 23702  
 23703  // Context sets the context to be used in this call's Do method.
 23704  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 23705  	c.ctx_ = ctx
 23706  	return c
 23707  }
 23708  
 23709  // Header returns a http.Header that can be modified by the caller to add
 23710  // headers to the request.
 23711  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
 23712  	if c.header_ == nil {
 23713  		c.header_ = make(http.Header)
 23714  	}
 23715  	return c.header_
 23716  }
 23717  
 23718  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 23719  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23720  	var body io.Reader = nil
 23721  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest)
 23722  	if err != nil {
 23723  		return nil, err
 23724  	}
 23725  	c.urlParams_.Set("alt", alt)
 23726  	c.urlParams_.Set("prettyPrint", "false")
 23727  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites:batchCreate")
 23728  	urls += "?" + c.urlParams_.Encode()
 23729  	req, err := http.NewRequest("POST", urls, body)
 23730  	if err != nil {
 23731  		return nil, err
 23732  	}
 23733  	req.Header = reqHeaders
 23734  	googleapi.Expand(req.URL, map[string]string{
 23735  		"parent": c.parent,
 23736  	})
 23737  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23738  }
 23739  
 23740  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate" call.
 23741  // Any non-2xx status code is an error. Response headers are in either
 23742  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23743  // returned at all) in error.(*googleapi.Error).Header. Use
 23744  // googleapi.IsNotModified to check whether the returned error was because
 23745  // http.StatusNotModified was returned.
 23746  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23747  	gensupport.SetOptions(c.urlParams_, opts...)
 23748  	res, err := c.doRequest("json")
 23749  	if res != nil && res.StatusCode == http.StatusNotModified {
 23750  		if res.Body != nil {
 23751  			res.Body.Close()
 23752  		}
 23753  		return nil, gensupport.WrapError(&googleapi.Error{
 23754  			Code:   res.StatusCode,
 23755  			Header: res.Header,
 23756  		})
 23757  	}
 23758  	if err != nil {
 23759  		return nil, err
 23760  	}
 23761  	defer googleapi.CloseBody(res)
 23762  	if err := googleapi.CheckResponse(res); err != nil {
 23763  		return nil, gensupport.WrapError(err)
 23764  	}
 23765  	ret := &GoogleLongrunningOperation{
 23766  		ServerResponse: googleapi.ServerResponse{
 23767  			Header:         res.Header,
 23768  			HTTPStatusCode: res.StatusCode,
 23769  		},
 23770  	}
 23771  	target := &ret
 23772  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23773  		return nil, err
 23774  	}
 23775  	return ret, nil
 23776  }
 23777  
 23778  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
 23779  	s                                      *Service
 23780  	parent                                 string
 23781  	googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
 23782  	urlParams_                             gensupport.URLParams
 23783  	ctx_                                   context.Context
 23784  	header_                                http.Header
 23785  }
 23786  
 23787  // Create: Creates a TargetSite.
 23788  //
 23789  //   - parent: Parent resource name of TargetSite, such as
 23790  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 23791  //     s/{data_store}/siteSearchEngine`.
 23792  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 23793  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23794  	c.parent = parent
 23795  	c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
 23796  	return c
 23797  }
 23798  
 23799  // Fields allows partial responses to be retrieved. See
 23800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23801  // details.
 23802  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 23803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23804  	return c
 23805  }
 23806  
 23807  // Context sets the context to be used in this call's Do method.
 23808  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 23809  	c.ctx_ = ctx
 23810  	return c
 23811  }
 23812  
 23813  // Header returns a http.Header that can be modified by the caller to add
 23814  // headers to the request.
 23815  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
 23816  	if c.header_ == nil {
 23817  		c.header_ = make(http.Header)
 23818  	}
 23819  	return c.header_
 23820  }
 23821  
 23822  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
 23823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23824  	var body io.Reader = nil
 23825  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
 23826  	if err != nil {
 23827  		return nil, err
 23828  	}
 23829  	c.urlParams_.Set("alt", alt)
 23830  	c.urlParams_.Set("prettyPrint", "false")
 23831  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
 23832  	urls += "?" + c.urlParams_.Encode()
 23833  	req, err := http.NewRequest("POST", urls, body)
 23834  	if err != nil {
 23835  		return nil, err
 23836  	}
 23837  	req.Header = reqHeaders
 23838  	googleapi.Expand(req.URL, map[string]string{
 23839  		"parent": c.parent,
 23840  	})
 23841  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23842  }
 23843  
 23844  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create" call.
 23845  // Any non-2xx status code is an error. Response headers are in either
 23846  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23847  // returned at all) in error.(*googleapi.Error).Header. Use
 23848  // googleapi.IsNotModified to check whether the returned error was because
 23849  // http.StatusNotModified was returned.
 23850  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23851  	gensupport.SetOptions(c.urlParams_, opts...)
 23852  	res, err := c.doRequest("json")
 23853  	if res != nil && res.StatusCode == http.StatusNotModified {
 23854  		if res.Body != nil {
 23855  			res.Body.Close()
 23856  		}
 23857  		return nil, gensupport.WrapError(&googleapi.Error{
 23858  			Code:   res.StatusCode,
 23859  			Header: res.Header,
 23860  		})
 23861  	}
 23862  	if err != nil {
 23863  		return nil, err
 23864  	}
 23865  	defer googleapi.CloseBody(res)
 23866  	if err := googleapi.CheckResponse(res); err != nil {
 23867  		return nil, gensupport.WrapError(err)
 23868  	}
 23869  	ret := &GoogleLongrunningOperation{
 23870  		ServerResponse: googleapi.ServerResponse{
 23871  			Header:         res.Header,
 23872  			HTTPStatusCode: res.StatusCode,
 23873  		},
 23874  	}
 23875  	target := &ret
 23876  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23877  		return nil, err
 23878  	}
 23879  	return ret, nil
 23880  }
 23881  
 23882  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
 23883  	s          *Service
 23884  	name       string
 23885  	urlParams_ gensupport.URLParams
 23886  	ctx_       context.Context
 23887  	header_    http.Header
 23888  }
 23889  
 23890  // Delete: Deletes a TargetSite.
 23891  //
 23892  //   - name: Full resource name of TargetSite, such as
 23893  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 23894  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 23895  //     does not have permission to access the TargetSite, regardless of whether
 23896  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 23897  //     TargetSite does not exist, a NOT_FOUND error is returned.
 23898  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 23899  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23900  	c.name = name
 23901  	return c
 23902  }
 23903  
 23904  // Fields allows partial responses to be retrieved. See
 23905  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23906  // details.
 23907  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 23908  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23909  	return c
 23910  }
 23911  
 23912  // Context sets the context to be used in this call's Do method.
 23913  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 23914  	c.ctx_ = ctx
 23915  	return c
 23916  }
 23917  
 23918  // Header returns a http.Header that can be modified by the caller to add
 23919  // headers to the request.
 23920  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
 23921  	if c.header_ == nil {
 23922  		c.header_ = make(http.Header)
 23923  	}
 23924  	return c.header_
 23925  }
 23926  
 23927  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
 23928  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23929  	var body io.Reader = nil
 23930  	c.urlParams_.Set("alt", alt)
 23931  	c.urlParams_.Set("prettyPrint", "false")
 23932  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23933  	urls += "?" + c.urlParams_.Encode()
 23934  	req, err := http.NewRequest("DELETE", urls, body)
 23935  	if err != nil {
 23936  		return nil, err
 23937  	}
 23938  	req.Header = reqHeaders
 23939  	googleapi.Expand(req.URL, map[string]string{
 23940  		"name": c.name,
 23941  	})
 23942  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23943  }
 23944  
 23945  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete" call.
 23946  // Any non-2xx status code is an error. Response headers are in either
 23947  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23948  // returned at all) in error.(*googleapi.Error).Header. Use
 23949  // googleapi.IsNotModified to check whether the returned error was because
 23950  // http.StatusNotModified was returned.
 23951  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23952  	gensupport.SetOptions(c.urlParams_, opts...)
 23953  	res, err := c.doRequest("json")
 23954  	if res != nil && res.StatusCode == http.StatusNotModified {
 23955  		if res.Body != nil {
 23956  			res.Body.Close()
 23957  		}
 23958  		return nil, gensupport.WrapError(&googleapi.Error{
 23959  			Code:   res.StatusCode,
 23960  			Header: res.Header,
 23961  		})
 23962  	}
 23963  	if err != nil {
 23964  		return nil, err
 23965  	}
 23966  	defer googleapi.CloseBody(res)
 23967  	if err := googleapi.CheckResponse(res); err != nil {
 23968  		return nil, gensupport.WrapError(err)
 23969  	}
 23970  	ret := &GoogleLongrunningOperation{
 23971  		ServerResponse: googleapi.ServerResponse{
 23972  			Header:         res.Header,
 23973  			HTTPStatusCode: res.StatusCode,
 23974  		},
 23975  	}
 23976  	target := &ret
 23977  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23978  		return nil, err
 23979  	}
 23980  	return ret, nil
 23981  }
 23982  
 23983  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall struct {
 23984  	s            *Service
 23985  	name         string
 23986  	urlParams_   gensupport.URLParams
 23987  	ifNoneMatch_ string
 23988  	ctx_         context.Context
 23989  	header_      http.Header
 23990  }
 23991  
 23992  // Get: Gets a TargetSite.
 23993  //
 23994  //   - name: Full resource name of TargetSite, such as
 23995  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 23996  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 23997  //     does not have permission to access the TargetSite, regardless of whether
 23998  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 23999  //     TargetSite does not exist, a NOT_FOUND error is returned.
 24000  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 24001  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24002  	c.name = name
 24003  	return c
 24004  }
 24005  
 24006  // Fields allows partial responses to be retrieved. See
 24007  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24008  // details.
 24009  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 24010  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24011  	return c
 24012  }
 24013  
 24014  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24015  // object's ETag matches the given value. This is useful for getting updates
 24016  // only after the object has changed since the last request.
 24017  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 24018  	c.ifNoneMatch_ = entityTag
 24019  	return c
 24020  }
 24021  
 24022  // Context sets the context to be used in this call's Do method.
 24023  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 24024  	c.ctx_ = ctx
 24025  	return c
 24026  }
 24027  
 24028  // Header returns a http.Header that can be modified by the caller to add
 24029  // headers to the request.
 24030  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
 24031  	if c.header_ == nil {
 24032  		c.header_ = make(http.Header)
 24033  	}
 24034  	return c.header_
 24035  }
 24036  
 24037  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
 24038  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24039  	if c.ifNoneMatch_ != "" {
 24040  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24041  	}
 24042  	var body io.Reader = nil
 24043  	c.urlParams_.Set("alt", alt)
 24044  	c.urlParams_.Set("prettyPrint", "false")
 24045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24046  	urls += "?" + c.urlParams_.Encode()
 24047  	req, err := http.NewRequest("GET", urls, body)
 24048  	if err != nil {
 24049  		return nil, err
 24050  	}
 24051  	req.Header = reqHeaders
 24052  	googleapi.Expand(req.URL, map[string]string{
 24053  		"name": c.name,
 24054  	})
 24055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24056  }
 24057  
 24058  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get" call.
 24059  // Any non-2xx status code is an error. Response headers are in either
 24060  // *GoogleCloudDiscoveryengineV1TargetSite.ServerResponse.Header or (if a
 24061  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24062  // googleapi.IsNotModified to check whether the returned error was because
 24063  // http.StatusNotModified was returned.
 24064  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1TargetSite, error) {
 24065  	gensupport.SetOptions(c.urlParams_, opts...)
 24066  	res, err := c.doRequest("json")
 24067  	if res != nil && res.StatusCode == http.StatusNotModified {
 24068  		if res.Body != nil {
 24069  			res.Body.Close()
 24070  		}
 24071  		return nil, gensupport.WrapError(&googleapi.Error{
 24072  			Code:   res.StatusCode,
 24073  			Header: res.Header,
 24074  		})
 24075  	}
 24076  	if err != nil {
 24077  		return nil, err
 24078  	}
 24079  	defer googleapi.CloseBody(res)
 24080  	if err := googleapi.CheckResponse(res); err != nil {
 24081  		return nil, gensupport.WrapError(err)
 24082  	}
 24083  	ret := &GoogleCloudDiscoveryengineV1TargetSite{
 24084  		ServerResponse: googleapi.ServerResponse{
 24085  			Header:         res.Header,
 24086  			HTTPStatusCode: res.StatusCode,
 24087  		},
 24088  	}
 24089  	target := &ret
 24090  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24091  		return nil, err
 24092  	}
 24093  	return ret, nil
 24094  }
 24095  
 24096  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall struct {
 24097  	s            *Service
 24098  	parent       string
 24099  	urlParams_   gensupport.URLParams
 24100  	ifNoneMatch_ string
 24101  	ctx_         context.Context
 24102  	header_      http.Header
 24103  }
 24104  
 24105  // List: Gets a list of TargetSites.
 24106  //
 24107  //   - parent: The parent site search engine resource name, such as
 24108  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 24109  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 24110  //     to list TargetSites under this site search engine, regardless of whether
 24111  //     or not this branch exists, a PERMISSION_DENIED error is returned.
 24112  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 24113  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24114  	c.parent = parent
 24115  	return c
 24116  }
 24117  
 24118  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 24119  // may return fewer items than requested. If unspecified, server will pick an
 24120  // appropriate default. The maximum value is 1000; values above 1000 will be
 24121  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 24122  // returned.
 24123  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 24124  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24125  	return c
 24126  }
 24127  
 24128  // PageToken sets the optional parameter "pageToken": A page token, received
 24129  // from a previous `ListTargetSites` call. Provide this to retrieve the
 24130  // subsequent page. When paginating, all other parameters provided to
 24131  // `ListTargetSites` must match the call that provided the page token.
 24132  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 24133  	c.urlParams_.Set("pageToken", pageToken)
 24134  	return c
 24135  }
 24136  
 24137  // Fields allows partial responses to be retrieved. See
 24138  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24139  // details.
 24140  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 24141  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24142  	return c
 24143  }
 24144  
 24145  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24146  // object's ETag matches the given value. This is useful for getting updates
 24147  // only after the object has changed since the last request.
 24148  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 24149  	c.ifNoneMatch_ = entityTag
 24150  	return c
 24151  }
 24152  
 24153  // Context sets the context to be used in this call's Do method.
 24154  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 24155  	c.ctx_ = ctx
 24156  	return c
 24157  }
 24158  
 24159  // Header returns a http.Header that can be modified by the caller to add
 24160  // headers to the request.
 24161  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
 24162  	if c.header_ == nil {
 24163  		c.header_ = make(http.Header)
 24164  	}
 24165  	return c.header_
 24166  }
 24167  
 24168  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
 24169  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24170  	if c.ifNoneMatch_ != "" {
 24171  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24172  	}
 24173  	var body io.Reader = nil
 24174  	c.urlParams_.Set("alt", alt)
 24175  	c.urlParams_.Set("prettyPrint", "false")
 24176  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
 24177  	urls += "?" + c.urlParams_.Encode()
 24178  	req, err := http.NewRequest("GET", urls, body)
 24179  	if err != nil {
 24180  		return nil, err
 24181  	}
 24182  	req.Header = reqHeaders
 24183  	googleapi.Expand(req.URL, map[string]string{
 24184  		"parent": c.parent,
 24185  	})
 24186  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24187  }
 24188  
 24189  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list" call.
 24190  // Any non-2xx status code is an error. Response headers are in either
 24191  // *GoogleCloudDiscoveryengineV1ListTargetSitesResponse.ServerResponse.Header
 24192  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 24193  // Use googleapi.IsNotModified to check whether the returned error was because
 24194  // http.StatusNotModified was returned.
 24195  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListTargetSitesResponse, error) {
 24196  	gensupport.SetOptions(c.urlParams_, opts...)
 24197  	res, err := c.doRequest("json")
 24198  	if res != nil && res.StatusCode == http.StatusNotModified {
 24199  		if res.Body != nil {
 24200  			res.Body.Close()
 24201  		}
 24202  		return nil, gensupport.WrapError(&googleapi.Error{
 24203  			Code:   res.StatusCode,
 24204  			Header: res.Header,
 24205  		})
 24206  	}
 24207  	if err != nil {
 24208  		return nil, err
 24209  	}
 24210  	defer googleapi.CloseBody(res)
 24211  	if err := googleapi.CheckResponse(res); err != nil {
 24212  		return nil, gensupport.WrapError(err)
 24213  	}
 24214  	ret := &GoogleCloudDiscoveryengineV1ListTargetSitesResponse{
 24215  		ServerResponse: googleapi.ServerResponse{
 24216  			Header:         res.Header,
 24217  			HTTPStatusCode: res.StatusCode,
 24218  		},
 24219  	}
 24220  	target := &ret
 24221  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24222  		return nil, err
 24223  	}
 24224  	return ret, nil
 24225  }
 24226  
 24227  // Pages invokes f for each page of results.
 24228  // A non-nil error returned from f will halt the iteration.
 24229  // The provided context supersedes any context provided to the Context method.
 24230  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListTargetSitesResponse) error) error {
 24231  	c.ctx_ = ctx
 24232  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24233  	for {
 24234  		x, err := c.Do()
 24235  		if err != nil {
 24236  			return err
 24237  		}
 24238  		if err := f(x); err != nil {
 24239  			return err
 24240  		}
 24241  		if x.NextPageToken == "" {
 24242  			return nil
 24243  		}
 24244  		c.PageToken(x.NextPageToken)
 24245  	}
 24246  }
 24247  
 24248  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
 24249  	s                                      *Service
 24250  	name                                   string
 24251  	googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
 24252  	urlParams_                             gensupport.URLParams
 24253  	ctx_                                   context.Context
 24254  	header_                                http.Header
 24255  }
 24256  
 24257  // Patch: Updates a TargetSite.
 24258  //
 24259  //   - name: Output only. The fully qualified resource name of the target site.
 24260  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 24261  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}` The
 24262  //     `target_site_id` is system-generated.
 24263  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 24264  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24265  	c.name = name
 24266  	c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
 24267  	return c
 24268  }
 24269  
 24270  // Fields allows partial responses to be retrieved. See
 24271  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24272  // details.
 24273  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 24274  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24275  	return c
 24276  }
 24277  
 24278  // Context sets the context to be used in this call's Do method.
 24279  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 24280  	c.ctx_ = ctx
 24281  	return c
 24282  }
 24283  
 24284  // Header returns a http.Header that can be modified by the caller to add
 24285  // headers to the request.
 24286  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
 24287  	if c.header_ == nil {
 24288  		c.header_ = make(http.Header)
 24289  	}
 24290  	return c.header_
 24291  }
 24292  
 24293  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
 24294  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24295  	var body io.Reader = nil
 24296  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
 24297  	if err != nil {
 24298  		return nil, err
 24299  	}
 24300  	c.urlParams_.Set("alt", alt)
 24301  	c.urlParams_.Set("prettyPrint", "false")
 24302  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24303  	urls += "?" + c.urlParams_.Encode()
 24304  	req, err := http.NewRequest("PATCH", urls, body)
 24305  	if err != nil {
 24306  		return nil, err
 24307  	}
 24308  	req.Header = reqHeaders
 24309  	googleapi.Expand(req.URL, map[string]string{
 24310  		"name": c.name,
 24311  	})
 24312  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24313  }
 24314  
 24315  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch" call.
 24316  // Any non-2xx status code is an error. Response headers are in either
 24317  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24318  // returned at all) in error.(*googleapi.Error).Header. Use
 24319  // googleapi.IsNotModified to check whether the returned error was because
 24320  // http.StatusNotModified was returned.
 24321  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24322  	gensupport.SetOptions(c.urlParams_, opts...)
 24323  	res, err := c.doRequest("json")
 24324  	if res != nil && res.StatusCode == http.StatusNotModified {
 24325  		if res.Body != nil {
 24326  			res.Body.Close()
 24327  		}
 24328  		return nil, gensupport.WrapError(&googleapi.Error{
 24329  			Code:   res.StatusCode,
 24330  			Header: res.Header,
 24331  		})
 24332  	}
 24333  	if err != nil {
 24334  		return nil, err
 24335  	}
 24336  	defer googleapi.CloseBody(res)
 24337  	if err := googleapi.CheckResponse(res); err != nil {
 24338  		return nil, gensupport.WrapError(err)
 24339  	}
 24340  	ret := &GoogleLongrunningOperation{
 24341  		ServerResponse: googleapi.ServerResponse{
 24342  			Header:         res.Header,
 24343  			HTTPStatusCode: res.StatusCode,
 24344  		},
 24345  	}
 24346  	target := &ret
 24347  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24348  		return nil, err
 24349  	}
 24350  	return ret, nil
 24351  }
 24352  
 24353  type ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall struct {
 24354  	s                                                                  *Service
 24355  	parent                                                             string
 24356  	googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest
 24357  	urlParams_                                                         gensupport.URLParams
 24358  	ctx_                                                               context.Context
 24359  	header_                                                            http.Header
 24360  }
 24361  
 24362  // Import: Imports all SuggestionDenyListEntry for a DataStore.
 24363  //
 24364  //   - parent: The parent data store resource name for which to import denylist
 24365  //     entries. Follows pattern
 24366  //     projects/*/locations/*/collections/*/dataStores/*.
 24367  func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 24368  	c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24369  	c.parent = parent
 24370  	c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest
 24371  	return c
 24372  }
 24373  
 24374  // Fields allows partial responses to be retrieved. See
 24375  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24376  // details.
 24377  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 24378  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24379  	return c
 24380  }
 24381  
 24382  // Context sets the context to be used in this call's Do method.
 24383  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 24384  	c.ctx_ = ctx
 24385  	return c
 24386  }
 24387  
 24388  // Header returns a http.Header that can be modified by the caller to add
 24389  // headers to the request.
 24390  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
 24391  	if c.header_ == nil {
 24392  		c.header_ = make(http.Header)
 24393  	}
 24394  	return c.header_
 24395  }
 24396  
 24397  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
 24398  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24399  	var body io.Reader = nil
 24400  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest)
 24401  	if err != nil {
 24402  		return nil, err
 24403  	}
 24404  	c.urlParams_.Set("alt", alt)
 24405  	c.urlParams_.Set("prettyPrint", "false")
 24406  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:import")
 24407  	urls += "?" + c.urlParams_.Encode()
 24408  	req, err := http.NewRequest("POST", urls, body)
 24409  	if err != nil {
 24410  		return nil, err
 24411  	}
 24412  	req.Header = reqHeaders
 24413  	googleapi.Expand(req.URL, map[string]string{
 24414  		"parent": c.parent,
 24415  	})
 24416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24417  }
 24418  
 24419  // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import" call.
 24420  // Any non-2xx status code is an error. Response headers are in either
 24421  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24422  // returned at all) in error.(*googleapi.Error).Header. Use
 24423  // googleapi.IsNotModified to check whether the returned error was because
 24424  // http.StatusNotModified was returned.
 24425  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24426  	gensupport.SetOptions(c.urlParams_, opts...)
 24427  	res, err := c.doRequest("json")
 24428  	if res != nil && res.StatusCode == http.StatusNotModified {
 24429  		if res.Body != nil {
 24430  			res.Body.Close()
 24431  		}
 24432  		return nil, gensupport.WrapError(&googleapi.Error{
 24433  			Code:   res.StatusCode,
 24434  			Header: res.Header,
 24435  		})
 24436  	}
 24437  	if err != nil {
 24438  		return nil, err
 24439  	}
 24440  	defer googleapi.CloseBody(res)
 24441  	if err := googleapi.CheckResponse(res); err != nil {
 24442  		return nil, gensupport.WrapError(err)
 24443  	}
 24444  	ret := &GoogleLongrunningOperation{
 24445  		ServerResponse: googleapi.ServerResponse{
 24446  			Header:         res.Header,
 24447  			HTTPStatusCode: res.StatusCode,
 24448  		},
 24449  	}
 24450  	target := &ret
 24451  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24452  		return nil, err
 24453  	}
 24454  	return ret, nil
 24455  }
 24456  
 24457  type ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall struct {
 24458  	s                                                                 *Service
 24459  	parent                                                            string
 24460  	googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest
 24461  	urlParams_                                                        gensupport.URLParams
 24462  	ctx_                                                              context.Context
 24463  	header_                                                           http.Header
 24464  }
 24465  
 24466  // Purge: Permanently deletes all SuggestionDenyListEntry for a DataStore.
 24467  //
 24468  //   - parent: The parent data store resource name for which to import denylist
 24469  //     entries. Follows pattern
 24470  //     projects/*/locations/*/collections/*/dataStores/*.
 24471  func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 24472  	c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24473  	c.parent = parent
 24474  	c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest
 24475  	return c
 24476  }
 24477  
 24478  // Fields allows partial responses to be retrieved. See
 24479  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24480  // details.
 24481  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 24482  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24483  	return c
 24484  }
 24485  
 24486  // Context sets the context to be used in this call's Do method.
 24487  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 24488  	c.ctx_ = ctx
 24489  	return c
 24490  }
 24491  
 24492  // Header returns a http.Header that can be modified by the caller to add
 24493  // headers to the request.
 24494  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
 24495  	if c.header_ == nil {
 24496  		c.header_ = make(http.Header)
 24497  	}
 24498  	return c.header_
 24499  }
 24500  
 24501  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
 24502  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24503  	var body io.Reader = nil
 24504  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest)
 24505  	if err != nil {
 24506  		return nil, err
 24507  	}
 24508  	c.urlParams_.Set("alt", alt)
 24509  	c.urlParams_.Set("prettyPrint", "false")
 24510  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:purge")
 24511  	urls += "?" + c.urlParams_.Encode()
 24512  	req, err := http.NewRequest("POST", urls, body)
 24513  	if err != nil {
 24514  		return nil, err
 24515  	}
 24516  	req.Header = reqHeaders
 24517  	googleapi.Expand(req.URL, map[string]string{
 24518  		"parent": c.parent,
 24519  	})
 24520  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24521  }
 24522  
 24523  // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge" call.
 24524  // Any non-2xx status code is an error. Response headers are in either
 24525  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24526  // returned at all) in error.(*googleapi.Error).Header. Use
 24527  // googleapi.IsNotModified to check whether the returned error was because
 24528  // http.StatusNotModified was returned.
 24529  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24530  	gensupport.SetOptions(c.urlParams_, opts...)
 24531  	res, err := c.doRequest("json")
 24532  	if res != nil && res.StatusCode == http.StatusNotModified {
 24533  		if res.Body != nil {
 24534  			res.Body.Close()
 24535  		}
 24536  		return nil, gensupport.WrapError(&googleapi.Error{
 24537  			Code:   res.StatusCode,
 24538  			Header: res.Header,
 24539  		})
 24540  	}
 24541  	if err != nil {
 24542  		return nil, err
 24543  	}
 24544  	defer googleapi.CloseBody(res)
 24545  	if err := googleapi.CheckResponse(res); err != nil {
 24546  		return nil, gensupport.WrapError(err)
 24547  	}
 24548  	ret := &GoogleLongrunningOperation{
 24549  		ServerResponse: googleapi.ServerResponse{
 24550  			Header:         res.Header,
 24551  			HTTPStatusCode: res.StatusCode,
 24552  		},
 24553  	}
 24554  	target := &ret
 24555  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24556  		return nil, err
 24557  	}
 24558  	return ret, nil
 24559  }
 24560  
 24561  type ProjectsLocationsDataStoresUserEventsCollectCall struct {
 24562  	s            *Service
 24563  	parent       string
 24564  	urlParams_   gensupport.URLParams
 24565  	ifNoneMatch_ string
 24566  	ctx_         context.Context
 24567  	header_      http.Header
 24568  }
 24569  
 24570  // Collect: Writes a single user event from the browser. This uses a GET
 24571  // request to due to browser restriction of POST-ing to a third-party domain.
 24572  // This method is used only by the Discovery Engine API JavaScript pixel and
 24573  // Google Tag Manager. Users should not call this method directly.
 24574  //
 24575  //   - parent: The parent DataStore resource name, such as
 24576  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 24577  //     s/{data_store}`.
 24578  func (r *ProjectsLocationsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24579  	c := &ProjectsLocationsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24580  	c.parent = parent
 24581  	return c
 24582  }
 24583  
 24584  // Ets sets the optional parameter "ets": The event timestamp in milliseconds.
 24585  // This prevents browser caching of otherwise identical get requests. The name
 24586  // is abbreviated to reduce the payload bytes.
 24587  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24588  	c.urlParams_.Set("ets", fmt.Sprint(ets))
 24589  	return c
 24590  }
 24591  
 24592  // Uri sets the optional parameter "uri": The URL including cgi-parameters but
 24593  // excluding the hash fragment with a length limit of 5,000 characters. This is
 24594  // often more useful than the referer URL, because many browsers only send the
 24595  // domain for third-party requests.
 24596  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24597  	c.urlParams_.Set("uri", uri)
 24598  	return c
 24599  }
 24600  
 24601  // UserEvent sets the optional parameter "userEvent": Required. URL encoded
 24602  // UserEvent proto with a length limit of 2,000,000 characters.
 24603  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24604  	c.urlParams_.Set("userEvent", userEvent)
 24605  	return c
 24606  }
 24607  
 24608  // Fields allows partial responses to be retrieved. See
 24609  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24610  // details.
 24611  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24612  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24613  	return c
 24614  }
 24615  
 24616  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24617  // object's ETag matches the given value. This is useful for getting updates
 24618  // only after the object has changed since the last request.
 24619  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24620  	c.ifNoneMatch_ = entityTag
 24621  	return c
 24622  }
 24623  
 24624  // Context sets the context to be used in this call's Do method.
 24625  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsCollectCall {
 24626  	c.ctx_ = ctx
 24627  	return c
 24628  }
 24629  
 24630  // Header returns a http.Header that can be modified by the caller to add
 24631  // headers to the request.
 24632  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Header() http.Header {
 24633  	if c.header_ == nil {
 24634  		c.header_ = make(http.Header)
 24635  	}
 24636  	return c.header_
 24637  }
 24638  
 24639  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
 24640  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24641  	if c.ifNoneMatch_ != "" {
 24642  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24643  	}
 24644  	var body io.Reader = nil
 24645  	c.urlParams_.Set("alt", alt)
 24646  	c.urlParams_.Set("prettyPrint", "false")
 24647  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:collect")
 24648  	urls += "?" + c.urlParams_.Encode()
 24649  	req, err := http.NewRequest("GET", urls, body)
 24650  	if err != nil {
 24651  		return nil, err
 24652  	}
 24653  	req.Header = reqHeaders
 24654  	googleapi.Expand(req.URL, map[string]string{
 24655  		"parent": c.parent,
 24656  	})
 24657  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24658  }
 24659  
 24660  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.collect" call.
 24661  // Any non-2xx status code is an error. Response headers are in either
 24662  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 24663  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24664  // check whether the returned error was because http.StatusNotModified was
 24665  // returned.
 24666  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 24667  	gensupport.SetOptions(c.urlParams_, opts...)
 24668  	res, err := c.doRequest("json")
 24669  	if res != nil && res.StatusCode == http.StatusNotModified {
 24670  		if res.Body != nil {
 24671  			res.Body.Close()
 24672  		}
 24673  		return nil, gensupport.WrapError(&googleapi.Error{
 24674  			Code:   res.StatusCode,
 24675  			Header: res.Header,
 24676  		})
 24677  	}
 24678  	if err != nil {
 24679  		return nil, err
 24680  	}
 24681  	defer googleapi.CloseBody(res)
 24682  	if err := googleapi.CheckResponse(res); err != nil {
 24683  		return nil, gensupport.WrapError(err)
 24684  	}
 24685  	ret := &GoogleApiHttpBody{
 24686  		ServerResponse: googleapi.ServerResponse{
 24687  			Header:         res.Header,
 24688  			HTTPStatusCode: res.StatusCode,
 24689  		},
 24690  	}
 24691  	target := &ret
 24692  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24693  		return nil, err
 24694  	}
 24695  	return ret, nil
 24696  }
 24697  
 24698  type ProjectsLocationsDataStoresUserEventsImportCall struct {
 24699  	s                                                   *Service
 24700  	parent                                              string
 24701  	googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest
 24702  	urlParams_                                          gensupport.URLParams
 24703  	ctx_                                                context.Context
 24704  	header_                                             http.Header
 24705  }
 24706  
 24707  // Import: Bulk import of User events. Request processing might be synchronous.
 24708  // Events that already exist are skipped. Use this method for backfilling
 24709  // historical user events. Operation.response is of type ImportResponse. Note
 24710  // that it is possible for a subset of the items to be successfully inserted.
 24711  // Operation.metadata is of type ImportMetadata.
 24712  //
 24713  //   - parent: Parent DataStore resource name, of the form
 24714  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 24715  //     s/{data_store}`.
 24716  func (r *ProjectsLocationsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest) *ProjectsLocationsDataStoresUserEventsImportCall {
 24717  	c := &ProjectsLocationsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24718  	c.parent = parent
 24719  	c.googleclouddiscoveryenginev1importusereventsrequest = googleclouddiscoveryenginev1importusereventsrequest
 24720  	return c
 24721  }
 24722  
 24723  // Fields allows partial responses to be retrieved. See
 24724  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24725  // details.
 24726  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsImportCall {
 24727  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24728  	return c
 24729  }
 24730  
 24731  // Context sets the context to be used in this call's Do method.
 24732  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsImportCall {
 24733  	c.ctx_ = ctx
 24734  	return c
 24735  }
 24736  
 24737  // Header returns a http.Header that can be modified by the caller to add
 24738  // headers to the request.
 24739  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Header() http.Header {
 24740  	if c.header_ == nil {
 24741  		c.header_ = make(http.Header)
 24742  	}
 24743  	return c.header_
 24744  }
 24745  
 24746  func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
 24747  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24748  	var body io.Reader = nil
 24749  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importusereventsrequest)
 24750  	if err != nil {
 24751  		return nil, err
 24752  	}
 24753  	c.urlParams_.Set("alt", alt)
 24754  	c.urlParams_.Set("prettyPrint", "false")
 24755  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:import")
 24756  	urls += "?" + c.urlParams_.Encode()
 24757  	req, err := http.NewRequest("POST", urls, body)
 24758  	if err != nil {
 24759  		return nil, err
 24760  	}
 24761  	req.Header = reqHeaders
 24762  	googleapi.Expand(req.URL, map[string]string{
 24763  		"parent": c.parent,
 24764  	})
 24765  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24766  }
 24767  
 24768  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.import" call.
 24769  // Any non-2xx status code is an error. Response headers are in either
 24770  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24771  // returned at all) in error.(*googleapi.Error).Header. Use
 24772  // googleapi.IsNotModified to check whether the returned error was because
 24773  // http.StatusNotModified was returned.
 24774  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24775  	gensupport.SetOptions(c.urlParams_, opts...)
 24776  	res, err := c.doRequest("json")
 24777  	if res != nil && res.StatusCode == http.StatusNotModified {
 24778  		if res.Body != nil {
 24779  			res.Body.Close()
 24780  		}
 24781  		return nil, gensupport.WrapError(&googleapi.Error{
 24782  			Code:   res.StatusCode,
 24783  			Header: res.Header,
 24784  		})
 24785  	}
 24786  	if err != nil {
 24787  		return nil, err
 24788  	}
 24789  	defer googleapi.CloseBody(res)
 24790  	if err := googleapi.CheckResponse(res); err != nil {
 24791  		return nil, gensupport.WrapError(err)
 24792  	}
 24793  	ret := &GoogleLongrunningOperation{
 24794  		ServerResponse: googleapi.ServerResponse{
 24795  			Header:         res.Header,
 24796  			HTTPStatusCode: res.StatusCode,
 24797  		},
 24798  	}
 24799  	target := &ret
 24800  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24801  		return nil, err
 24802  	}
 24803  	return ret, nil
 24804  }
 24805  
 24806  type ProjectsLocationsDataStoresUserEventsWriteCall struct {
 24807  	s                                     *Service
 24808  	parent                                string
 24809  	googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent
 24810  	urlParams_                            gensupport.URLParams
 24811  	ctx_                                  context.Context
 24812  	header_                               http.Header
 24813  }
 24814  
 24815  // Write: Writes a single user event.
 24816  //
 24817  //   - parent: The parent resource name. If the write user event action is
 24818  //     applied in DataStore level, the format is:
 24819  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 24820  //     s/{data_store}`. If the write user event action is applied in Location
 24821  //     level, for example, the event with Document across multiple DataStore, the
 24822  //     format is: `projects/{project}/locations/{location}`.
 24823  func (r *ProjectsLocationsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent) *ProjectsLocationsDataStoresUserEventsWriteCall {
 24824  	c := &ProjectsLocationsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24825  	c.parent = parent
 24826  	c.googleclouddiscoveryenginev1userevent = googleclouddiscoveryenginev1userevent
 24827  	return c
 24828  }
 24829  
 24830  // Fields allows partial responses to be retrieved. See
 24831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24832  // details.
 24833  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsWriteCall {
 24834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24835  	return c
 24836  }
 24837  
 24838  // Context sets the context to be used in this call's Do method.
 24839  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsWriteCall {
 24840  	c.ctx_ = ctx
 24841  	return c
 24842  }
 24843  
 24844  // Header returns a http.Header that can be modified by the caller to add
 24845  // headers to the request.
 24846  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Header() http.Header {
 24847  	if c.header_ == nil {
 24848  		c.header_ = make(http.Header)
 24849  	}
 24850  	return c.header_
 24851  }
 24852  
 24853  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 24854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24855  	var body io.Reader = nil
 24856  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1userevent)
 24857  	if err != nil {
 24858  		return nil, err
 24859  	}
 24860  	c.urlParams_.Set("alt", alt)
 24861  	c.urlParams_.Set("prettyPrint", "false")
 24862  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:write")
 24863  	urls += "?" + c.urlParams_.Encode()
 24864  	req, err := http.NewRequest("POST", urls, body)
 24865  	if err != nil {
 24866  		return nil, err
 24867  	}
 24868  	req.Header = reqHeaders
 24869  	googleapi.Expand(req.URL, map[string]string{
 24870  		"parent": c.parent,
 24871  	})
 24872  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24873  }
 24874  
 24875  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.write" call.
 24876  // Any non-2xx status code is an error. Response headers are in either
 24877  // *GoogleCloudDiscoveryengineV1UserEvent.ServerResponse.Header or (if a
 24878  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24879  // googleapi.IsNotModified to check whether the returned error was because
 24880  // http.StatusNotModified was returned.
 24881  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1UserEvent, error) {
 24882  	gensupport.SetOptions(c.urlParams_, opts...)
 24883  	res, err := c.doRequest("json")
 24884  	if res != nil && res.StatusCode == http.StatusNotModified {
 24885  		if res.Body != nil {
 24886  			res.Body.Close()
 24887  		}
 24888  		return nil, gensupport.WrapError(&googleapi.Error{
 24889  			Code:   res.StatusCode,
 24890  			Header: res.Header,
 24891  		})
 24892  	}
 24893  	if err != nil {
 24894  		return nil, err
 24895  	}
 24896  	defer googleapi.CloseBody(res)
 24897  	if err := googleapi.CheckResponse(res); err != nil {
 24898  		return nil, gensupport.WrapError(err)
 24899  	}
 24900  	ret := &GoogleCloudDiscoveryengineV1UserEvent{
 24901  		ServerResponse: googleapi.ServerResponse{
 24902  			Header:         res.Header,
 24903  			HTTPStatusCode: res.StatusCode,
 24904  		},
 24905  	}
 24906  	target := &ret
 24907  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24908  		return nil, err
 24909  	}
 24910  	return ret, nil
 24911  }
 24912  
 24913  type ProjectsLocationsGroundingConfigsCheckCall struct {
 24914  	s                                                 *Service
 24915  	groundingConfig                                   string
 24916  	googleclouddiscoveryenginev1checkgroundingrequest *GoogleCloudDiscoveryengineV1CheckGroundingRequest
 24917  	urlParams_                                        gensupport.URLParams
 24918  	ctx_                                              context.Context
 24919  	header_                                           http.Header
 24920  }
 24921  
 24922  // Check: Performs a grounding check.
 24923  //
 24924  //   - groundingConfig: The resource name of the grounding config, such as
 24925  //     `projects/*/locations/global/groundingConfigs/default_grounding_config`.
 24926  func (r *ProjectsLocationsGroundingConfigsService) Check(groundingConfig string, googleclouddiscoveryenginev1checkgroundingrequest *GoogleCloudDiscoveryengineV1CheckGroundingRequest) *ProjectsLocationsGroundingConfigsCheckCall {
 24927  	c := &ProjectsLocationsGroundingConfigsCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24928  	c.groundingConfig = groundingConfig
 24929  	c.googleclouddiscoveryenginev1checkgroundingrequest = googleclouddiscoveryenginev1checkgroundingrequest
 24930  	return c
 24931  }
 24932  
 24933  // Fields allows partial responses to be retrieved. See
 24934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24935  // details.
 24936  func (c *ProjectsLocationsGroundingConfigsCheckCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroundingConfigsCheckCall {
 24937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24938  	return c
 24939  }
 24940  
 24941  // Context sets the context to be used in this call's Do method.
 24942  func (c *ProjectsLocationsGroundingConfigsCheckCall) Context(ctx context.Context) *ProjectsLocationsGroundingConfigsCheckCall {
 24943  	c.ctx_ = ctx
 24944  	return c
 24945  }
 24946  
 24947  // Header returns a http.Header that can be modified by the caller to add
 24948  // headers to the request.
 24949  func (c *ProjectsLocationsGroundingConfigsCheckCall) Header() http.Header {
 24950  	if c.header_ == nil {
 24951  		c.header_ = make(http.Header)
 24952  	}
 24953  	return c.header_
 24954  }
 24955  
 24956  func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*http.Response, error) {
 24957  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24958  	var body io.Reader = nil
 24959  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1checkgroundingrequest)
 24960  	if err != nil {
 24961  		return nil, err
 24962  	}
 24963  	c.urlParams_.Set("alt", alt)
 24964  	c.urlParams_.Set("prettyPrint", "false")
 24965  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+groundingConfig}:check")
 24966  	urls += "?" + c.urlParams_.Encode()
 24967  	req, err := http.NewRequest("POST", urls, body)
 24968  	if err != nil {
 24969  		return nil, err
 24970  	}
 24971  	req.Header = reqHeaders
 24972  	googleapi.Expand(req.URL, map[string]string{
 24973  		"groundingConfig": c.groundingConfig,
 24974  	})
 24975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24976  }
 24977  
 24978  // Do executes the "discoveryengine.projects.locations.groundingConfigs.check" call.
 24979  // Any non-2xx status code is an error. Response headers are in either
 24980  // *GoogleCloudDiscoveryengineV1CheckGroundingResponse.ServerResponse.Header or
 24981  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24982  // googleapi.IsNotModified to check whether the returned error was because
 24983  // http.StatusNotModified was returned.
 24984  func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1CheckGroundingResponse, error) {
 24985  	gensupport.SetOptions(c.urlParams_, opts...)
 24986  	res, err := c.doRequest("json")
 24987  	if res != nil && res.StatusCode == http.StatusNotModified {
 24988  		if res.Body != nil {
 24989  			res.Body.Close()
 24990  		}
 24991  		return nil, gensupport.WrapError(&googleapi.Error{
 24992  			Code:   res.StatusCode,
 24993  			Header: res.Header,
 24994  		})
 24995  	}
 24996  	if err != nil {
 24997  		return nil, err
 24998  	}
 24999  	defer googleapi.CloseBody(res)
 25000  	if err := googleapi.CheckResponse(res); err != nil {
 25001  		return nil, gensupport.WrapError(err)
 25002  	}
 25003  	ret := &GoogleCloudDiscoveryengineV1CheckGroundingResponse{
 25004  		ServerResponse: googleapi.ServerResponse{
 25005  			Header:         res.Header,
 25006  			HTTPStatusCode: res.StatusCode,
 25007  		},
 25008  	}
 25009  	target := &ret
 25010  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25011  		return nil, err
 25012  	}
 25013  	return ret, nil
 25014  }
 25015  
 25016  type ProjectsLocationsOperationsGetCall struct {
 25017  	s            *Service
 25018  	name         string
 25019  	urlParams_   gensupport.URLParams
 25020  	ifNoneMatch_ string
 25021  	ctx_         context.Context
 25022  	header_      http.Header
 25023  }
 25024  
 25025  // Get: Gets the latest state of a long-running operation. Clients can use this
 25026  // method to poll the operation result at intervals as recommended by the API
 25027  // service.
 25028  //
 25029  // - name: The name of the operation resource.
 25030  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 25031  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25032  	c.name = name
 25033  	return c
 25034  }
 25035  
 25036  // Fields allows partial responses to be retrieved. See
 25037  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25038  // details.
 25039  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 25040  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25041  	return c
 25042  }
 25043  
 25044  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25045  // object's ETag matches the given value. This is useful for getting updates
 25046  // only after the object has changed since the last request.
 25047  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 25048  	c.ifNoneMatch_ = entityTag
 25049  	return c
 25050  }
 25051  
 25052  // Context sets the context to be used in this call's Do method.
 25053  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 25054  	c.ctx_ = ctx
 25055  	return c
 25056  }
 25057  
 25058  // Header returns a http.Header that can be modified by the caller to add
 25059  // headers to the request.
 25060  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 25061  	if c.header_ == nil {
 25062  		c.header_ = make(http.Header)
 25063  	}
 25064  	return c.header_
 25065  }
 25066  
 25067  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 25068  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25069  	if c.ifNoneMatch_ != "" {
 25070  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25071  	}
 25072  	var body io.Reader = nil
 25073  	c.urlParams_.Set("alt", alt)
 25074  	c.urlParams_.Set("prettyPrint", "false")
 25075  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25076  	urls += "?" + c.urlParams_.Encode()
 25077  	req, err := http.NewRequest("GET", urls, body)
 25078  	if err != nil {
 25079  		return nil, err
 25080  	}
 25081  	req.Header = reqHeaders
 25082  	googleapi.Expand(req.URL, map[string]string{
 25083  		"name": c.name,
 25084  	})
 25085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25086  }
 25087  
 25088  // Do executes the "discoveryengine.projects.locations.operations.get" call.
 25089  // Any non-2xx status code is an error. Response headers are in either
 25090  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25091  // returned at all) in error.(*googleapi.Error).Header. Use
 25092  // googleapi.IsNotModified to check whether the returned error was because
 25093  // http.StatusNotModified was returned.
 25094  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25095  	gensupport.SetOptions(c.urlParams_, opts...)
 25096  	res, err := c.doRequest("json")
 25097  	if res != nil && res.StatusCode == http.StatusNotModified {
 25098  		if res.Body != nil {
 25099  			res.Body.Close()
 25100  		}
 25101  		return nil, gensupport.WrapError(&googleapi.Error{
 25102  			Code:   res.StatusCode,
 25103  			Header: res.Header,
 25104  		})
 25105  	}
 25106  	if err != nil {
 25107  		return nil, err
 25108  	}
 25109  	defer googleapi.CloseBody(res)
 25110  	if err := googleapi.CheckResponse(res); err != nil {
 25111  		return nil, gensupport.WrapError(err)
 25112  	}
 25113  	ret := &GoogleLongrunningOperation{
 25114  		ServerResponse: googleapi.ServerResponse{
 25115  			Header:         res.Header,
 25116  			HTTPStatusCode: res.StatusCode,
 25117  		},
 25118  	}
 25119  	target := &ret
 25120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25121  		return nil, err
 25122  	}
 25123  	return ret, nil
 25124  }
 25125  
 25126  type ProjectsLocationsOperationsListCall struct {
 25127  	s            *Service
 25128  	name         string
 25129  	urlParams_   gensupport.URLParams
 25130  	ifNoneMatch_ string
 25131  	ctx_         context.Context
 25132  	header_      http.Header
 25133  }
 25134  
 25135  // List: Lists operations that match the specified filter in the request. If
 25136  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 25137  //
 25138  // - name: The name of the operation's parent resource.
 25139  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 25140  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25141  	c.name = name
 25142  	return c
 25143  }
 25144  
 25145  // Filter sets the optional parameter "filter": The standard list filter.
 25146  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 25147  	c.urlParams_.Set("filter", filter)
 25148  	return c
 25149  }
 25150  
 25151  // PageSize sets the optional parameter "pageSize": The standard list page
 25152  // size.
 25153  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 25154  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25155  	return c
 25156  }
 25157  
 25158  // PageToken sets the optional parameter "pageToken": The standard list page
 25159  // token.
 25160  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 25161  	c.urlParams_.Set("pageToken", pageToken)
 25162  	return c
 25163  }
 25164  
 25165  // Fields allows partial responses to be retrieved. See
 25166  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25167  // details.
 25168  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 25169  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25170  	return c
 25171  }
 25172  
 25173  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25174  // object's ETag matches the given value. This is useful for getting updates
 25175  // only after the object has changed since the last request.
 25176  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 25177  	c.ifNoneMatch_ = entityTag
 25178  	return c
 25179  }
 25180  
 25181  // Context sets the context to be used in this call's Do method.
 25182  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 25183  	c.ctx_ = ctx
 25184  	return c
 25185  }
 25186  
 25187  // Header returns a http.Header that can be modified by the caller to add
 25188  // headers to the request.
 25189  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 25190  	if c.header_ == nil {
 25191  		c.header_ = make(http.Header)
 25192  	}
 25193  	return c.header_
 25194  }
 25195  
 25196  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 25197  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25198  	if c.ifNoneMatch_ != "" {
 25199  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25200  	}
 25201  	var body io.Reader = nil
 25202  	c.urlParams_.Set("alt", alt)
 25203  	c.urlParams_.Set("prettyPrint", "false")
 25204  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 25205  	urls += "?" + c.urlParams_.Encode()
 25206  	req, err := http.NewRequest("GET", urls, body)
 25207  	if err != nil {
 25208  		return nil, err
 25209  	}
 25210  	req.Header = reqHeaders
 25211  	googleapi.Expand(req.URL, map[string]string{
 25212  		"name": c.name,
 25213  	})
 25214  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25215  }
 25216  
 25217  // Do executes the "discoveryengine.projects.locations.operations.list" call.
 25218  // Any non-2xx status code is an error. Response headers are in either
 25219  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 25220  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25221  // googleapi.IsNotModified to check whether the returned error was because
 25222  // http.StatusNotModified was returned.
 25223  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 25224  	gensupport.SetOptions(c.urlParams_, opts...)
 25225  	res, err := c.doRequest("json")
 25226  	if res != nil && res.StatusCode == http.StatusNotModified {
 25227  		if res.Body != nil {
 25228  			res.Body.Close()
 25229  		}
 25230  		return nil, gensupport.WrapError(&googleapi.Error{
 25231  			Code:   res.StatusCode,
 25232  			Header: res.Header,
 25233  		})
 25234  	}
 25235  	if err != nil {
 25236  		return nil, err
 25237  	}
 25238  	defer googleapi.CloseBody(res)
 25239  	if err := googleapi.CheckResponse(res); err != nil {
 25240  		return nil, gensupport.WrapError(err)
 25241  	}
 25242  	ret := &GoogleLongrunningListOperationsResponse{
 25243  		ServerResponse: googleapi.ServerResponse{
 25244  			Header:         res.Header,
 25245  			HTTPStatusCode: res.StatusCode,
 25246  		},
 25247  	}
 25248  	target := &ret
 25249  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25250  		return nil, err
 25251  	}
 25252  	return ret, nil
 25253  }
 25254  
 25255  // Pages invokes f for each page of results.
 25256  // A non-nil error returned from f will halt the iteration.
 25257  // The provided context supersedes any context provided to the Context method.
 25258  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 25259  	c.ctx_ = ctx
 25260  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25261  	for {
 25262  		x, err := c.Do()
 25263  		if err != nil {
 25264  			return err
 25265  		}
 25266  		if err := f(x); err != nil {
 25267  			return err
 25268  		}
 25269  		if x.NextPageToken == "" {
 25270  			return nil
 25271  		}
 25272  		c.PageToken(x.NextPageToken)
 25273  	}
 25274  }
 25275  
 25276  type ProjectsLocationsUserEventsWriteCall struct {
 25277  	s                                     *Service
 25278  	parent                                string
 25279  	googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent
 25280  	urlParams_                            gensupport.URLParams
 25281  	ctx_                                  context.Context
 25282  	header_                               http.Header
 25283  }
 25284  
 25285  // Write: Writes a single user event.
 25286  //
 25287  //   - parent: The parent resource name. If the write user event action is
 25288  //     applied in DataStore level, the format is:
 25289  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25290  //     s/{data_store}`. If the write user event action is applied in Location
 25291  //     level, for example, the event with Document across multiple DataStore, the
 25292  //     format is: `projects/{project}/locations/{location}`.
 25293  func (r *ProjectsLocationsUserEventsService) Write(parent string, googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent) *ProjectsLocationsUserEventsWriteCall {
 25294  	c := &ProjectsLocationsUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25295  	c.parent = parent
 25296  	c.googleclouddiscoveryenginev1userevent = googleclouddiscoveryenginev1userevent
 25297  	return c
 25298  }
 25299  
 25300  // Fields allows partial responses to be retrieved. See
 25301  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25302  // details.
 25303  func (c *ProjectsLocationsUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsUserEventsWriteCall {
 25304  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25305  	return c
 25306  }
 25307  
 25308  // Context sets the context to be used in this call's Do method.
 25309  func (c *ProjectsLocationsUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsUserEventsWriteCall {
 25310  	c.ctx_ = ctx
 25311  	return c
 25312  }
 25313  
 25314  // Header returns a http.Header that can be modified by the caller to add
 25315  // headers to the request.
 25316  func (c *ProjectsLocationsUserEventsWriteCall) Header() http.Header {
 25317  	if c.header_ == nil {
 25318  		c.header_ = make(http.Header)
 25319  	}
 25320  	return c.header_
 25321  }
 25322  
 25323  func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 25324  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25325  	var body io.Reader = nil
 25326  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1userevent)
 25327  	if err != nil {
 25328  		return nil, err
 25329  	}
 25330  	c.urlParams_.Set("alt", alt)
 25331  	c.urlParams_.Set("prettyPrint", "false")
 25332  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:write")
 25333  	urls += "?" + c.urlParams_.Encode()
 25334  	req, err := http.NewRequest("POST", urls, body)
 25335  	if err != nil {
 25336  		return nil, err
 25337  	}
 25338  	req.Header = reqHeaders
 25339  	googleapi.Expand(req.URL, map[string]string{
 25340  		"parent": c.parent,
 25341  	})
 25342  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25343  }
 25344  
 25345  // Do executes the "discoveryengine.projects.locations.userEvents.write" call.
 25346  // Any non-2xx status code is an error. Response headers are in either
 25347  // *GoogleCloudDiscoveryengineV1UserEvent.ServerResponse.Header or (if a
 25348  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25349  // googleapi.IsNotModified to check whether the returned error was because
 25350  // http.StatusNotModified was returned.
 25351  func (c *ProjectsLocationsUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1UserEvent, error) {
 25352  	gensupport.SetOptions(c.urlParams_, opts...)
 25353  	res, err := c.doRequest("json")
 25354  	if res != nil && res.StatusCode == http.StatusNotModified {
 25355  		if res.Body != nil {
 25356  			res.Body.Close()
 25357  		}
 25358  		return nil, gensupport.WrapError(&googleapi.Error{
 25359  			Code:   res.StatusCode,
 25360  			Header: res.Header,
 25361  		})
 25362  	}
 25363  	if err != nil {
 25364  		return nil, err
 25365  	}
 25366  	defer googleapi.CloseBody(res)
 25367  	if err := googleapi.CheckResponse(res); err != nil {
 25368  		return nil, gensupport.WrapError(err)
 25369  	}
 25370  	ret := &GoogleCloudDiscoveryengineV1UserEvent{
 25371  		ServerResponse: googleapi.ServerResponse{
 25372  			Header:         res.Header,
 25373  			HTTPStatusCode: res.StatusCode,
 25374  		},
 25375  	}
 25376  	target := &ret
 25377  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25378  		return nil, err
 25379  	}
 25380  	return ret, nil
 25381  }
 25382  
 25383  type ProjectsOperationsCancelCall struct {
 25384  	s                                       *Service
 25385  	name                                    string
 25386  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 25387  	urlParams_                              gensupport.URLParams
 25388  	ctx_                                    context.Context
 25389  	header_                                 http.Header
 25390  }
 25391  
 25392  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 25393  // server makes a best effort to cancel the operation, but success is not
 25394  // guaranteed. If the server doesn't support this method, it returns
 25395  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 25396  // other methods to check whether the cancellation succeeded or whether the
 25397  // operation completed despite cancellation. On successful cancellation, the
 25398  // operation is not deleted; instead, it becomes an operation with an
 25399  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 25400  // `Code.CANCELLED`.
 25401  //
 25402  // - name: The name of the operation resource to be cancelled.
 25403  func (r *ProjectsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsOperationsCancelCall {
 25404  	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25405  	c.name = name
 25406  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 25407  	return c
 25408  }
 25409  
 25410  // Fields allows partial responses to be retrieved. See
 25411  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25412  // details.
 25413  func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
 25414  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25415  	return c
 25416  }
 25417  
 25418  // Context sets the context to be used in this call's Do method.
 25419  func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
 25420  	c.ctx_ = ctx
 25421  	return c
 25422  }
 25423  
 25424  // Header returns a http.Header that can be modified by the caller to add
 25425  // headers to the request.
 25426  func (c *ProjectsOperationsCancelCall) Header() http.Header {
 25427  	if c.header_ == nil {
 25428  		c.header_ = make(http.Header)
 25429  	}
 25430  	return c.header_
 25431  }
 25432  
 25433  func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 25434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25435  	var body io.Reader = nil
 25436  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 25437  	if err != nil {
 25438  		return nil, err
 25439  	}
 25440  	c.urlParams_.Set("alt", alt)
 25441  	c.urlParams_.Set("prettyPrint", "false")
 25442  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 25443  	urls += "?" + c.urlParams_.Encode()
 25444  	req, err := http.NewRequest("POST", urls, body)
 25445  	if err != nil {
 25446  		return nil, err
 25447  	}
 25448  	req.Header = reqHeaders
 25449  	googleapi.Expand(req.URL, map[string]string{
 25450  		"name": c.name,
 25451  	})
 25452  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25453  }
 25454  
 25455  // Do executes the "discoveryengine.projects.operations.cancel" call.
 25456  // Any non-2xx status code is an error. Response headers are in either
 25457  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 25458  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25459  // check whether the returned error was because http.StatusNotModified was
 25460  // returned.
 25461  func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 25462  	gensupport.SetOptions(c.urlParams_, opts...)
 25463  	res, err := c.doRequest("json")
 25464  	if res != nil && res.StatusCode == http.StatusNotModified {
 25465  		if res.Body != nil {
 25466  			res.Body.Close()
 25467  		}
 25468  		return nil, gensupport.WrapError(&googleapi.Error{
 25469  			Code:   res.StatusCode,
 25470  			Header: res.Header,
 25471  		})
 25472  	}
 25473  	if err != nil {
 25474  		return nil, err
 25475  	}
 25476  	defer googleapi.CloseBody(res)
 25477  	if err := googleapi.CheckResponse(res); err != nil {
 25478  		return nil, gensupport.WrapError(err)
 25479  	}
 25480  	ret := &GoogleProtobufEmpty{
 25481  		ServerResponse: googleapi.ServerResponse{
 25482  			Header:         res.Header,
 25483  			HTTPStatusCode: res.StatusCode,
 25484  		},
 25485  	}
 25486  	target := &ret
 25487  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25488  		return nil, err
 25489  	}
 25490  	return ret, nil
 25491  }
 25492  
 25493  type ProjectsOperationsGetCall struct {
 25494  	s            *Service
 25495  	name         string
 25496  	urlParams_   gensupport.URLParams
 25497  	ifNoneMatch_ string
 25498  	ctx_         context.Context
 25499  	header_      http.Header
 25500  }
 25501  
 25502  // Get: Gets the latest state of a long-running operation. Clients can use this
 25503  // method to poll the operation result at intervals as recommended by the API
 25504  // service.
 25505  //
 25506  // - name: The name of the operation resource.
 25507  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 25508  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25509  	c.name = name
 25510  	return c
 25511  }
 25512  
 25513  // Fields allows partial responses to be retrieved. See
 25514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25515  // details.
 25516  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 25517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25518  	return c
 25519  }
 25520  
 25521  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25522  // object's ETag matches the given value. This is useful for getting updates
 25523  // only after the object has changed since the last request.
 25524  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 25525  	c.ifNoneMatch_ = entityTag
 25526  	return c
 25527  }
 25528  
 25529  // Context sets the context to be used in this call's Do method.
 25530  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 25531  	c.ctx_ = ctx
 25532  	return c
 25533  }
 25534  
 25535  // Header returns a http.Header that can be modified by the caller to add
 25536  // headers to the request.
 25537  func (c *ProjectsOperationsGetCall) Header() http.Header {
 25538  	if c.header_ == nil {
 25539  		c.header_ = make(http.Header)
 25540  	}
 25541  	return c.header_
 25542  }
 25543  
 25544  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 25545  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25546  	if c.ifNoneMatch_ != "" {
 25547  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25548  	}
 25549  	var body io.Reader = nil
 25550  	c.urlParams_.Set("alt", alt)
 25551  	c.urlParams_.Set("prettyPrint", "false")
 25552  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25553  	urls += "?" + c.urlParams_.Encode()
 25554  	req, err := http.NewRequest("GET", urls, body)
 25555  	if err != nil {
 25556  		return nil, err
 25557  	}
 25558  	req.Header = reqHeaders
 25559  	googleapi.Expand(req.URL, map[string]string{
 25560  		"name": c.name,
 25561  	})
 25562  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25563  }
 25564  
 25565  // Do executes the "discoveryengine.projects.operations.get" call.
 25566  // Any non-2xx status code is an error. Response headers are in either
 25567  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25568  // returned at all) in error.(*googleapi.Error).Header. Use
 25569  // googleapi.IsNotModified to check whether the returned error was because
 25570  // http.StatusNotModified was returned.
 25571  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25572  	gensupport.SetOptions(c.urlParams_, opts...)
 25573  	res, err := c.doRequest("json")
 25574  	if res != nil && res.StatusCode == http.StatusNotModified {
 25575  		if res.Body != nil {
 25576  			res.Body.Close()
 25577  		}
 25578  		return nil, gensupport.WrapError(&googleapi.Error{
 25579  			Code:   res.StatusCode,
 25580  			Header: res.Header,
 25581  		})
 25582  	}
 25583  	if err != nil {
 25584  		return nil, err
 25585  	}
 25586  	defer googleapi.CloseBody(res)
 25587  	if err := googleapi.CheckResponse(res); err != nil {
 25588  		return nil, gensupport.WrapError(err)
 25589  	}
 25590  	ret := &GoogleLongrunningOperation{
 25591  		ServerResponse: googleapi.ServerResponse{
 25592  			Header:         res.Header,
 25593  			HTTPStatusCode: res.StatusCode,
 25594  		},
 25595  	}
 25596  	target := &ret
 25597  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25598  		return nil, err
 25599  	}
 25600  	return ret, nil
 25601  }
 25602  
 25603  type ProjectsOperationsListCall struct {
 25604  	s            *Service
 25605  	name         string
 25606  	urlParams_   gensupport.URLParams
 25607  	ifNoneMatch_ string
 25608  	ctx_         context.Context
 25609  	header_      http.Header
 25610  }
 25611  
 25612  // List: Lists operations that match the specified filter in the request. If
 25613  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 25614  //
 25615  // - name: The name of the operation's parent resource.
 25616  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 25617  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25618  	c.name = name
 25619  	return c
 25620  }
 25621  
 25622  // Filter sets the optional parameter "filter": The standard list filter.
 25623  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 25624  	c.urlParams_.Set("filter", filter)
 25625  	return c
 25626  }
 25627  
 25628  // PageSize sets the optional parameter "pageSize": The standard list page
 25629  // size.
 25630  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 25631  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25632  	return c
 25633  }
 25634  
 25635  // PageToken sets the optional parameter "pageToken": The standard list page
 25636  // token.
 25637  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 25638  	c.urlParams_.Set("pageToken", pageToken)
 25639  	return c
 25640  }
 25641  
 25642  // Fields allows partial responses to be retrieved. See
 25643  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25644  // details.
 25645  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 25646  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25647  	return c
 25648  }
 25649  
 25650  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25651  // object's ETag matches the given value. This is useful for getting updates
 25652  // only after the object has changed since the last request.
 25653  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 25654  	c.ifNoneMatch_ = entityTag
 25655  	return c
 25656  }
 25657  
 25658  // Context sets the context to be used in this call's Do method.
 25659  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 25660  	c.ctx_ = ctx
 25661  	return c
 25662  }
 25663  
 25664  // Header returns a http.Header that can be modified by the caller to add
 25665  // headers to the request.
 25666  func (c *ProjectsOperationsListCall) Header() http.Header {
 25667  	if c.header_ == nil {
 25668  		c.header_ = make(http.Header)
 25669  	}
 25670  	return c.header_
 25671  }
 25672  
 25673  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 25674  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25675  	if c.ifNoneMatch_ != "" {
 25676  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25677  	}
 25678  	var body io.Reader = nil
 25679  	c.urlParams_.Set("alt", alt)
 25680  	c.urlParams_.Set("prettyPrint", "false")
 25681  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 25682  	urls += "?" + c.urlParams_.Encode()
 25683  	req, err := http.NewRequest("GET", urls, body)
 25684  	if err != nil {
 25685  		return nil, err
 25686  	}
 25687  	req.Header = reqHeaders
 25688  	googleapi.Expand(req.URL, map[string]string{
 25689  		"name": c.name,
 25690  	})
 25691  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25692  }
 25693  
 25694  // Do executes the "discoveryengine.projects.operations.list" call.
 25695  // Any non-2xx status code is an error. Response headers are in either
 25696  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 25697  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25698  // googleapi.IsNotModified to check whether the returned error was because
 25699  // http.StatusNotModified was returned.
 25700  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 25701  	gensupport.SetOptions(c.urlParams_, opts...)
 25702  	res, err := c.doRequest("json")
 25703  	if res != nil && res.StatusCode == http.StatusNotModified {
 25704  		if res.Body != nil {
 25705  			res.Body.Close()
 25706  		}
 25707  		return nil, gensupport.WrapError(&googleapi.Error{
 25708  			Code:   res.StatusCode,
 25709  			Header: res.Header,
 25710  		})
 25711  	}
 25712  	if err != nil {
 25713  		return nil, err
 25714  	}
 25715  	defer googleapi.CloseBody(res)
 25716  	if err := googleapi.CheckResponse(res); err != nil {
 25717  		return nil, gensupport.WrapError(err)
 25718  	}
 25719  	ret := &GoogleLongrunningListOperationsResponse{
 25720  		ServerResponse: googleapi.ServerResponse{
 25721  			Header:         res.Header,
 25722  			HTTPStatusCode: res.StatusCode,
 25723  		},
 25724  	}
 25725  	target := &ret
 25726  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25727  		return nil, err
 25728  	}
 25729  	return ret, nil
 25730  }
 25731  
 25732  // Pages invokes f for each page of results.
 25733  // A non-nil error returned from f will halt the iteration.
 25734  // The provided context supersedes any context provided to the Context method.
 25735  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 25736  	c.ctx_ = ctx
 25737  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25738  	for {
 25739  		x, err := c.Do()
 25740  		if err != nil {
 25741  			return err
 25742  		}
 25743  		if err := f(x); err != nil {
 25744  			return err
 25745  		}
 25746  		if x.NextPageToken == "" {
 25747  			return nil
 25748  		}
 25749  		c.PageToken(x.NextPageToken)
 25750  	}
 25751  }
 25752  

View as plain text